Domain, Range, Transformations & Inverse Functions
A function $f: A o B$ assigns each element of the domain $A$ exactly one element of the codomain $B$. The set of all output values is the range.
Transformations map the graph of $y = f(x)$ to a new position or shape. The table below summarises the key transformations:
| Transformation | New Function | Effect on Graph |
|---|---|---|
| Vertical shift up by $k$ | $f(x) + k$ | Graph moves up $k$ units |
| Vertical shift down by $k$ | $f(x) - k$ | Graph moves down $k$ units |
| Horizontal shift left by $k$ | $f(x + k)$ | Graph moves left $k$ units |
| Horizontal shift right by $k$ | $f(x - k)$ | Graph moves right $k$ units |
| Vertical stretch by factor $a$ | $a \cdot f(x)$ | $y$-values multiplied by $a$ |
| Horizontal compression by $a$ | $f(ax)$ | $x$-values divided by $a$ |
| Reflection in $x$-axis | $-f(x)$ | $y$-values negated |
| Reflection in $y$-axis | $f(-x)$ | $x$-values negated |
$$y = a \cdot f(b(x - h)) + k$$
The composite function $(f \circ g)(x) = f(g(x))$ applies $g$ first, then $f$. Note that $f \circ g \neq g \circ f$ in general.
The domain of $f \circ g$ is the set of $x$ in the domain of $g$ such that $g(x)$ is in the domain of $f$.
The inverse function $f^{-1}$ satisfies $f(f^{-1}(x)) = x$ and $f^{-1}(f(x)) = x$.
The graph of $f^{-1}$ is the reflection of the graph of $f$ in the line $y = x$.
You must recognise and sketch the following families of functions:
Choosing an appropriate function model for real-world data is a key IB skill.
The graph of $y = f(x)$ is transformed to $y = -2f(x+3) + 1$. Describe the sequence of transformations.
Let $f(x) = x^2 + 1$ for $x \in \mathbb{R}$ and $g(x) = \sqrt{x-2}$ for $x \geq 2$. Find $(f \circ g)(x)$ and state its domain and range.
Let $f(x) = \dfrac{2x+3}{x-1}$, $x \neq 1$. Find $f^{-1}(x)$ and verify that $f(f^{-1}(x)) = x$.
Q1. The function $f(x) = 3\sqrt{x-1}$ has domain $x \geq 1$. State the range of $f$ and find $f^{-1}(x)$, stating its domain.
Since $x \geq 1$, we have $\sqrt{x-1} \geq 0$, so $f(x) \geq 0$. Range of $f$: $[0, \infty)$.
To find $f^{-1}$: let $y = 3\sqrt{x-1}$. Swap: $x = 3\sqrt{y-1} \implies \frac{x}{3} = \sqrt{y-1} \implies \frac{x^2}{9} = y - 1 \implies y = \frac{x^2}{9} + 1$.
$f^{-1}(x) = \dfrac{x^2}{9} + 1$, domain $x \geq 0$.
Q2. Given $f(x) = 2x - 1$ and $g(x) = x^2 + 3$, find $(g \circ f)(x)$ and $(f \circ g)(x)$. Show that they are not equal.
$(g \circ f)(x) = g(2x-1) = (2x-1)^2 + 3 = 4x^2 - 4x + 1 + 3 = 4x^2 - 4x + 4$
$(f \circ g)(x) = f(x^2+3) = 2(x^2+3) - 1 = 2x^2 + 5$
Since $4x^2 - 4x + 4 \neq 2x^2 + 5$ in general (e.g., at $x=1$: $4 eq 7$), they are not equal.
Q3. The graph of $y = x^2$ is transformed to pass through the points $(1, 3)$ and $(-1, 3)$, and has vertex $(0, 0)$ shifted to vertex $(2, -1)$. Write the equation of the transformed graph.
The vertex form is $y = a(x-h)^2 + k$. Vertex at $(2,-1)$ gives $y = a(x-2)^2 - 1$.
The shape should pass through nearby points. If we use $a = 1$: $y = (x-2)^2 - 1$. Check: at $x=3$, $y=0$; at $x=2$, $y=-1$ ✓.
The equation is $\boxed{y = (x-2)^2 - 1}$.
Q4. A function is defined by $f(x) = e^x + 1$. Find $f^{-1}(x)$ and state its domain and range.
Let $y = e^x + 1$. Swap: $x = e^y + 1 \implies e^y = x - 1 \implies y = \ln(x-1)$.
$f^{-1}(x) = \ln(x-1)$.
Domain of $f^{-1}$: $x - 1 > 0 \implies x > 1$, i.e., $(1, \infty)$. Range of $f^{-1}$: all real numbers, $\mathbb{R}$.
(These are the range and domain of $f$, respectively, as expected.)