Solve by Completing the Square
Complete the square in ax²+bx+c=0 and find both real or complex roots for a nonzero a.
Formula
a(x−h)²+k=0; h=−b/(2a); k=c−b²/(4a).
Shift h ≈ -(6)÷(2×(1)) · Constant k ≈ (5)-(6)^2÷(4×(1)) · Real part R₊ ≈ (-3)+(2) · Real part R₋ ≈ (-3)-(2) · Imaginary magnitude I ≈ sqrt((abs((4))-(4))÷2)
How to use
- Enter a, b and c; a must not be zero.
- Read h and k in the completed square.
- Read roots as R₊+iI and R₋−iI.
Examples
- x²+6x+5=0 becomes (x+3)²=4, giving −1 and −5.
Frequently asked questions
What does I mean?
I is the nonnegative imaginary magnitude. When I=0, both roots are real.
How is the square solved?
Rearrange to (x−h)²=−k/a, then take both square roots.
Can the roots be equal?
Yes. When k=0, both roots equal h.
Sources
Updated: