Short answer: To solve a functional equation, substitute special values (such as x = 0 or y = x) to find facts like f(0) or whether f is even or odd, guess the form of the solution, verify the guess works, then prove no other function satisfies the equation. All three steps are needed for full credit in competitions.
In most algebra you know the function and solve for x. In a functional equation the unknown is the function itself. These problems show up on the AIME, the USAMO and the International Mathematical Olympiad, and they reward clean, careful algebra more than any special formula.
Key points
- The function is unknown: You must find every function f that makes the equation true for all inputs.
- Plug in special values: x = 0, y = 0, y = x and y = −x usually reveal f(0) and symmetry.
- Look for even or odd: Knowing f(−x) = f(x) or f(−x) = −f(x) often cuts the work in half.
- Guess, then verify: Try f(x) = 0, f(x) = x and f(x) = kx first, and check each one.
- Prove uniqueness: The hardest step is showing that no other function works.
- Write all three parts: Competition graders expect the answer, a check and a proof.
What is a functional equation?
A functional equation is an equation whose unknown is a function. For f: R → R, the set R of real numbers is both the domain (inputs) and the codomain (outputs), and the equation must hold for every real input.
Compare the two kinds of problem:
| Ordinary equation | Functional equation | |
|---|---|---|
| Example | x² + 7x + 12 = 0 | f(x − 1) = x² + 5x + 6 |
| Unknown | A number x | A function f |
| Answer | x = −3 or x = −4 | f(x) = x² + 7x + 12 |
| Must hold | For the solution values | For every input |
How do you solve a simple functional equation by substitution?
Start with the most direct tool: rename the inside of the function.
Example 1: If f(x − 1) = x² + 5x + 6, what is f(x)?
- Name the input. Let y = x − 1, so x = y + 1.
- Substitute everywhere. f(y) = (y + 1)² + 5(y + 1) + 6.
- Expand. f(y) = y² + 2y + 1 + 5y + 5 + 6 = y² + 7y + 12.
- Rename the variable. f(x) = x² + 7x + 12.
- Check. f(x − 1) = (x − 1)² + 7(x − 1) + 12 = x² − 2x + 1 + 7x − 7 + 12 = x² + 5x + 6. It matches.
Problems like this are a good test of elementary algebra. If expanding (y + 1)² causes trouble, review the most common algebra mistakes first.
Example 2: Find f if f(x) + 2f(1 − x) = x² for all real x
Here a substitution creates a second equation, and the pair can be solved like a system.
- Swap x for 1 − x. Since 1 − (1 − x) = x, this gives f(1 − x) + 2f(x) = (1 − x)².
- Treat it as a system. Let A = f(x) and B = f(1 − x): A + 2B = x² and 2A + B = (1 − x)².
- Eliminate B. Double the second equation and subtract the first: 3A = 2(1 − x)² − x² = x² − 4x + 2.
- Solve. f(x) = (x² − 4x + 2)/3.
- Verify. f(1 − x) = (x² + 2x − 1)/3, so f(x) + 2f(1 − x) = (x² − 4x + 2 + 2x² + 4x − 2)/3 = x². It works.
What does a complete competition solution need?
A full solution to a “find all functions” problem has three parts:
- State the answer. List every function that works, or describe the general form.
- Verify it. Show by substitution that each listed function satisfies the equation.
- Prove there are no others. Show that any solution must have the form you stated.
USAMO and IMO problems are graded out of 7 points. Without the first part there is nothing to verify or prove. Skipping the check usually costs credit even when it is easy, and the third part is where most of the work, and most partial credit, lives.
Tutor tip: Write the verification as soon as you have a guess. It takes a minute, it secures a point, and occasionally it shows your guess was wrong before you spend twenty minutes proving it.
What techniques work on harder functional equations?
When direct substitution is not enough, work through this checklist. The goal is to compute explicit values, spot structure, guess the answer and then prove it.
| Technique | What to try | What it can reveal |
|---|---|---|
| Special values | x = 0, y = 0, x = y, y = −x | f(0), f(1), simple identities |
| Symmetry | Swap x and y | Whether f is even or odd |
| Sign change | Replace y with −y | Relations between f(y) and f(−y) |
| Involutions | Replace x with 1 − x or 1/x | A second equation to solve as a system |
| Guess the form | Test 0, constants, x, kx, x² | Candidate answers to verify |
| Iteration | Apply f twice, or use f(2x), f(x + 1) | Recurrences and growth patterns |
In a timed contest, do not just stare at the equation. Try a substitution, write down what it gives, and keep going until something simplifies. Evan Chen’s Introduction to Functional Equations is a well-known free handout with more techniques and practice problems.
Example 3: Find all f: R → R with f(x + y) − f(x − y) = f(x)f(y)
First, notice that f(x) = 0 works: both sides are 0. Now prove it is the only solution.
- Set x = y = 0. f(0) − f(0) = f(0)², so f(0)² = 0 and f(0) = 0.
- Set x = 0. f(y) − f(−y) = f(0)f(y) = 0, so f(−y) = f(y). The function is even.
- Replace y with −y. f(x − y) − f(x + y) = f(x)f(−y) = f(x)f(y).
- Add this to the original equation. The left sides cancel: 0 = 2f(x)f(y), so f(x)f(y) = 0 for all x and y.
- Set y = x. f(x)² = 0, so f(x) = 0 for every real x.
The only solution is f(x) = 0.
Preparing for the AIME, USAMO or a math olympiad?
Work through proof-style problems one-on-one with a tutor who can check every step of your solution and show you where graders award and deduct points.
Book a risk-free first lesson →
Or explore our online math tutoring.
Example 4: Cauchy’s functional equation over the rationals
The most famous functional equation is f(x + y) = f(x) + f(y), called Cauchy’s equation. A function that satisfies it is called additive. Over the rational numbers its solutions are exactly f(x) = cx:
- x = y = 0 gives f(0) = 2f(0), so f(0) = 0.
- Induction gives f(n) = nf(1) for every positive integer n.
- y = −x gives f(x) + f(−x) = f(0) = 0, so f is odd and f(−n) = −nf(1).
- For a fraction m/n, adding m/n to itself n times gives nf(m/n) = f(m) = mf(1), so f(m/n) = (m/n)f(1).
Over all real numbers, Cauchy’s equation has other, very irregular solutions unless the problem adds a condition such as continuity, monotonicity or boundedness on an interval. With any of those, f(x) = cx is again the only answer. That fact is the key to the next example.
How do you solve USAMO 2002 Problem 4?
This is Problem 4 from the 2002 USA Mathematical Olympiad, the top national contest for U.S. high school students (AoPS problem page). Students reach the USAMO through the AMC 10, AMC 12 and AIME run by the Mathematical Association of America.
Problem. Find all functions f: R → R such that f(x² − y²) = xf(x) − yf(y) for all real x and y.
Steps 1 and 2: guess and verify
f(x) = x works, and so do f(x) = −x and f(x) = 2x. That suggests f(x) = kx for a constant k. Check it: f(x² − y²) = k(x² − y²) = kx² − ky² = x(kx) − y(ky) = xf(x) − yf(y). Every f(x) = kx works.
Step 3: prove there are no other solutions
- Find f(0). Set y = x: f(0) = xf(x) − xf(x) = 0.
- Find f(x²). Set y = 0: f(x²) = xf(x). Call this equation (*).
- Show f is odd. Replace x with −x in (*): f(x²) = −xf(−x). So xf(x) = −xf(−x), and for x ≠ 0, f(−x) = −f(x). With f(0) = 0, f is odd.
- Rewrite the equation. By (*), xf(x) = f(x²) and yf(y) = f(y²), so f(a − b) = f(a) − f(b) for all a, b ≥ 0 (take a = x², b = y²).
- Show f is additive. For any reals s and t, f(s + t) = f(s) + f(t). If s ≥ 0 ≥ t (or the reverse, by symmetry), use a = s, b = −t in step 4 and oddness. If s, t ≥ 0, use a = s + t, b = t. If s, t ≤ 0, apply the previous case to −s and −t and use oddness.
- Compute f((x + 1)²) two ways. By (*) and additivity: (x + 1)f(x + 1) = (x + 1)(f(x) + f(1)) = xf(x) + f(x) + xf(1) + f(1). By additivity alone: f(x² + 2x + 1) = f(x²) + 2f(x) + f(1) = xf(x) + 2f(x) + f(1).
- Set them equal. xf(x) + 2f(x) + f(1) = xf(x) + f(x) + xf(1) + f(1), which simplifies to f(x) = xf(1).
So every solution is f(x) = kx with k = f(1), and the answer is f(x) = kx for any real constant k.
Tutor tip: Step 6 is the trick worth remembering. When you know f is additive and have an identity like f(x²) = xf(x), evaluate the same expression two ways. Here it avoided needing continuity at all.
Why learn functional equations if you are not a competitor?
Functional equations train the habits that make advanced math easier: substituting carefully, checking work, and writing a complete argument. They also connect to ideas students meet later, such as the exponential and logarithm rules (f(x + y) = f(x)f(y) and f(xy) = f(x) + f(y)) covered in our post on the natural logarithm and its rules.
For more on building that kind of thinking, see problem-solving skills and preparing for college math. Students who want a coach for contest math can work with our math tutors.
Tutor-written guide · PDF
Tips for Performing Well During STEM Exams
The game plan our tutors give students before a big math or science test. Enter your name and email and the guide opens right away.
- The night-before routine that beats cramming
- A first-five-minutes plan: formula dump, read-through, quick wins
- Halfway and 10-minute checkpoints so time never runs out
- Calm-down steps for test anxiety you can use mid-exam
Frequently asked questions
What is a functional equation?
A functional equation is an equation in which the unknown is a function rather than a number. Solving it means finding every function, such as f(x) = kx, that makes the equation true for all allowed inputs.
What is the first step in solving a functional equation?
Substitute simple values such as x = 0, y = 0, y = x or y = −x. These usually give f(0) and show whether the function is even or odd, which points toward the answer.
What is Cauchy’s functional equation?
Cauchy’s functional equation is f(x + y) = f(x) + f(y). Over the rational numbers its only solutions are f(x) = cx; over the real numbers the same is true if f is also continuous, monotonic or bounded on an interval.
How are functional equations graded in math competitions?
Olympiad problems such as those on the USAMO are scored out of 7 points. A full solution states every answer, verifies that each one works and proves there are no others, and graders give partial credit for real progress.
What is the answer to USAMO 2002 Problem 4?
The solutions of f(x² − y²) = xf(x) − yf(y) are exactly the linear functions f(x) = kx for a real constant k. The proof shows f is odd and additive, then compares two ways of computing f((x + 1)²).
Train for competition math with a mathematician
Our tutors are working mathematicians, scientists and engineers who teach one-on-one, online. Your first lesson is risk-free. Explore online math tutoring or meet our tutors.
Get in touch → We respond within 30 minutes.
Work one-on-one with Caleb.
Start with a risk-free first lesson. No credit card required. Meet Caleb