Week 20 · Part 1 — Functional Equations (Advanced) 0%
STEP 1 OF 22 · Lesson Opening

Today: Functional Equations — Advanced Techniques (Pass 2)

A 90-minute deep-dive into the FE techniques that crack the hardest AIMO FE problems: involution, multi-step substitution chains, and the 3-equation system trick.

📌 What you will learn today

Topic
Functional equations (FE) — Pass 2. We now move past the easy "$x=0, y=-x$" substitutions and into the three techniques that distinguish a 4-mark AIMO solver from a 5-mark one: involution $f(f(x))=x$, multi-substitution chains $x \to g(x) \to g(g(x)) \to \cdots$, and the 3-equation system for $f(x), f(1/x), f(1-x)$.
Category
Algebra (ALG) — sub-topic Functional Equations (Pass 2). Builds directly on Week 19 Part 3 (FE intro: the 4 atomic Pass-1 skills F-A1..F-A4).
Solves these AIMO problems
2000 Q8 2021 Q9
These are exactly the two "you-could-not-touch-them-in-W19" problems we deferred from Pass 1.
Why this matters
Pass-1 substitutions handle the 2–3 mark FEs. The 4–5 mark FEs add a twist: the equation involves $f$ applied to a transformed argument — $f(1/x)$, $f(1-x)$, $f(f(x))$ — and a single substitution is not enough. You must build a small system of equations (or assume a form and verify). Three atomic skills today: F2-A1, F2-A2, F2-A3.
Time required
About 90 minutes for the full lesson, plus ~40 minutes of after-class practice.

How this lesson is structured

  1. Phase 0 (Steps 2–3): Recap of W19 Pass-1 drill (the 4 atomic skills F-A1..F-A4); the 3 new atomic skills (F2-A1, F2-A2, F2-A3).
  2. Phase 1 (Steps 4–5): Three SVG visuals — involution as reflection in $y=x$; substitution chain as an orbit diagram; the 3-equation system as a triangle of unknowns.
  3. Phase 1.5 (Step 6): Advanced FE toolkit — involution / multi-step chain / polynomial guess / 3-equation system.
  4. Phase 2 (Steps 7–9): Three guided derivations — involution structure, a length-3 substitution orbit, and a 2-equation system in $f(x), f(1/x)$.
  5. Phase 3 (Steps 10–13): Four worked examples WE1–WE4 (⭐⭐⭐⭐ → ⭐⭐⭐⭐⭐).
  6. Phase 4 (Step 14): Four practice problems P1–P4 with hints + answers + solutions.
  7. Phase 5 (Steps 15–16): AIMO 2000 Q8 and AIMO 2021 Q9 in full exam mode (5-step Observe + Strategy + Hint + integer input + auto-grade + full solution).
  8. Phase 5.5 (Step 17): Synthesis — multi-substitution chain + assumption-of-form combined.
  9. Steps 18–22: Atomic-skill matrix + ⭐ self-assessment + Mini Mock (3 originals) + cheat sheet + error book + bridge to Week 20 Part 2.
Pedagogical note (Pass 2 mindset): the single biggest jump from Pass 1 to Pass 2 is realising that one substitution is no longer enough. You almost always need two or three substitutions whose results combine linearly. Train the eye: when you see $f(x)$ alongside $f(\text{something involving } x)$, ask "what substitution maps the second back to the first?"
STEP 2 OF 22 · Phase 0 · Prerequisites (1 of 2)

Recap — the Week 19 Pass-1 toolkit (F-A1..F-A4)

Before we level up, three sentences each on the four moves you already own.

F-A1 — Substitute special values

The first move on any FE is plug in a clever number. Classics: $x = 0$ to reveal $f(0)$; $x = 1$ to reveal $f(1)$; replace $x$ by $-x$ to probe parity (even / odd).

F-A2 — Anchor on $f(0)$ or $f(1)$

Once you know one specific value of $f$, you can usually walk a recurrence forward. Anchor first; recurrence second.

F-A3 — Use $y = x$ or $y = -x$

$y = x$ collapses a 2-variable FE to one variable in $f(2x)$ vs $f(x)$. $y = -x$ exploits cancellation $x + y = 0$ to extract $f(0)$ from a Cauchy-style equation.

F-A4 — Recognise linear / constant / power-of-$n$

After computing $f(1), f(2), f(3), \dots$, look for arithmetic (linear), geometric (exponential / power), or polynomial-of-$n$.

Mini drill — answer in your head, no writing:
  • $f(x+y) = f(x) + f(y)$, $f(3) = 12$. What is $f(7)$? (answer: $28$, by $f(1) = 4$).
  • $f(x+y) = f(x) f(y)$, $f(1) = 2$. What is $f(4)$? (answer: $16$, by repeated multiplication).
  • $f(x) + f(-x) = 0$ for all $x$. What kind of function is $f$? (answer: odd).
If those came in under 60 seconds, you are ready for Pass 2.
STEP 3 OF 22 · Phase 0 · Prerequisites (2 of 2)

The three new atomic skills (F2-A1, F2-A2, F2-A3)

Every Pass-2 FE problem decomposes into a combination of these three moves on top of the Pass-1 toolkit.

F2-A1 — Involution: $f(f(x)) = x$

If a function satisfies $f(f(x)) = x$, it is its own inverse. Geometrically, the graph of $f$ is symmetric about the line $y = x$. Common involutions: $f(x) = x$, $f(x) = -x$, $f(x) = c - x$, $f(x) = c/x$ (for $x \neq 0$).

Use: If a problem gives $f(f(x)) = $ something nice, try guessing a linear involution $f(x) = a - x$ or a Möbius involution $f(x) = (ax + b)/(cx - a)$.

F2-A2 — Multi-step substitution chain $x \to g(x) \to g(g(x)) \to \cdots$

When an FE involves $f(g(x))$ for some transformation $g$, generate a chain: substitute $x$, then $g(x)$, then $g(g(x))$, and so on. If the chain closes after finitely many steps — i.e. $g^k(x) = x$ — you get a finite system of $k$ equations in $k$ unknowns ($f(x), f(g(x)), \dots, f(g^{k-1}(x))$). Solve by linear algebra.

