IB Diploma Mathematics AI · Functions
Function notation and graphs
1What a function is
A function is a rule that gives exactly one output for each input.
- Function notation: $f(x) = 3x - 2$ means "the function $f$ takes $x$, multiplies by 3 and subtracts 2".
- $f(4)$ means "put 4 in": $f(4) = 3(4) - 2 = 10$.
- On a graph, $f(4) = 10$ means the point $(4, 10)$ lies on the curve.
- A graph is a function if every vertical line crosses it at most once.
Using function notation
- $g(x) = x^2 - 5$.
- $g(3) = 9 - 5 = 4$ and $g(-3) = 9 - 5 = 4$: different inputs can give the same output.
- Solve $g(x) = 11$: $x^2 = 16$, so $x = 4$ or $x = -4$.
Check yourself
If h(x) = 2x² + 1, what is h(−2)?
Show the answer
9
2 × (−2)² + 1 = 2 × 4 + 1 = 9.
2Domain and range
- The domain is the set of allowed inputs ($x$-values).
- The range is the set of outputs ($y$-values) the function actually produces.
Some inputs are not allowed: you cannot divide by zero, or take the square root of a negative number. In a real model, the domain is limited by the context: time cannot be negative, and you cannot sell half a car.
The range of a quadratic: every output from the minimum upwards
Domain and range of a quadratic
- $f(x) = x^2 - 4x + 1$, for all real $x$.
- The calculator shows a minimum point at $(2, -3)$.
- Domain: $x \in \mathbb{R}$, all real numbers. Range: $f(x) \ge -3$.
Check yourself
What is the largest possible domain of f(x) = 1/(x − 3)?
Show the answer
All real x except x = 3
When x = 3 the bottom is zero, which is not allowed.
3Key features of graphs
In Maths AI you sketch and analyse graphs using your calculator. Know how to find and label these:
- Intercepts: where the graph crosses the axes. The $x$-intercepts are also called zeros or roots.
- Maximum and minimum points: the highest and lowest points in a region.
- Points of intersection of two graphs, which solve equations.
- Asymptotes: lines the graph gets closer and closer to without reaching, like $y = 0$ for $y = 2^x$.
- Symmetry, such as the axis of symmetry of a parabola.
A sketch shows the shape and labels key points with coordinates. It does not need to be drawn to scale, but must be in the right place relative to the axes.
Check yourself
What is an asymptote?
Show the answer
A line that a graph approaches but never reaches
Example: y = 1/x gets closer and closer to both axes.
4Inverse functions
An inverse function $f^{-1}$ undoes $f$. If $f(2) = 7$, then $f^{-1}(7) = 2$.
- The graph of $f^{-1}$ is the reflection of the graph of $f$ in the line $y = x$.
- The domain of $f^{-1}$ is the range of $f$, and the range of $f^{-1}$ is the domain of $f$.
Inverse of a linear function
- $f(x) = 3x - 2$. Write $y = 3x - 2$.
- Swap $x$ and $y$: $x = 3y - 2$.
- Rearrange: $y = \frac{x + 2}{3}$, so $f^{-1}(x) = \frac{x + 2}{3}$.
- Check: $f(4) = 10$ and $f^{-1}(10) = \frac{12}{3} = 4$.
A temperature conversion $F = 1.8C + 32$ has the inverse $C = \frac{F - 32}{1.8}$, which converts back from Fahrenheit to Celsius.
Check yourself
f(5) = 12. What is f⁻¹(12)?
Show the answer
5
The inverse takes the output back to the input.
5Reading values from function notation
- $f(3)$ means substitute $x = 3$.
- $f(x) = 10$ means solve for $x$.
- $f(a + 1)$ means substitute $a + 1$ wherever $x$ appears.
$f(x) = x^2 - 2x$
- $f(3) = 9 - 6 = 3$.
- $f(x) = 8$: $x^2 - 2x - 8 = 0$, so $(x - 4)(x + 2) = 0$, giving $x = 4$ or $x = -2$.
- $f(a + 1) = (a + 1)^2 - 2(a + 1) = a^2 - 1$.
Check yourself
If $f(x) = 3x - 1$, what is $f(4)$?
Show the answer
11
$12 - 1$.
6Asymptotes and key features
Key features to identify on a graph:
- Intercepts with the axes.
- Maximum and minimum points.
- Asymptotes: lines the graph approaches but never reaches.
- Domain and range.
$y = \frac{4}{x - 2} + 1$
- Vertical asymptote: $x = 2$.
- Horizontal asymptote: $y = 1$.
- $y$-intercept: $\frac{4}{-2} + 1 = -1$.
- $x$-intercept: $\frac{4}{x - 2} = -1$, so $x = -2$.
Check yourself
What is the vertical asymptote of $y = \frac{4}{x - 2} + 1$?
Show the answer
$x = 2$
Denominator zero.
7Going deeper: reading every feature of one model
a cup of coffee cools according to $T(t) = 20 + 60(0.9)^t$, where $T$ is the temperature in °C and $t$ the time in minutes.
- Initial value: $T(0) = 20 + 60 = 80$°C.
- A value: $T(10) = 20 + 60(0.9)^{10} \approx 20 + 20.9 = 40.9$°C.
- Asymptote: as $t$ grows, $(0.9)^t$ tends to 0, so $T$ approaches 20. The horizontal asymptote $T = 20$ is the room temperature.
- Solving: when is the coffee at 50°C? $60(0.9)^t = 30$, so $(0.9)^t = 0.5$ and $t = \frac{\ln 0.5}{\ln 0.9} \approx 6.58$ minutes. On a GDC, graph $y = T(t)$ and $y = 50$ and find the intersection.
- Domain in context: $t \ge 0$. Range: $20 < T \le 80$.
- Inverse: $T^{-1}(50) = 6.58$ means "the time at which the temperature is 50°C". The inverse swaps the roles of input and output.
Notation
- $f(3)$ is the output when the input is 3.
- $f(x) = 3$ asks for the input that gives an output of 3.
- $f^{-1}(x)$ is the inverse function, not $\frac{1}{f(x)}$.
- To find an inverse algebraically, swap $x$ and $y$ and rearrange. For $f(x) = 3x - 5$: $x = 3y - 5$, so $f^{-1}(x) = \frac{x + 5}{3}$.
- The graph of $f^{-1}$ is the reflection of the graph of $f$ in the line $y = x$.
Key features to report from a GDC graph
- Intercepts: where the graph crosses each axis.
- Maximum and minimum points, with coordinates.
- Asymptotes, given as equations ($x = 2$, $y = 20$).
- Zeros (roots): the $x$-values where $f(x) = 0$.
- Intersections of two graphs.
- Where the function is increasing or decreasing.
Sketching versus drawing
- "Sketch": the general shape, with key features labelled. No scale needed.
- "Draw": accurate, on graph paper, with a scale and plotted points.
Choosing a viewing window: if the screen is blank, the window is wrong. Use the context: for the coffee model, $0 \le t \le 60$ and $0 \le T \le 100$.
Common mistakes
- Giving an asymptote as a number ("20") instead of an equation ("$T = 20$").
- Quoting a domain that includes impossible values, such as negative time.
- Copying a curve that touches its asymptote.
Check yourself
f(x) = 3x − 5. What is f⁻¹(10)?
Show the answer
5
Solve 3x − 5 = 10, which gives x = 5.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera