Leave lesson

Pure · Algebra & functions

1 / 9

Composite and inverse functions

How composite functions chain together (and why order matters), and how to find an inverse — what it does, how to build it, and the link to its graph.

Pure · Algebra & functions

Composite and inverse functions

How composite functions chain together (and why order matters), and how to find an inverse — what it does, how to build it, and the link to its graph.

Why it works

A function is a rule with an input and an output, plus a domain (allowed inputs) and range (resulting outputs).

Composite functions chain two rules. fg(x)fg(x) means do gg first, then ff — read it inside-out, like nested brackets: fg(x)=f(g(x))fg(x) = f(g(x)). So if f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2, then fg(x)=f(x2)=2x2+1fg(x) = f(x^2) = 2x^2 + 1, whereas gf(x)=g(2x+1)=(2x+1)2gf(x) = g(2x + 1) = (2x + 1)^2. Order mattersfggffg \ne gf in general.

Inverse functions undo the original: f1f^{-1} takes an output of ff back to its input, so f1(f(x))=xf^{-1}(f(x)) = x. To find it:
  1. write y=f(x)y = f(x),
  2. rearrange to make xx the subject,
  3. swap the letters to write f1(x)f^{-1}(x).
For f(x)=3x2f(x) = 3x - 2: y=3x2x=y+23y = 3x - 2 \Rightarrow x = \dfrac{y + 2}{3}, so f1(x)=x+23f^{-1}(x) = \dfrac{x + 2}{3} — it reverses "×3\times 3 then 2-2" into "+2+2 then ÷3\div 3".

Two facts that follow:
  • The graph of y=f1(x)y = f^{-1}(x) is the **reflection of y=f(x)y = f(x) in the line
y=xy = x** (swapping xx and yy swaps the axes).
  • The domain and range swap: domain of f1f^{-1} = range of ff. And a function
only has an inverse if it is one-to-one (each output comes from exactly one input) — otherwise the reverse rule isn't a function.

(Beware: f1f^{-1} is the inverse, not the reciprocal 1f(x)\frac{1}{f(x)}.)