Pure · Algebra & Functions · Year 1

Quadratic Functions

The squared term bends the line into a parabola — and completing the square is the one technique that unlocks its roots, its vertex and its shape all at once.

10 min read 3 worked examples

A quadratic is any expression of the form $ax^2+bx+c$, where $a\neq 0$. That squared term is everything: it's what bends the graph into a smooth U-shape called a parabola, and it's why a quadratic can have two solutions, one, or none. Linear equations march in a straight line; the moment you square the variable, the graph turns, and turning is where all the interesting behaviour lives.

There are three questions we ask of every quadratic, and they're really the same question asked three ways: Where does it cross the $x$-axis? (its roots), where is its lowest or highest point? (its vertex), and what shape and position does its graph take? Master the algebra and all three answers fall out together.

Why completing the square is the master key

You can solve quadratics by factorising, by formula, or by completing the square — but only completing the square tells you everything at once. Rewriting $ax^2+bx+c$ as $a(x+p)^2+q$ hands you the vertex $(-p,\,q)$ directly, proves whether the expression is always positive, and leads to the quadratic formula itself. The other methods answer one question; completing the square answers all of them. That's why it's worth the effort to make it automatic.

The three tools, and when to reach for each

Factorising — fastest when the roots are whole numbers. Write $ax^2+bx+c=(x-\alpha)(x-\beta)$; the roots are $\alpha$ and $\beta$.
Completing the square — rewrite as $(x+p)^2+q$. Use it for the vertex, for "always positive" proofs, or when factorising fails.
The quadratic formula — $x=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a}$ — always works, and is the fallback when the roots aren't nice.

The quantity under the root, $b^2-4ac$, is the discriminant. It quietly decides how many real roots exist before you solve anything: positive means two, zero means one (a repeated root), negative means none.

Strategy — read the discriminant first

Before diving into a solve, glance at $b^2-4ac$. If it's negative, the parabola never touches the $x$-axis and there are no real roots — stop before wasting time hunting for factors that don't exist. If it's a perfect square, the quadratic factorises nicely and you should factorise rather than reach for the formula.

Three parabolas side by side: the first crosses the x-axis at two points, the second touches it at exactly one point, and the third never touches it.
The three shapes $y=ax^2+bx+c$ can take: two roots when $b^2-4ac>0$, one repeated root when $b^2-4ac=0$, and no real roots when $b^2-4ac<0$.

Worked example 1

Solve by factorising
Solve $2x^2 + 5x - 3 = 0$.
MethodFactorise, then set each bracket to zero
1
Multiply $a\times c = 2\times(-3)=-6$. We need two numbers multiplying to $-6$ and adding to $b=5$: those are $6$ and $-1$.
The 'ac method' for a leading coefficient $\neq 1$.
2
Split the middle term: $2x^2 + 6x - x - 3 = 0$.
Rewrite $5x$ as $6x-x$.
3
Factor in pairs: $2x(x+3) -1(x+3) = 0$, giving $(2x-1)(x+3)=0$.
Group and take out common factors.
4
Set each bracket to zero: $2x-1=0 \Rightarrow x=\tfrac12$, and $x+3=0 \Rightarrow x=-3$.
A product is zero only if a factor is zero.
5
The solutions are $x=\tfrac12$ and $x=-3$.
Two real roots.
▪ solved
Examiner's eye

The "product is zero" step is the logical heart of factorising — it's why factorising solves anything. $(2x-1)(x+3)=0$ forces one bracket to vanish; there's no other way for a product to equal zero. State both roots clearly; a lost solution is a lost mark.

Worked example 2

Complete the square · and read off the vertex
Express $x^2 - 6x + 11$ in the form $(x+p)^2 + q$, and hence state the minimum value of the expression and where it occurs.
MethodHalve the middle coefficient, then fix the constant
1
Halve the coefficient of $x$: half of $-6$ is $-3$. This gives the bracket $(x-3)^2$.
The bracket always uses half the $x$-coefficient.
2
But $(x-3)^2 = x^2 -6x + 9$, which is $9$ too big in the constant — so subtract $9$ to compensate.
Completing the square must not change the value.
3
So $x^2-6x+11 = (x-3)^2 - 9 + 11 = (x-3)^2 + 2$.
Here $p=-3$ and $q=2$.
4
Since $(x-3)^2 \geq 0$ always, the smallest the expression can be is $0+2=2$, when $x=3$.
A square is never negative.
5
Minimum value $2$, occurring at $x=3$ — so the vertex is $(3,\,2)$.
Read straight from the completed-square form.
▪ solved
The key insight

The completed-square form $(x-3)^2+2$ is the graph's fingerprint: the vertex sits at $(3,2)$, and because $q=2>0$ with an upward parabola, the curve never dips below the $x$-axis — proving the expression is always positive, with no roots. One line of algebra told us the position, the shape, and the number of roots simultaneously.

Worked example 3

Use the discriminant · a problem with an unknown constant
The equation $x^2 + kx + 9 = 0$ has exactly one (repeated) real root. Find the possible values of the constant $k$.

"Exactly one repeated root" is a statement about the discriminant: it must equal zero. This is the discriminant working as a tool, not just a checker.

MethodSet the discriminant to zero and solve for k
1
Identify $a=1$, $b=k$, $c=9$.
Match against $ax^2+bx+c$.
2
One repeated root means $b^2-4ac=0$, so $k^2 - 4(1)(9) = 0$.
The condition for a single repeated root.
3
$k^2 - 36 = 0 \Rightarrow k^2 = 36$.
Rearrange.
4
$k = \pm 6$.
Both signs are valid solutions.
5
So $k=6$ or $k=-6$.
Two values of $k$ each give a repeated root.
▪ solved
Look deeper — what the two answers mean

Both $k=6$ and $k=-6$ make the parabola just touch the $x$-axis at a single point (its vertex sits exactly on the axis). Geometrically, we've found the two positions of the curve where it grazes the axis rather than crossing it or missing it. The discriminant turned a picture ("touches once") into an equation ("$=0$") — that translation is the whole skill in these questions.

Common mistake

When completing the square with a leading coefficient, e.g. $2x^2+8x+1$, you must factor the $2$ out of the $x$-terms first: $2(x^2+4x)+1$, then complete the square inside. Forgetting to factor out $a$ before halving is the single most common error — you can't halve $8$ while the $2$ is still attached to the $x^2$.

Check yourself

Express $2x^2 + 12x + 23$ in the form $a(x+p)^2 + q$, and hence write down the minimum value.
(Hint: factor the 2 out of the $x$-terms before completing the square.)

Method
1
Factor 2 from the $x$-terms: $2(x^2+6x)+23$.
2
Complete the square inside: $x^2+6x=(x+3)^2-9$.
3
So $2\big[(x+3)^2-9\big]+23 = 2(x+3)^2 -18 + 23 = 2(x+3)^2 + 5$.
Multiply the $-9$ by the 2 outside.
4
Minimum value is $5$, at $x=-3$.
Since $2(x+3)^2\geq0$.
▪ solved

The subtlety is step 3: the $-9$ sits inside the bracket the 2 multiplies, so it becomes $-18$ when the 2 is distributed. Miss that and the constant comes out wrong.