Skip to content

Quadratic functions and equations

A quadratic function has the form

f(x)=ax2+bx+c,a0.f(x)=ax^2+bx+c,\qquad a\ne 0.

Its graph is a parabola. A quadratic equation asks when a quadratic expression has a specified value, most often when

ax2+bx+c=0.ax^2+bx+c=0.

Quadratics connect algebra and graphs: solving f(x)=0f(x)=0 finds the xx coordinates where the graph y=f(x)y=f(x) meets the xx axis.

You should be able to expand and factorise algebraic expressions, solve GCSE quadratic equations, and interpret graphs of functions.

For y=ax2+bx+cy=ax^2+bx+c:

  • a>0a>0 gives a minimum and a parabola opening upwards.
  • a<0a<0 gives a maximum and a parabola opening downwards.
  • cc is the yy intercept because y=cy=c when x=0x=0.
  • The roots are the xx intercepts, if real roots exist.
  • The axis of symmetry is

x=b2a.x=-\frac{b}{2a}.

The turning point lies on this line. Substitute x=b/(2a)x=-b/(2a) into the function to find its yy coordinate.

Consider

f(x)=x26x+5.f(x)=x^2-6x+5.

Factorising gives

f(x)=(x1)(x5),f(x)=(x-1)(x-5),

so the roots are 11 and 55. The yy intercept is f(0)=5f(0)=5. The axis of symmetry is midway between the roots:

x=1+52=3.x=\frac{1+5}{2}=3.

At x=3x=3,

f(3)=918+5=4.f(3)=9-18+5=-4.

Therefore the turning point is (3,4)(3,-4). Since the coefficient of x2x^2 is positive, this is a minimum.

The completed form f(x)=(x3)24f(x)=(x-3)^2-4 reveals the same information immediately. See completing the square for the full method.

There are three main exact methods.

  1. Factorisation is usually fastest when integer or simple rational factors are visible.
  2. Completing the square is especially useful when the turning point, range or graph is also needed.
  3. The quadratic formula always works for a quadratic equation and is often best when factorisation is not obvious.

First rearrange the equation into the form ax2+bx+c=0ax^2+bx+c=0. A method applied before one side is zero will usually produce incorrect factors or coefficients.

The zero product property says

uv=0u=0 or v=0.uv=0\quad\Longrightarrow\quad u=0\text{ or }v=0.

Solve

x27x+12=0.x^2-7x+12=0.

Find two numbers whose product is 1212 and whose sum is 7-7:

x27x+12=(x3)(x4).x^2-7x+12=(x-3)(x-4).

Hence

(x3)(x4)=0,(x-3)(x-4)=0,

so

x=3orx=4.x=3\quad\text{or}\quad x=4.

Solve

6x2+x2=0.6x^2+x-2=0.

Since 6×(2)=126\times(-2)=-12, split the middle term using numbers with product 12-12 and sum 11:

6x2+4x3x2=0.6x^2+4x-3x-2=0.

Factorise by grouping:

2x(3x+2)(3x+2)=0,2x(3x+2)-(3x+2)=0, (3x+2)(2x1)=0. (3x+2)(2x-1)=0.

Therefore

x=23orx=12.x=-\frac23\quad\text{or}\quad x=\frac12.

For

ax2+bx+c=0,a0,ax^2+bx+c=0,\qquad a\ne0,

the solutions are

x=b±b24ac2a.\boxed{x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}}.

The whole of b±b24ac-b\pm\sqrt{b^2-4ac} is divided by 2a2a. Brackets are important when entering the formula into a calculator.

Solve 3x2+4x2=03x^2+4x-2=0 exactly.

Here a=3a=3, b=4b=4 and c=2c=-2:

x=4±424(3)(2)2(3)x=\frac{-4\pm\sqrt{4^2-4(3)(-2)}}{2(3)} =4±406=\frac{-4\pm\sqrt{40}}6 =4±2106=\frac{-4\pm2\sqrt{10}}6 =2±103.=\frac{-2\pm\sqrt{10}}3.

If decimal values are required, round only at the end. Premature rounding can make later calculations inaccurate.

Solve 2x2+7=9x2x^2+7=9x.

Write the equation with zero on one side:

2x29x+7=0.2x^2-9x+7=0.

It now factorises:

