Skip to content

Algebra and functions

AQA A-Level MathematicsTopic 2

Video lesson for this topic Open the video page
8:19

Algebra and functions

Section B is the algebra every other topic leans on. The completed square reads off a vertex. The discriminant counts real roots before you solve anything. The…

English narration · English and 中文 subtitles you can switch

2.1

Scope and prerequisites

AQA A-level Mathematics 7357, section B (Algebra and functions), version 1.3 (first assessment 2018). Original teaching notes.

Prerequisites: GCSE algebra: indices, surds, factorising and solving quadratics.

These are original teaching examples, not official AQA material.

Vocabulary Train
English
function/ˈfʌŋkʃn/
completing the square/kəmˈpliːtɪŋ ðə skweə/
2.2

Algebra and functions 函数

Exact or drifting?

Two students solve $x^2-4x+1=0$. One completes the square 配方法 and writes $x=2\pm\sqrt3$. The other uses a calculator, rounds $\sqrt3$ to $1.7$ early, and gets $x=3.7$ or $0.3$. Later, when the roots are used again, the rounded answers drift further away. The first answer is exact and can be checked. This section gives you the exact tools of algebra, and the language of functions that the rest of the course uses.

A number line with the exact roots 2 minus root 3, 0.2679, and 2 plus root 3, 3.7320, beside the early-rounded values 0.3 and 3.7
Exact roots against early rounding
Tool Key fact
Laws of indices $a^m\times a^n=a^{m+n}$, $a^{-n}=\frac1{a^n}$, $a^{\frac1n}=\sqrt[n]a$
Surds $\sqrt{ab}=\sqrt a\sqrt b$; rationalise with the conjugate
Completed square $a(x-h)^2+k$ has vertex $(h,k)$
Discriminant 判别式 $b^2-4ac$ counts the real roots
Factor theorem 因式定理 $f(a)=0\Leftrightarrow(x-a)$ is a factor
Function one output for each input in the domain 定义域
Inverse function 反函数 exists only if one-to-one; its graph is the reflection in $y=x$

Indices and surds

The laws of indices hold for any rational powers:

$$a^m\times a^n=a^{m+n},\qquad a^m\div a^n=a^{m-n},\qquad (a^m)^n=a^{mn},$$
$$a^0=1,\qquad a^{-n}=\frac1{a^n},\qquad a^{\frac mn}=\left(\sqrt[n]a\right)^m.$$

Worked example. Evaluate $8^{-\frac23}$. Take the root first, so the numbers stay small: $8^{\frac13}=2$, then $2^2=4$, and the negative power gives $8^{-\frac23}=\frac14$.

A surd 根式 is an irrational root, such as $\sqrt3$. Keep surds exact until the last line.

  • Simplify by taking out square factors: $\sqrt{48}=\sqrt{16\times3}=4\sqrt3$.
  • To rationalise the denominator 分母有理化, multiply top and bottom by the conjugate 共轭: $(a-\sqrt b)(a+\sqrt b)=a^2-b$, so the surd disappears.

Worked example. Rationalise $\dfrac{6}{3-\sqrt3}$.

$$\frac{6}{3-\sqrt3}\times\frac{3+\sqrt3}{3+\sqrt3}=\frac{6(3+\sqrt3)}{9-3}=\frac{6(3+\sqrt3)}{6}=3+\sqrt3.$$

Common mistake. $\sqrt{a+b}\ne\sqrt a+\sqrt b$. For example $\sqrt{9+16}=5$, but $\sqrt9+\sqrt{16}=7$.

Quadratics: the completed square

Any quadratic can be written as $a(x-h)^2+k$. The vertex 顶点 (turning point) is $(h,k)$, and the line of symmetry is $x=h$.

Worked example. Write $x^2-4x+1$ in completed-square form, and solve $x^2-4x+1=0$.

Half of $-4$ is $-2$, so $x^2-4x=(x-2)^2-4$. Then

$$x^2-4x+1=(x-2)^2-4+1=(x-2)^2-3.$$

The vertex is $(2,-3)$. To solve, $(x-2)^2=3$, so $x-2=\pm\sqrt3$ and $x=2\pm\sqrt3$.

When $a\ne1$, take $a$ out of the $x$ terms first: $2x^2+12x+7=2(x^2+6x)+7=2\big((x+3)^2-9\big)+7=2(x+3)^2-11$. The vertex is $(-3,-11)$.

Left: y = (x − 2)² − 1 with vertex (2, −1). Right: f(x) = x² for x ≥ 0 and its inverse √x reflected in y = x
Left: a completed square shows the vertex. Right: a one-to-one function and its inverse, mirror images in y = x

The discriminant

For $ax^2+bx+c=0$ the discriminant is $\Delta=b^2-4ac$. It tells you how many real roots there are before you solve.

Three parabolas against the x-axis: two crossings when the discriminant is positive, one touch when zero, none when negative.
The discriminant counts intersections with the x-axis.
$\Delta$ Real roots The graph
$>0$ two distinct crosses the $x$-axis twice
$=0$ one repeated touches the $x$-axis
$<0$ none misses the $x$-axis

Worked example: a range of $k$. $x^2+kx+9=0$ has two distinct real roots. Find the possible values of $k$.

Here $a=1$, $b=k$, $c=9$. Two distinct roots need $\Delta>0$:

$$k^2-4(1)(9)>0\;\Rightarrow\;k^2>36.$$

The critical values are $k=\pm6$. $k^2-36$ is a U-shaped parabola in $k$, which is positive outside its roots. So $k<-6$ or $k>6$.

Common mistake. Writing $k>\pm6$, or $-6<k<6$. Sketch $y=k^2-36$ and read off where it is above the axis.

Simultaneous equations

When one equation is linear and one is quadratic, make one letter the subject of the linear equation and substitute 代入 into the other.

Worked example: a line meets a circle. Solve $y=x+1$ and $x^2+y^2=25$.

$$x^2+(x+1)^2=25\;\Rightarrow\;2x^2+2x-24=0\;\Rightarrow\;x^2+x-12=0\;\Rightarrow\;(x+4)(x-3)=0.$$

So $x=3$ or $x=-4$. Use the linear equation to get each $y$: $(3,4)$ and $(-4,-3)$. The line meets the circle at two points. If the final quadratic had $\Delta=0$, the line would be a tangent 切线; if $\Delta<0$, the line would miss the circle.

Common mistake. Mixing up the pairs. Each $x$ goes with its own $y$.

Inequalities

For a linear inequality, solve as for an equation. But when you multiply or divide by a negative number, turn the sign round: $-2x>6\Rightarrow x<-3$.

For a quadratic inequality, find the critical values 临界值, sketch, then read off the region.

Worked example. Solve $x^2-x-6<0$.

$x^2-x-6=(x-3)(x+2)$, so the critical values are $-2$ and $3$. The graph is a U shape, and it is below the axis between the roots. So $-2<x<3$.

  • “$>0$” for a U-shaped graph gives two separate parts: $x<-2$ or $x>3$.
  • Inequalities in two variables, such as $y>x^2-1$, describe a region 区域 of the plane. Draw a dashed boundary for $<$ or $>$ and a solid one for $\le$ or $\ge$.

Polynomials and the factor theorem

The factor theorem says $f(a)=0$ exactly when $(x-a)$ is a factor of $f(x)$. To find a first factor, try divisors of the constant term.

Worked example. Factorise $f(x)=x^3-2x^2-5x+6$.

$f(1)=1-2-5+6=0$, so $(x-1)$ is a factor. Divide (or compare coefficients) to get the quadratic factor:

$$f(x)=(x-1)(x^2-x-6)=(x-1)(x-3)(x+2).$$

Algebraic division 多项式除法 works like long division. Divide the leading terms, multiply back, subtract and repeat. AQA asks only for division by $(ax+b)$.

Graphs of functions

You should know the shapes of these graphs:

  • a cubic $y=(x-a)(x-b)(x-c)$ crosses the $x$-axis at $a$, $b$ and $c$; a squared factor such as $(x-a)^2$ means the graph touches the axis there;
  • $y=\frac ax$ and $y=\frac a{x^2}$ have asymptotes 渐近线 $x=0$ and $y=0$; the graph gets close to each line but never meets it;
  • direct proportion 正比例 $y=kx$ is a line through the origin; inverse proportion 反比例 $y=\frac kx$ is a curve with the axes as asymptotes.

