Skip to content

Quadratic equations: factorisation, formula and completing the square

A quadratic equation can be written in the form

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

where aa, bb and cc are constants and a0a\ne0. It may have two distinct real solutions, one repeated real solution, or no real solutions.

Solving quadratics is a foundation for A-level algebra, coordinate geometry, trigonometry, calculus and mechanics. The essential decisions are to put the equation equal to zero, recognise its structure, and choose an efficient method.

You should already be able to:

  • expand and factorise quadratic expressions;
  • solve linear equations;
  • simplify fractions and surds;
  • substitute values into expressions.

Review algebraic manipulation and factorisation, linear equations or indices, roots and surds if needed.

A solution, also called a root, is a value of xx that makes the equation true. For example, x=2x=2 and x=3x=3 solve

x25x+6=0x^2-5x+6=0

because

225(2)+6=0and325(3)+6=0.2^2-5(2)+6=0\qquad\text{and}\qquad3^2-5(3)+6=0.

A quadratic can have more than one solution, so continue until every branch has been considered.

Factorisation methods rely on comparing a product with zero. Rearrange all terms to one side before factorising.

Solve x2+4x=12x^2+4x=12.

Subtract 1212 from both sides:

x2+4x12=0.x^2+4x-12=0.

Now factorise:

(x+6)(x2)=0,x+6=0orx2=0,x=6orx=2.\begin{aligned} (x+6)(x-2)&=0,\\ x+6=0\quad&\text{or}\quad x-2=0,\\ x&=-6\quad\text{or}\quad x=2. \end{aligned}

Writing (x+6)(x2)=12(x+6)(x-2)=12 would not help. A product equal to 1212 can arise in many ways.

The zero-product property states

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

This is why a factorised quadratic can be solved by setting each factor equal to zero.

Solve x27x+10=0x^2-7x+10=0.

Find two numbers with product 1010 and sum 7-7. They are 5-5 and 2-2:

x27x+10=0,(x5)(x2)=0.\begin{aligned} x^2-7x+10&=0,\\ (x-5)(x-2)&=0. \end{aligned}

Therefore

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

Notice the sign reversal: x5=0x-5=0 gives x=5x=5.

Solve 6x2+x2=06x^2+x-2=0.

Since ac=6(2)=12ac=6(-2)=-12, find two numbers with product 12-12 and sum 11. Use 44 and 3-3 to split the middle term:

6x2+x2=0,6x2+4x3x2=0,2x(3x+2)(3x+2)=0,(2x1)(3x+2)=0.\begin{aligned} 6x^2+x-2&=0,\\ 6x^2+4x-3x-2&=0,\\ 2x(3x+2)-(3x+2)&=0,\\ (2x-1)(3x+2)&=0. \end{aligned}

Hence

2x1=0or3x+2=0,2x-1=0\quad\text{or}\quad3x+2=0,

so

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

Solve 5x2=20x5x^2=20x.

Bring all terms to one side and factorise fully:

5x220x=0,5x(x4)=0.\begin{aligned} 5x^2-20x&=0,\\ 5x(x-4)&=0. \end{aligned}

Thus x=0x=0 or x=4x=4.

Dividing 5x2=20x5x^2=20x by 5x5x produces x=4x=4, but silently loses x=0x=0 because division by zero is not valid. Move everything to one side and factorise when the unknown is a common factor.

Solve x26x+9=0x^2-6x+9=0.

x26x+9=(x3)2,(x3)2=0,x=3.\begin{aligned} x^2-6x+9&=(x-3)^2,\\ (x-3)^2&=0,\\ x&=3. \end{aligned}

Both identical factors give the same value. This is one repeated root, not two different solutions.

Solve by factorisation:

  1. x2+x20=0x^2+x-20=0;
  2. 3x211x4=03x^2-11x-4=0;
  3. 2x2+8x=02x^2+8x=0;
  4. 4x2=254x^2=25.
Answers
  1. (x+5)(x4)=0(x+5)(x-4)=0, so x=5x=-5 or x=4x=4.
  2. (3x+1)(x4)=0(3x+1)(x-4)=0, so x=13x=-\dfrac13 or x=4x=4.
  3. 2x(x+4)=02x(x+4)=0, so x=0x=0 or x=4x=-4.
  4. 4x225=(2x5)(2x+5)=04x^2-25=(2x-5)(2x+5)=0, so x=±52x=\pm\dfrac52.

For

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

the quadratic formula is

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

It works for every quadratic equation. Use it when factorisation is not apparent or when the question requests the formula.

