Functions
- Evaluate functions at specific inputs using function notation $f(x)$
- Find composite functions $fg(x)$ applying functions in the correct right-to-left order
- Find and verify inverse functions $f^{-1}(x)$ using the swap-and-rearrange method
- Solve equations involving functions including $f(x) = g(x)$
- Find $f^2(x)$ and other iterated and three-way composite functions
π Core Concepts
Function Notation and Evaluation
A function is a mathematical rule that maps each input to exactly one output. The notation $f(x)$ β read "f of x" β denotes the output produced when $x$ is the input to the rule named $f$. Functions can also be written as $f: x \mapsto \text{expression}$, which is read "f maps x to...".
To evaluate $f$ at a specific value $a$: substitute $a$ for every occurrence of $x$ in the rule and simplify.
Example: if $f(x) = 3x^2 - 2x + 4$, then:
$$f(5) = 3(5)^2 - 2(5) + 4 = 75 - 10 + 4 = 69$$Domain and Range
Understanding domain and range is essential for Grade 9 work, particularly when finding inverses and identifying where composite functions are defined.
Range: the set of all output values $f(x)$ produced by inputs from the domain.
Common domain restrictions:
β’ Division by zero: if $f(x) = \dfrac{1}{x-a}$, then $x \neq a$
β’ Even roots: if $f(x) = \sqrt{g(x)}$, then $g(x) \geq 0$
For $f(x) = \sqrt{4 - x}$: require $4 - x \geq 0 \Rightarrow x \leq 4$.
One-to-One and Many-to-One Functions
Whether a function has an inverse depends critically on its mapping type. This distinction is a key Grade 9 concept.
Many-to-one: two or more different inputs can produce the same output. Example: $f(x) = x^2$, since $f(3) = f(-3) = 9$.
Composite Functions
A composite function chains two (or more) functions: the output of one becomes the input of the next. The crucial rule is the order of application: in $fg(x)$, apply $g$ first, then $f$.
The Iterated Function $f^2(x)$
$f^2(x)$ uses superscript notation but does not mean squaring the output. It means $f$ applied to itself β a special case of composition.
It does NOT equal $(2x+1)^2 = 4x^2 + 4x + 1$. The superscript 2 on a function name always denotes iteration, not exponentiation of the output.
Inverse Functions $f^{-1}(x)$
The inverse function $f^{-1}$ reverses the effect of $f$. Where $f$ maps $a \to b$, the inverse $f^{-1}$ maps $b \to a$. Finding the inverse algebraically uses the swap-and-rearrange method.
$x(cy + d) = ay + b \Rightarrow cxy + dx = ay + b$
Collect $y$ terms: $cxy - ay = b - dx \Rightarrow y(cx - a) = b - dx$
Then divide: $f^{-1}(x) = \dfrac{b-dx}{cx-a}$, domain $x \neq \dfrac{a}{c}$.
πΊοΈ Visual Notes
- $f(x)$ = rule mapping input to output
- Evaluate: substitute $x = a$ with brackets
- $f: x \mapsto$ expression notation
- $f(a)$ = output when input is $a$
- $fg(x) = f(g(x))$: $g$ applied first
- Read right to left β inner first
- $fg \neq gf$ in general
- $fgh(x)$: apply $h$, then $g$, then $f$
- $f^{-1}$ undoes $f$ completely
- Swap $x$ and $y$, then rearrange
- $f(f^{-1}(x)) = x$ always
- State domain restriction explicitly
- Domain: valid input values
- Range: all possible outputs
- Restrict: division by zero, $\sqrt{\text{negative}}$
- Domain of $f^{-1}$ = Range of $f$
- $f^2(x) = f(f(x))$ β apply twice
- NOT $[f(x)]^2$ β do not square output
- $f^3(x) = f(f(f(x)))$
- Expand inner result, then substitute again
- $f(x) = k$: substitute and solve
- $f(x) = g(x)$: equate, form quadratic
- Use $f^{-1}$ to undo: $f(x) = k \Rightarrow x = f^{-1}(k)$
- Check solutions lie in the domain
One-to-One vs Many-to-One: Comparison
| Property | One-to-One (Injective) | Many-to-One |
|---|---|---|
| Definition | Each output comes from exactly one input | Two or more inputs share the same output |
| Example | $f(x) = 3x + 1$, $f(x) = e^x$ | $f(x) = x^2$, $f(x) = x^4 - 2$ |
| Has inverse? | Yes β over its full domain | Only with domain restriction |
| Horizontal line test | Any horizontal line crosses graph at most once | Some horizontal line crosses graph twice or more |
| Graph shape | Strictly increasing or decreasing | Has a turning point (e.g., a minimum) |
| Domain restriction? | Not needed for inverse | Needed β e.g., restrict $x \geq 0$ for $f(x) = x^2$ |
Process: Finding an Inverse Function (Step by Step)
Process: Finding a Composite Function
βοΈ Worked Examples
(a) Find $f(5)$ (b) Find $g(-2)$ (c) Find $fg(3)$
Step 2 β apply $f$ to the result: $f(10) = 4(10) - 3 = 37$
So $fg(3) = f(g(3)) = f(10) = 37$
(a) Find $fg(x)$ as a simplified expression
(b) Find $gf(x)$ as a simplified expression
(c) Find $f^{-1}(x)$
(d) Verify that $f(f^{-1}(x)) = x$
Replace every $x$ in $f(x) = 2x + 5$ with $(x^2 - 2)$: $$fg(x) = 2(x^2 - 2) + 5 = 2x^2 - 4 + 5 = 2x^2 + 1$$
Replace every $x$ in $g(x) = x^2 - 2$ with $(2x + 5)$: $$gf(x) = (2x + 5)^2 - 2 = 4x^2 + 20x + 25 - 2 = 4x^2 + 20x + 23$$ Note: $fg(x) \neq gf(x)$, confirming order matters.
Swap $x$ and $y$: $x = 2y + 5$
Rearrange: $x - 5 = 2y \implies y = \dfrac{x-5}{2}$ $$f^{-1}(x) = \frac{x-5}{2}$$
(a) Find $f^2(x) = f(f(x))$, simplifying your answer fully.
(b) Find $f^{-1}(x)$, stating its domain.
(c) Prove algebraically that $f(f^{-1}(x)) = x$.
(d) Find $fg(x)$ and state the value of $x$ excluded from its domain.
Swap: $x = \dfrac{y+2}{y-1}$
Multiply both sides by $(y-1)$: $x(y-1) = y + 2$
Expand: $xy - x = y + 2$
Collect $y$ terms: $xy - y = x + 2$
Factorise: $y(x-1) = x+2$
$$f^{-1}(x) = \frac{x+2}{x-1}$$ Domain: $x \neq 1$ (since $x - 1 \neq 0$). This confirms $f$ is self-inverse: $f^{-1}(x) = f(x)$.
β Exam Questions
$f(x) = 7 - 3x$. Find $f(-4)$.
$f(-4) = 7 - 3(-4) = 7 + 12 = 19$
Mark scheme: 1 mark for correct evaluation. Common error: writing $7 - 3 \times -4 = 7 + 12$ without brackets on the $-4$ β award mark if correct answer reached, but advise use of brackets.
$f(x) = 6x - 1$. Find $f^{-1}(x)$.
Let $y = 6x - 1$ [M1 β correct method: swap and rearrange]
Swap: $x = 6y - 1$
$x + 1 = 6y$
$y = \dfrac{x + 1}{6}$
Answer: $f^{-1}(x) = \dfrac{x+1}{6}$ [A1]
2 marks
$f(x) = x^2 - 3$ and $g(x) = 4x + 1$.
(a) Find $gf(x)$ as a simplified expression. [2]
(b) Find $gf(2)$. [1]
(b) $gf(2) = 4(2)^2 - 11 = 16 - 11 = 5$ [A1 β or substitute $x=2$ directly into the expression]
3 marks total
$f(x) = 2x + 3$ and $g(x) = \dfrac{1}{x}$, $x \neq 0$.
(a) Find $f^{-1}(x)$. [2]
(b) Solve $f(x) = g(x)$, giving your answers to 3 significant figures. [2]
(b) Set $f(x) = g(x)$: $\quad 2x + 3 = \dfrac{1}{x}$
Multiply by $x$: $2x^2 + 3x = 1$
$2x^2 + 3x - 1 = 0$ [M1 β correct quadratic formed]
Using the quadratic formula: $x = \dfrac{-3 \pm \sqrt{9 + 8}}{4} = \dfrac{-3 \pm \sqrt{17}}{4}$
$x = 0.281$ or $x = -1.78$ (3 s.f.) [A1 β both values]
4 marks total
$f(x) = \dfrac{3x - 2}{x + 4}$, $x \neq -4$.
(a) Find $f^{-1}(x)$, stating its domain. [4]
(b) Find $f^2(x)$, simplifying your answer fully. [2]
$y = \dfrac{3x-2}{x+4}$, swap: $x = \dfrac{3y-2}{y+4}$ [M1 β swap method shown]
$x(y+4) = 3y - 2 \implies xy + 4x = 3y - 2$ [M1 β multiply and expand]
$xy - 3y = -4x - 2 \implies y(x-3) = -4x - 2$ [M1 β collect $y$ and factorise]
$f^{-1}(x) = \dfrac{-4x-2}{x-3} = \dfrac{-(4x+2)}{x-3}$, domain $x \neq 3$ [A1 β expression and domain]
(b)
$f^2(x) = f\!\left(\dfrac{3x-2}{x+4}\right) = \dfrac{3\cdot\dfrac{3x-2}{x+4} - 2}{\dfrac{3x-2}{x+4} + 4}$
Multiply top and bottom by $(x+4)$: [M1]
Numerator: $3(3x-2) - 2(x+4) = 9x - 6 - 2x - 8 = 7x - 14$
Denominator: $(3x-2) + 4(x+4) = 3x - 2 + 4x + 16 = 7x + 14$
$f^2(x) = \dfrac{7x-14}{7x+14} = \dfrac{7(x-2)}{7(x+2)} = \dfrac{x-2}{x+2}$ [A1 β fully simplified]
6 marks total
$h(x) = x^2 + 3$, $x \geq 0$.
(a) State why the domain restriction $x \geq 0$ is necessary for $h^{-1}(x)$ to exist. [1]
(b) Find $h^{-1}(x)$. [2]
(b)
$y = x^2 + 3$, swap: $x = y^2 + 3$
$x - 3 = y^2 \implies y = \sqrt{x-3}$ (positive root only, since range of $h^{-1}$ = domain of $h \geq 0$)
$h^{-1}(x) = \sqrt{x-3}$, domain $x \geq 3$ [M1 method, A1 answer with domain]
3 marks total
β Grade 9 Model Answers
Full Annotated Answer: Question 5
This question targets the highest-order skills in the Functions topic: rational function inverse with domain, and $f^2(x)$ requiring compound fraction simplification. These are distinguishing skills between Grade 8 and Grade 9.
Cross-multiply (M1):
$x(y + 4) = 3y - 2$
$xy + 4x = 3y - 2$
Expanding correctly earns M1. A common error is sign mistakes here.
Collect and factorise (M1):
$xy - 3y = -4x - 2$
$y(x - 3) = -4x - 2$
This is the critical algebraic step. Moving all $y$ terms to one side and factorising earns M1. Students who forget to factorise cannot complete the problem.
Final answer (A1): $$f^{-1}(x) = \frac{-4x-2}{x-3} = \frac{-(4x+2)}{x-3}, \quad x \neq 3$$ The A1 mark requires both the simplified expression AND the domain restriction $x \neq 3$. Omitting the domain loses this mark.
$f^2(x) = f\!\left(\dfrac{3x-2}{x+4}\right)$ β substitute $f(x)$ as the input to $f$: $$= \frac{3 \cdot \dfrac{3x-2}{x+4} - 2}{\dfrac{3x-2}{x+4} + 4}$$ The M1 is for correctly setting up the compound fraction. The error of computing $(f(x))^2$ instead earns no marks.
Multiply top and bottom by $(x+4)$ to clear denominators:
Numerator: $3(3x-2) - 2(x+4) = 9x - 6 - 2x - 8 = 7x - 14$
Denominator: $(3x-2) + 4(x+4) = 3x - 2 + 4x + 16 = 7x + 14$
Simplify (A1): $$f^2(x) = \frac{7x-14}{7x+14} = \frac{7(x-2)}{7(x+2)} = \frac{x-2}{x+2}$$ The A1 requires full simplification β cancelling the factor of 7. An unsimplified $\dfrac{7x-14}{7x+14}$ does not earn A1.
π Revision Sheet
| Term | Meaning |
|---|---|
| $f(x)$ | Output of function $f$ when input is $x$ |
| Domain | Set of all valid input values |
| Range | Set of all possible output values |
| $fg(x)$ | Composite: apply $g$ first, then $f$ |
| $f^{-1}(x)$ | Inverse: reverses the effect of $f$ |
| $f^2(x)$ | $f$ applied twice: $f(f(x))$ |
| One-to-one | Each output has a unique input; inverse exists |
| Many-to-one | Multiple inputs share an output; needs domain restriction for inverse |
Composite: $fg(x) = f(g(x))$ β apply $g$ first
Three-way: $fgh(x) = f(g(h(x)))$ β apply $h$, then $g$, then $f$
Iterated: $f^2(x) = f(f(x)) \neq [f(x)]^2$
Inverse steps: $y = f(x) \to$ swap $x,y \to$ make $y$ the subject $\to f^{-1}(x)$
Verification: $f(f^{-1}(x)) = x$ always
Rational inverse: cross-multiply $\to$ expand $\to$ collect $y$ $\to$ factorise $\to$ divide
Domain swap: domain of $f^{-1}$ = range of $f$
- Socks before shoes: in $fg(x)$, $g$ goes on first (inner), $f$ second (outer)
- Swap and rearrange: the two words that describe finding any inverse
- $f^2 \neq [f]^2$: apply twice β never square the output
- MECFD: Multiply, Expand, Collect, Factorise, Divide β for rational inverse
- Domain swaps: domain $\leftrightarrow$ range when taking inverse
- $ff^{-1}(x) = x$: the ultimate check for any inverse
- Always use brackets: $f(-3)$ means substitute $(-3)$, not $-3$
- Show ALL algebraic steps β method marks are awarded for process
- State domain restriction every time you find an inverse
- Label each stage of a composite calculation: "inner function $g(x) = ...$, then $f(...) = ...$"
- For $f^2(x)$ with a rational function, multiply numerator and denominator by the original denominator
- Verify your inverse by checking $f(f^{-1}(x)) = x$ β if it doesn't simplify to $x$, you have an error
- When solving $f(x) = g(x)$, multiply through to clear any fractions, then form a quadratic
π Flashcards
Click each card to flip it and reveal the answer.
β Common Mistakes
Why marks are lost: The entire answer is wrong. Even if the algebra is correct, applying functions in the wrong order earns zero marks.
How to avoid: Remember the rule: the function written closest to $x$ is applied first. In $fg(x)$, $g$ is nearest to $x$, so $g$ goes first. Say aloud: "$fg(x)$ means apply $g$ first, then $f$."
Why marks are lost: The notation $f^2(x) = f(f(x))$ is standard β squaring gives a completely different (and incorrect) answer. No marks are awarded.
How to avoid: The superscript on a function name always means iteration, not exponentiation. $f^2(x)$ = "apply $f$ twice". $(f(x))^2$ would be written with explicit brackets around $f(x)$.
Why marks are lost: The final A1 mark in a 4-mark inverse question almost always requires the domain to be stated. Leaving it out drops a mark even though the expression is correct.
How to avoid: After finding $f^{-1}(x)$, always ask: "Does the denominator equal zero for any value of $x$?" State that value as excluded. Write "domain: $x \neq ...$" explicitly.
Why marks are lost: The correct answer is $(-3)^2 - 4(-3) = 9 + 12 = 21$. The omission of brackets on the negative input changes the sign and produces an entirely wrong answer.
How to avoid: Form a habit: whenever substituting a negative value, write it inside brackets before simplifying. Every single time β no exceptions.
Why marks are lost: You cannot isolate $y$ by dividing if $y$ appears in both the numerator and denominator of the result. The solution breaks down and no further marks are available after this error.
How to avoid: After expanding, always move all $y$ terms to one side: $xy - by = c - ax$. Then factorise: $y(x - b) = c - ax$. Only then divide: $y = \dfrac{c - ax}{x - b}$.
Why marks are lost: Without the restriction $x \geq 0$ (or $x \leq 0$) on $f$, it is many-to-one and $\sqrt{x}$ is not the inverse of $f$ over all reals. The mark requiring explicit acknowledgement of the restriction is lost.
How to avoid: When the function has a turning point or symmetry (quadratic, modulus, even power), state the required domain restriction and explain why it is necessary before giving the inverse.
β Final Checklist
Click each item when you are confident with it. Your progress is tracked automatically.
- I can evaluate $f(a)$ by substituting $a$ for $x$ in $f(x)$
- I always enclose negative substitutions in brackets: $f(-3) = (-3)^2$, not $-3^2$
- I understand that $f(x)$ is function notation, not $f$ multiplied by $x$
- I can identify and state the domain of a function (excluding zero-denominators and square roots of negatives)
- I can find the range of a function given its domain
- I can find $fg(x)$ by applying $g$ first and substituting into $f$
- I know that $fg(x) \neq gf(x)$ in general, and I can find both correctly
- I can find three-way composite functions $fgh(x)$ working from right to left
- I know $f^2(x) = f(f(x))$, not $[f(x)]^2$, and can compute it for any function type
- I can find $f^{-1}(x)$ for linear and rational functions using the swap-and-rearrange method
- I can find the inverse of a rational function (multiply, collect $y$, factorise, divide)
- I always state the domain restriction when giving an inverse function
- I can prove $f(f^{-1}(x)) = x$ algebraically with full working
- I can explain why a many-to-one function requires domain restriction before its inverse exists
- I can solve $f(x) = g(x)$ by forming and solving a quadratic equation