Completing the square
Warmup: Solve: .
Hard or impossible to factor.
Look at .
(Ignore the 2 for the moment.)
Notice this:
|
|
|
3 |
|
|
|
|
|
|
|
|
| 3 |
|
|
|
This gives us
Looking at it another way, is almost equal to
except for that pesky .
2nd trick: To solve ,
(i.e. to find the zeros of the function :
The thing on the right is messy, but it's just a number (no ).
Check the plus version (minus is similar):
This can be messy but it always works!
If ,
just divide both sides by first:
You can get a quadratic function into vertex form by completing the
square with the function definition:
The vertex is .
The minimum of a quadratic whose term is
positive, or the maximum of a quadratic whose
term is negative, the vertex. So to find the max or min, just find the
vertex.