Math Core

Module 1.6 · Algebra

Functional equations

A functional equation describes a function by a property it satisfies, like f(x+y)=f(x)+f(y)f(x + y) = f(x) + f(y), instead of giving a formula. AIME functional equations are designed to be cracked by a handful of moves: plug in clever values, substitute to create a system, and look for structure like symmetry or cycles.

Move 1: plug in special values

Try x=0x = 0, y=0y = 0, x=yx = y, y=−xy = -x, x=1x = 1, or y=1y = 1. Each substitution gives a new equation, often pinning down f(0)f(0) or f(1)f(1) first. Once you know one value, substitute it back to learn more.

For example, suppose f(x)f(y)−f(xy)=x+yf(x)f(y) - f(xy) = x + y for all reals x,yx, y. With x=y=0x = y = 0: f(0)2−f(0)=0f(0)^2 - f(0) = 0, so f(0)=0f(0) = 0 or f(0)=1f(0) = 1. With y=0y = 0: f(x)f(0)−f(0)=xf(x)f(0) - f(0) = x. If f(0)=0f(0) = 0 this says 0=x0 = x for every xx, which is false. So f(0)=1f(0) = 1 and then f(x)−1=xf(x) - 1 = x, giving f(x)=x+1f(x) = x + 1. Always check the answer in the original equation: (x+1)(y+1)−(xy+1)=x+y(x + 1)(y + 1) - (xy + 1) = x + y, as required.

Move 2: substitute to build a system

If the equation mixes f(x)f(x) with ff of a transformed input, like f ⁣(1x)f\!\left(\dfrac1x\right) or f(1−x)f(1 - x), replace xx by that transformed input. When the transformation undoes itself (11/x=x\dfrac{1}{1/x} = x, 1−(1−x)=x1 - (1 - x) = x), you get a second equation in the same two unknowns and can solve for f(x)f(x) like an ordinary linear system.

Cycles of substitutions

If gg is a map with g(g(x))=xg(g(x)) = x, then an equation involving f(x)f(x) and f(g(x))f(g(x)) becomes a 2×22 \times 2 linear system after replacing xx by g(x)g(x).

If instead g(g(g(x)))=xg(g(g(x))) = x (a 3-cycle, such as g(x)=11−xg(x) = \dfrac{1}{1 - x}), apply the equation at xx, g(x)g(x) and g(g(x))g(g(x)) to get a 3×33 \times 3 system in f(x)f(x), f(g(x))f(g(x)), f(g(g(x)))f(g(g(x))).

You can check that g(x)=11−xg(x) = \dfrac{1}{1 - x} cycles: g(g(x))=x−1xg(g(x)) = \dfrac{x - 1}{x} and g ⁣(x−1x)=xg\!\left(\dfrac{x-1}{x}\right) = x.

Move 3: recursion on the integers

If the equation holds for integers, set y=1y = 1. Then f(n+1)f(n + 1) is expressed through f(n)f(n), and you can sum up to get a formula. For example, f(x+y)=f(x)+f(y)f(x + y) = f(x) + f(y) on the integers gives f(n+1)=f(n)+f(1)f(n + 1) = f(n) + f(1), so f(n)=nf(1)f(n) = nf(1).

Move 4: use symmetry to pair terms

If f(x)+f(c−x)f(x) + f(c - x) is constant, a sum of ff over inputs symmetric about c2\dfrac c2 can be paired up. This turns a sum of hundreds of terms into a count.

Common mistake

Plugging in values only gives necessary conditions. The function you find might fail the original equation for other inputs, or there might be several possible functions. Always verify your candidate in the original equation, and if the problem hints at more than one solution (for example, "the sum of all possible values"), look for every case.

Worked examples

Worked example: Building a system

A function satisfies f(x)+2f ⁣(1x)=3xf(x) + 2f\!\left(\dfrac1x\right) = 3x for all x≠0x \ne 0. Find f(x)f(x).

Replace xx by 1x\dfrac1x: f ⁣(1x)+2f(x)=3xf\!\left(\dfrac1x\right) + 2f(x) = \dfrac3x. Multiply this by 22 and subtract the original equation:

4f(x)−f(x)=6x−3x  ⟹  f(x)=2x−x.4f(x) - f(x) = \frac6x - 3x \implies f(x) = \frac2x - x.

Check: (2x−x)+2(2x−1x)=3x\left(\dfrac2x - x\right) + 2\left(2x - \dfrac1x\right) = 3x, as required.

Worked example: A recursion on the integers

A function on the integers satisfies f(x+y)=f(x)+f(y)+xyf(x + y) = f(x) + f(y) + xy and f(1)=1f(1) = 1. Find f(10)f(10).

With y=1y = 1: f(n+1)=f(n)+1+nf(n + 1) = f(n) + 1 + n. So f(n)=f(1)+(2+3+⋯+n)=n(n+1)2f(n) = f(1) + (2 + 3 + \dots + n) = \dfrac{n(n+1)}{2} for positive nn, and f(10)=55f(10) = 55.

Worked example: Pairing

Let f(x)=4x4x+2f(x) = \dfrac{4^x}{4^x + 2}. Find f ⁣(111)+f ⁣(211)+⋯+f ⁣(1011)f\!\left(\dfrac{1}{11}\right) + f\!\left(\dfrac{2}{11}\right) + \dots + f\!\left(\dfrac{10}{11}\right).

Let u=4xu = 4^x. Then 41−x=4u4^{1 - x} = \dfrac4u, so

f(1−x)=4/u4/u+2=44+2u=2u+2,f(x)+f(1−x)=u+2u+2=1.f(1 - x) = \frac{4/u}{4/u + 2} = \frac{4}{4 + 2u} = \frac{2}{u + 2}, \qquad f(x) + f(1 - x) = \frac{u + 2}{u + 2} = 1.

The ten terms form five pairs (k11,11−k11)\left(\dfrac{k}{11}, \dfrac{11 - k}{11}\right), so the sum is 55.

Worked example: Composition on the positive integers

A strictly increasing function ff from the positive integers to the positive integers satisfies f(f(n))=3nf(f(n)) = 3n. Find f(5)f(5).

If f(1)=1f(1) = 1, then f(f(1))=1≠3f(f(1)) = 1 \ne 3. So f(1)=a≥2f(1) = a \ge 2, and f(a)=3f(a) = 3. Since ff is increasing and a>1a > 1, 3=f(a)>f(1)=a3 = f(a) > f(1) = a, so a=2a = 2. Then f(2)=3f(2) = 3, f(3)=f(f(2))=6f(3) = f(f(2)) = 6 and f(6)=f(f(3))=9f(6) = f(f(3)) = 9. Now 6=f(3)<f(4)<f(5)<f(6)=96 = f(3) < f(4) < f(5) < f(6) = 9 leaves only f(4)=7f(4) = 7 and f(5)=8f(5) = 8.

Tip

If a functional equation involves a polynomial PP, compare degrees first. For example, if P(P(x))P(P(x)) is linear, then (deg⁡P)2=1(\deg P)^2 = 1, so PP itself is linear.

Practice

Practice 1

A function ff on the positive integers satisfies f(mn)=f(m)+f(n)f(mn) = f(m) + f(n) for all positive integers m,nm, n. If f(2)=3f(2) = 3 and f(3)=5f(3) = 5, find f(72)f(72).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

A function ff on the integers satisfies f(x+y)=f(x)+f(y)+2xyf(x + y) = f(x) + f(y) + 2xy for all integers x,yx, y, and f(1)=3f(1) = 3. Find f(20)f(20).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

A function satisfies f(x)+2f(1−x)=3x2f(x) + 2f(1 - x) = 3x^2 for all real xx. Find f(10)f(10).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Let f(x)=9x9x+3f(x) = \dfrac{9^x}{9^x + 3}. Find

f ⁣(1999)+f ⁣(2999)+⋯+f ⁣(998999).f\!\left(\frac{1}{999}\right) + f\!\left(\frac{2}{999}\right) + \dots + f\!\left(\frac{998}{999}\right).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

A function ff on the integers satisfies f(m+n)+f(m−n)=2f(m)+2f(n)f(m + n) + f(m - n) = 2f(m) + 2f(n) for all integers m,nm, n, and f(1)=3f(1) = 3. Find f(12)f(12).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

A function ff from the reals to the reals satisfies f(x)f(y)−f(xy)=x+yf(x)f(y) - f(xy) = x + y for all real x,yx, y. Find f(998)f(998).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

A polynomial PP with positive leading coefficient satisfies P(P(x))=9x+8P(P(x)) = 9x + 8 for all real xx. Find P(100)P(100).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

A function ff is defined for all real x≠0,1x \ne 0, 1 and satisfies

f(x)+f ⁣(11−x)=x.f(x) + f\!\left(\frac{1}{1 - x}\right) = x.

Then f(5)=mnf(5) = \dfrac mn, where mm and nn are relatively prime positive integers. Find m+nm + n.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Real contest practice

  • 1984 AIME, Problem 7: a recursively defined f(n)=f(f(n+5))f(n) = f(f(n + 5)), solved by computing values and spotting a pattern.
  • 1988 AIME, Problem 8: a two-variable function pinned down by three properties, which behave like the Euclidean algorithm.