Sub topic 8
Plugging in numbers to explore a relationship
This chapter assumes you know the four Quantitative Comparison answer choices and the rule that a relationship must hold for every permitted value. It also assumes you can do basic algebra with inequalities, exponents, and fractions. Here you will learn how to use test values as an investigation tool, what a test can and cannot prove, and how to choose values that expose a hidden conflict.
Why plugging in works
Quantitative Comparison (QC) asks whether Quantity A is greater (A), Quantity B is greater (B), the two are equal (C), or the relationship cannot be determined (D). Choices (A), (B), and (C) each claim something about every permitted value. Choice (D) claims only that the relationship is not the same for every value.
This creates an asymmetry:
- Two tests that disagree prove (D). If one permitted value gives A greater and another gives B greater, no single claim can hold for all values. The answer is (D), and you do not need to know anything else.
- Tests that agree prove nothing by themselves. Five values that all give "A is greater" suggest (A). They do not show that a sixth value will not break the pattern.
So plugging in is a search for a conflict. If you find one, you are done. If you do not, you have a candidate answer to confirm by reasoning or by checking the values that are most likely to break it.
A first example, run in code
Take this question. Here x is any real number.
- Quantity A: x²
- Quantity B: x
Most people try x = 2, see 4 > 2, and choose (A). That is exactly the trap. The script below tests a deliberate spread of values and records the outcome for each.
from fractions import Fraction
def relation(a, b):
if a > b:
return "A"
if b > a:
return "B"
return "C"
# Quantity A: x**2 Quantity B: x (x is any real number)
results = set()
for x in [Fraction(-1), Fraction(0), Fraction(1, 2), Fraction(1), Fraction(2)]:
r = relation(x**2, x)
results.add(r)
print(x, r)
print("D" if len(results) > 1 else results.pop())The output shows the following:
| x | x² | x | Outcome |
|---|---|---|---|
| -1 | 1 | -1 | A greater |
| 0 | 0 | 0 | Equal |
| 1/2 | 1/4 | 1/2 | B greater |
| 1 | 1 | 1 | Equal |
| 2 | 4 | 2 | A greater |
The values 1/2 and 2 already disagree, so the answer is (D). The failing case is a fraction between 0 and 1. Squaring a number in that range makes it smaller.
What kind of value exposes a conflict
Arbitrary values tend to behave alike. Informative values sit at the points where an expression changes behavior. These are the categories to try, always within the given constraints:
| Category | Why it matters | Typical effect |
|---|---|---|
| Negative numbers | Sign flips inequalities and odd or even powers | x² is positive, x³ keeps its sign |
| Zero | Often makes both quantities equal or kills a term | Products become 0 |
| Fractions between 0 and 1 | Powers and roots shrink or grow in unexpected ways | x² < x, √x > x |
| One | The value where multiplying changes nothing | Often produces equality |
| Large integers | Shows the long-run trend | A dominant term wins |
Not every category fits every problem. If the given information says x > 0, skip negatives and zero, but fractions and one are still worth testing.
Second example: a conflict that depends on a constraint
Given that x > 1:
- Quantity A: x²
- Quantity B: x
Try x = 2 (4 vs 2) and x = 3 (9 vs 3), which both give A greater. The tempting fractions and negatives are now forbidden, so no conflict appears. Plugging in has not proved anything yet, so confirm by reasoning. Since x > 1, x is positive. Multiplying both sides of x > 1 by x keeps the direction, which gives x² > x. The answer is (A).
Compare this with the first example. The constraint changed the answer from (D) to (A), which is why reading the given information comes before any testing.
Third example: a product of unknown signs
Given that xy > 0:
- Quantity A: x + y
- Quantity B: 0
Start with x = 1 and y = 1. Then xy = 1 > 0 is allowed, and x + y = 2, so A is greater. The sign condition says only that x and y have the same sign, so test the other case. With x = -1 and y = -1, xy = 1 > 0 is allowed, and x + y = -2, so B is greater. The two tests disagree, so the answer is (D).
The useful idea is to translate the constraint into the cases it permits. "xy > 0" means both positive or both negative, so test one value from each case.
Fourth example: equality hiding at one value
Given that x > 0:
- Quantity A: x + 1/x
- Quantity B: 2
Testing x = 2 gives 2.5, so A is greater. Testing x = 1/2 gives 2.5, so A is greater again. If you stop here, you pick (A). Now try x = 1: the sum is 2, so the quantities are equal. The tests produce both "A greater" and "equal", so the answer is (D).
The reasoning behind it is that x + 1/x is at least 2 for positive x, with equality only at x = 1. Testing the special value one found a conflict that the ordinary values hid.
You can automate this kind of exploration. The helper below applies the constraint as a filter, so you cannot accidentally use an illegal value.
from fractions import Fraction
def relation(a, b):
if a > b:
return "A"
if b > a:
return "B"
return "C"
def explore(qa, qb, values, allowed=lambda v: True):
outcomes = {}
for v in values:
if allowed(v):
outcomes[v] = relation(qa(v), qb(v))
return outcomes
candidates = [Fraction(-1), Fraction(0), Fraction(1, 2),
Fraction(1), Fraction(2), Fraction(3)]
# Given x > 0. Quantity A: x + 1/x Quantity B: 2
found = explore(lambda x: x + Fraction(1) / x,
lambda x: Fraction(2),
candidates,
allowed=lambda x: x > 0)
for value, outcome in found.items():
print(value, outcome)
distinct = set(found.values())
if len(distinct) > 1:
print("D")
else:
print("Consistent with", distinct.pop(), "- now confirm by reasoning")The filter removes -1 and 0, and the remaining values produce both A and C, so the script prints D.
A decision process
Practical rules
- Write the constraints first. List every condition, such as "integer", "positive", "x ≠ y", or "x < 0".
- Test a simple value first. It tells you which outcome to expect and whether the problem is trivial.
- Switch category on the second test. If the first value was a positive integer, the second should be a negative, a fraction, zero, or one, whichever is allowed.
- Stop at the first conflict. Once two allowed values disagree, answer (D) and move on.
- If tests agree, change tactics. Use algebra, simplification, or an inequality argument to prove the pattern.
- Keep the arithmetic small. Pick values that make both quantities easy to compute. Large or awkward values waste time and invite errors.
Common errors
- Ignoring a constraint. Using x = -1 when the problem says x is positive can produce a false (D).
- Stopping after agreement. Three positive integers that agree do not rule out a fraction or negative that disagrees.
- Treating equality as a failure. A test that gives "equal" is a valid outcome. If another test gives "A greater", the answer is (D).
- Using only one variable's values. With two variables, vary them independently. Try x and y with different signs, and with x equal to y and not equal to y, when the constraints permit it.
- Assuming (D) from a hard problem. Difficulty is not evidence. If the quantities are fully determined, for example by an equation that fixes every variable, then (D) is impossible and you should compute.
Exercises
Exercise
Given that x is a positive integer. Quantity A: x². Quantity B: x. Which choice is correct, and which tests justify it?
Show answer
The answer is (C) or (A) depending on the value: x = 1 gives 1 and 1 (equal), while x = 2 gives 4 and 2 (A greater). The two outcomes conflict, so the answer is (D). Fractions are not allowed here, but the value one still produces equality.
Exercise
Given that 0 < x < 1. Quantity A: x. Quantity B: √x. Which choice is correct?
Show answer
Test x = 1/4: Quantity A is 1/4 and Quantity B is 1/2, so B is greater. Test x = 1/9: A is 1/9 and B is 1/3, so B is greater again. Because x is between 0 and 1, x < √x holds for every permitted value (for 0 < x < 1, multiplying √x < 1 by √x gives x < √x). The answer is (B).
Exercise
Given that ab < 0. Quantity A: a + b. Quantity B: 0. Find two valid tests that show the correct choice.
Show answer
ab < 0 means a and b have opposite signs. With a = 3 and b = -1, ab = -3 and a + b = 2, so A is greater. With a = 1 and b = -3, ab = -3 and a + b = -2, so B is greater. The outcomes conflict, so the answer is (D).