Completing the square

Revision as of 13:54, 27 June 2006 by B-flat (talk | contribs) (Motivations)

Introduction

The idea of completing the square is to add something to an equation to make that equation a perfect square. This makes solving a lot of equations easy. In fact, all quadratic equations can be solved by completing the square.


For Example: We have the equation $\displaystyle x^2-6x+2=0$. Look at the $\displaystyle x^2-6x$ part. If 9 was added to this, then we would have a perfect square $\displaystyle(x-3)^2=x^2-6x+9$. To do this, add 7 to each side of the equation to get

$x^2-6x+9=7\Rightarrow(x-6)^2=7\Rightarrow x=6\pm\sqrt{7}$


Motivations

All quadratic equations in the form $(x+a)^2=b$ can be solved by taking the square root of b and subracting a. Completing the square is a technique to manipulate every quadratic into the easily solvable form above.

General Solution For A Quadratic by Completing the Square

Let the quadratic be in the form $a\cdot x^2+b\cdot x+c=0$.

Moving c to the other side, we obtain

$ax^2+bx=-c$

Dividing by ${a}$ and adding $\frac{b^2}{4a^2}$ to both sides yields

$x^2+\frac{b}{a}x+\frac{b^2}{4a^2}=-\frac{c}{a}+\frac{b^2}{4a^2}$.

Factoring the LHS gives

$\left(x+\frac{b}{2a}\right)^2=\frac{b^2-4ac}{4a^2}$

As described above, an equation in this form can be solved, yielding

${x=\frac{-b \pm \sqrt{b^2-4ac}}{2a}}$

This formula is also called the Quadratic formula.

Applications of Adding and Factoring

Other degrees of polynomials may be solved by adding constant terms and factoring.

Another common usage is in conic sections. The equations for conic sections typically contain a squared term such as $(x-3)^2$. However, the problem may be posed as to convert from an expanded form to a factored perfect square. Completing the square is the standard method.

All kinds of exotic factoring techniques are used on the AIME, and completing the square is just one. The follow solution to AIME 1987 #5 is but one.