A11, A18 - Completing the square and the quadratic formula

A11, A18 - Completing the square and the quadratic formula

A11 links a quadratic's algebra to its turning point. A18 gives you ways to solve it even when its factors are awkward. You will complete the square, use the quadratic formula, choose a method, and handle parameters and algebraic fractions.

Completing the square and finding a turning point (Higher)

How can you find the lowest point of y=x2+6x+2y=x^2+6x+2 without plotting a table of values? At x=0x=0, the output is 2. At x=−3x=-3, it is −7-7. Completing the square will show why no input gives a lower output.

You already know

Expanding (x+p)2(x+p)^2 gives x2+2px+p2x^2+2px+p^2. A real number squared is never negative.

To produce the middle term 6x6x, use p=3p=3. The square then includes 9, so subtract 9 to keep the expression unchanged. This is an identity: it holds for every input.

Worked example 1: reveal the minimum

Question. Complete the square for x2+6x+2x^2+6x+2 and find the turning point.

Plan. Halve the middle coefficient, correct the constant, then make the square zero.

x2+6x+2=(x+3)2−9+2correct the added 9=(x+3)2−7collect constantsx+3=0⇒x=−3smallest square is 0\begin{aligned} x^2+6x+2&=(x+3)^2-9+2 &&\text{correct the added 9}\\ &=(x+3)^2-7 &&\text{collect constants}\\ x+3&=0\quad\Rightarrow\quad x=-3 &&\text{smallest square is 0} \end{aligned}

Why this step? Writing one square exposes a lower bound: adding a non-negative square cannot make −7-7 smaller.

Answer. The minimum is (−3,−7)(-3,-7), with symmetry line x=−3x=-3.

Check. Expanding gives x2+6x+9−7=x2+6x+2x^2+6x+9-7=x^2+6x+2.

The graph makes the same point visually. Inputs equally far from −3-3 have equal squares, so equal heights.

[DIAGRAM: asset_name: Turning point from completed square form; asset_slug: 1ma1_m24_square; caption: The square is smallest at x equals minus 3, giving the minimum (-3,-7).; description: A graph of y equals (x plus 3) squared minus 7 shows its minimum (-3,-7), symmetry line x equals minus 3 and symmetric points (-5,-3) and (-1,-3).]
The square is smallest at x equals minus 3, giving the minimum (-3,-7).

In the next example, only the sign of the middle term changes. Watch how the horizontal coordinate changes while the minimum height stays the same.

Worked example 2: a negative middle coefficient

Question. Complete the square for x2−6x+2x^2-6x+2 and find its turning point.

Plan. Keep the sign when halving the middle coefficient.

x2−6x+2=(x−3)2−9+2half of −6 is −3=(x−3)2−7collect constantsx−3=0⇒x=3set the square to 0\begin{aligned} x^2-6x+2&=(x-3)^2-9+2 &&\text{half of }-6\text{ is }-3\\ &=(x-3)^2-7 &&\text{collect constants}\\ x-3&=0\quad\Rightarrow\quad x=3 &&\text{set the square to 0} \end{aligned}

Why this step? The turning-point input makes the bracket zero; it is not simply the signed number written inside it.

Answer. The minimum is (3,−7)(3,-7).

Check. At x=3x=3, the original output is 9−18+2=−79-18+2=-7.

An odd middle coefficient works too: x2+3x+1=(x+32)2−54x^2+3x+1=(x+\frac32)^2-\frac54. With a leading coefficient, factor it from the first two terms first:

2x2+8x+3=2(x2+4x)+3=2[(x+2)2−4]+3=2(x+2)2−5\begin{aligned} 2x^2+8x+3&=2(x^2+4x)+3\\ &=2[(x+2)^2-4]+3\\ &=2(x+2)^2-5 \end{aligned}

