Some quadratics refuse to factor nicely, yet one small move makes them easy. If you can rewrite an equation so that one side is a perfect square, like , you can undo the square directly and read off both solutions. Completing the square is that move. It also turns into a form that shows at a glance where the parabola turns, which the SAT asks about often.
See also Completing the Square in Foundations for Calculus and Quadratic Functions and Vertex Form in Precalculus.
Key terms
Perfect-square trinomial
Definition A perfect-square trinomial is a polynomial that equals the square of a binomial. For every real number and every real ,
So a monic quadratic is a perfect square exactly when its constant term is the square of half the coefficient, that is when
and then it equals .
In plain words Halve the middle coefficient and square it. If you get the constant term, the expression is a square in disguise.
Example In half of is , and matches the constant term. So . By contrast is not a perfect square, because its constant term is and not .
Square-root method
Definition For a real number the equation has
- two real solutions and when ,
- exactly one real solution when ,
- no real solutions when , since no real number has a negative square.
The symbol means only the nonnegative root, so the minus branch has to be written separately. The same applies when is an expression, for example .
In plain words If something squared is , that something is or . Forgetting the negative branch is the most common way to lose half the answer.
Example Solve . The quantity is either or .
| Branch | Equation | Solution |
|---|---|---|
| plus | ||
| minus |
Both check, since and .
Completing the square
Definition To complete the square in , add , which produces the perfect square
In an equation you add this number to both sides, so the solution set does not change. In an expression you add it and subtract it at once, so the value does not change.
In plain words You build the missing piece of a square, and you keep the balance by adding the same amount on the other side.
Example Solve . Half of is , and , so add to both sides.
By the square-root method or , so or .
There is a helpful picture when is a positive length. Take an by square and attach two by strips to two of its sides, one along the right and one along the bottom. The total area is , and the shape is a large by square with a by corner missing. That missing corner is the you add. The picture only works for positive lengths, but the algebra does not need it. The identity holds for every real , which is why the negative solution is just as valid as . Check it, .
Vertex form
Definition A quadratic function is in vertex form when it is written as
Its graph is a parabola with vertex . If , the smallest value of is , reached at . If , the largest value of is , reached at . Completing the square turns into this form.
In plain words A square is never negative, so with the expression is smallest when the square is zero. That happens at , and the output there is .
Example Rewrite . Half of is , and . Add and subtract .
The vertex is , and the minimum value of is . Watch the sign. The form puts the vertex at , not at .
Nonunit leading coefficient
Definition When the coefficient of is not , deal with it before completing the square.
- In an equation with , divide both sides by . The new equation has the same solutions and a leading coefficient of .
- In a function , factor out of the terms only. Do not divide, because that would change the function. The number you add inside the parentheses is multiplied by , so you must subtract times it outside.
In plain words The square trick works on with coefficient . Get the out of the way first, and remember it still multiplies whatever you add inside.
Example Solve . Divide by to get , so . Add to both sides.
So or , which gives or .
Now a function. For factor from the first two terms. Inside, half of is and . Adding inside really adds , so subtract outside.
The vertex is . Expanding gives back , which confirms the work.
Check yourself
- Which expression is equivalent to ? (A) , (B) , (C) , (D)
Show the answer
Choice (B) is correct. Half of is , and . To get instead of you subtract . Choice (A) adds the without taking it back. Choice (C) uses instead of half of it, and its expansion has middle term . Choice (D) has the sign of the correction wrong.
- If and , what is the value of ?
Show the answer
The answer is . The square-root method gives or , so or . Only is negative. Taking just the positive root would have missed the answer completely.
- The function can be written as , where and are constants. What is the value of ? (A) , (B) , (C) , (D)
Show the answer
Choice (D) is correct. Factor from the terms to get . Adding inside adds , so subtract outside.
Choice (A) subtracts only , forgetting that the multiplies it. Choice (B) adds instead of subtracting it, and choice (C) adds instead of subtracting it.