Completing the Square

On this page

How to complete the square for a quadratic, read off the turning point of its graph, and solve an equation with a squared bracket, giving both solutions.

The method

Halve the number of x's, keeping its sign. x^2-10x starts (x-5)^2, not (x-10)^2.

Always take away the half squared. It is positive even when the half is negative: x^2-10x=(x-5)^2-25

Check by expanding: (x+5)^2-22=x^2+10x+25-22=x^2+10x+3

Now try this

Write x^2+12x+5 in the form (x+a)^2+b where a and b are integers.

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

  1. Half of 12 is 6: (x+6)^2=x^2+12x+36
  2. x^2+12x+5=(x+6)^2-36+5
  3. =(x+6)^2-31

More like this: practice questions

Worked example 1: The turning point from the completed square

Given that x^2-12x+7=(x-a)^2-b for all values of x,

(i) find the value of a and the value of b.

(ii) Hence write down the coordinates of the turning point on the graph of y=x^2-12x+7

  1. (i) Half of −12 is −6: (x-6)^2=x^2-12x+36
  2. x^2-12x+7=(x-6)^2-36+7=(x-6)^2-29
  3. Match it with (x-a)^2-b: a=6 and b=29
  4. The form already has the minus signs, so a and b are positive here. a=-6, b=-29 loses the mark.
  5. (ii) (x-6)^2 is never negative, and it is 0 when x=6. Then y=-29, the lowest value y takes.
  6. The turning point is (6,-29). Its x-coordinate makes the bracket 0, so its sign is the opposite of the number in the bracket.
  7. With a letter the steps are the same: x^2-2kx+9=(x-k)^2+9-k^2, so the turning point is (k,\ 9-k^2).

Now try this

Find the coordinates of the turning point on the graph of y=x^2+10x+18

  1. Half of 10 is 5: x^2+10x+18=(x+5)^2-25+18=(x+5)^2-7
  2. (x+5)^2 is 0 when x=-5, and then y=-7
  3. The turning point is (-5,-7)

More like this: practice questions

Worked example 2: Both square roots

Solve (x+1)^2=6

Give your solutions correct to 3 significant figures.

  1. x+1=\sqrt6 or x+1=-\sqrt6
  2. x=-1+\sqrt6=1.449\ldots or x=-1-\sqrt6=-3.449\ldots
  3. x=1.45 or x=-3.45
  4. A positive number has two square roots. Writing only x+1=\sqrt6 loses a solution.

Now try this

Solve (x-3)^2=10

Give your solutions correct to 3 significant figures.

Give every value, separated by commas

  1. x-3=\sqrt{10} or x-3=-\sqrt{10}
  2. x=3+\sqrt{10}=6.162\ldots or x=3-\sqrt{10}=-0.162\ldots
  3. x=6.16 or x=-0.162

More like this: practice questions

Worked example 3: Solving by completing the square

Solve x^2+6x-4=0 by completing the square.

Give your solutions in the form a\pm\sqrt b where a and b are integers.

  1. x^2+6x-4=(x+3)^2-9-4=(x+3)^2-13
  2. (x+3)^2-13=0so (x+3)^2=13
  3. x+3=\pm\sqrt{13}
  4. x=-3\pm\sqrt{13}
  5. Leave the root in: the form asked for is exact, not a decimal.

Now try this

Solve x^2-2x-4=0 by completing the square.

Give your solutions in the form a\pm\sqrt b where a and b are integers.

Give every value, separated by commas

  1. x^2-2x-4=(x-1)^2-1-4=(x-1)^2-5
  2. (x-1)^2=5so x-1=\pm\sqrt5
  3. x=1\pm\sqrt5

More like this: practice questions

Practice questions