(2x7)(x1)=0.(2x-7)(x-1)=0.

Thus x=7/2x=7/2 or x=1x=1. The formula would give the same result, but factorisation is shorter.

The expression inside the square root is the discriminant:

Δ=b24ac.\Delta=b^2-4ac.

For a quadratic with real coefficients:

ConditionRootsGraphical meaning
Δ>0\Delta>0Two distinct real rootsThe parabola crosses the xx axis twice
Δ=0\Delta=0One repeated real rootThe parabola touches the xx axis at its turning point
Δ<0\Delta<0No real rootsThe parabola does not meet the xx axis

The discriminant describes the roots without requiring you to calculate them.

For 2x25x+4=02x^2-5x+4=0,

Δ=(5)24(2)(4)=2532=7.\Delta=(-5)^2-4(2)(4)=25-32=-7.

Therefore the equation has no real roots. Since a=2>0a=2>0, the whole parabola lies above the xx axis.

Worked example: find a parameter for a repeated root

Section titled “Worked example: find a parameter for a repeated root”

Find the values of kk for which

x2+kx+9=0x^2+kx+9=0

has a repeated root.

A repeated root requires Δ=0\Delta=0:

k24(1)(9)=0,k^2-4(1)(9)=0, k2=36,k^2=36, k=6ork=6.k=6\quad\text{or}\quad k=-6.

Both signs matter. The corresponding quadratics are (x+3)2(x+3)^2 and (x3)2(x-3)^2.

Words in a question translate into precise discriminant conditions:

  • two distinct real roots means Δ>0\Delta>0;
  • real roots means Δ0\Delta\geq0;
  • equal roots or one repeated root means Δ=0\Delta=0;
  • no real roots means Δ<0\Delta<0.

Worked example: a range of parameter values

Section titled “Worked example: a range of parameter values”

Find the values of pp for which

x2+2px+p+3=0x^2+2px+p+3=0

has two distinct real roots.

Here a=1a=1, b=2pb=2p and c=p+3c=p+3. Require Δ>0\Delta>0:

(2p)24(1)(p+3)>0,(2p)^2-4(1)(p+3)>0, 4p24p12>0,4p^2-4p-12>0, p2p3>0.p^2-p-3>0.

The boundary values solve p2p3=0p^2-p-3=0:

p=1±132.p=\frac{1\pm\sqrt{13}}2.

Because the quadratic in pp opens upwards, it is positive outside its roots. Hence

p<1132orp>1+132.\boxed{p<\frac{1-\sqrt{13}}2\quad\text{or}\quad p>\frac{1+\sqrt{13}}2}.

Do not replace >0>0 with 0\geq0: equality would produce a repeated root, not two distinct roots.

An equation can have quadratic structure even when its highest power of xx is not 22. Identify a repeated expression and substitute for it.

Solve

x45x2+4=0.x^4-5x^2+4=0.

Let u=x2u=x^2. Then

u25u+4=0,u^2-5u+4=0, (u1)(u4)=0. (u-1)(u-4)=0.

So u=1u=1 or u=4u=4. Restore u=x2u=x^2:

x2=1orx2=4.x^2=1\quad\text{or}\quad x^2=4.

Therefore

x=2,1,1,2.\boxed{x=-2,-1,1,2}.

Stopping at x2=1x^2=1 and x2=4x^2=4 would leave the original equation unsolved.

Solve

32x10(3x)+9=0.3^{2x}-10(3^x)+9=0.

Let u=3xu=3^x. Since 32x=(3x)23^{2x}=(3^x)^2, the equation becomes

u210u+9=0,u^2-10u+9=0, (u1)(u9)=0. (u-1)(u-9)=0.

Thus 3x=13^x=1 or 3x=93^x=9, giving

x=0orx=2.x=0\quad\text{or}\quad x=2.

Always check restrictions on the substituted quantity. Here u=3x>0u=3^x>0, so a negative solution for uu would have to be rejected.

Quadratic models occur when a quantity initially increases and later decreases, or when an area is formed from two changing linear dimensions. The algebraic roots may not all be meaningful in context.

A rectangle has perimeter 4040 m. If its length is xx m, its width is (20x)(20-x) m, so its area is

A(x)=x(20x)=x2+20x.A(x)=x(20-x)=-x^2+20x.

