The formula
x = (−b ± √(b² − 4ac)) ÷ 2a
Why it works
The quadratic formula comes from completing the square on the general equation, which is why it works for every quadratic without exception. The part under the root, b² − 4ac, is the discriminant, and it alone decides whether there are two real solutions, one, or none.
How to solve it by hand
- Work out the discriminant: b² − 4ac
- If it is negative there are no real solutions; stop there
- Take its square root
- Apply (−b ± that root) ÷ 2a for the two solutions
What is worth knowing
Vieta's formulas give you a free check that takes two seconds: the roots always add up to −b/a and multiply to c/a. If your answers fail either test, you have made an arithmetic slip. They are also how factorising by inspection works — when you look for two numbers that add to b and multiply to c, you are using Vieta's without knowing it. The other thing worth internalising is that a negative discriminant is not a failure: the solutions exist, they are just complex, and they always come in conjugate pairs.