Domains, inverses and composition · Higher
Introduced| English | Meaning |
|---|---|
| domain/dəˈmeɪn/ | The set of input values for which a function is defined. |
| range/reɪndʒ/ | The set of output values actually attained by a function on its stated domain. |
What is a function?
- In 1837 Peter Dirichlet defined a function as any rule that gives exactly one output for each input. We write $f(x)$ for the output when the input is $x$.
- Some rules only work for some inputs: a calculator shows an error for $\sqrt{-4}$.
$f(x) = 3x^2 - 1$. Find $f(-2)$.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$12 - 1$.
Domain and range
- The domain 定义域 is the set of allowed inputs; the range 值域 is the set of outputs.
- $f(x) = \sqrt{x - 2}$ needs $x - 2 \ge 0$, so the domain is $x \ge 2$ and the range is $y \ge 0$.
What is the largest domain of $f(x) = \sqrt{x + 5}$?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
$x + 5 \ge 0$.
Inverse functions
- The inverse $f^{-1}$ undoes $f$. Write $y = f(x)$ and make $x$ the subject.
- $y = \sqrt{x - 2} \Rightarrow y^2 = x - 2 \Rightarrow x = y^2 + 2$, so $f^{-1}(x) = x^2 + 2$ for $x \ge 0$.
Domains, inverses and composition
State the domain and range
Compare the model with the worked case and explain one change.
$f(x) = \dfrac{x + 4}{3}$. Find $f^{-1}(x)$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
$y = \dfrac{x + 4}{3} \Rightarrow x = 3y - 4$.
Worked example: a composite function
$f(x) = \sqrt{x - 2}$ and $g(x) = x + 3$. Find $fg(1)$ and $gf(6)$.
- $fg(1)$: do $g$ first. $g(1) = 4$, then $f(4) = \sqrt{2}$.
- $gf(6)$: do $f$ first. $f(6) = \sqrt{4} = 2$, then $g(2) = 5$.
- As expressions: $fg(x) = \sqrt{x + 1}$ and $gf(x) = \sqrt{x - 2} + 3$.
$f(x) = 2x$ and $g(x) = x^2 + 1$. Find $fg(3)$.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$g(3) = 10$, $f(10) = 20$.
Order of a composite
- $fg(x)$ means $f(g(x))$: apply $g$ first, the function nearer to $x$.
- In general $fg(x) \ne gf(x)$.
Same functions. Find $gf(3)$.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$f(3) = 6$, $g(6) = 37$.
Checking an inverse
- $f(f^{-1}(x)) = x$: $f(x^2 + 2) = \sqrt{x^2} = x$ for $x \ge 0$ ✓.
- The graphs of $f$ and $f^{-1}$ are reflections in the line $y = x$.
$f^{-1}(x)$ does not mean $\dfrac{1}{f(x)}$. For $g(x) = x + 3$, $g^{-1}(x) = x - 3$, not $\dfrac{1}{x + 3}$. The $-1$ is a label for "inverse".
If $g(x) = x + 3$, then $g^{-1}(x) = \dfrac{1}{x + 3}$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
$g^{-1}(x) = x - 3$.
The domain is the allowed inputs and the range the outputs. Find $f^{-1}$ by making $x$ the subject of $y = f(x)$. In $fg(x)$, apply $g$ first. Composite functions usually depend on order.
$f(x) = 2x - 1$ and $g(x) = x^2$. Solve $fg(x) = gf(x)$.
Composite functions.