Modulus

The modulus 绝对值 $|x|$ is the size of $x$ without its sign. To draw $y=|f(x)|$, draw $y=f(x)$ and reflect every part below the $x$-axis up above it.

Worked example. Solve $|2x-3|=x$.

The modulus gives two branches: $2x-3=x$ gives $x=3$; and $-(2x-3)=x$ gives $x=1$. Check both: $|3|=3$ ✓ and $|-1|=1$ ✓. Draw $y=|2x-3|$ and $y=x$ to see the two crossings.

Common mistake. Forgetting to check. $|x|$ is never negative, so a root that makes the right-hand side negative must be rejected.

Partial fractions

Split a fraction with a factorised denominator into simpler fractions, one per linear factor. You need this for some integrals and for the binomial expansion.

Worked example. Express $\dfrac{5x+1}{(x-1)(x+2)}$ in partial fractions.

$$\frac{5x+1}{(x-1)(x+2)}\equiv\frac A{x-1}+\frac B{x+2}\;\Rightarrow\;5x+1\equiv A(x+2)+B(x-1).$$

Put $x=1$: $6=3A$, so $A=2$. Put $x=-2$: $-9=-3B$, so $B=3$. The answer is $\dfrac2{x-1}+\dfrac3{x+2}$. Check at $x=0$: left side $-\frac12$; right side $-2+\frac32=-\frac12$ ✓.

For a repeated factor, use three fractions: $\dfrac{A}{x-1}+\dfrac{B}{x+2}+\dfrac{C}{(x+2)^2}$.

Functions: domain, range, composite and inverse

A function gives exactly one output for each input. The domain is the set of inputs; the range 值域 is the set of outputs.

Matryoshka dolls nesting inside one another
Nesting represents the order: the inner function acts before the outer function.
Function machines: fg of 3 squares to 9 then doubles and adds 1 to give 19; gf of 3 gives 7 then squares to 49
fg and gf apply the functions in different orders
Many-to-one One-to-one
Example $f(x)=x^2$, $x\in\mathbb R$ $f(x)=x^2$, $x\ge0$
Range $f(x)\ge0$ $f(x)\ge0$
Inverse? no: $f(2)=f(-2)=4$ yes

A composite function 复合函数 $fg(x)$ means $f(g(x))$: apply $g$ first. With $f(x)=2x+1$ and $g(x)=x^2$:

  • $fg(3)=f(9)=19$, and $fg(x)=2x^2+1$;
  • $gf(3)=g(7)=49$, and $gf(x)=(2x+1)^2$.

So $fg$ and $gf$ are usually different.

Worked example: an inverse. $f(x)=x^2-4$, $x\ge0$. Find $f^{-1}(x)$ and its domain.

Write $y=x^2-4$, so $x^2=y+4$ and $x=\sqrt{y+4}$ (positive, because $x\ge0$). Swap the letters: $f^{-1}(x)=\sqrt{x+4}$. The range of $f$ is $f(x)\ge-4$, so the domain of $f^{-1}$ is $x\ge-4$.

The domain of $f^{-1}$ is the range of $f$, and the range of $f^{-1}$ is the domain of $f$.

Transformations of graphs

A change inside the bracket acts on $x$, the opposite way to how it looks. A change outside acts on $y$, as written.

Graph Transformation
$y=f(x)+a$ translation 平移 $\binom0a$
$y=f(x+a)$ translation $\binom{-a}0$
$y=af(x)$ stretch 伸缩 parallel to the $y$-axis, scale factor $a$
$y=f(ax)$ stretch parallel to the $x$-axis, scale factor $\frac1a$
$y=-f(x)$ reflection 反射 in the $x$-axis
$y=f(-x)$ reflection in the $y$-axis

Worked example. Describe how $y=x^2$ becomes $y=2(x-1)^2-3$.

Do one change at a time: translate right 1, stretch parallel to the $y$-axis by factor 2, then translate down 3. Follow the vertex: $(0,0)\to(1,0)\to(1,0)\to(1,-3)$.

Left: y = x², y = (x − 1)² and y = 2(x − 1)² − 3, with the vertex moving right 1 then down to (1, −3). Right: y = |2x − 3|, with the part below the x-axis reflected up, crossing y = x at (1, 1) and (3, 3)
Translate, stretch, translate: the vertex goes (0, 0) → (1, 0) → (1, −3); the modulus graph meets y = x twice, so |2x − 3| = x has two roots