A reliable routine is:

  1. rearrange into ax2+bx+c=0ax^2+bx+c=0;
  2. identify aa, bb and cc, including their signs;
  3. substitute using brackets;
  4. simplify exactly before giving any decimal approximation.

Solve 2x2+3x4=02x^2+3x-4=0, giving exact answers.

Here a=2a=2, b=3b=3 and c=4c=-4. Therefore

x=3±324(2)(4)2(2)=3±9+324=3±414.\begin{aligned} x&=\frac{-3\pm\sqrt{3^2-4(2)(-4)}}{2(2)}\\ &=\frac{-3\pm\sqrt{9+32}}{4}\\ &=\frac{-3\pm\sqrt{41}}{4}. \end{aligned}

The exact solutions are

x=3+414orx=3414.\boxed{x=\frac{-3+\sqrt{41}}4\quad\text{or}\quad x=\frac{-3-\sqrt{41}}4}.

To three significant figures, these are x0.851x\approx0.851 and x2.35x\approx-2.35.

Solve 52x2=3x5-2x^2=3x.

First rearrange with a positive x2x^2 coefficient:

2x2+3x5=0.2x^2+3x-5=0.

Now a=2a=2, b=3b=3 and c=5c=-5:

x=3±324(2)(5)4=3±494=3±74.\begin{aligned} x&=\frac{-3\pm\sqrt{3^2-4(2)(-5)}}{4}\\ &=\frac{-3\pm\sqrt{49}}4\\ &=\frac{-3\pm7}{4}. \end{aligned}

Thus x=1x=1 or x=52x=-\dfrac52. Although the formula works, the rearranged quadratic also factorises as (2x+5)(x1)(2x+5)(x-1).

Misconception: the denominator covers only the square root

Section titled “Misconception: the denominator covers only the square root”

In

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

the entire numerator is divided by 2a2a. Enter each branch into a calculator with outer brackets, for example

3+414=(3+41)÷4.\frac{-3+\sqrt{41}}4=(-3+\sqrt{41})\div4.

Also, b-b means the opposite of bb. If b=7b=-7, then b=7-b=7.

Keep a surd answer exact unless the question requests a decimal or the context requires one. Round only at the end. Premature rounding can make later calculations inaccurate.

Use the quadratic formula. Give exact answers where possible.

  1. x2+4x1=0x^2+4x-1=0;
  2. 3x22x2=03x^2-2x-2=0;
  3. 4x2+12x+9=04x^2+12x+9=0.
Answers
  1. x=4±202=2±5x=\dfrac{-4\pm\sqrt{20}}2=-2\pm\sqrt5.
  2. x=2±4+246=1±73x=\dfrac{2\pm\sqrt{4+24}}6=\dfrac{1\pm\sqrt7}{3}.
  3. x=12±1441448=32x=\dfrac{-12\pm\sqrt{144-144}}8=-\dfrac32. This is a repeated root.

Completing the square rewrites a quadratic in the form

(x+p)2=q,(x+p)^2=q,

which can be solved by taking square roots. Remember that if u2=qu^2=q and q>0q>0, then

u=±q.u=\pm\sqrt q.

Solve x2+6x7=0x^2+6x-7=0 by completing the square.

Half the coefficient of xx is 33:

x2+6x=(x+3)29.x^2+6x=(x+3)^2-9.

Therefore

(x+3)297=0,(x+3)2=16,x+3=±4,x=3±4.\begin{aligned} (x+3)^2-9-7&=0,\\ (x+3)^2&=16,\\ x+3&=\pm4,\\ x&=-3\pm4. \end{aligned}

Hence x=1x=1 or x=7x=-7.

Solve x28x+3=0x^2-8x+3=0.

x28x+3=0,(x4)216+3=0,(x4)2=13,x4=±13,x=4±13.\begin{aligned} x^2-8x+3&=0,\\ (x-4)^2-16+3&=0,\\ (x-4)^2&=13,\\ x-4&=\pm\sqrt{13},\\ x&=4\pm\sqrt{13}. \end{aligned}

Misconception: forgetting both square roots

Section titled “Misconception: forgetting both square roots”

From (x4)2=13(x-4)^2=13, writing only x4=13x-4=\sqrt{13} loses a solution. Both 13\sqrt{13} and 13-\sqrt{13} square to 1313.

The method and its connection with turning points are developed further in completing the square.

Consider

x2+2x+5=0.x^2+2x+5=0.

Completing the square gives

(x+1)2+4=0,(x+1)^2+4=0,

so

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

No real number has a negative square. Therefore the equation has no real solutions. At this stage, do not treat a calculator error from 4\sqrt{-4} as a numerical accident. The full A-level lesson uses the discriminant to classify roots efficiently.

