How do I complete the square of an equation?

First off, write your equation in the form:

ax^2+by+c=0

with a, b and c being your constant coefficients. 

First, we will factorise out a such that:

a(x^2 +(b/a)x)+c

Now divide b by 2. Then write 

a(x+(b/2a))^2

If you multiply this out you should get a(x^2 +(b/a)x+d)

Then times everything by a again to give ax^2+bx+ad

The final stage is to add a constant on the end which will get you from ad to c in the final expansion.

To do this we want ad+m=c where m is the constant we are trying to find. Therefore m=c-ad.

Our final answer will be:

ax^2 +bx+c=a(x+(b/2a))^2 +m .

 

This is much easier to see with an example:

Complete the square of 4x^2+4x=-6

We need to rearrange this to 4x^2+4x+6=0.

First we factorise out the 4:

4(x^2+x)+6=0 

Now we follow through the rest of the steps:

4(x+1/2)^2=4(x^2+x+1/4)=4x^2+4x+1

1+m=6

m=5

So the final answer is

4x^2+4x+6=4(x+1/2)^2+5=0

BD

Related Maths GCSE answers

All answers ▸

How do you factorise?


Solve 3x+7=1.


Define x and y if 2x+y=16 and 4x+6y=24


If f(x) = 2x+5, g(x) = 8x-7 and f(x)=g(x). Find the value of x. Show your working.