📖 Short lecture
Functions can be added, subtracted, multiplied, divided and composed: $(f\circ g)(x)=f(g(x))$. The inverse $f^{-1}$ undoes $f$, so $f(f^{-1}(x))=x$; to find it, swap $x$ and $y$ and solve for $y$. The graph of $f^{-1}$ is the reflection of the graph of $f$ in the line $y=x$, and $f$ has an inverse function only if it is one-to-one (horizontal line test).
Square root functions $f(x)=a\sqrt{x-h}+k$ start at $(h,k)$ and have domain $x\ge h$. The $n$th root satisfies $\left(\sqrt[n]{a}\right)^n=a$. To solve a radical equation, isolate the radical, raise both sides to the same power and check for extraneous solutions.
⚠️ Common mistakes
- $f^{-1}(x)$ is not $\frac{1}{f(x)}$: it undoes $f$.
- $(f\circ g)(x)=f(g(x))$: apply $g$ first; usually $f\circ g\neq g\circ f$.
- Squaring both sides can create extraneous solutions: always check.
🔑 Key formulas
✏️ Worked example
Find the inverse of $f(x)=2x-6$, and solve $\sqrt{x+3}=x-3$.
- $\displaystyle y=2x-6\;\to\;x=2y-6\;\Rightarrow\;f^{-1}(x)=\frac{x+6}{2}$
- $\displaystyle x+3=(x-3)^2\;\Rightarrow\;x^2-7x+6=0\;\Rightarrow\;x=1\text{ or }x=6$
- $\displaystyle x=1:\;\sqrt4=2\neq-2\;(\text{extraneous}),\quad x=6:\;3=3$
✔ $f^{-1}(x)=\frac{x+6}{2}$; $x=6$.
🧮 More worked examples
Each step says what we do and why.
Example 2$f(x)=2x+1$, $g(x)=x^2$. Find $(f\circ g)(x)$ and $(g\circ f)(x)$ and compare at $x=1$.
- Inside out.$$(f\circ g)(x)=2x^2+1,\qquad(g\circ f)(x)=(2x+1)^2$$
- At $x=1$.$$3\neq9$$
Example 3Find the inverse of $f(x)=x^3-2$.
- Swap $x$ and $y$.$$x=y^3-2$$
- Solve.$$y=\sqrt[3]{x+2}$$
Example 4Solve $\sqrt{x+7}=x+1$.
- Square both sides.$$x+7=x^2+2x+1\Rightarrow x^2+x-6=0$$
- Solve and check.$$x=2:\ 3=3\ \checkmark,\qquad x=-3:\ 2\neq-2$$
🖐️ Interactive demo & illustration
Move the sliders or press the buttons: the figure and the numbers update immediately. Try to predict the result before you look.
🎬 The composition machine
A number goes through two machines. In $f\circ g$ it enters $g$ first, then $f$; in $g\circ f$ the order is reversed. Choose the machines and the input, press play, and compare the two outputs. Usually they are different.
🌍 Modelling problems
Real-life situations: translate the words into mathematics, solve, then interpret the answer.
💱 Currency
$U(a)=0.27a$ converts AED to USD. Find the inverse and convert $54$ USD to AED.
Show the solution
- Inverse.$$a=\frac{U}{0.27}$$
- Evaluate.$$\frac{54}{0.27}=200$$
✔ $200$ AED.
🛑 Skid marks
Stopping distance is $d=\frac{v^2}{20}$ ($v$ in m/s). A car skids $45$ m. How fast was it going?
Show the solution
- Solve for $v$.$$v=\sqrt{20d}$$
- Evaluate.$$\sqrt{900}=30$$
✔ $30$ m/s ($108$ km/h).
🕰️ Pendulum length
$T=2\pi\sqrt{\frac{L}{9.8}}$. Which length gives a period of $2$ s?
Show the solution
- Isolate the root and square.$$\frac{L}{9.8}=\frac{1}{\pi^2}$$
- Solve.$$L=\frac{9.8}{\pi^2}\approx0.99$$
✔ About $0.99$ m.
✅ Multiple-choice quiz
📝 Short essay
Why does $f(x)=x^2$ not have an inverse function on all real numbers, and how can this be fixed?
$f(x)=x^2$ is not one-to-one: $f(2)=f(-2)=4$, so a horizontal line meets the graph twice. If we restrict the domain to $x\ge0$, $f$ becomes one-to-one, and its inverse is $f^{-1}(x)=\sqrt x$.