Completing the square: Difference between revisions
imported>Olier Raby (Cat. Put in comment a sentence.) |
imported>Aleksander Stos |
||
Line 41: | Line 41: | ||
== More abstracly == | == More abstracly == | ||
It is possible to give a closed formula for the completion in terms of the coefficients ''a'', ''b'' and ''c''. Namely, | |||
: <math> ax^2+bx + c = a\left(x + \frac{b}{2a}\right)^2 - \frac{\Delta}{4a}, </math> | |||
where <math>\Delta<math> stands for the well-known ''discriminant'' of the polynomial, that is <math>\Delta=b^2-4ac.</math> | |||
Indeed, we have | |||
: <math> | : <math> |
Revision as of 06:59, 28 October 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
It is possible to give a closed formula for the completion in terms of the coefficients a, b and c. Namely,
where
Indeed, we have
The last expression inside parentheses above corresponds to u2 + 2uv in the identity labelled (*) above. We need to add the third term, v2: