Composite functions and intermediate domains
Introduced| English | Meaning |
|---|---|
| composition/ˌkɒmpəˈzɪʃn/ | Combining functions by applying one function to the output of another. |
What is a function?, 1837
- In 1837, the German mathematician Peter Gustav Lejeune Dirichlet gave the modern idea of a function: any rule that gives exactly one output for each input in its domain. It need not be a formula. Once functions are rules, they can be chained: the output of one becomes the input of the next. This chaining is composition 复合.
- $fg(x)$ means $f(g(x))$: apply $g$ first, then $f$.
Order matters
- With $f(x) = x^2$ and $g(x) = x + 3$: $fg(x) = (x + 3)^2$, but $gf(x) = x^2 + 3$.
- In general $fg \ne gf$.
$f(x) = 3x - 1$ and $g(x) = x^2$. Find $fg(2)$.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$g(2) = 4$, $f(4) = 11$.
With the same functions, find $gf(2)$.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$f(2) = 5$, $g(5) = 25$.
Domain of a composite
- $fg(x)$ is defined only where $x$ is in the domain of $g$ and $g(x)$ is in the domain of $f$.
- The range of $fg$ comes from $f$ applied to the outputs of $g$.
Composite functions and intermediate domains
Here fg means f composed with g: fg(x)=f(g(x)), not multiplication
Use domains to justify inverse and composite function steps.
$f(x) = \sqrt{x}$, $x \ge 0$, and $g(x) = x - 5$. What is the domain of $fg$?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Need $x - 5 \ge 0$.
Worked example: domain and range of a composite
$f(x) = \dfrac{1}{x - 3}$, $x \ne 3$, and $g(x) = x^2 - 1$, $x \in \mathbb{R}$. Find $fg(x)$ and its domain, then solve $fg(x) = 1$.
- Composite: $fg(x) = \dfrac{1}{x^2 - 1 - 3} = \dfrac{1}{x^2 - 4}$.
- Domain: need $g(x) \ne 3$, so $x^2 \ne 4$: all real $x$ except $\pm 2$.
- Solve: $x^2 - 4 = 1$, so $x = \pm\sqrt{5}$.
$f(x) = \tfrac{1}{x - 3}$, $g(x) = x^2 - 1$. Which values are excluded from the domain of $fg$?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
$g(x) = 3$ when $x = \pm 2$.
Inverse functions
- $f^{-1}$ undoes $f$: $ff^{-1}(x) = x$. It exists only if $f$ is one-to-one.
- The domain of $f^{-1}$ is the range of $f$, and the graph of $f^{-1}$ is the reflection of $f$ in $y = x$.
$f(x) = x^2$, $x \in \mathbb{R}$, has an inverse function.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
It is not one-to-one: $f(2) = f(-2)$.
Finding an inverse
- Write $y = f(x)$, rearrange for $x$, then swap letters.
- $f(x) = \dfrac{2x + 1}{x - 4}$: $y(x - 4) = 2x + 1 \Rightarrow x = \dfrac{4y + 1}{y - 2}$, so $f^{-1}(x) = \dfrac{4x + 1}{x - 2}$, $x \ne 2$.
Find $f^{-1}(x)$ for $f(x) = 5 - 2x$.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
$x = \tfrac{5 - y}{2}$.
$fg(x)$ does not mean $f(x) \times g(x)$, and you apply $g$ first. Also, do not just copy $g$'s domain: values of $x$ that send $g(x)$ outside $f$'s domain must be removed.
$fg(x) = f(g(x))$: inner function first. Its domain is the set of $x$ in $g$'s domain for which $g(x)$ is in $f$'s domain. An inverse exists only for a one-to-one function; its domain is $f$'s range, and its graph is the reflection in $y = x$.
$f(x) = e^{x}$ and $g(x) = \ln(x - 1)$, $x > 1$. Find $fg(x)$ and $gf(x)$, and give the domain of each.
Domains through composition.