Domain, range and composite functions

IGCSE Additional Mathematics · Functions

Domain and range

The domain is the set of inputs allowed; the range is the set of outputs produced. Restrictions come from three places: division by zero, square roots of negatives, and logs of non-positives.

For $f(x)=x^2-4x+7$ with $x\ge2$: completing the square gives $(x-2)^2+3$, so the range is $f(x)\ge3$.

Composite functions

$fg(x)$ means $f(g(x))$ — apply $g$ first. The order is not interchangeable: with $f(x)=x^2$ and $g(x)=x+1$, $fg(2)=f(3)=9$ but $gf(2)=g(4)=5$.

Modulus

$|A|=k$ (with $k>0$) always gives two branches: $A=k$ and $A=-k$. The graph of $y=|f(x)|$ reflects any part below the $x$-axis upwards.

Worked example: finding the range and then using it for the inverse function

Given $f(x)=(x-1)^2+4$ for $x\ge1$. Find the range of $f$, then state the domain of $f^{-1}$.

Solution

Step 1 — the range of $f$. For $x\ge1$, $(x-1)^2\ge0$, so $f(x)\ge4$, with equality at $x=1$.

Step 2 — moving to the inverse function. The domain of $f^{-1}$ is exactly the range of $f$, that is $x\ge4$. This is where it is often misunderstood the wrong way round: people usually copy down $x\ge1$.

Step 3 — why $f^{-1}$ exists. The condition $x\ge1$ cuts off the left branch of the parabola, making the function one-to-one. If $x$ were allowed to run over all of $\mathbb{R}$ then $f(0)=f(2)=5$ and no inverse function would exist.

The inverse function itself: let $y=(x-1)^2+4$, solve to get $x=1+\sqrt{y-4}$ (taking the plus sign because $x\ge1$), so $f^{-1}(x)=1+\sqrt{x-4}$.

Common mistake

Trap: reading a composite function backwards. $fg$ is read from right to left — the function next to the variable is done first. Tip: write out $f(g(x))$ in full before substituting numbers; it takes two seconds and eliminates a whole type of error.

Key takeaway

The domain is limited by division by $0$, square roots of negatives, and logarithms of non-positive numbers · the range of $f$ is the domain of $f^{-1}$ · $fg$ does $g$ first · $|A|=k$ gives two branches.

← Exponential growth and decay · All IGCSE Additional Mathematics lessons · Practice IGCSE Additional Mathematics questions (free, instant scoring) · Inverse functions →