Trap: squaring can add roots

Worked example. Solve $\sqrt{x+3}=x-3$.

Square: $x+3=x^2-6x+9$, so $x^2-7x+6=0$ and $x=1$ or $x=6$. Now check in the original. $x=1$: $\sqrt4=2$, but $1-3=-2$: reject. $x=6$: $\sqrt9=3=6-3$: accept. Only $x=6$ works. Squaring is a one-way step ($\Rightarrow$, not $\Leftrightarrow$), so it can add false roots.

Practice

  1. Simplify $\dfrac{\sqrt{75}+\sqrt{12}}{\sqrt3}$.
  2. Write $x^2+6x+2$ as $(x+p)^2+q$ and state the vertex.
  3. $2x^2+4x+k=0$ has no real roots. Find the range of $k$.
  4. Solve $x^2-5x+4\ge0$.
  5. Show that $(x+2)$ is a factor of $x^3+x^2-4x-4$, and factorise it fully.
  6. $f(x)=3x-1$ and $g(x)=\dfrac1x$, $x\ne0$. Find $gf(x)$ and $f^{-1}(x)$.
  7. Express $\dfrac{x+7}{(x-1)(x+3)}$ in partial fractions.

Answers.

  1. $\dfrac{5\sqrt3+2\sqrt3}{\sqrt3}=7$.
  2. $(x+3)^2-7$; vertex $(-3,-7)$.
  3. $16-8k<0$, so $k>2$.
  4. $(x-1)(x-4)\ge0$: $x\le1$ or $x\ge4$.
  5. $f(-2)=-8+4+8-4=0$; $(x+2)(x^2-x-2)=(x+2)(x-2)(x+1)$.
  6. $gf(x)=\dfrac1{3x-1}$, $x\ne\frac13$; $f^{-1}(x)=\dfrac{x+1}3$.
  7. $x+7\equiv A(x+3)+B(x-1)$: $x=1$ gives $A=2$; $x=-3$ gives $B=-1$. So $\dfrac2{x-1}-\dfrac1{x+3}$.

Key points

  • Keep surds and roots exact; rationalise with the conjugate.
  • The completed square gives the vertex; the discriminant counts the roots.
  • Solve inequalities by sketching the graph and reading off the region.
  • $f(a)=0$ exactly when $(x-a)$ is a factor.
  • $fg$ means “do $g$ first”. An inverse needs a one-to-one function, and it swaps domain and range.
  • Inside the bracket acts on $x$ the opposite way; outside acts on $y$ as written.
  • After squaring, check every root in the original equation.
Explore

Domains, inverses and composition

State the domain and range

Compare the model with the worked case and explain one change.

Vocabulary Train
English
discriminant/dɪˈskrɪmɪnənt/
factor theorem/ˈfæktə ˈθɪərəm/
domain/dəˈmeɪn/
inverse function/ɪnˈvɜːs ˈfʌŋkʃn/
surd/sɜːd/
rationalise the denominator/ˈræʃənəlaɪz ðə dɪˈnɒmɪneɪtə/
conjugate/ˈkɒndʒuːɡeɪt/
vertex/ˈvɜːteks/
substitute/ˈsʌbstɪtjuːt/
tangent/ˈtændʒənt/
critical values/ˈkrɪtɪkl ˈvæljuːz/
region/ˈriːdʒn/
algebraic division/ˌældʒɪˈbreɪɪk dɪˈvɪʒn/
asymptotes/ˈæsɪmptəʊts/
direct proportion/daɪˈrekt prəˈpɔːʃn/
inverse proportion/ɪnˈvɜːs prəˈpɔːʃn/
modulus/ˈmɒdjʊləs/
range/reɪndʒ/
composite function/ˈkɒmpəzɪt ˈfʌŋkʃn/
translation/trænˈsleɪʃn/
stretch/stretʃ/
reflection/rɪˈflekʃn/

Interactive lessons on this topic

Work through it step by step, with instant-check exercises.

More topics in AQA A-Level Mathematics

Log in or create account

IGCSE, A-Level & AP