Solving quadratics and completing the square

Solving quadratics and completing the square

Spec 1.5 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Rearrange to =0=0 before factorising: each factor can then be set to zero.
  • Formula: x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}.
  • Completing the square: x2+bx+c=(x+b2)2+c−b24x^2+bx+c=\left(x+\frac b2\right)^2+c-\frac{b^2}{4}.
  • For a≠1a\ne1, take out the factor aa from the x2x^2 and xx terms first.
  • Choose the method from the question: exact form, decimals, vertex or minimum.

Solving by factorising

Rearrange to =0=0, factorise, and set each factor to zero.

A quadratic equation ax2+bx+c=0ax^2+bx+c=0 can often be solved by factorising into two brackets, because if a product is zero then at least one factor is zero.

Always rearrange to =0=0 first: for x(x−3)=10x(x-3)=10 you cannot set each factor to 1010. A root is a solution of the equation.

−2−11234−10−5510xy(3, 0)y = 3x² − 7x − 6
The roots of 3x2−7x−6=03x^2-7x-6=0 are where the parabola crosses the xx-axis.

Worked example

Solve 3x2−7x−6=03x^2-7x-6=0.

Solve x(x−3)=10x(x-3)=10.

The quadratic formula

It always works, and is best when the quadratic does not factorise or a decimal is wanted.

You must know the quadratic formula. Use it when the quadratic does not factorise, or when the answer is needed as a decimal or surd. A calculator's equation solver can check your answers, but you still show the working.

−112345−4−2246xyx ≈ 0.27x ≈ 3.73y = x² − 4x + 1
y = x² − 4x + 1 has no integer roots. The formula gives x = 2 ± √3, about 0.27 and 3.73.
  • Quadratic formulax=−b±b2−4ac2ax=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a}

Worked example

Solve 3x2−7x−11=03x^2-7x-11=0 to 3 s.f.

Worked example

Solve x2+4x−1=0x^2+4x-1=0 exactly.

Solve x2−6x+4=0x^2-6x+4=0 exactly.

Completing the square, a = 1

Halve the coefficient of xx, square it inside the bracket, then subtract the same amount.

Completing the square rewrites a quadratic as a perfect square plus a constant. The completed square also shows the minimum value: (x−5)2≥0(x-5)^2\ge0, so x2−10x+7≥−18x^2-10x+7\ge-18, with equality at x=5x=5.

Solving gives exact answers, which is why the method is used when the answer is wanted in surd form.

  • Completing the squarex2+bx+c=(x+b2)2+c−b24x^2+bx+c=\left(x+\dfrac b2\right)^2+c-\dfrac{b^2}{4}
246810−20−15−10−55101520xy(5, -18)y = (x − 5)² − 18
The vertex (5,−18)(5,-18) is read straight from (x−5)2−18(x-5)^2-18.

Worked example

Complete the square for x2−10x+7x^2-10x+7 and solve x2−10x+7=0x^2-10x+7=0.

Write x2+6x+1x^2+6x+1 in the form (x+p)2+q(x+p)^2+q.

Completing the square, a not 1

Take out the factor aa from the x2x^2 and xx terms only, complete the square inside, then multiply out.

In general ax2+bx+c=a(x+b2a)2+(c−b24a)ax^2+bx+c=a\left(x+\frac{b}{2a}\right)^2+\left(c-\frac{b^2}{4a}\right). In practice take out the factor aa from the first two terms only, complete the square inside, then multiply the constant by aa.

The vertex of the graph is read straight from the result.

−7−6−5−4−3−2−11−15−10−5510xy(-3, -13)(0, 5)y = 2(x + 3)² − 13
y=2(x+3)2−13y=2(x+3)^2-13 has its vertex at (−3,−13)(-3,-13).

Worked example

Complete the square for 2x2+12x+52x^2+12x+5 and solve 2x2+12x+5=02x^2+12x+5=0.

Write 3x2−12x+53x^2-12x+5 in the form a(x+p)2+qa(x+p)^2+q.

Choosing a method

Match the method to what the question asks for.

If the question says "give your answer in exact form" or "by completing the square", do not use a decimal from the calculator. If it asks for 33 significant figures, use the formula and round only the final answers.

Read the command word: "solve" needs all values of xx; "find the minimum value" needs a yy-value. Keep unrounded values in your calculator.

  1. 1

    Read the command word

    solve, exact form, or decimal places?

  2. 2

    Exact form or "by completing the square"

    complete the square and keep surds

  3. 3

    Decimal or significant figures

    use the formula and round only the final answers

  4. 4

    Check

    substitute back or use the equation solver

Choosing a method from the wording of the question.

Factorising

  • Quickest when it works
  • Look for integer factors first

Formula

  • Always works
  • Best for decimals

Completing the square

  • Exact surd answers
  • Gives the vertex or minimum

What is the minimum value of x2−6x+11x^2-6x+11?

Quadratics in context

Form the equation, rearrange to =0=0, solve it, then reject answers that do not fit the context.

Many problems lead to a quadratic equation. A path of width tt round the outside of a field adds 2t2t to the length and to the width.

Both roots are not always valid: reject a negative length.

2w + 5 = 55 mw = 25 mABCD
The field: width w=25w=25 m, length 2w+5=552w+5=55 m.

Worked example

A field has width ww m and length (2w+5)(2w+5) m with area 13751375 m². Find ww. A path of width tt round the outside makes the total area 27502750 m². Find tt.

A rectangle has width ww and length w+3w+3 with area 7070. What is ww?

Try an exam question

(a) Write x2−6x+2x^2-6x+2 in the form (x+p)2+q(x+p)^2+q. (b) Hence solve x2−6x+2=0x^2-6x+2=0, giving your answers in exact form.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which of the following is f(x)f(x) in the form (x+p)2+q(x+p)^2+q?

1 mark, marked against the mark scheme

Revision notes