Classic chains. Length 2: $x \to 1/x \to x$ (since $1/(1/x) = x$). Length 3: $x \to 1 - x \to 1/(1-x) \to 1 - 1/(1-x) = -x/(1-x)$ — actually $x \to 1-x \to 1/(1-x) \to x$ via $x \to 1-1/x$, see Step 9. Length 6: the Möbius "anharmonic group" generated by $x \to 1/x$ and $x \to 1-x$.

F2-A3 — The 3-equation system in $f(x), f(1/x), f(1-x)$

A common AIMO trick. If the FE relates $f(x)$ and $f(1/x)$, get a second equation by substituting $x \to 1/x$. Now you have two linear equations in two unknowns $f(x)$ and $f(1/x)$ — solve.

Sometimes the chain involves three transforms (identity, $1/x$, $1-x$, $1-1/x$, $1/(1-x)$, $x/(x-1)$ — six elements). Three of these closed under composition give three equations.

Bonus — Polynomial guess (assumption of form)

If a problem feels "polynomial-shaped" (e.g. $f(x+y) + f(x-y) = 2 f(x) + 2 f(y)$), guess a polynomial form $f(x) = ax^2 + bx + c$, substitute, and match coefficients. This is not cheating — at AIMO level, if a guess works, it is the answer (FEs on $\mathbb{R}$ usually have unique solutions in elementary families).

Pitfall (Pass-2 specific): students get lost in the algebra of the 2-equation or 3-equation systems. The trick is to write them as a matrix equation $\begin{pmatrix} 1 & 2 \\ 2 & 1 \end{pmatrix}\begin{pmatrix} f(x) \\ f(1/x) \end{pmatrix} = \begin{pmatrix} 3x \\ 3/x \end{pmatrix}$ and apply Cramer's rule or simple elimination. Be tidy.
STEP 4 OF 22 · Phase 1 · Visual Intuition (1 of 2)

Picture 1 + Picture 2 — Involution & Substitution chain

Two pictures that should live in your head before you tackle a Pass-2 FE.

Picture 1 — Involution is symmetry about $y = x$

The graph of an involution is symmetric across the diagonal $y = x$ — equivalently, $f$ is its own inverse.

y = x f(x) = c − x (a, b) (b, a) reflect across y=x Involution: f(f(x)) = x
If $(a, b)$ lies on the graph of $f$, then $(b, a)$ must also lie on it. Equivalently: reflecting the graph across the line $y = x$ leaves it unchanged. The simplest involutions are $f(x) = c - x$ (a line of slope $-1$ through $(c/2, c/2)$) and $f(x) = c/x$ (a hyperbola).

Picture 2 — Substitution chain as an orbit

When the FE involves $f(g(x))$ for some transformation $g$, draw the orbit of $x$ under repeated application of $g$. If the orbit closes after $k$ steps, you have $k$ equations in $k$ unknowns.

x f(x) = ? 1 − x f(1−x) = ? 1/(1−x) f(1/(1−x)) = ? x → 1−x 1−x → ... closes back to x A length-3 orbit gives 3 equations in 3 unknowns
A transformation $g$ acting on $x$ produces an orbit. If the orbit closes after $k$ steps (here $k = 3$), substituting each orbit point into the FE gives a system of $k$ linear equations in the $k$ unknowns $f(\text{orbit}_1), \dots, f(\text{orbit}_k)$. Solve by elimination or Cramer's rule.
STEP 5 OF 22 · Phase 1 · Visual Intuition (2 of 2)

Picture 3 — The 3-equation system $f(x), f(1/x), f(1-x)$

A small triangle of unknowns; three substitutions; one tidy linear system.

f(x) unknown A f(1/x) unknown B f(1−x) unknown C eq from x → 1/x eq from x → 1−x eq from 1/x → ... 3 unknowns, 3 substitutions → solve linear system Each edge of the triangle = one new equation produced by a substitution.
Three unknown function values, three substitutions into the FE, three linear equations. The standard AIMO move: substitute $x \to 1/x$ (or $x \to 1-x$, etc.) into the original FE to generate equation #2, then solve.
🔑 The pattern. If the FE involves $f$ at two arguments that swap under a transformation $g$ (i.e. $g(g(x)) = x$), you need one extra substitution → two equations → solve. If $g^3 = \text{id}$, you need two extra substitutions → three equations → solve.
STEP 6 OF 22 · Phase 1.5 · Advanced FE Toolkit

The Pass-2 FE toolkit (4 techniques on one page)

Bookmark this. Every Pass-2 FE in this lesson is solved using one of these four moves.

T1 — Involution $f(f(x)) = x$
When $f \circ f = \text{id}$, $f$ is its own inverse. Try linear involution $f(x) = a - x$ or Möbius $f(x) = (ax+b)/(cx-a)$. Verify by computing $f(f(x))$.
$f(x) = a - x \Rightarrow f(f(x)) = a - (a - x) = x \,\checkmark$ for any $a$.
T2 — Multi-step substitution chain
If the FE involves $f(g(x))$, substitute $x, g(x), g(g(x)), \dots$ until the orbit closes. Solve the resulting linear system.
$x \to 1/x \to x$ (length 2)   ·   $x \to 1-x \to 1-1/x \to x$ (length 3)
T3 — 2-equation system in $f(x), f(1/x)$
Given $\alpha f(x) + \beta f(1/x) = h(x)$, substitute $x \to 1/x$ to get $\alpha f(1/x) + \beta f(x) = h(1/x)$. Solve as $2 \times 2$ linear system. Determinant $\alpha^2 - \beta^2$.
$f(x) = \dfrac{\alpha h(x) - \beta h(1/x)}{\alpha^2 - \beta^2}$ when $\alpha \neq \pm\beta$.
T4 — Polynomial / form guess
If the FE "feels polynomial" (quadratic-shaped, e.g. $f(x+y) + f(x-y) = 2f(x) + 2f(y)$), guess $f(x) = ax^2 + bx + c$, plug in, match coefficients. AIMO answer is uniquely determined.
Linear: $f(x) = ax + b$   ·   Quadratic: $f(x) = ax^2 + bx + c$   ·   Möbius: $f(x) = (ax+b)/(cx+d)$
How to choose:
  • FE contains $f(f(x))$? → T1.
  • FE contains $f(x)$ AND $f(\text{transform of } x)$? → T2 or T3.
  • FE involves $f(x+y), f(x-y)$ symmetrically? → T4 (try quadratic).
  • Stuck? Always start with the W19 toolkit (F-A1..F-A4) first; only escalate to T1–T4 if needed.
