Difference between revisions of "Completing the square"

m
m
 
(33 intermediate revisions by 18 users not shown)
Line 1: Line 1:
===Motivations===
+
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 equation]]s can be solved by completing the square.
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.
 
  
===General Solution For A Quadratic by Completing the Square===
+
As an example, we have the equation <math>x^2-6x+2=0</math>.  Look at the <math>x^2-6x</math> part.  If <math>9</math> was added to this, then we would have a [[perfect square]], <math>(x-3)^2=x^2-6x+9</math>.  To do this, add <math>7</math> to each side of the equation to get
  
Let the quadratic be in the form <math>ax^2+bx+c=0</math>.
+
<math>x^2-6x+9=7\Rightarrow(x-3)^2=7\Rightarrow x-3=\pm{\sqrt7}\Rightarrow x=3\pm\sqrt{7}</math>
  
Moving c to the other side, we obtain
+
==Motivations==
 +
All quadratic equations in the form <math>(x+a)^2=b</math> can be solved by taking the [[square root]] of <math>b</math> and subtracting <math>a</math>. Completing the square is a technique to manipulate ''every'' quadratic into the easily solvable form above.
  
<math>ax^2+bx=-c</math>
+
==General Solution For A Quadratic by Completing the Square==
 +
 
 +
Let the quadratic be in the form <math>a\cdot x^2+b\cdot x+c=0</math>, with <math>a \neq 0</math>.
 +
 
 +
Subtracting <math>c</math> from both sides of the equation, we obtain
 +
 
 +
<math>ax^2+bx=-c</math>.
  
 
Dividing by <math>{a}</math> and adding <math>\frac{b^2}{4a^2}</math> to both sides yields
 
Dividing by <math>{a}</math> and adding <math>\frac{b^2}{4a^2}</math> to both sides yields
Line 20: Line 26:
 
As described above, an equation in this form can be solved, yielding
 
As described above, an equation in this form can be solved, yielding
  
<math>{x=\frac{-b \pm \sqrt{b^2-4ac}}{2a}}</math>
+
<math>{x=\frac{-b \pm \sqrt{b^2-4ac}}{2a}}</math>.
 
 
This formula is also called the [[Quadratic Formula]].
 
  
 +
This formula is also called the [[quadratic formula]].
  
===Applications of Adding and Factoring===
+
==Applications of Adding and Factoring==
 
Other degrees of polynomials may be solved by adding constant terms 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 <math>(x-3)^2</math>. 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.
 
Another common usage is in conic sections. The equations for conic sections typically contain a squared term such as <math>(x-3)^2</math>. 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.
+
All kinds of exotic factoring techniques are used on the [[AIME]], including completing the square.  
 +
 
 +
 
 +
==Problems==
 +
===Introductory===
 +
<math>x^2+2x=28 </math> solve for x
  
===Instructive Problem: AIME 1987 #5===
+
What is the value of <math>x</math> if <math>x=1+\dfrac{1}{x}</math>
Problem:m, n are integers such that <math>m^2 + 3m^2n^2 = 30n^2 + 517</math>. Find <math>3m^2n^2</math>.
 
  
Outline Solution:
+
===Intermediate===
We use the techinique of adding to factor.
+
*Find <math>3x^2 y^2</math> if <math>x</math> and <math>y</math> are [[integer]]s such that <math>y^2 + 3x^2 y^2 = 30x^2 + 517</math>. ([[1987 AIME Problems/Problem 5|Source]])
 +
===Olympiad===
  
Rearrange to <math>m^2 + 3m^2n^2 -30n^2= 517</math>. The key step is changing the equation to <math>m^2 + 3m^2n^2 -30n^2-10= 507</math>, where the equation factors to <math>(3n^2 + 1)(m^2 - 10) = 507 = 3*13^2</math>, from which the problem is trivial to solve by applying some simple number theory.
+
[[Category:Algebra]]
 +
[[Category:Quadratic equations]]

Latest revision as of 15:20, 5 March 2023

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.

As an example, we have the equation $x^2-6x+2=0$. Look at the $x^2-6x$ part. If $9$ was added to this, then we would have a perfect square, $(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-3)^2=7\Rightarrow x-3=\pm{\sqrt7}\Rightarrow x=3\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 subtracting $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$, with $a \neq 0$.

Subtracting $c$ from both sides of the equation, 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, including completing the square.


Problems

Introductory

$x^2+2x=28$ solve for x

What is the value of $x$ if $x=1+\dfrac{1}{x}$

Intermediate

Olympiad