The correction inside the bracket is multiplied by 2 as well. The minimum is (−2,−5)(-2,-5). A negative squared coefficient reverses this: y=−2(x−1)2+6y=-2(x-1)^2+6 has maximum (1,6)(1,6).

Completed-square form

For y=a(x−h)2+ky=a(x-h)^2+k, where a≠0a\ne0, the turning point is (h,k)(h,k). It is a minimum if a>0a>0 and a maximum if a<0a<0.

Not on the formula sheet: derive it from the non-negativity of a real square.

Use expansion to catch a missing correction before you read a turning point.

Watch out

The line x2+6x+2=(x+3)2+2x^2+6x+2=(x+3)^2+2 is wrong: the right side has constant 11. Subtract the extra 9 to get (x+3)2−7(x+3)^2-7.

Try the same constant correction with a different middle coefficient.

Solving by completing the square (Higher)

Once a square is isolated, square roots undo it. There are usually two possibilities because opposite numbers have the same square.

Worked example 3: two exact roots

Question. Solve x2−6x+1=0x^2-6x+1=0 by completing the square.

Plan. Rewrite the left side as a square, isolate it and take both signs.

(x−3)2−8=0complete the square(x−3)2=8add 8 to both sidesx−3=±8both numbers square to 8x=3±22add 3 and simplify\begin{aligned} (x-3)^2-8&=0 &&\text{complete the square}\\ (x-3)^2&=8 &&\text{add 8 to both sides}\\ x-3&=\pm\sqrt8 &&\text{both numbers square to 8}\\ x&=3\pm2\sqrt2 &&\text{add 3 and simplify} \end{aligned}

Why this step? Taking only the positive square root loses one solution.

Answer. x=3+22x=3+2\sqrt2 or x=3−22x=3-2\sqrt2.

Check. Each root has (x−3)2=8(x-3)^2=8, so the original expression is zero. To three significant figures they are 5.83 and 0.172.

Only the constant changes next, from 1 to −1-1. The bracket remains x−3x-3, but the roots move further from the symmetry line.

Worked example 4: change the constant

Question. Solve x2−6x−1=0x^2-6x-1=0, giving exact answers.

Plan. Use the same square and adjust its constant.

(x−3)2−10=0correct the constant(x−3)2=10add 10x−3=±10take both signsx=3±10add 3\begin{aligned} (x-3)^2-10&=0 &&\text{correct the constant}\\ (x-3)^2&=10 &&\text{add 10}\\ x-3&=\pm\sqrt{10} &&\text{take both signs}\\ x&=3\pm\sqrt{10} &&\text{add 3} \end{aligned}

Why this step? Keeping the surd preserves an exact answer; rounding before the final step loses accuracy.

Answer. x=3±10x=3\pm\sqrt{10}.

Check. Substituting into the completed-square expression gives 10−10=010-10=0.

Rearrange first when needed. For 2x2+8x=102x^2+8x=10, division by 2 gives x2+4x=5x^2+4x=5. Adding 4 to both sides gives (x+2)2=9(x+2)^2=9, so x=1x=1 or −5-5. Both make the original left side 10.

A zero square gives one repeated root: (x−2)2=0(x-2)^2=0 gives x=2x=2. A negative right side, such as (x−2)2=−3(x-2)^2=-3, gives no real solution. This is why a quadratic need not have two distinct real roots.

Watch out

The line (x−3)2=10⇒x=3+10(x-3)^2=10\Rightarrow x=3+\sqrt{10} is incomplete. Include x=3−10x=3-\sqrt{10} too, then apply any contextual restrictions.

For example, a rectangle with width xx, length x+4x+4 and area 21 m221\,\mathrm{m}^2 gives (x+2)2=25(x+2)^2=25. The roots are 3 and −7-7, but only the positive width 3 metres fits. The length is 7 metres.

The two real roots of a quadratic are equally far from its symmetry line. In (x−h)2=d(x-h)^2=d, they are h+dh+\sqrt d and h−dh-\sqrt d, so their average is hh. That stays true even when the roots are awkward surds.