Complete the square:

A(x)=(x10)2+100.A(x)=-(x-10)^2+100.

Since (x10)20(x-10)^2\geq0, the maximum area is

100 m2,\boxed{100\text{ m}^2},

attained when x=10x=10. The domain is 0<x<200<x<20, because both side lengths must be positive.

The height of a ball above the ground is modelled by

h(t)=5t2+20t+1,h(t)=-5t^2+20t+1,

where tt is time in seconds. To find when it reaches the ground, solve h(t)=0h(t)=0:

t=20±2024(5)(1)2(5)t=\frac{-20\pm\sqrt{20^2-4(-5)(1)}}{2(-5)} =20±42010.=\frac{-20\pm\sqrt{420}}{-10}.

This gives approximately t=0.05t=-0.05 or t=4.05t=4.05. The negative value is algebraically valid but outside the model’s domain t0t\geq0. The ball reaches the ground after approximately 4.054.05 seconds.

For more on domains, assumptions and interpreting parameters, see functions in modelling.

Connections between roots and coefficients

Section titled “Connections between roots and coefficients”

If the roots of ax2+bx+c=0ax^2+bx+c=0 are α\alpha and β\beta, then

a(xα)(xβ)=ax2a(α+β)x+aαβ.a(x-\alpha)(x-\beta)=ax^2-a(\alpha+\beta)x+a\alpha\beta.

Comparing coefficients gives

α+β=ba,αβ=ca.\alpha+\beta=-\frac ba,\qquad \alpha\beta=\frac ca.

These relations can answer questions about roots without solving the equation.

Worked example: build a quadratic from its roots

Section titled “Worked example: build a quadratic from its roots”

Find a monic quadratic whose roots are 2+32+\sqrt3 and 232-\sqrt3.

Their sum and product are

α+β=4,\alpha+\beta=4, αβ=(2+3)(23)=1.\alpha\beta=(2+\sqrt3)(2-\sqrt3)=1.

Therefore the quadratic is

x24x+1=0.\boxed{x^2-4x+1=0}.

  • ax2+bx+cax^2+bx+c is quadratic only when a0a\ne0.
  • Factorisation solves an equation only after it has been set equal to zero.
  • From (xr)(xs)=0(x-r)(x-s)=0, the roots are rr and ss, not r-r and s-s.
  • In the formula, use the signed coefficient. For 3x25x+13x^2-5x+1, b=5b=-5.
  • Δ=0\Delta=0 gives one repeated root, not two distinct roots.
  • The axis of symmetry is x=b/(2a)x=-b/(2a), not a root in general.
  • A substituted variable must be converted back to xx, and restrictions must be checked.
  • A mathematically valid root may be impossible in a model because of time, length or domain restrictions.
  1. Solve 2x23x5=02x^2-3x-5=0.
  2. Find the turning point and axis of symmetry of y=2x2+8x+3y=2x^2+8x+3.
  3. Determine the number of real roots of 4x2+4x+3=04x^2+4x+3=0.
  4. Find the values of kk for which x2+(k1)x+k=0x^2+(k-1)x+k=0 has a repeated root.
  5. Solve x413x2+36=0x^4-13x^2+36=0.
  6. A rectangle has area 4848 cm2^2 and its length is 22 cm greater than its width. Find its dimensions.
  1. (2x5)(x+1)=0(2x-5)(x+1)=0, so x=5/2x=5/2 or x=1x=-1.
  2. 2x2+8x+3=2(x+2)252x^2+8x+3=2(x+2)^2-5, so the turning point is (2,5)(-2,-5) and the axis is x=2x=-2.
  3. Δ=424(4)(3)=32\Delta=4^2-4(4)(3)=-32, so there are no real roots.
  4. Δ=(k1)24k=k26k+1=0\Delta=(k-1)^2-4k=k^2-6k+1=0, so k=3±22k=3\pm2\sqrt2.
  5. Let u=x2u=x^2. Then (u4)(u9)=0(u-4)(u-9)=0, so x=3,2,2,3x=-3,-2,2,3.
  6. If the width is xx, then x(x+2)=48x(x+2)=48. Thus (x+8)(x6)=0(x+8)(x-6)=0. Rejecting the negative length gives width 66 cm and length 88 cm.