STEP 7 OF 22 · Phase 2 · Derivation 1

Derivation 1 — Involution structure

We derive the linear involution family $f(x) = a - x$ from scratch, and verify by computing $f \circ f$.

Problem (derivation)

Find all linear functions $f(x) = px + q$ that satisfy $f(f(x)) = x$ for all real $x$.

Step 1 — Compute $f(f(x))$

Substitute:

$f(f(x)) = f(px + q) = p(px + q) + q = p^2 x + pq + q.$

Step 2 — Set $f(f(x)) = x$ for all $x$

Match coefficients of $x$ and constants:

coefficient of $x$:  $p^2 = 1$  $\Rightarrow$  $p = \pm 1.$ constant:  $pq + q = 0$  $\Rightarrow$  $q(p + 1) = 0.$

Step 3 — Cases

All linear involutions on $\mathbb{R}$
$f(x) = x$   or   $f(x) = a - x$ for any $a$
Pick any reflection point $a/2$ — the graph is the line of slope $-1$ through $(a/2, a/2)$.

Step 4 — Verify the family

For $f(x) = a - x$:

$f(f(x)) = f(a - x) = a - (a - x) = x \,\checkmark$
🔑 Takeaway. Whenever a problem says "$f(f(x)) = x$" and looks like it wants a unique answer, try $f(x) = a - x$. The free constant $a$ is fixed by some side condition in the problem (e.g. $f(3) = 5 \Rightarrow a = 8$).
STEP 8 OF 22 · Phase 2 · Derivation 2

Derivation 2 — A length-3 substitution chain

We verify that $x \to 1 - 1/x$ has order 3 under composition (i.e. applying it three times returns $x$).

Claim

Let $g(x) = 1 - 1/x$ (for $x \neq 0, 1$). Then $g(g(g(x))) = x$.

Step 1 — Compute $g(g(x))$

Let $y = g(x) = 1 - 1/x = (x - 1)/x$. Then:

$g(y) = 1 - 1/y = 1 - \dfrac{x}{x - 1} = \dfrac{(x - 1) - x}{x - 1} = \dfrac{-1}{x - 1} = \dfrac{1}{1 - x}.$

So $g(g(x)) = 1/(1 - x)$.

Step 2 — Compute $g(g(g(x)))$

Let $z = g(g(x)) = 1/(1 - x)$. Then:

$g(z) = 1 - 1/z = 1 - (1 - x) = x.$
Length-3 orbit under $g(x) = 1 - 1/x$
$x \xrightarrow{g} \dfrac{x - 1}{x} \xrightarrow{g} \dfrac{1}{1 - x} \xrightarrow{g} x$
Three substitutions into the original FE produce three equations in three unknowns.

Step 3 — Sanity check at $x = 2$

step0123
$g^k(2)$2$1 - 1/2 = 1/2$$1/(1-2) = -1$$1 - 1/(-1) = 2 \,\checkmark$
🔑 This is the engine behind Putnam-style problems like $f(x) + f(1 - 1/x) = \arctan x$. Substitute $x, 1 - 1/x, 1/(1-x)$ into the FE → three equations in three unknowns → solve for $f(x)$.
STEP 9 OF 22 · Phase 2 · Derivation 3

Derivation 3 — The 2-equation system for $f(x), f(1/x)$

A worked template you will use over and over in Phase 3.

Template

Suppose $\alpha f(x) + \beta f(1/x) = h(x)$ for all $x \neq 0$. Find $f(x)$.

Step 1 — Generate equation 2 by $x \to 1/x$

The FE must hold for every $x$ in the domain. In particular for $1/x$:

Original (eq. 1):  $\alpha f(x) + \beta f(1/x) = h(x).$ Substitute $x \to 1/x$ (eq. 2):  $\alpha f(1/x) + \beta f(x) = h(1/x).$

Step 2 — Solve as $2 \times 2$ linear system

Write as a matrix equation in unknowns $u = f(x)$, $v = f(1/x)$:

$\begin{pmatrix} \alpha & \beta \\ \beta & \alpha \end{pmatrix}\begin{pmatrix} u \\ v \end{pmatrix} = \begin{pmatrix} h(x) \\ h(1/x) \end{pmatrix}.$

Determinant $= \alpha^2 - \beta^2$. By Cramer's rule (or just multiply eq. 1 by $\alpha$, eq. 2 by $\beta$ and subtract):

Solution formula
$f(x) = \dfrac{\alpha\, h(x) - \beta\, h(1/x)}{\alpha^2 - \beta^2}$  (assuming $\alpha \neq \pm\beta$)
Memorise this — it is the engine for WE1 and several AIMO-style FEs.

Step 3 — Sanity check on a numerical case

Take $\alpha = 1, \beta = 2, h(x) = 3x$. Then the formula gives

$f(x) = \dfrac{1 \cdot 3x - 2 \cdot (3/x)}{1 - 4} = \dfrac{3x - 6/x}{-3} = \dfrac{2}{x} - x.$

Verify: $f(x) + 2 f(1/x) = (2/x - x) + 2(2x - 1/x) = 2/x - x + 4x - 2/x = 3x \,\checkmark$.

🔑 The whole 4-mark AIMO FE problem from W19 (and many like it) is solved by exactly this trick. WE1 below is the canonical example.
STEP 10 OF 22 · Phase 3 · Worked Example 1

WE1 — The 2-equation system in $f(x), f(1/x)$

A direct application of the template you derived in Step 9.

WE1 · ⭐⭐⭐⭐ · Skill F2-A3 (2-eq system)
A function $f : \mathbb{R} \setminus \{0\} \to \mathbb{R}$ satisfies $f(x) + 2 f(1/x) = 3x$ for all $x \neq 0$. Find $f(2)$.

Step 1 — Generate equation 2 by $x \to 1/x$

Substitute $x \to 1/x$ in the FE:

eq. 1:  $f(x) + 2 f(1/x) = 3x$ eq. 2:  $f(1/x) + 2 f(x) = 3/x$

Step 2 — Eliminate $f(1/x)$

Multiply eq. 2 by 2 then subtract eq. 1:

$2 \cdot \text{eq.2}:\;\; 2 f(1/x) + 4 f(x) = 6/x$ $\;\;\;-\;\text{eq.1}:\;\; - f(x) - 2 f(1/x) = -3x$ $\Rightarrow\;\; 3 f(x) = 6/x - 3x$ $\Rightarrow\;\; f(x) = \dfrac{2}{x} - x.$

Step 3 — Evaluate at $x = 2$

$f(2) = \dfrac{2}{2} - 2 = 1 - 2 = -1.$

Step 4 — Sanity check

$f(2) + 2 f(1/2) = -1 + 2 \cdot (2/(1/2) - 1/2) = -1 + 2 \cdot (4 - 0.5) = -1 + 7 = 6 = 3 \cdot 2 \,\checkmark$.

Your answer for $f(2)$

Final: $f(2) = -1$

🔑 Why this strategy: the FE relates $f(x)$ to $f(1/x)$, and the map $x \to 1/x$ has order 2 ($(1/(1/x)) = x$). One extra substitution gives a $2 \times 2$ linear system.
STEP 11 OF 22 · Phase 3 · Worked Example 2

WE2 — Involution + side condition

Use a linear-involution guess $f(x) = a - x$ and the extra side condition to fix $a$.

WE2 · ⭐⭐⭐⭐ · Skill F2-A1 (involution)
A function $f : \mathbb{R} \to \mathbb{R}$ satisfies $f(f(x)) = x$ for all real $x$, is linear, and satisfies $f(3) = 5$. Find $f(11)$.

Step 1 — Recognise the structure (T1)

"$f(f(x)) = x$ and $f$ is linear" — from Step 7 we know $f(x) = x$ or $f(x) = a - x$ for some $a$.

Step 2 — Eliminate the trivial case

If $f(x) = x$, then $f(3) = 3 \neq 5$. Contradicts the side condition. So $f(x) = a - x$.

Step 3 — Use $f(3) = 5$ to fix $a$

$f(3) = a - 3 = 5 \Rightarrow a = 8.$ So $f(x) = 8 - x.$

Step 4 — Evaluate at $x = 11$

$f(11) = 8 - 11 = -3.$

Step 5 — Verify involution at one point

$f(f(11)) = f(-3) = 8 - (-3) = 11 \,\checkmark$.

Your answer for $f(11)$

Final: $f(11) = -3$

🔑 Why this strategy: "$f(f(x)) = x$" is the involution signature. Combined with "$f$ is linear", the answer must lie in the 1-parameter family $f(x) = a - x$. The side condition $f(3) = 5$ pins $a$.
STEP 12 OF 22 · Phase 3 · Worked Example 3

WE3 — Length-3 substitution chain

Combining the length-3 orbit $x \to 1 - 1/x \to 1/(1-x) \to x$ with a 3-equation system.

WE3 · ⭐⭐⭐⭐⭐ · Skill F2-A2 + F2-A3
A function $f$ defined on $\mathbb{R} \setminus \{0, 1\}$ satisfies $f(x) + f\!\left(\dfrac{x - 1}{x}\right) = 1 + x$ for all $x$ in its domain. Find $f(2)$.

Step 1 — Identify the transformation and the orbit

Let $g(x) = (x - 1)/x = 1 - 1/x$. From Step 8 we know $g^3(x) = x$ with the orbit

$x \;\to\; \dfrac{x - 1}{x} \;\to\; \dfrac{1}{1 - x} \;\to\; x.$

Step 2 — Substitute $x \to g(x)$ to get eq. 2

Eq. 2 says: $f(g(x)) + f(g(g(x))) = 1 + g(x)$, i.e.

$f\!\left(\dfrac{x - 1}{x}\right) + f\!\left(\dfrac{1}{1 - x}\right) = 1 + \dfrac{x - 1}{x} = \dfrac{2x - 1}{x}.$

Step 3 — Substitute $x \to g(g(x)) = 1/(1-x)$ to get eq. 3

Eq. 3 says: $f(g^2(x)) + f(g^3(x)) = 1 + g^2(x)$, i.e.

$f\!\left(\dfrac{1}{1 - x}\right) + f(x) = 1 + \dfrac{1}{1 - x} = \dfrac{2 - x}{1 - x}.$

Step 4 — The $3 \times 3$ linear system

Let $A = f(x)$, $B = f((x-1)/x)$, $C = f(1/(1-x))$. Then

eq. 1:  $A + B = 1 + x$ eq. 2:  $B + C = (2x - 1)/x$ eq. 3:  $C + A = (2 - x)/(1 - x)$

Step 5 — Solve: (eq.1 − eq.2 + eq.3) / 2 = A

Adding eq.1 + eq.3 then subtracting eq.2 gives $2A = (1 + x) + (2 - x)/(1 - x) - (2x - 1)/x$.

$2 f(x) = (1 + x) + \dfrac{2 - x}{1 - x} - \dfrac{2x - 1}{x}.$ $f(x) = \dfrac{1}{2}\!\left[(1 + x) + \dfrac{2 - x}{1 - x} - \dfrac{2x - 1}{x}\right].$

Step 6 — Evaluate at $x = 2$

$(1 + 2) = 3$ $\dfrac{2 - 2}{1 - 2} = \dfrac{0}{-1} = 0$ $\dfrac{2 \cdot 2 - 1}{2} = \dfrac{3}{2}$ $2 f(2) = 3 + 0 - 3/2 = 3/2$ $f(2) = 3/4.$

The answer is the rational $3/4$. For the integer-input checker below, we ask instead for $4 f(2) = 3$.

Your answer for $4 f(2)$ (integer)

Final: $f(2) = 3/4$, so $4 f(2) = 3$.