The quadratic formula and real roots (Higher)

The quadratic formula works even when convenient factors are hard to find. First put the equation in the form with zero on one side.

Quadratic formula

For ax2+bx+c=0ax^2+bx+c=0, with a≠0a\ne0,

x=−b±b2−4ac2ax=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

On the formula sheet (2026 version; the 2027 sheet will have the same content).

The coefficients include their signs. In 2x2−3x−1=02x^2-3x-1=0, b=−3b=-3, so −b=3-b=3. Write brackets around negative substitutions.

Worked example 5: signed substitution

Question. Use the quadratic formula to solve 2x2−3x−1=02x^2-3x-1=0.

Plan. Identify a=2a=2, b=−3b=-3, c=−1c=-1, then evaluate both signs.

b2−4ac=(−3)2−4(2)(−1)=17calculate inside the rootx=−(−3)±172(2)substitute all coefficients=3±174simplify\begin{aligned} b^2-4ac&=(-3)^2-4(2)(-1)=17 &&\text{calculate inside the root}\\ x&=\frac{-(-3)\pm\sqrt{17}}{2(2)} &&\text{substitute all coefficients}\\ &=\frac{3\pm\sqrt{17}}4 &&\text{simplify} \end{aligned}

Why this step? The whole numerator is divided by 2a2a, not just the square-root term.

Answer. x=3±174x=\frac{3\pm\sqrt{17}}4, approximately 1.78 and −0.281-0.281 to three significant figures.

Check. For either root, 4x−3=±174x-3=\pm\sqrt{17}, so

8(2x2−3x−1)=16x2−24x−8expand the bracket=(4x−3)2−17rewrite as a square=17−17=0use either root\begin{aligned} 8(2x^2-3x-1)&=16x^2-24x-8 &&\text{expand the bracket}\\ &=(4x-3)^2-17 &&\text{rewrite as a square}\\ &=17-17=0 &&\text{use either root} \end{aligned}

Dividing by 8 confirms that the original expression is zero for both roots.

Now change only cc, from −1-1 to 1. This changes the number under the square root.

Worked example 6: a square discriminant

Question. Use the formula to solve 2x2−3x+1=02x^2-3x+1=0.

Plan. Keep a=2a=2, b=−3b=-3, and use c=1c=1.

b2−4ac=9−8=1calculate the new discriminantx=3±14use the formulax=1 or 12evaluate both signs\begin{aligned} b^2-4ac&=9-8=1 &&\text{calculate the new discriminant}\\ x&=\frac{3\pm\sqrt1}{4} &&\text{use the formula}\\ x&=1\text{ or }\frac12 &&\text{evaluate both signs} \end{aligned}

Why this step? A square discriminant makes the square root rational, so these roots simplify to fractions.

Answer. x=1x=1 or x=12x=\frac12.

Check. (2x−1)(x−1)=0(2x-1)(x-1)=0 gives the same pair.

The discriminant is b2−4acb^2-4ac. Positive gives two distinct real roots; zero gives one repeated real root; negative gives no real roots. For x2−4x+4=0x^2-4x+4=0 it is zero and the graph touches the axis at x=2x=2. For x2+x+1=0x^2+x+1=0 it is −3-3 and the graph misses the axis.

Rearrangement matters. 3x2=5x+23x^2=5x+2 becomes 3x2−5x−2=03x^2-5x-2=0, with b=−5b=-5. The formula gives (5±7)/6(5\pm7)/6, hence 2 and −13-\frac13. Enter the complete numerator in brackets on a calculator and round only the final roots.

Watch out

For 2x2−3x−1=02x^2-3x-1=0, writing b=3b=3 loses its sign. Use b=−3b=-3, giving −b=3-b=3 and b2=(−3)2=9b^2=(-3)^2=9.

Practise the signed substitution with another constant.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account