Maths4UBETA

Completing the square (Extended)

Rewrite monic and non-monic quadratics in completed-square form, including fractional offsets and negative leading coefficients.

Try the quick check →
Lesson 8 of 8

Section 1 of 3 · Extension · about 7 min

Why do I halve the linear coefficient?

The area model shows how two equal strips form the linear term and a corner completes the square when its width is positive.

An original large square has two equal side strips. A small outlined corner completes the new square.

The small corner completes the outer square. Subtract its area to keep the original value.

Worked example

Complete a quadratic expression to a square

Complete the square for x2+38x+24x^{2} + 38 x + 24.

  1. The coefficient of x2x^2 is already 1. Work on the quadratic and linear terms first.

  2. These terms are x2+38xx^{2} + 38 x. The constant 2424 stays outside the calculation of the square.

  3. Half the coefficient of xx inside the bracket is 1919. Add and subtract 361361 inside that bracket.

  4. Multiply the constant correction by 11. x2+38x+24=(x+19)2−337x^{2} + 38 x + 24=\left(x + 19\right)^2-337.

Your turn

Complete the square for x2+36x+23x^{2} + 36 x + 23. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Worked example

Complete a quadratic expression to a square

Complete the square for x2−23x−6x^{2} - 23 x - 6.

Try it on paper first.

  1. The coefficient of x2x^2 is already 1. Work on the quadratic and linear terms first.

  2. These terms are x2−23xx^{2} - 23 x. The constant −6-6 stays outside the calculation of the square.

  3. Half the coefficient of xx inside the bracket is −232- \frac{23}{2}. Add and subtract 5294\frac{529}{4} inside that bracket.

  4. Multiply the constant correction by 11. x2−23x−6=(x−232)2−5534x^{2} - 23 x - 6=\left(x - \frac{23}{2}\right)^2- \frac{553}{4}.

Your turn

Complete the square for x2+23x+5x^{2} + 23 x + 5. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Section 2 of 3 · Extension · about 8 min

How do I complete the square if the leading coefficient is not one?

A bracket with leading term x2x^2 makes the monic method available even when the original coefficient is not one.

Worked example

Complete a quadratic expression to a square

Complete the square for 2x2−72x−232 x^{2} - 72 x - 23.

  1. Factor out the coefficient of x2x^2 from the quadratic and linear terms.

  2. 2[x2−36x]−232\left[x^{2} - 36 x\right]-23.

  3. Half the coefficient of xx inside the bracket is −18-18. Add and subtract 324324 inside that bracket.

  4. Multiply the constant correction by 22. 2x2−72x−23=2(x−18)2−6712 x^{2} - 72 x - 23=2\left(x - 18\right)^2-671.

Your turn

Complete the square for 7x2+238x+227 x^{2} + 238 x + 22. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Worked example

Complete a quadratic expression to a square

Complete the square for 2x2+46x+52 x^{2} + 46 x + 5.

Try it on paper first.

  1. Factor out the coefficient of x2x^2 from the quadratic and linear terms.

  2. 2[x2+23x]+52\left[x^{2} + 23 x\right]+5.

  3. Half the coefficient of xx inside the bracket is 232\frac{23}{2}. Add and subtract 5294\frac{529}{4} inside that bracket.

  4. Multiply the constant correction by 22. 2x2+46x+5=2(x+232)2−51922 x^{2} + 46 x + 5=2\left(x + \frac{23}{2}\right)^2- \frac{519}{2}.

Your turn

Complete the square for 7x2−147x−47 x^{2} - 147 x - 4. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Section 3 of 3 · Extension · about 9 min

How do I handle a negative leading coefficient?

Work with the signed factor throughout. A fractional offset is still handled by taking exactly half of the inside coefficient.

Worked example

Complete a quadratic expression to a square

Complete the square for −7x2−238x+22- 7 x^{2} - 238 x + 22.

  1. Factor out the coefficient of x2x^2 from the quadratic and linear terms.

  2. −7[x2+34x]+22-7\left[x^{2} + 34 x\right]+22.

  3. Half the coefficient of xx inside the bracket is 1717. Add and subtract 289289 inside that bracket.

  4. Multiply the constant correction by −7-7. −7x2−238x+22=−7(x+17)2+2045- 7 x^{2} - 238 x + 22=-7\left(x + 17\right)^2+2045.

Your turn

Complete the square for −6x2+192x−21- 6 x^{2} + 192 x - 21. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Worked example

Complete a quadratic expression to a square

Complete the square for −7x2−161x+4- 7 x^{2} - 161 x + 4.

Try it on paper first.

  1. Factor out the coefficient of x2x^2 from the quadratic and linear terms.

  2. −7[x2+23x]+4-7\left[x^{2} + 23 x\right]+4.

  3. Half the coefficient of xx inside the bracket is 232\frac{23}{2}. Add and subtract 5294\frac{529}{4} inside that bracket.

  4. Multiply the constant correction by −7-7. −7x2−161x+4=−7(x+232)2+37194- 7 x^{2} - 161 x + 4=-7\left(x + \frac{23}{2}\right)^2+\frac{3719}{4}.

Your turn

Complete the square for −6x2−126x+3- 6 x^{2} - 126 x + 3. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Worked examples

Practise the method

Core practice

Question 1 of 5

0 / 5 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

Complete a quadratic expression to a square

3 marks

Complete the square for x2+20x+15x^{2} + 20 x + 15. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter the complete form using all three fields: a(x − h)² + c.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

Complete a quadratic expression to a square

Complete the square for x2−34x−22x^{2} - 34 x - 22. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Complete a quadratic expression to a square

Complete the square for x2+23x+4x^{2} + 23 x + 4. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Complete a quadratic expression to a square

Complete the square for 6x2+192x+216 x^{2} + 192 x + 21. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Complete a quadratic expression to a square

Complete the square for 6x2+126x+36 x^{2} + 126 x + 3. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Complete a quadratic expression to a square

Complete the square for −5x2−150x+20- 5 x^{2} - 150 x + 20. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Enter one number. Fractions and decimals are accepted.

Complete a quadratic expression to a square

Complete the square for −5x2+95x−2- 5 x^{2} + 95 x - 2. Give A, P and Q in A(x+P)2+QA(x+P)^2+Q.

Enter one number. Fractions and decimals are accepted.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.