Difference between revisions of "Completing the square"

(Applications of Adding and Factoring)
(changed tmotivations and section to quad formula, some latex problems)
Line 1: Line 1:
 
===Motivations===
 
===Motivations===
Quadratic equations are usally hard to solve, if they do not factor.
+
All quadratic equations in the form <math>(x+a)^2=b</math> 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 solveable form above.
Some of them, in forms <math>(x+a)^2=b</math>, are easy to solve by taking the squareroot of b and subracting a. Completing the square is a technique to munipulate ''every'' quadratic into the easily solve-able form above.
 
  
===General Solution For A Monic Quadratic===
+
===General Solution For A Quadratic by Completing the Square===
  
Let the quadratic be in the form <math>x^2+xa+b=0</math>.  
+
Let the quadratic be in the form <math>ax^2+bx+c=0</math>.  
  
Moving be to the other side, we obtain
+
Moving c to the other side, we obtain
  
<math>x^2+xa=-b</math>
+
<math>ax^2+bx=-c</math>
  
Then, adding a^2/4 to each side and factoring, we get
+
Dividing by <math>{a}</math> and adding <math>\frac{b^2}{4a^2}</math> to both sides yields
  
<math>(x+1/2a)^2=-b+a^2/4</math>
+
<math>x^2+\frac{b}{a}x+\frac{b^2}{4a^2}=-\frac{c}{a}+\frac{b^2}{4a^2}</math>.
 +
 
 +
Factoring the LHS gives
 +
 
 +
<math>\left(x+\frac{b}{2a}\right)^2=\frac{b^2-4ac}{4a^2}</math>
 +
 
 +
As described above, an equation in this form can be solved, yielding
 +
 
 +
<math>x=\frac{-b \pm \sqrt{b^2-4ac}}{2a}</math>
 +
 
 +
This formula is also called the Quadratic Formula.
  
Which is solvable as described above.
 
  
 
===Applications of Adding and Factoring===
 
===Applications of Adding and Factoring===

Revision as of 18:17, 17 June 2006

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 solveable form above.

General Solution For A Quadratic by Completing the Square

Let the quadratic be in the form $ax^2+bx+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.

Instructive Problem: AIME 1987 #5

Problem:m, n are integers such that $m^2 + 3m^2n^2 = 30n^2 + 517$. Find $3m^2n^2$.

Outline Solution: We use the techinique of adding to factor.

Rearrange to $m^2 + 3m^2n^2 -30n^2= 517$. The key step is changing the equation to $m^2 + 3m^2n^2 -30n^2-10= 507$, where the equation factors to $(3n^2 + 1)(m^2 - 10) = 507 = 3*13^2$, from which the problem is trivial to solve by applying some simple number theory.