Sub topic 16
Functional equations: substitution and symmetry
This chapter assumes you can evaluate f(x) at a point, build a composite f(g(x)), and tell an even function from an odd one. It also assumes you can solve two linear equations in two unknowns. If composition feels shaky, review that chapter first.
What a functional equation is
A functional equation gives a rule that a function must obey, instead of a formula for it. For example, "f(x) + 2f(1/x) = 3x for every x ≠ 0" does not say what f(x) is. Your job is to find f(x), or just a number such as f(2).
CAT rarely asks for a full proof. It asks for a value, a sum, or a count, so you only need enough of the function to answer. The rule holds for every allowed input, and that is what lets you substitute freely.
Technique 1: plug in special values
Try x = 0, 1, -1, or the number that makes a term vanish or repeat. Do this first, because it often settles the question in one line.
Suppose f(x + y) = f(x) + f(y) for all real x and y, and f(1) = 3.
- Put y = 0. Then f(x) = f(x) + f(0), so f(0) = 0.
- Put y = 1 repeatedly. f(2) = f(1) + f(1) = 6, f(3) = 9, and in general f(n) = 3n.
- So f(5) = 15.
The additive rule f(x + y) = f(x) + f(y) leads to f(x) = kx. In the same way, the multiplicative rule f(x + y) = f(x)·f(y), with f not identically zero, leads to f(x) = aˣ where a = f(1). If f(1) = 2, then f(3) = 2³ = 8.
| Rule | Typical solution | What to substitute first |
|---|---|---|
| f(x + y) = f(x) + f(y) | f(x) = kx | y = 0, then y = 1 |
| f(x + y) = f(x)·f(y) | f(x) = aˣ | y = 0 gives f(0) = 1 |
| f(xy) = f(x) + f(y) | f(x) = logₐ x | x = y = 1 gives f(1) = 0 |
| f(xy) = f(x)·f(y) | f(x) = xⁿ | x = y = 1 gives f(1) = 1 |
Technique 2: replace x by a related expression
When the equation mixes f(x) with f of another expression, such as 1/x, -x, or a - x, substitute that expression for x. You get a second equation with the same two unknowns, and you solve the pair as simultaneous equations.
Solve f(x) + 2f(1/x) = 3x for x ≠ 0.
- Replace x by 1/x: f(1/x) + 2f(x) = 3/x.
- Multiply this second equation by 2: 4f(x) + 2f(1/x) = 6/x.
- Subtract the original equation: 3f(x) = 6/x - 3x.
- So f(x) = 2/x - x.
Check by substituting back. f(1/x) = 2x - 1/x, so f(x) + 2f(1/x) = (2/x - x) + (4x - 2/x) = 3x. ✓
The pair of expressions must swap into each other. Here 1/x becomes x again, and -x becomes x again. That closure is what gives you exactly two equations in two unknowns.
def f(x):
return 2 / x - x
for x in [0.5, 2, -3, 10]:
lhs = f(x) + 2 * f(1 / x)
print(x, round(lhs, 10), round(3 * x, 10))Each row prints the same number twice, which confirms the solution.
Rewriting the input
Some equations hide the variable inside the argument. Given f(x + 1/x) = x² + 1/x², write x² + 1/x² = (x + 1/x)² - 2. Setting t = x + 1/x gives f(t) = t² - 2. So f(5) = 23.
The domain of the new function matters here. For real x, t = x + 1/x satisfies |t| ≥ 2, so the formula is only guaranteed for those t. The value 5 is inside that range, so the answer is safe.
Technique 3: use symmetry
Symmetry turns a functional rule into facts about graphs and roots. The main forms are below.
| Rule | Meaning | Consequence |
|---|---|---|
| f(-x) = f(x) | Even: symmetric about the y-axis | Non-zero roots come in pairs ±r |
| f(-x) = -f(x) | Odd: symmetric about the origin | f(0) = 0 if defined; roots pair as ±r |
| f(a + x) = f(a - x) | Symmetric about the line x = a | Roots pair as r and 2a - r |
| f(x + p) = f(x) | Periodic with period p | f(x + kp) = f(x) |
| f(x + p) = -f(x) | Sign flips each p | Period 2p |
Roots from a symmetry line
Suppose f(x) = f(6 - x) for all x, and the equation f(x) = 0 has exactly four distinct real roots. The graph is symmetric about x = 3. Every root r pairs with the root 6 - r. The only root that pairs with itself is 3.
If 3 were a root, the roots would number an odd count (3 plus complete pairs). Four is even, so 3 is not a root, and the roots form two pairs. Each pair sums to 6, so the total is 12.
Periodicity
If f(x + 2) = -f(x), then f(x + 4) = -f(x + 2) = f(x), so the period is 4. With f(1) = 5, f(3) = -5 and f(9) = f(1) = 5, because 9 = 1 + 2·4.
def f(x):
# one function with f(x + 2) = -f(x): a sign flip every 2 units
return 5 if (x // 2) % 2 == 0 else -5
print(f(1), f(3), f(9))
print(all(f(x + 2) == -f(x) for x in range(-10, 10)))This prints 5, -5, 5 and then True. The first line matches the values worked out above.
Splitting into even and odd parts
Any function defined on a symmetric domain is the sum of an even part and an odd part:
f(x) = [f(x) + f(-x)]/2 + [f(x) - f(-x)]/2
This is useful when the equation relates f(x) and f(-x). Take f(x) + 2f(-x) = x + 6.
- Replace x by -x: f(-x) + 2f(x) = -x + 6.
- Multiply by 2: 4f(x) + 2f(-x) = -2x + 12.
- Subtract the original: 3f(x) = -3x + 6, so f(x) = 2 - x.
A decision flow
Common errors
- Assuming a formula before checking. Do not guess f(x) = kx from one value. Derive it from the rule, or check that the guess satisfies the equation for general x and y.
- Leaving the domain. Replacing x by 1/x needs x ≠ 0. Replacing x by x - 1 can break a domain such as x ≥ 0.
- Dividing by f(0) or by zero. In the multiplicative rule f(xy) = f(x)f(y), the value f(1) could be 0 or 1. Only the non-zero function gives f(1) = 1.
- Forgetting the self-paired root. In symmetry-sum problems, the root at the line of symmetry is counted once, not twice.
- Mixing up the period. f(x + p) = -f(x) has period 2p, not p.
Exercises
Exercise
A function satisfies f(x) + 2f(-x) = x + 6 for all real x. Find f(3).
Show answer
Replace x by -x to get f(-x) + 2f(x) = -x + 6. Multiply it by 2 and subtract the original: 3f(x) = -3x + 6, so f(x) = 2 - x. Then f(3) = -1.
Exercise
A function satisfies f(x + y) = f(x) + f(y) for all real x and y, and f(2) = 10. Find f(7).
Show answer
The additive rule gives f(x) = kx. From f(2) = 10, k = 5. So f(7) = 35.
Exercise
The function f satisfies f(x) = f(10 - x) for all real x, and the equation f(x) = 0 has exactly six distinct real roots. What is the sum of the roots?
Show answer
The graph is symmetric about x = 5, so roots pair as r and 10 - r. Six is even, so 5 is not a root and the roots form three pairs, each summing to 10. The total is 30.
Exercise
A function satisfies f(x + 3) = -f(x) for all x, and f(2) = 4. Find f(14).
Show answer
Applying the rule twice gives f(x + 6) = f(x), so the period is 6. Since 14 = 2 + 12, f(14) = f(2) = 4.