These are selected topics, not the whole syllabus, and every example is fictional. A function comes with its domain; in f g, g acts first; only a one-to-one…
English narration · English + 中文 subtitles burned in
2.1
Scope and prerequisites
This handout teaches topic 2, Functions, of Mathematics: Analysis and Approaches, the course first assessed in 2021: straight lines, the language of functions, composite and inverse functions, quadratic, rational, exponential and logarithmic functions, transformations of graphs, and, for HL, polynomials, odd and even functions and further graphs. It is written for both SL and HL students. HL students also apply the further results in the sections marked AHL.
Prerequisites: algebraic manipulation, solving linear and simultaneous equations, indices and surds (topic 1).
2.2
Lines and functions
A taxi fare as a function
A city taxi charges a fixed ¥14 for the first 3 km and ¥2.50 for each extra kilometre. The fare $F$ depends on the distance $d$: for every distance there is exactly one fare. That is what makes it a function 函数. For $d \ge 3$ the rule is a straight line, $F = 14 + 2.5(d-3)$, so a 10 km trip costs $14 + 2.5 \times 7 = 31.5$ yuan. The graph is flat up to 3 km and then rises with gradient 2.5. Much of this topic is about reading a rule like this, drawing its graph and turning questions about the situation into questions about the graph.
Straight lines
The gradient 斜率 of the line through $(x_1, y_1)$ and $(x_2, y_2)$ is
Perpendicular gradients multiply to $-1$
$$m = \frac{y_2 - y_1}{x_2 - x_1}$$
A line can be written in three forms:
gradient-intercept form $y = mx + c$, where $c$ is the $y$-intercept;
general form $ax + by + d = 0$;
point-gradient form $y - y_1 = m(x - x_1)$.
Parallel lines have equal gradients. Perpendicular lines have gradients whose product is $-1$, so $m_2 = -\dfrac{1}{m_1}$.
Worked example. Find the line through $A(1, 5)$ perpendicular to $y = 2x - 3$.
The given gradient is 2, so the perpendicular gradient is $-\frac{1}{2}$.
A function maps each input $x$ in its domain 定义域 to exactly one output $f(x)$. The set of outputs is the range 值域. We write $f(x) = x^2 + 1$ or $f: x \mapsto x^2 + 1$.
The vertical line test
A graph shows a function if every vertical line meets it at most once.
A formula alone does not define a function: the domain must be stated or understood. $f(x) = \sqrt{x - 2}$ needs $x \ge 2$; $g(x) = \dfrac{1}{x - 3}$ needs $x \ne 3$.
The range follows from the domain and the graph: for $f(x) = x^2 + 1$ with $x \in \mathbb{R}$, the range is $f(x) \ge 1$.
On calculator papers, use the graphing calculator to sketch a graph, find intercepts, maximum and minimum points and intersections. Draw a sketch with a labelled scale, and state coordinates to three significant figures unless they are exact.
The output of $g$ must lie in the domain of $f$: with $f(x) = \sqrt{x}$ and $g(x) = x - 5$, $(f \circ g)(x) = \sqrt{x - 5}$ needs $x \ge 5$.
Inverse functions
The inverse function 反函数$f^{-1}$ undoes $f$: if $f(a) = b$ then $f^{-1}(b) = a$, and
$$(f \circ f^{-1})(x) = (f^{-1} \circ f)(x) = x$$
An inverse exists only if $f$ is one-to-one: each output comes from exactly one input, so every horizontal line meets the graph at most once. A quadratic on all real numbers is many-to-one ($f(1) = f(-1)$ for $x^2$), so its domain must be restricted first. The graph of $y = f^{-1}(x)$ is the reflection of $y = f(x)$ in the line $y = x$, and the domain of $f^{-1}$ is the range of $f$.
To find an inverse: write $y = f(x)$, swap $x$ and $y$, and make $y$ the subject.
y = √(x − 2) exists only for x ≥ 2, so its domain starts at 2 and its range starts at 0
Worked example.$f(x) = \sqrt{x - 2}$, $x \ge 2$.
The range is $f(x) \ge 0$.
Swap: $x = \sqrt{y - 2}$, so $x^2 = y - 2$ and $y = x^2 + 2$.
$f^{-1}(x) = x^2 + 2$ with domain $x \ge 0$ (the range of $f$). Without the restriction $x \ge 0$, $x^2 + 2$ would not be the inverse.
A quadratic function 二次函数$f(x) = ax^2 + bx + c$ with $a \ne 0$ has a parabola as its graph, opening upwards if $a > 0$ and downwards if $a < 0$. Each form shows one feature directly:
A suspension bridge cable hangs in a parabola — the graph of a quadratic.
Form
Shows
$y = ax^2 + bx + c$
$y$-intercept $c$; axis of symmetry $x = -\dfrac{b}{2a}$
$y = a(x - p)(x - q)$
$x$-intercepts $p$ and $q$
$y = a(x - h)^2 + k$
vertex 顶点$(h, k)$; axis $x = h$
One parabola, three forms
Worked example. Write $y = 2x^2 - 4x - 6$ in vertex form and factorised form.
The discriminant 判别式$\Delta = b^2 - 4ac$ tells you how many real roots there are:
$\Delta > 0$: two distinct real roots (the graph crosses the $x$-axis twice);
$\Delta = 0$: one repeated real root (the graph touches the axis);
$\Delta < 0$: no real roots.
Worked example. For which $k$ does $x^2 + kx + 9 = 0$ have two distinct real roots?
$\Delta = k^2 - 36 > 0$, so $k^2 > 36$.
$k < -6$ or $k > 6$.
The same idea finds when a line meets a curve: substitute the line into the curve and use the discriminant of the resulting quadratic. A line is a tangent when $\Delta = 0$.
Quadratic inequalities
To solve $x^2 - x - 6 < 0$: factorise $(x - 3)(x + 2) < 0$, sketch the parabola with roots $-2$ and $3$, and read off where it is below the axis: $-2 < x < 3$. Always sketch: dividing both sides by an expression that might be negative reverses the inequality and causes errors.
The reciprocal function$f(x) = \dfrac{1}{x}$, $x \ne 0$, has the axes as asymptotes. It is self-inverse: $f^{-1}(x) = f(x)$, because its graph is symmetric in $y = x$.
For $c \ne 0$ and $ad-bc \ne 0$, a rational function $f(x) = \dfrac{ax + b}{cx + d}$ has:
a vertical asymptote 渐近线 where the denominator is zero, $x = -\dfrac{d}{c}$;
a horizontal asymptote $y = \dfrac{a}{c}$, the value approached as $x \to \pm\infty$;
an $x$-intercept where the numerator is zero, and, when $d \ne 0$, a $y$-intercept at $\dfrac{b}{d}$.
Asymptotes first, then intercepts, then the two branches
Worked example.$f(x) = \dfrac{2x + 1}{x - 1}$. Vertical asymptote $x = 1$; horizontal asymptote $y = 2$; $x$-intercept $-\frac{1}{2}$; $y$-intercept $-1$. The domain is $x \ne 1$ and the range is $y \ne 2$.
Exponential functions
An exponential function 指数函数$f(x) = a^x$ with $a > 0$, $a \ne 1$, has domain all real numbers, range $f(x) > 0$ and the horizontal asymptote $y = 0$. The most important base is $e \approx 2.718$. In a model $y = Ae^{kt}$, $A$ is the initial value; $k > 0$ gives growth and $k < 0$ gives decay. The quantity changes by the same percentage in each equal time step, so it never becomes negative.
Populations can grow exponentially when resources are plentiful.y = 80e^(−0.2x) loses the same fraction, about 18%, in every unit of x
Logarithms
The logarithm 对数 is the inverse of the exponential:
$$a^x = b \iff x = \log_a b \qquad (a > 0,\ a \ne 1,\ b > 0)$$
$\ln x$ means $\log_e x$, so $y = \ln x$ is the reflection of $y = e^x$ in $y = x$. The laws of logarithms:
$$\log_a(xy) = \log_a x + \log_a y \qquad \log_a\frac{x}{y} = \log_a x - \log_a y \qquad \log_a x^n = n\log_a x$$
and the change of base $\log_a x = \dfrac{\ln x}{\ln a}$. Logarithms need positive arguments, and $\log(x + y)$ is not $\log x + \log y$.
Worked example. A medicine's concentration is $C = 80e^{-0.2t}$ mg/L after $t$ hours. When does it fall to 40 mg/L?
$80e^{-0.2t} = 40$, so $e^{-0.2t} = \frac{1}{2}$.
$-0.2t = \ln\frac{1}{2} = -\ln 2$, so $t = \dfrac{\ln 2}{0.2} \approx 3.47$ hours. This is the half-life.
Changes outside the function act on $y$ in the way you expect. Changes inside the function act on $x$ in the opposite way: $f(x - 2)$ moves the graph 2 to the right, and $f(2x)$ squashes it horizontally by a factor of $\frac{1}{2}$.
Outside changes act on y; inside changes act on x in the opposite way
Combining transformations
When several transformations are combined, the order matters. A safe method is to follow a point. To get $y = 3f(x - 1) + 2$ from $y = f(x)$: translate 1 right, stretch vertically by factor 3, then translate 2 up. The point $(4, 5)$ on $y = f(x)$ goes to $(5, 5)$, then $(5, 15)$, then $(5, 17)$.
Worked example. Describe how $y = (x - 2)^2 + 1$ is obtained from $y = x^2$, and find its vertex. A translation by the vector $\binom{2}{1}$; the vertex moves from $(0, 0)$ to $(2, 1)$.
2.7
AHL: Polynomials
Factor and remainder theorems
A polynomial 多项式 of degree $n$ is $P(x) = a_nx^n + \dots + a_1x + a_0$ with $a_n \ne 0$. A polynomial of degree $n$ has at most $n$ real roots, and its graph has at most $n - 1$ turning points.
Roots are factors; the height at x = b is the remainder on dividing by (x − b)
Remainder theorem 余数定理: when $P(x)$ is divided by $(x - a)$, the remainder is $P(a)$.
Factor theorem 因式定理: $(x - a)$ is a factor of $P(x)$ if and only if $P(a) = 0$.
Worked example.$P(x) = x^3 - 2x^2 - 5x + 6$.
$P(1) = 1 - 2 - 5 + 6 = 0$, so $(x - 1)$ is a factor.
An even function 偶函数 satisfies $f(-x) = f(x)$; its graph is symmetric in the $y$-axis ($x^2$, $\cos x$).
An odd function 奇函数 satisfies $f(-x) = -f(x)$; its graph has rotational symmetry of order 2 about the origin ($x^3$, $\sin x$).
Most functions are neither. A function is self-inverse if $f(f(x)) = x$, such as $\dfrac{1}{x}$ and $\dfrac{x + 3}{2x - 1}$ (check: the numerator coefficient of $x$ equals minus the constant in the denominator).
Rational functions with quadratic parts
For $f(x) = \dfrac{ax + b}{cx^2 + dx + e}$ the horizontal asymptote is $y = 0$, and there are vertical asymptotes at real roots of the denominator that remain after cancelling common factors. A cancelled factor can instead leave a hole. For $f(x) = \dfrac{ax^2 + bx + c}{dx + e}$, divide to find an oblique asymptote:
so the oblique asymptote is $y = x + 2$, and the vertical asymptote is $x = -1$.
Graphs of related functions
Modulus graphs
$y = |f(x)|$: reflect the parts of $y = f(x)$ below the $x$-axis in the $x$-axis.
$y = f(|x|)$: keep the part for $x \ge 0$ and reflect it in the $y$-axis.
$y = \dfrac{1}{f(x)}$: roots of $f$ become vertical asymptotes; a local maximum at height $k \ne 0$ becomes a local minimum at height $\dfrac{1}{k}$; where $f(x) = \pm 1$ the graphs meet; the sign is unchanged.
$y = [f(x)]^2$: never negative; roots of $f$ become points where the graph touches the axis.
Solving inequalities
To solve $f(x) > g(x)$, find where the graphs intersect, sketch both, and read off where $y = f(x)$ is above $y = g(x)$.
Find the intersections, then read off where the V lies below the line: 0 < x < 2
Gradient $-3$: $y + 1 = -3(x - 2)$, so $3x + y - 5 = 0$.
The given line has gradient $\frac{5 - 1}{2 - 0} = 2$, so the perpendicular gradient is $-\frac{1}{2}$. $y - 3 = -\frac{1}{2}(x - 4)$, so $y = -\frac{1}{2}x + 5$.
Need $6 - 2x \ge 0$, so the domain is $x \le 3$; the range is $f(x) \ge 0$.
AHL.$x^4 - x^2$ is even; $x^3 + x$ is odd; $x^2 + x$ is neither, since $(-x)^2 + (-x) = x^2 - x$ is neither $f(x)$ nor $-f(x)$.
AHL. Vertical asymptote $x = 1$. Dividing, $\frac{x^2 + 1}{x - 1} = x + 1 + \frac{2}{x - 1}$, so the oblique asymptote is $y = x + 1$.
AHL. The sketch is $y = x^2 - 4$ with the part between $-2$ and $2$ reflected above the axis (peak at $(0, 4)$). $x^2 - 4 = 3$ gives $x = \pm\sqrt{7}$; $x^2 - 4 = -3$ gives $x = \pm 1$. Four solutions: $\pm 1$, $\pm\sqrt{7}$.
2.10
Exam tips
Always state the domain when you give an inverse function: it is the range of the original function.
Apply the inner function first in a composite: $f(g(x))$ means $g$ then $f$.
Use the discriminant for “how many roots” and “tangent” questions, and sketch for inequalities.
For rational functions, give asymptotes as equations, $x = \dots$ and $y = \dots$, not just numbers.
Check log equations for solutions that make an argument zero or negative, and reject them.
For transformations, follow one point and say “translation by the vector”, “vertical stretch, scale factor” and “reflection in the $x$-axis” in full.
On Paper 1, keep answers exact ($\ln$, surds, fractions); on calculator papers, give three significant figures.
Explore
Domains, inverses and composition
State the domain and range
Compare the model with the worked case and explain one change.
Explore
Exponentials, logarithms and modelling
For y=Ae^(kt), k is a proportional rate
Explain why the half-life depends on 0.2 and not on the initial amount 80.
Interactive lessons on this topic
Work through it step by step, with instant-check exercises.