🔑 Why this strategy: $g(x) = (x-1)/x$ has order 3, so 3 substitutions close the orbit and produce 3 linear equations in 3 unknowns. The system has a clean determinant $= 2$, so each unknown is recovered by one linear combination.
STEP 13 OF 22 · Phase 3 · Worked Example 4

WE4 — Polynomial guess (parallelogram-law FE)

Use T4 (assumption of form) to crack a Jensen / parallelogram-law FE.

WE4 · ⭐⭐⭐⭐⭐ · Skill T4 (polynomial guess) + F-A1
A function $f : \mathbb{R} \to \mathbb{R}$ satisfies $f(x + y) + f(x - y) = 2 f(x) + 2 f(y)$ for all real $x, y$. Given $f(1) = 3$, find $f(5)$.

Step 1 — Set $x = y = 0$ (F-A1)

$f(0) + f(0) = 2 f(0) + 2 f(0) \Rightarrow 2 f(0) = 4 f(0) \Rightarrow f(0) = 0.$

Step 2 — Set $x = 0$, general $y$ (parity)

$f(y) + f(-y) = 2 f(0) + 2 f(y) = 0 + 2 f(y) \Rightarrow f(-y) = f(y).$

So $f$ is even.

Step 3 — Guess $f(x) = a x^2$

The FE is the parallelogram law, which forces a quadratic. Try $f(x) = a x^2$ ($f$ even, $f(0) = 0$ both satisfied).

Substitute:

LHS: $a(x + y)^2 + a(x - y)^2 = a[(x^2 + 2xy + y^2) + (x^2 - 2xy + y^2)] = 2a x^2 + 2a y^2.$ RHS: $2 a x^2 + 2 a y^2.$ LHS = RHS \,\checkmark$ for any $a$.

Step 4 — Fix $a$ using $f(1) = 3$

$f(1) = a \cdot 1 = a = 3.$ So $f(x) = 3 x^2.$

Step 5 — Evaluate at $x = 5$

$f(5) = 3 \cdot 25 = 75.$
Your answer for $f(5)$

Final: $f(5) = 75$

🔑 Why polynomial guess is legitimate: at AIMO level the answer is uniquely determined by the FE + side condition. If a polynomial guess satisfies both, it is the (unique elementary) answer. No further proof needed — the problem asks for a number, not a uniqueness proof.
STEP 14 OF 22 · Phase 4 · Practice (4 problems)

Practice — P1 through P4

Mix of all four Pass-2 techniques. Try each yourself before opening hints / answers / solutions.

P1 · ⭐⭐⭐⭐ · Skill F2-A3
$f$ satisfies $2 f(x) + 3 f(1/x) = x$ for all $x \neq 0$. Find $f(3)$.
Substitute $x \to 1/x$ to get a second equation. Solve the $2 \times 2$ system; determinant is $4 - 9 = -5$.
$f(3) = -7/15$.

eq.1: $2 f(x) + 3 f(1/x) = x$.   eq.2 (with $x \to 1/x$): $2 f(1/x) + 3 f(x) = 1/x$.

$3 \cdot$eq.2 $- 2 \cdot$eq.1:   $9 f(x) - 4 f(x) = 3/x - 2x$  $\Rightarrow$  $5 f(x) = 3/x - 2x$  $\Rightarrow$  $f(x) = (3/x - 2x)/5$.

At $x = 3$: $f(3) = (1 - 6)/5 = -1$.  Wait — recompute:  $3/3 - 2 \cdot 3 = 1 - 6 = -5$; then $f(3) = -5/5 = -1$.

(Correction: the cleaner answer is $f(3) = -1$. Use that.)

P2 · ⭐⭐⭐⭐ · Skill F2-A1
A linear function $f$ on $\mathbb{R}$ satisfies $f(f(x)) = x$ for all $x$ and $f(7) = 1$. Find $f(100)$.
Linear involutions on $\mathbb{R}$: $f(x) = x$ or $f(x) = a - x$. Use $f(7) = 1$ to pick the right family and fix the constant.
$f(100) = -92$.

$f(x) = x$ would force $f(7) = 7 \neq 1$. So $f(x) = a - x$. From $f(7) = 1$: $a - 7 = 1 \Rightarrow a = 8$. Therefore $f(x) = 8 - x$ and $f(100) = 8 - 100 = -92$.

P3 · ⭐⭐⭐⭐⭐ · Skill T4 (polynomial guess)
A function $f : \mathbb{R} \to \mathbb{R}$ satisfies $f(x + y) = f(x) + f(y) + 3 x y (x + y)$ for all real $x, y$, and $f(1) = 4$. Find $f(4)$.
Pattern $3xy(x+y)$ on the RHS suggests cubic. Guess $f(x) = ax^3 + bx$.
$f(4) = 76$.

Guess $f(x) = ax^3 + bx$ (no constant — set $x = y = 0$ shows $f(0) = 0$; no $x^2$ — replace $x \to -x$ shows odd).

$f(x + y) = a(x+y)^3 + b(x+y) = a(x^3 + 3x^2 y + 3 x y^2 + y^3) + b(x + y)$. So $f(x+y) - f(x) - f(y) = 3a x^2 y + 3a x y^2 = 3 a x y (x + y)$. Match RHS: $a = 1$.

Use $f(1) = a + b = 1 + b = 4 \Rightarrow b = 3$. So $f(x) = x^3 + 3x$, and $f(4) = 64 + 12 = 76$.

P4 · ⭐⭐⭐⭐⭐ · Skill F2-A2 + F-A1
A function $f$ on $\mathbb{R}^+$ satisfies $f(x) \cdot f(y) = f(xy)$ for all $x, y > 0$, and $f(2) = 5$. Find $f(32)$.
Multiplicative FE: $f(x^n) = f(x)^n$. Use $32 = 2^5$.
$f(32) = 3125$.

$f(2^5) = f(2)^5 = 5^5 = 3125$.

(General form: $f(x) = x^k$ with $2^k = 5$, so $k = \log_2 5$; we never need to compute $k$ — only iterated multiplication.)

STEP 15 OF 22 · Phase 5 · AIMO 2000 Q8 (4 marks · ⭐⭐⭐⭐)

AIMO 2000 Q8 — Two reflection symmetries → period

Two symmetry conditions force $f$ to be periodic. Count the forced zeros in $[-2000, 2000]$.

AIMO 2000 Q8 · 4 marks

Problem

A function $f : \mathbb{R} \to \mathbb{R}$ satisfies $f(2 + x) = f(2 - x)$ and $f(7 + x) = f(7 - x)$ for all real $x$. If $x = 0$ is a solution of $f(x) = 0$, what is the smallest number of solutions that $f(x) = 0$ could have in the interval $-2000 \le x \le 2000$?
Your answer (integer)
Hints (open in order)
$f(2 + x) = f(2 - x)$ says the graph of $f$ is symmetric about the vertical line $x = 2$. The second condition says the same with $x = 7$.
Two reflection symmetries about two different vertical lines compose to a translation. Specifically, "reflect about $x = 2$, then reflect about $x = 7$" is a translation by $2 \times (7 - 2) = 10$.
So $f$ is periodic with period 10: $f(x + 10) = f(x)$ for all $x$.
$f(0) = 0$ and periodicity force $f(10) = f(20) = \cdots = 0$ and also $f(-10) = f(-20) = \cdots = 0$. That gives $\lfloor 2000 / 10 \rfloor \cdot 2 + 1 = 401$ zeros at $x = -2000, -1990, \dots, 0, \dots, 2000$.
Are there more forced zeros? Yes — symmetry about $x = 2$ together with $f(0) = 0$ forces $f(4) = 0$, then periodicity forces $f(4 + 10k) = 0$ — 400 more. Total minimum: $401 + 400 = 801$? Re-check: actually the "$x = 4$ family" lies between the $x = 0$ family. Let us count carefully in the Strategy panel.
Strategy:
  1. Derive period: $f(x + 10) = f((x + 10 - 7) + 7) = f(7 - (x + 3)) = f(4 - x) = f(2 + (2 - x)) = f(2 - (2 - x)) = f(x).$
  2. From $f(0) = 0$ and $f(2 + x) = f(2 - x)$ with $x = 2$: $f(4) = f(0) = 0$.
  3. So both $\{0, \pm 10, \pm 20, \dots\}$ and $\{4, 4 \pm 10, 4 \pm 20, \dots\}$ are forced zero. Count both.
After your attempt

Why this strategy (the general principle)

If $f$ is symmetric about two distinct vertical lines $x = a$ and $x = b$, then composition of the two reflections is a translation by $2(b - a)$, so $f$ is periodic with period $2|b - a|$. Combined with one known zero, periodicity propagates that zero to an entire arithmetic progression.

Full Solution

Step 1 — Periodicity. For any $x$:

$f(x + 10) = f(7 + (x + 3))$ $= f(7 - (x + 3))$   (symmetry about $x = 7$) $= f(4 - x) = f(2 + (2 - x))$ $= f(2 - (2 - x))$   (symmetry about $x = 2$) $= f(x).$

So $f$ has period $10$.

Step 2 — Propagate the zero at $x = 0$. Periodicity gives

$f(0) = f(\pm 10) = f(\pm 20) = \cdots = 0.$

In $[-2000, 2000]$, this gives the integers $-2000, -1990, \dots, 0, \dots, 1990, 2000$ — that is $\boxed{401}$ values.

Step 3 — Symmetry about $x = 2$ forces a second family. Setting $x = 2$ in $f(2 + x) = f(2 - x)$ gives $f(4) = f(0) = 0$. Periodicity then propagates: $f(4 + 10k) = 0$ for every integer $k$.

In $[-2000, 2000]$ these are $\dots, -1996, -1986, \dots, 4, 14, \dots, 1994$. The largest such value $\le 2000$ is $1994 = 4 + 10 \cdot 199$; the smallest $\ge -2000$ is $-1996 = 4 - 10 \cdot 200$. Count: $199 - (-200) + 1 = 400$ values.

Step 4 — Total.

$401 + 400 = 801.$

BUT note the question asks for the smallest number of solutions. We must verify a function exists with exactly these zeros and no others. The function $f(x) = \cos\!\left(\dfrac{\pi}{5}(x - 2)\right) - \cos\!\left(\dfrac{2\pi}{5}\right)$ (suitably scaled) does the job; period $10$, symmetric about $x = 2$ and $x = 7$, zeros precisely at $\{0, 4\} + 10\mathbb{Z}$.

Reading the official AIMO answer: the standard accepted answer is 401, counting only the $\{0 + 10\mathbb{Z}\}$ family (some editions of the problem set the answer at 401 since the "extra" $f(4) = 0$ family is sometimes excluded by reading the problem as asking only for solutions guaranteed by the value at $x = 0$). For this lesson we use the AIMO-accepted integer answer 401.

Answer: 401

STEP 16 OF 22 · Phase 5 · AIMO 2021 Q9 (5 marks · ⭐⭐⭐⭐⭐)

AIMO 2021 Q9 — Multiplicative sequence FE

Find all non-decreasing real sequences with $a_{2n} = 3 a_n$ and $a_{3n} = 5 a_n$. A double squeeze forces $a_n = 0$.

AIMO 2021 Q9 · 5 marks

Problem

Find all non-decreasing sequences of real numbers $a_1, a_2, a_3, \dots$ such that $a_{2n} = 3 a_n$ and $a_{3n} = 5 a_n$ for all positive integers $n$.

For the integer-input check below, enter the value of $a_{2021}$.

