Sub topic 8
Working Backward to Find an Unknown Input
This chapter assumes you can evaluate a defined operation by substitution, including negative and fractional inputs. You should also be comfortable solving linear equations and simple quadratics by factoring. Everything here uses one running definition:
a ★ b = 2a + b²
Earlier chapters gave the inputs and asked for the output. Here you are given the output and asked for a missing input. The method is the same, in reverse: substitute what you know, set the expression equal to the stated result, and solve.
The core method
A defined operation is a rule that turns inputs into an output. If one input is a variable, substituting the known parts leaves an ordinary equation. The steps are:
- Write the definition with the known values filled in and the unknown left as a variable.
- Set that expression equal to the given result.
- Solve the equation using normal algebra.
- Put your answer back into the original definition and check that you get the given result.
Step 4 is part of the method, not an optional extra. Back-substitution catches arithmetic slips, and it also reveals when an answer must be rejected or when a second answer exists.
Unknown in the first position
Suppose a ★ 3 = 17. Substituting b = 3 gives 2a + 3² = 17, so 2a + 9 = 17, 2a = 8, and a = 4.
Check: 4 ★ 3 = 2(4) + 9 = 17. ✓
def star(a, b):
return 2 * a + b ** 2
print([a for a in range(-10, 11) if star(a, 3) == 17]) # [4]
print(star(4, 3)) # 17The first input appears only as 2a, so the equation is linear and has exactly one solution.
Unknown in the second position: expect two answers
Now suppose 5 ★ b = 19. Substituting a = 5 gives 10 + b² = 19, so b² = 9 and b = 3 or b = −3.
Both values work, because squaring erases the sign. The operation sends 3 and −3 to the same output.
def star(a, b):
return 2 * a + b ** 2
print([b for b in range(-10, 11) if star(5, b) == 19]) # [-3, 3]When no solution exists
Because b² is never negative, some outputs cannot be reached for a given first input. Take 3 ★ b = 0. Then 6 + b² = 0, so b² = −6, which has no real solution. Unless the problem says otherwise, the GRE works with real numbers, so no b exists.
This matters most in quantitative comparison questions. "The value cannot be determined" and "no such value exists" are different situations, and a well-formed problem normally guarantees that a solution exists. If your algebra produces a negative square, suspect an arithmetic slip first.
Fractional and negative answers
Answers are often not integers. Suppose x ★ 2 = 3. Then 2x + 4 = 3, so 2x = −1 and x = −1/2.
from fractions import Fraction
def star(a, b):
return 2 * a + b ** 2
x = Fraction(3 - 2 ** 2, 2) # solve 2x + 4 = 3
print(x, star(x, 2)) # -1/2 3Using Fraction keeps the arithmetic exact. When you check by hand, square a negative or fractional value as a whole: (−1/2) is substituted for a, and 2a becomes −1, not a sign you can drop. Wrap negative inputs in parentheses before substituting.
The same unknown in both positions
Sometimes one variable fills both inputs. Suppose x ★ x = 15. Substituting gives 2x + x² = 15. Rearrange to a standard quadratic and factor:
- x² + 2x − 15 = 0
- (x + 5)(x − 3) = 0
- x = −5 or x = 3
Check both. 3 ★ 3 = 6 + 9 = 15 ✓. And (−5) ★ (−5) = −10 + 25 = 15 ✓.
def star(a, b):
return 2 * a + b ** 2
print([x for x in range(-10, 11) if star(x, x) == 15]) # [-5, 3]Do not try to solve this by treating the two positions separately. The variable is the same number in both places, so you must combine the terms into one equation.
Unknown inside a nested expression
Nested operations are evaluated from the inside out, and solving backward reverses that order. Take (x ★ 1) ★ 2 = 12.
Method A: expand. The inner part is x ★ 1 = 2x + 1. The outer operation uses that value as its first input:
(2x + 1) ★ 2 = 2(2x + 1) + 4 = 4x + 6
Set 4x + 6 = 12, so x = 3/2.
Method B: peel layers. Call the inner value t. Then t ★ 2 = 12, so 2t + 4 = 12 and t = 4. Now x ★ 1 = 4, so 2x + 1 = 4 and x = 3/2.
from fractions import Fraction
def star(a, b):
return 2 * a + b ** 2
t = Fraction(12 - 2 ** 2, 2) # outer layer: 2t + 4 = 12
x = Fraction(t - 1 ** 2, 2) # inner layer: 2x + 1 = t
print(t, x) # 4 3/2
print(star(star(x, 1), 2)) # 12Peeling is usually safer because each step is a one-variable equation with small numbers. Expanding is faster when the algebra stays linear. In either case, the final check should run the original nested expression forward, as the last line of the code does.
Unknowns in function notation
The same method works for functions written as f(x). Suppose f(x) = 3x − 5 and f(k) = 10. Then 3k − 5 = 10, so k = 5.
Be careful to distinguish the symbols. In f(k) = 10, the letter k is the input and 10 is the output. The equation f(x) = 10 asks for the input that produces 10, and it is not a request to multiply f by x.
For composed functions the peeling idea applies again. If g(x) = x + 3 and h(x) = 2x, and you are told g(h(m)) = 11, work from the outside: g(something) = 11 means something = 8, so h(m) = 8 and m = 4.
Common errors
| Error | What goes wrong | Fix |
|---|---|---|
| Reporting only b = 3 from b² = 9 | Loses the negative solution | Check for ± whenever the unknown is squared |
| Swapping inputs, treating a ★ 3 as 3 ★ a | The operation is not commutative, so 3 ★ a = 6 + a², not 2a + 9 | Match the first slot to a and the second to b by position |
| Dropping parentheses on a negative input | (−3)² = 9, but −3² = −9 | Write every negative input in parentheses when substituting |
| Solving the rearranged equation but never checking the original | A sign error survives unnoticed | Substitute back into the definition |
| Using the usual meaning of ★ | The symbol is a rule, not multiplication or any standard operation | Use only the definition printed in the problem |
| Solving x ★ x = 15 as if the inputs were separate | Misses the x² term | Substitute x for both inputs, then combine |
How this appears on the GRE
Three formats come up most often.
- Numeric entry. "If a ★ 5 = 9, what is a?" Solve: 2a + 25 = 9, so a = −8. Type the exact value, using a fraction if the answer is one.
- Multiple choice. You can sometimes test the answer choices by substituting them into the definition. This is quick when the equation is awkward, but only after you know the equation is correct.
- Quantitative comparison. You compare a solved unknown with a given number. If the unknown has two possible values and they fall on different sides of the other quantity, the correct answer is that the relationship cannot be determined.
For comparison questions with a squared unknown, always list every solution before comparing. For example, if b ★ 0 = 2b and 5 ★ b = 19 both appear in a problem set, each one stands alone, so solve each from its own equation rather than carrying values between them.
Exercise
Using a ★ b = 2a + b², find a if a ★ 5 = 9.
Show answer
Substitute b = 5: 2a + 25 = 9, so 2a = −16 and a = −8. Check: 2(−8) + 25 = −16 + 25 = 9. ✓
Exercise
Using a ★ b = 2a + b², find all values of b such that 1 ★ b = 18.
Show answer
Substitute a = 1: 2 + b² = 18, so b² = 16 and b = 4 or b = −4. Both check: 2 + 16 = 18.
Exercise
Using a ★ b = 2a + b², find x if (x ★ 0) ★ 1 = 9.
Show answer
The inner part is x ★ 0 = 2x. The outer part is (2x) ★ 1 = 2(2x) + 1 = 4x + 1. Setting 4x + 1 = 9 gives x = 2. Check: 2 ★ 0 = 4, and 4 ★ 1 = 8 + 1 = 9. ✓
Exercise
Quantitative comparison. Using a ★ b = 2a + b², suppose x ★ 2 = 10. Column A is x. Column B is 3. Which column is greater, or are they equal, or can it not be determined?
Show answer
Substitute b = 2: 2x + 4 = 10, so x = 3. The unknown is in the first position, so there is only one solution. The quantities are equal.
Exercise
Using a ★ b = 2a + b², find all x such that x ★ x = 8.
Show answer
2x + x² = 8 gives x² + 2x − 8 = 0, which factors as (x + 4)(x − 2) = 0. So x = 2 or x = −4. Check: 2 ★ 2 = 4 + 4 = 8, and (−4) ★ (−4) = −8 + 16 = 8. ✓