Use the form of the equation to guide you:

  • Factorise when integer or simple rational factors are visible. This is usually quickest.
  • Use the quadratic formula when factorisation is unclear. It is the dependable general method.
  • Complete the square when requested, when the expression is close to a square, or when the completed form will be useful later.
  • Use square roots directly for equations such as (x2)2=11(x-2)^2=11 or x2=7x^2=7.

For example,

3(x1)2=153(x-1)^2=15

does not need expansion:

(x1)2=5,x1=±5,x=1±5.\begin{aligned} (x-1)^2&=5,\\ x-1&=\pm\sqrt5,\\ x&=1\pm\sqrt5. \end{aligned}

Worked example 9: dimensions of a rectangle

Section titled “Worked example 9: dimensions of a rectangle”

A rectangle is 33 cm longer than it is wide and has area 54 cm254\text{ cm}^2. Find its dimensions.

Let the width be xx cm, so the length is (x+3)(x+3) cm. Then

x(x+3)=54.x(x+3)=54.

Rearrange and solve:

x2+3x54=0,(x+9)(x6)=0.\begin{aligned} x^2+3x-54&=0,\\ (x+9)(x-6)&=0. \end{aligned}

Thus x=9x=-9 or x=6x=6. A physical length must be positive, so reject x=9x=-9 in this context. The rectangle is 66 cm by 99 cm.

The negative value is still an algebraic root. It is rejected because it does not satisfy the model’s domain.

The product of two consecutive positive integers is 132132. Find the integers.

Let the smaller integer be nn. Then

n(n+1)=132,n(n+1)=132,

so

n2+n132=0,(n+12)(n11)=0.\begin{aligned} n^2+n-132&=0,\\ (n+12)(n-11)&=0. \end{aligned}

Therefore n=12n=-12 or n=11n=11. The condition says positive integers, so n=11n=11. The integers are 1111 and 1212.

Substitute each answer into the original equation, especially after rearranging or modelling.

For 2x2+3x5=02x^2+3x-5=0, check x=52x=-\dfrac52:

2(52)2+3(52)5=2521525=0.2\left(-\frac52\right)^2+3\left(-\frac52\right)-5 =\frac{25}{2}-\frac{15}{2}-5 =0.

A quick numerical check can reveal a sign or transcription error. It does not replace a valid derivation.

  1. Solve x2=5xx^2=5x.
  2. Solve 2x27x+3=02x^2-7x+3=0 by factorisation.
  3. Solve x22x6=0x^2-2x-6=0, giving exact answers.
  4. Solve (2x+1)2=12(2x+1)^2=12, giving exact answers.
  5. A rectangle has width xx metres, length (x+5)(x+5) metres and area 24 m224\text{ m}^2. Find its dimensions.
  6. Explain why x24x+8=0x^2-4x+8=0 has no real solutions.
Answers
  1. x25x=x(x5)=0x^2-5x=x(x-5)=0, so x=0x=0 or x=5x=5.
  2. (2x1)(x3)=0(2x-1)(x-3)=0, so x=12x=\dfrac12 or x=3x=3.
  3. By the formula, x=2±4+242=1±7x=\dfrac{2\pm\sqrt{4+24}}2=1\pm\sqrt7.
  4. 2x+1=±12=±232x+1=\pm\sqrt{12}=\pm2\sqrt3, so x=1±232x=\dfrac{-1\pm2\sqrt3}{2}.
  5. x(x+5)=24x(x+5)=24 gives (x+8)(x3)=0(x+8)(x-3)=0. Reject x=8x=-8, so the dimensions are 33 m by 88 m.
  6. x24x+8=(x2)2+4x^2-4x+8=(x-2)^2+4. Setting this equal to zero would require (x2)2=4(x-2)^2=-4, which is impossible for real xx.
  • Rearrange a quadratic into ax2+bx+c=0ax^2+bx+c=0 before choosing a method.
  • Factorisation works because a product equal to zero must have at least one zero factor.
  • Never divide by an expression containing the unknown unless you have separately considered when that expression is zero.
  • In the quadratic formula, copy signs carefully and divide the whole numerator by 2a2a.
  • Taking a square root normally creates two branches, shown by ±\pm.
  • Keep exact surd answers until a decimal approximation is requested.
  • Check answers in the original equation and reject roots only when the context makes them inadmissible.

Continue to quadratic functions and equations for quadratic graphs, the discriminant, equations quadratic in another expression, parameters and modelling. Then study completing the square and linear and quadratic inequalities.