Quadratic Formula Calculator
Solve ax² + bx + c = 0, updates as you type.
Common Mistakes When Solving Quadratic Equations
A frequent mistake is misidentifying the coefficients a, b, and c when the equation isn't already in standard form, forgetting to move all terms to one side before reading off the values, which produces an entirely wrong equation to solve. Another common mistake is sign errors when substituting a negative b value into the formula, since −b becomes positive when b itself is negative, a step that's easy to fumble when working quickly by hand. A third mistake is forgetting to check both the + and − cases of the ± symbol, stopping after calculating only one root when the equation actually has two distinct solutions. A final common mistake is misjudging the sign of the discriminant, particularly when b² and 4ac are close in value, leading to an incorrect conclusion about whether the roots are real or complex.
The Quadratic Formula
x = (−b ± √(b² − 4ac)) / 2a
This formula solves any equation of the form ax² + bx + c = 0, where a, b, and c are coefficients and a is not zero. The part under the square root, b² − 4ac, is called the discriminant, and it determines what kind of roots the equation has.
Reading the Discriminant
- Positive discriminant: two distinct real roots.
- Zero discriminant: exactly one real root (a repeated root).
- Negative discriminant: two complex roots (involving the imaginary unit i), since you can't take the square root of a negative number within real numbers.
Worked Examples
For the default equation x² − 3x + 2 = 0 (a = 1, b = −3, c = 2), the discriminant is (−3)² − 4(1)(2) = 9 − 8 = 1, a positive number, so the equation has two distinct real roots. Applying the formula: x = (3 ± √1) / 2 = (3 ± 1) / 2, giving x₁ = (3 + 1) / 2 = 2 and x₂ = (3 − 1) / 2 = 1. Checking these by substitution: 2² − 3(2) + 2 = 4 − 6 + 2 = 0, and 1² − 3(1) + 2 = 1 − 3 + 2 = 0, both confirm as valid roots. For a second example with a negative discriminant, x² + 2x + 5 = 0 (a = 1, b = 2, c = 5), the discriminant is 2² − 4(1)(5) = 4 − 20 = −16, a negative number, so the roots are complex. The real part is −b / (2a) = −2/2 = −1, and the imaginary part is √16 / 2 = 4/2 = 2, giving roots of −1 + 2i and −1 − 2i.
How the Formula Is Derived: Completing the Square
The quadratic formula isn't an arbitrary rule, it comes directly from a technique called completing the square, applied generally to ax² + bx + c = 0. Dividing everything by a gives x² + (b/a)x + c/a = 0. Moving the constant term to the other side and adding (b/2a)² to both sides transforms the left side into a perfect square trinomial, (x + b/2a)². Taking the square root of both sides and solving for x eventually produces exactly x = (−b ± √(b² − 4ac)) / 2a, the standard quadratic formula. This derivation is worth understanding once, since it shows the formula isn't a memorized trick but a general-purpose solution built from the same completing-the-square method that can be applied to any individual quadratic equation by hand.
What the Discriminant Reveals Graphically
Every quadratic equation ax² + bx + c = 0 corresponds to a parabola when graphed as y = ax² + bx + c, and the discriminant directly describes how that parabola relates to the x-axis. A positive discriminant means the parabola crosses the x-axis at two distinct points, matching the two distinct real roots. A zero discriminant means the parabola's vertex (its lowest or highest point) sits exactly on the x-axis, touching it at exactly one point, matching the single repeated root. A negative discriminant means the entire parabola sits either fully above or fully below the x-axis without ever touching it, which is exactly why there's no real-number solution in that case, only the complex roots that don't correspond to any point on a standard real-number graph.
Real-World Uses for the Quadratic Formula
Quadratic equations model a wide range of real-world relationships where a quantity depends on the square of another, most famously projectile motion, since an object's height over time under gravity follows a quadratic curve, making the quadratic formula the standard tool for finding when a thrown or launched object hits the ground. Business and economics use quadratic models for profit and revenue optimization, where cost and revenue functions combine into a quadratic profit equation, and finding its roots identifies break-even points. Engineering fields use quadratic equations for structural load calculations, signal processing, and optimizing shapes like parabolic reflectors and arches, where the mathematical properties of a parabola directly inform physical design. Even area and geometry problems, like finding a rectangle's dimensions given its area and a relationship between its sides, frequently reduce to solving a quadratic equation.
Other Methods for Solving Quadratic Equations
The quadratic formula is a universal method that works for any quadratic equation, but it isn't always the fastest approach for a specific problem. Factoring, rewriting ax² + bx + c as a product of two binomials, works quickly for equations with simple integer roots, like the default example here, x² − 3x + 2 factors directly into (x − 1)(x − 2), immediately revealing roots of 1 and 2 without needing the formula at all. Completing the square, the same technique used to derive the quadratic formula, can also be applied directly to solve a specific equation step by step. Graphing, either by hand or with software, visually shows where a parabola crosses the x-axis, useful for a quick estimate or for checking a formula-based answer. The quadratic formula's main advantage over these alternatives is that it always works, regardless of whether an equation factors neatly or not, which is why it remains the standard fallback method taught alongside these other techniques.
Frequently Asked Questions
What happens if I enter 0 for "a"?
If a is zero, the equation isn't quadratic anymore (there's no x² term), it becomes linear instead, and the quadratic formula doesn't apply. Enter a non-zero value for a.
What do complex roots mean practically?
They mean the equation's graph (a parabola) never crosses the x-axis, there's no real number solution, only solutions involving imaginary numbers, which are still valid answers in fields like engineering and physics.
Why does the formula have a ± symbol?
The ± symbol is shorthand for two separate calculations, one using +√(b² − 4ac) and one using −√(b² − 4ac), producing the two roots of the quadratic equation. This reflects the fact that a parabola (the graph of a quadratic equation) can cross the x-axis at up to two distinct points, and the formula needs to capture both of those crossing points.
Where does the quadratic formula come from?
The quadratic formula is derived through a technique called completing the square, algebraically rearranging the general equation ax² + bx + c = 0 into the form of a perfect square plus a remaining constant, then solving for x. Every step in that derivation is standard algebra, the formula itself is just the fully worked-out general solution so that anyone can plug in a, b, and c directly without repeating the derivation each time.
What is a "repeated root" and why does it only give one value?
When the discriminant equals exactly zero, the ± term contributes nothing (since the square root of zero is zero), so both roots calculate to the exact same value. Graphically, this corresponds to a parabola whose lowest (or highest) point touches the x-axis at exactly one point rather than crossing it at two separate points, which is why it's called a repeated or "double" root rather than two distinct real roots.
Can this calculator handle equations not already in ax² + bx + c = 0 form?
Not directly, the quadratic formula requires the equation to be rearranged into standard form first, with everything on one side and 0 on the other. An equation like x² + 5 = 4x needs to be rewritten as x² − 4x + 5 = 0 before the a, b, and c coefficients (1, −4, and 5 here) can be entered into this calculator.