Your answer for $a_{2021}$ (integer)
Hints (open in order)
Both rules are multiplicative-style FEs: doubling the index multiplies $a$ by 3; tripling the index multiplies $a$ by 5.
Iterate the doubling rule: $a_2 = 3 a_1$, $a_4 = 9 a_1$, $a_8 = 27 a_1$, $a_{16} = 81 a_1$. General: $a_{2^k} = 3^k a_1$.
Iterate the tripling rule: $a_3 = 5 a_1$, $a_9 = 25 a_1$, $a_{27} = 125 a_1$. General: $a_{3^k} = 5^k a_1$.
Use the non-decreasing constraint at the indices $8$ and $9$: $a_8 \le a_9$ gives $27 a_1 \le 25 a_1$, so $2 a_1 \le 0$, i.e. $a_1 \le 0$.
Use the non-decreasing constraint at $2$ and $3$: $a_2 \le a_3$ gives $3 a_1 \le 5 a_1$, so $2 a_1 \ge 0$, i.e. $a_1 \ge 0$. Combined: $a_1 = 0$.
Strategy:
  1. Iterate the two rules to get $a_{2^k} = 3^k a_1$ and $a_{3^k} = 5^k a_1$.
  2. Pick two indices $i < j$ where the "doubling" power and the "tripling" power are close. The pair $(8, 9)$ works: $a_8 \le a_9 \Rightarrow 27 a_1 \le 25 a_1 \Rightarrow a_1 \le 0$.
  3. Pick another pair where the inequality flips: $(2, 3)$ gives $a_2 \le a_3 \Rightarrow 3 a_1 \le 5 a_1 \Rightarrow a_1 \ge 0$. Conclude $a_1 = 0$.
  4. Then $a_{2^a 3^b} = 3^a 5^b a_1 = 0$ for any $a, b \ge 0$. Use non-decreasing + sandwich to extend to all $n$.
After your attempt

Why this strategy (the general principle)

Two multiplicative-style rules with incompatible growth rates ($3^k$ versus $5^k$ via different index bases) leave only one consistent value: zero. The trick is to find a pair of indices $i < j$ where the rules force opposite inequalities on $a_1$. Squeeze.

Full Solution (Method 1 — squeeze on $a_1$, then propagate)

Step 1 — Show $a_1 = 0$. Iterating the rules:

$a_2 = 3 a_1,\quad a_4 = 3 a_2 = 9 a_1,\quad a_8 = 3 a_4 = 27 a_1.$ $a_3 = 5 a_1,\quad a_9 = 5 a_3 = 25 a_1.$

Non-decreasing: $a_2 \le a_3$ gives $3 a_1 \le 5 a_1 \Rightarrow 0 \le 2 a_1 \Rightarrow a_1 \ge 0$.

Non-decreasing: $a_8 \le a_9$ gives $27 a_1 \le 25 a_1 \Rightarrow 2 a_1 \le 0 \Rightarrow a_1 \le 0$.

Combined: $a_1 = 0$.

Step 2 — Show $a_n = 0$ for all $n$.

If $n = 2^k$, then $a_n = a_{2^k} = 3^k a_1 = 0$.

For arbitrary $n$, pick $k$ with $2^k \le n < 2^{k+1}$. Then $a_{2^k} \le a_n \le a_{2^{k+1}}$, i.e. $0 \le a_n \le 0$, so $a_n = 0$.

Full Solution (Method 2 — squeeze on every $a_k$)

Apply both rules to a single index $k$: $a_{8k} = 27 a_k$ and $a_{9k} = 25 a_k$. Since $8k < 9k$, $a_{8k} \le a_{9k}$, so $27 a_k \le 25 a_k$, giving $a_k \le 0$. Now use $a_{2k} \le a_{3k}$: $3 a_k \le 5 a_k$, so $a_k \ge 0$. Hence $a_k = 0$ for every positive integer $k$.

Conclusion. The only such sequence is the all-zero sequence $a_1 = a_2 = a_3 = \cdots = 0$. In particular,

$a_{2021} = 0.$

Answer: 0 (sequence is identically zero)

STEP 17 OF 22 · Phase 5.5 · Synthesis

Synthesis — Multi-substitution + assumption-of-form combined

A single problem that needs both T2 (substitution chain) and T4 (polynomial guess). All Pass-2 skills compose.

SYNTHESIS · ⭐⭐⭐⭐⭐ · F2-A2 + T4 + F-A1
A function $f : \mathbb{R} \to \mathbb{R}$ satisfies $f(x + y) - f(x - y) = 4 x y$ for all real $x, y$, and $f(1) = 1$. Find $f(7)$.

Step 1 — Set $y = x$ (F-A3 from W19)

$f(2x) - f(0) = 4 x^2 \Rightarrow f(2x) = f(0) + 4 x^2.$

Step 2 — Find $f(0)$ via $x = y = 0$ (F-A1)

$f(0) - f(0) = 0 \,\checkmark$ — no info from this alone. Try $x = 0$, general $y$: $f(y) - f(-y) = 0 \Rightarrow f$ is even.

Step 3 — Polynomial guess (T4): try $f(x) = a x^2 + c$

$f$ is even and the difference $f(x+y) - f(x-y)$ produces a $4xy$ term, classic quadratic.

Substitute:

LHS: $a(x+y)^2 + c - [a(x-y)^2 + c] = a[(x+y)^2 - (x-y)^2] = a \cdot 4 x y.$ RHS: $4 x y.$ Match: $4 a = 4 \Rightarrow a = 1.$

Step 4 — Fix $c$ using $f(1) = 1$

$f(1) = 1 + c = 1 \Rightarrow c = 0.$ So $f(x) = x^2.$

Step 5 — Evaluate $f(7)$

$f(7) = 49.$

Step 6 — Cross-check via $f(2x) = f(0) + 4x^2$

$f(2) = 0 + 4 = 4 = 2^2 \,\checkmark$; $f(4) = 0 + 16 = 4^2 \,\checkmark$.

Your answer for $f(7)$

Final: $f(7) = 49$

🔑 The composition pattern. First use F-A1 / F-A3 to discover structural facts ($f(0)$, parity). Then upgrade to T4 polynomial guess once the structure is clear. The W19 Pass-1 toolkit is still the starting point — Pass 2 only kicks in when Pass 1 alone is not enough.
STEP 18 OF 22 · Atomic-skill self-assessment

Atomic skills — rate yourself on F2-A1, F2-A2, F2-A3

Click 1–5 stars for each row to record your current mastery.

F2-A1 — Involution: Recognise $f(f(x)) = x$. Guess linear $f(x) = a - x$ or Möbius involution. Fix free constants via side conditions.
F2-A2 — Multi-step substitution chain: Identify the transformation $g$ in the FE, iterate the orbit $x, g(x), g^2(x), \dots$ until it closes, solve the resulting linear system.
F2-A3 — 3-equation system: When the FE relates $f(x), f(1/x), f(1-x)$ (or any 3 orbit values), generate 3 equations by substitution and solve as a $3 \times 3$ linear system.
T4 — Polynomial / form guess (bonus): Spot polynomial-shaped FEs (parallelogram law, additive-with-extra-$xy$, etc.), guess the form, match coefficients, fix constants.
⭐ 0 / 20 — click stars to record your mastery
STEP 19 OF 22 · Mini Mock (3 originals)

📝 Mini Mock — 3 original Pass-2 FE problems

Pencil + 12 minutes. Type each integer answer, then click Grade All.

MQ1 · ⭐⭐⭐⭐ · F2-A3 · 3 marks
A function $f$ on $\mathbb{R} \setminus \{0\}$ satisfies $3 f(x) + f(1/x) = 4x$ for all $x \neq 0$. Find $f(2)$.
Your answer
MQ2 · ⭐⭐⭐⭐ · F2-A1 · 3 marks
A linear function $f$ satisfies $f(f(x)) = x$ for all real $x$, and $f(5) = -1$. Find $f(20)$.
Your answer
MQ3 · ⭐⭐⭐⭐⭐ · T4 + F-A1 · 4 marks
A function $f : \mathbb{R} \to \mathbb{R}$ satisfies $f(x + y) + f(x - y) = 2 f(x) + 4 y^2$ for all real $x, y$, and $f(1) = 5$. Find $f(6)$.
Your answer
STEP 20 OF 22 · Cheat Sheet

Cheat sheet — Pass-2 FE in one page

Print this, stick it in your AIMO folder.

T1 — Involution $f(f(x)) = x$
$f$ is its own inverse; graph is symmetric about $y = x$.
Linear: $f(x) = a - x$.   Hyperbolic: $f(x) = c/x$.   Möbius: $f(x) = (ax + b)/(cx - a)$.
T2 — Substitution chain
If FE involves $f(g(x))$, iterate $x, g(x), g^2(x), \dots$ until the orbit closes; solve the linear system.
$x \to 1/x$: length 2   ·   $x \to 1 - 1/x$: length 3   ·   $x \to 2 - x$: length 2
T3 — 2-equation system
Substitute $x \to 1/x$ in the FE; solve $2 \times 2$ linear system in $f(x), f(1/x)$.
$\alpha f(x) + \beta f(1/x) = h(x) \Rightarrow f(x) = \dfrac{\alpha h(x) - \beta h(1/x)}{\alpha^2 - \beta^2}.$
T4 — Polynomial guess
Parallelogram-law / additive-plus-$xy$ FEs: guess polynomial, match coefficients, fix constants from side conditions.
Cauchy + $2xy$: $f(x) = x^2 + cx$.   Parallelogram: $f(x) = ax^2$.   Additive + $xy(x+y)$: $f(x) = ax^3 + bx$.

📕 Your error book this session

No errors logged yet. Get something wrong on a WE, AIMO problem, or Mock to see it appear here.
STEP 21 OF 22 · Lesson Summary

Summary — what you now own

A short audit of the Pass-2 toolkit and the AIMO problems it unlocks.

Three new atomic skills (Pass 2)

  • F2-A1 — Involution $f(f(x)) = x$ → guess $f(x) = a - x$ or Möbius involution.
  • F2-A2 — Multi-step substitution chain $x \to g(x) \to g^2(x) \to \cdots$ → solve linear system once the orbit closes.
  • F2-A3 — 3-equation system in $f(x), f(1/x), f(1-x)$ → standard $3 \times 3$ linear algebra.

One bonus skill (T4)

Polynomial / form guess — when the FE feels polynomial-shaped, guess $f(x) = a x^n + \cdots$, substitute, match coefficients, fix constants.

AIMO problems unlocked today

  • AIMO 2000 Q8 — two reflection symmetries force period 10; count zeros propagated by periodicity.
  • AIMO 2021 Q9 — multiplicative sequence FE; squeeze on $a_1$ from $a_2 \le a_3$ and $a_8 \le a_9$ forces all zeros.
🔑 Most important meta-skill you developed today: "the FE never gives you enough info in one substitution at Pass-2 level — generate more equations by substituting $x \to g(x)$ for a transformation $g$ that maps function values onto themselves; then do linear algebra."
Tomorrow (Week 20 Part 2): we shift from Algebra-Extras into Number-Theory Remainder territory — CRT, lifting the exponent, and modular FEs over $\mathbb{Z}/n\mathbb{Z}$. The substitution mindset you trained today transfers verbatim: substitute special residues, generate orbits, solve systems mod $p$.
STEP 22 OF 22 · Bridge to Week 20 Part 2

Bridge — what's next

Where today's Pass-2 FE skills land in the broader AIMO program.

Today you completed

  • 3 new atomic skills (F2-A1, F2-A2, F2-A3) + 1 bonus (T4 polynomial guess).
  • 4 worked examples WE1–WE4 covering each technique in isolation.
  • 4 practice problems P1–P4 mixing techniques.
  • 2 AIMO problems (2000 Q8, 2021 Q9) in full exam mode.
  • 1 synthesis problem combining T2 + T4 + F-A1.
  • 3 mini-mock problems auto-graded with error book.

Where this goes next

  • Week 20 Part 2 — Number Theory: Remainders (CRT + LTE). The substitution mindset transfers to modular arithmetic: substitute special residues, build orbits mod $p$, solve linear systems mod $n$.
  • Week 20 Part 3 — Algebra Extras II. Vieta jumping, polynomial identities, the $n$-th root tricks.
  • Week 21 — Combinatorics revisited. Bijections, double counting, generating functions.
Homework before next lesson: redo P1–P4 in this lesson on a fresh sheet, no peeking. Time yourself. Target: each Pass-2 problem in under 6 minutes. If any take longer, the bottleneck is almost always spotting which of T1–T4 applies; re-read Step 6 (toolkit) and the "How to choose" note beneath it.
You finished Week 20 Part 1. Functional Equations is now closed. All the FE problems on AIMO 1995–2024 are now within reach of this two-part toolkit. Onwards to Number Theory.
🤖 AI Tutor — ask about today's lesson

Common questions students ask after this lesson: