Sub topic 4
Evaluating by Substitution
What this chapter assumes
You should already be comfortable with integer arithmetic, exponents, order of operations (PEMDAS), and simple algebraic expressions. The earlier chapters covered function notation and treating a made-up symbol as a rule. This chapter turns that rule into a repeatable procedure for computing an answer.
Substitution is the core skill in this topic. Nested operations, composition, and solving for unknowns all reduce to it. If your substitution is sloppy, every later step inherits the error.
The idea
A definition such as a★b = 2a + b² is a template. The letters a and b are placeholders. They hold the places where the inputs go and have no value of their own. To evaluate the operation, you replace each placeholder with an actual input and then simplify with the usual order of operations.
The GRE writes the definition once and then asks about specific inputs, such as 3★4. The symbol ★ has no meaning outside the definition. It does not mean multiplication, and it does not mean anything you may have seen in another course.
The procedure
Use the same steps every time, even when the problem looks easy.
- Read the definition and list the placeholders in the order they appear on the left side (
a, thenb). - Match the inputs to the placeholders by position. In
3★4, the first input is 3, soa = 3. The second input is 4, sob = 4. - Rewrite the right side with an empty pair of parentheses wherever a placeholder appeared:
2( ) + ( )². - Put the inputs inside the parentheses:
2(3) + (4)². - Simplify with the order of operations:
6 + 16 = 22. - Check that you replaced every occurrence of every placeholder and that no placeholder letter is left in your work.
A first worked example in code
The first example from the plan is a good model. A defined operation behaves exactly like a function in code: the parameters are the placeholders, and the call supplies the inputs.
def star(a, b):
# Defined operation: a star b = 2a + b^2
return 2 * a + b ** 2
print(star(3, 4)) # 2*3 + 4**2 = 22The code does steps 4 and 5 for you. The habit to take away is on paper: always write the substituted line (2(3) + (4)²) before simplifying. That line is where most mistakes can be caught.
Why parentheses matter
Each input goes into parentheses because the input may be negative, may be a fraction, or may itself be an expression. Parentheses keep the input intact as a single value when exponents and multiplication are applied.
Consider x★y = x² − 3y and the input (−2)★(−1):
- With parentheses:
(−2)² − 3(−1) = 4 + 3 = 7. - Without them:
−2² − 3−1is not even a valid expression, and the part−2²would mean−(2²) = −4.
Python follows the same convention, which makes the trap easy to see.
def op(x, y):
return x ** 2 - 3 * y
print(-2 ** 2) # -4, because the exponent binds before the minus sign
print((-2) ** 2) # 4
print(op(-2, -1)) # (-2)**2 - 3*(-1) = 4 + 3 = 7In op(-2, -1), Python substitutes the value -2 as a whole into x, so x ** 2 is 4. That is the behavior you want on paper too, and parentheses are how you get it. The next chapter on negative and fractional inputs goes further into this. For now, adopt the rule of always substituting inside parentheses.
Implied multiplication
Definitions often use implied multiplication, such as 2a or ab. After substitution, this must become explicit multiplication. If a = 3, then 2a is 2(3) = 6, not 23. If a = 3 and b = −2, then ab is (3)(−2) = −6.
A related case is a placeholder that appears more than once. Take p#q = p² − pq + q. Every p and every q is replaced:
3#2 = (3)² − (3)(2) + (2) = 9 − 6 + 2 = 5
Counting the occurrences before you start is a quick way to avoid leaving one behind. Here there are two p terms in p² and pq, and two q terms in pq and q, which makes four substitutions in total.
Matching by position, not by letter
The inputs are assigned to placeholders by position. The letters in the question do not have to match the letters in the definition, and they often will not.
Suppose a★b = 2a + b² and the question asks for x★y. The first input is x, so it takes the place of a. The second input is y, so it takes the place of b:
x★y = 2(x) + (y)² = 2x + y²
The problem becomes more confusing when the same letters appear in a different order. Consider b★a. The first input is b, so b goes where a was. The second input is a, so a goes where b was:
b★a = 2(b) + (a)² = 2b + a²
This is different from a★b = 2a + b². The definition stays fixed, and only the inputs move. The chapter on argument order covers the consequences. Here, the rule is to match by position.
Expressions as inputs
An input can be an algebraic expression. The same procedure applies, and the parentheses now carry real weight.
Let f(x) = x² − 3x. To find f(t + 1), replace x with the whole expression (t + 1):
f(t + 1) = (t + 1)² − 3(t + 1)
Now expand and simplify:
= t² + 2t + 1 − 3t − 3 = t² − t − 2
Dropping the parentheses would give t + 1² − 3t + 1, which is a different and wrong expression. The exponent would apply only to the 1, and the minus sign would not distribute across t + 1.
You can check a symbolic answer by testing it at a number. Pick t = 2. Then f(3) = 9 − 9 = 0, and t² − t − 2 = 4 − 2 − 2 = 0. The two values agree, so the simplification is probably right. The next program runs that same check across several values.
def f(x):
return x ** 2 - 3 * x
def simplified(t):
return t ** 2 - t - 2
for t in range(-3, 4):
assert f(t + 1) == simplified(t), t
print("f(t + 1) matches t^2 - t - 2 for t from -3 to 3")A quadratic expression is fully determined by three points, so agreement at several integers is strong evidence, though not a proof. On the GRE, checking one or two values is a practical way to catch an algebra slip.
A second symbolic example uses the star operation with a related input. For a★(a + 1):
2(a) + (a + 1)² = 2a + a² + 2a + 1 = a² + 4a + 1
At a = 2, the original is 2★3 = 4 + 9 = 13, and the simplified form gives 4 + 8 + 1 = 13.
Definitions with one input
Not every made-up symbol has two inputs. A definition can attach a symbol to a single value, as in @x = 3x − 1. The procedure is unchanged. For @5, write 3(5) − 1 = 14. The symbol replaces the function name, and the placeholder works the same way.
Some definitions also include constants that are not placeholders, such as the 2 in 2a + b². Constants stay as they are. Only the named placeholders are replaced.
Common errors
| Error | Example | What goes wrong | Fix |
|---|---|---|---|
| Dropping parentheses around a negative input | `b²` with `b = −3` written as `−3²` | Gives −9 instead of 9 | Write `(−3)²` |
| Treating implied multiplication as digits side by side | `2a` with `a = 3` read as 23 | Gives 23 instead of 6 | Write `2(3)` |
| Assigning inputs by letter instead of position | Reading `b★a` as `2a + b²` | Swaps the roles of the inputs | Fill by position: first input into first placeholder |
| Replacing only some occurrences | `p² − pq + q` with only `p²` replaced | Leaves a variable in a numeric answer | Count occurrences before simplifying |
| Using the symbol's usual meaning | Treating `3★4` as 3 × 4 | Ignores the definition | Use only the definition given in the problem |
| Simplifying before substituting | Rewriting the definition into a different form first | Introduces algebra slips | Substitute into the original, then simplify |
A second worked example by hand
Let a◆b = ab − b. Find (−3)◆2.
- Placeholders in order:
a, thenb. - Inputs by position:
a = −3,b = 2. - Template:
( )( ) − ( ). - Fill in:
(−3)(2) − (2). - Simplify:
−6 − 2 = −8.
Now check by reading the definition once more. The placeholder b appears twice, and both were replaced with 2. No a or b remains in the work. The answer is −8.
A short checking routine
After each evaluation, run through these questions before moving on.
- Did you write the substituted line, with parentheses, before simplifying?
- Does the number of replaced placeholders match the number in the definition?
- Did you apply exponents to whole parenthesized values?
- Is the sign of each term what you expect from the signs of the inputs?
- Can a quick estimate or a second pass with a different arithmetic order confirm the result?
This routine takes under half a minute and prevents most of the errors in the table. The final chapter in this series builds it into a full strategy for the GRE question formats.
Summary
Evaluating a defined operation means replacing each placeholder with its input by position, keeping each input in parentheses, and then simplifying with the order of operations. The same procedure works for numbers, negative values, and algebraic expressions. The placeholders are only slots, the constants stay put, and the only meaning of the symbol is the one given in the definition.
Exercise
A defined operation is m△n = m² − 2n + 1. What is 4△(−3)?
Show answer
Substitute m = 4 and n = −3 by position: (4)² − 2(−3) + 1 = 16 + 6 + 1 = 23.
Exercise
Let f(x) = 3x² − x. Write f(2a) as a simplified expression in a.
Show answer
Replace x with the whole expression (2a): 3(2a)² − (2a) = 3(4a²) − 2a = 12a² − 2a. The parentheses keep the exponent applying to both 2 and a.
Exercise
Let a★b = 2a + b². Without using any numbers for a, simplify b★a and explain why it differs from a★b.
Show answer
Fill by position: the first input is b, so it replaces a, and the second input is a, so it replaces b. This gives 2(b) + (a)² = 2b + a². The expression a★b = 2a + b² has the linear term in a and the squared term in b, so the two differ in general. For example, with a = 3 and b = 4, a★b = 22 but b★a = 8 + 9 = 17.