Factoring is convenient when a quadratic has recognizable factors. Completing the square works by building a squared binomial, and the quadratic formula packages that reasoning into a method for every quadratic equation with a nonzero leading coefficient.
Build a square by halving the linear coefficient
The identity explains the process. To turn into a square, half of 6 gives and is the missing constant:
You cannot add 9 to just one side of an equation. Keep the equation balanced, or add and subtract the same quantity when rewriting an expression. Completing a square changes the form, not the value.
Example: solve by completing the square
Solve Move the constant: Add 9 to both sides to create a square:
A number whose square is 16 can be 4 or so Subtract 3 to obtain or The plus-minus step is essential: taking only the positive square root would lose a solution.
If the leading coefficient is not one, divide first. For divide by 2 and rearrange to get Adding 4 gives hence or equivalently
The quadratic formula follows the same reasoning
For with divide by a, move the constant, and add Solving the resulting square produces
The entire numerator is divided by The coefficient includes its sign, and is the constant after the equation has been written with zero on the other side. Labeling a, , and before substituting prevents many mistakes.
Example: an equation that does not factor neatly
Solve Here and Then
Keep this exact form unless a decimal is requested. Since the roots are approximately 1.781 and Their opposite signs make sense because their product is
If the quantity under the square root is negative, there are no real roots. If complex numbers are allowed, replace by for positive . The problem's number system determines how to report those solutions.
Completing the square also reveals a graph
Rewriting as shows a minimum of at It also explains the two roots: moving 4 units left or right from raises the squared part to 16. Completing the square therefore connects solving equations with understanding a parabola's vertex.
Try it yourself
Solve by completing the square, then check that the quadratic formula gives the same expression.
Answer: Rearrange to and add 4: Thus The formula gives matching the result.
What to remember
Complete a square by using half the linear coefficient after the leading coefficient is one. Preserve equality, retain both square-root signs, and place the whole quadratic-formula numerator over