← Precalculus

Inverse functions

Undo a function: swap x and y, then solve.

Start this lesson

An inverse function undoes the original. To find it, write y = f(x), swap x and y, then solve for y. For f(x) = 3x − 6: x = 3y − 6, so y = (x + 6)/3.

Example: f(x) = 3x − 6

  1. x = 3y − 6 — Swap x and y
  2. x + 6 = 3y — Add 6
  3. f⁻¹(x) = (x + 6)/3 — Divide by 3

Why it works: An inverse swaps the roles of input and output. Swapping x and y and solving does exactly that.

Tip: Check: f(f⁻¹(x)) should give back x. 3 · (x + 6)/3 − 6 = x. ✓