Completing the square: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Michael Hardy
No edit summary
imported>Michael Hardy
No edit summary
Line 3: Line 3:
:<math> ax^2 + bx + c = a(\cdots\cdots)^2 + \text{constant} </math>
:<math> ax^2 + bx + c = a(\cdots\cdots)^2 + \text{constant} </math>


and completing the square is the way of filing in the blank between the brackets.
and completing the square is the way of filing in the blank between the brackets. Completing the square is used for solving quadratic equations (the proof of the well-known [[quadratic formula]] consists of completing the square.  The technique is also used to find the maximum or minimum value of a quadratic function, or in other words, the vertex of a [[parabola]].
 
The technique relies on the [[elementary algebra|elementary algebraic]] identity
 
: <math> (u + v)^2 = u^2 + 2uv + v^2.\qquad\qquad(*) </math>
 
== Concrete examples ==
 
We want to fill in this blank:
 
: <math> 3x^2 + 42x - 5.\, </math>
 
We write
 
: <math>
\begin{align}
3x^2 + 42x - 5 & {} = 3(x^2 + 14x) - 5 \\
& {} = 3(x^2 + 2x\cdot 7) - 5.
\end{align}
</math>
 
Now the expression (''x''<sup>2</sup>&nbsp;+&nbsp;2''x''&middot;7) corresponds to ''u''<sup>2</sup>&nbsp;+&nbsp;2''uv'' in the elementary identity labeled (*) above.  If ''x''<sup>2</sup> is ''u''<sup>2</sup> and 2''x''&middot;7 is 2''uv'', then ''v'' must be 7.  Therefore (''u''&nbsp;+&nbsp;''v'')<sup>2</sup> must be (''x''&nbsp;+&nbsp;7).  So we continue:
 
: <math>
\begin{align}
& {} 3(x^2 + 2x\cdot 7) - 5 \\ & {} = 3\left(x^2 + 2x\cdot 7 + 7^2\right) - 5 - 3(7^2),
\end{align}
</math>
 
Now we have added 7<sup>2</sup> ''inside'' the parentheses, and compensated (thus justifying the "=") by subtracting 3(7<sup>2</sup>) ''outside'' the parentheses.  The expression ''inside'' the parentheses is now ''u''<sup>2</sup>&nbsp;+&nbsp;2''uv''&nbsp;+&nbsp;v<sup>2</sup>, and by the elementary identity labeled (*) above, it is therefore equal to (''u''&nbsp;+&nbsp;''v'')<sup>2</sup>, i.e. to (''x''&nbsp;+&nbsp;7)<sup>2</sup>.  So now we have
 
: <math> 3(x + 7)^2 - 5 - 3(7^2) = 3(x + 7)^2 - 152.\, </math>
 
Thus we have the equality
 
:<math> 3x^2 +  </math>
 
 
 
== More abstracly ==
 
We have
 
: <math>
\begin{align}
ax^2 + bx + c & {} = x\left( x^2 + \frac{b}{a}x \right) + c \\
& {} = a\left(x^2 + 2\frac{b}{2a}x\right) + c.
\end{align}
</math>
 
The last expression inside parentheses above corresponds to ''u''<sup>2</sup>&nbsp;+&nbsp;2''uv'' in the identity labeled (*) above.  We need to add the third term, ''v''<sup>2</sup>.
 
 
 


[[Category:Mathematics Workgroup]]
[[Category:Mathematics Workgroup]]

Revision as of 21:05, 25 August 2007

In algebra, completing the square is a way of rewriting a quadratic polynomial as the sum of a constant and a constant multiple of the square of a first-degree polynomial. Thus one has

and completing the square is the way of filing in the blank between the brackets. Completing the square is used for solving quadratic equations (the proof of the well-known quadratic formula consists of completing the square. The technique is also used to find the maximum or minimum value of a quadratic function, or in other words, the vertex of a parabola.

The technique relies on the elementary algebraic identity

Concrete examples

We want to fill in this blank:

We write

Now the expression (x2 + 2x·7) corresponds to u2 + 2uv in the elementary identity labeled (*) above. If x2 is u2 and 2x·7 is 2uv, then v must be 7. Therefore (u + v)2 must be (x + 7). So we continue:

Now we have added 72 inside the parentheses, and compensated (thus justifying the "=") by subtracting 3(72) outside the parentheses. The expression inside the parentheses is now u2 + 2uv + v2, and by the elementary identity labeled (*) above, it is therefore equal to (u + v)2, i.e. to (x + 7)2. So now we have

Thus we have the equality


More abstracly

We have

The last expression inside parentheses above corresponds to u2 + 2uv in the identity labeled (*) above. We need to add the third term, v2.