How to use this solver
Type the equation as it appears in your problem. Terms can sit on both sides and brackets can stay unexpanded, so 3x² = 5x + 2 and (x + 2)(x − 5) = 18 both work. The solver rearranges it to ax² + bx + c = 0 and shows the a, b and c it found. If you already know the coefficients, type them as a list: 1, −2, −1.
Then choose how the working is shown: the quadratic formula, completing the square, or factoring. All three give the same roots. Seeing the same equation solved two ways is a good way to check your own method. The results also include the vertex, axis of symmetry, minimum or maximum value, intercepts, vertex form and factored form, with a graph of the parabola.
What makes an equation quadratic
A quadratic equation has x² as its highest power: ax² + bx + c = 0 with a ≠ 0. If a is 0, the x² term vanishes and the equation is linear, which the calculator also handles. A quadratic has at most two real solutions, called roots. Its graph, y = ax² + bx + c, is a parabola that opens upwards when a is positive and downwards when a is negative. The real roots are where it crosses the x-axis.
Three ways to solve a quadratic
Factoring
If the left side splits into two brackets, each bracket can be set to zero. For x² + 3x − 28, look for two numbers that multiply to −28 and add to 3: 7 and −4. So (x + 7)(x − 4) = 0, and x = −7 or x = 4. When a is not 1, the AC method finds two numbers that multiply to a × c and add to b, then groups the terms. Factoring is quick, but it only works neatly when the roots are rational. That happens exactly when the discriminant is a perfect square.
Completing the square
Divide by a, move the constant across, then add the square of half the x coefficient to both sides. The left side becomes a perfect square that you can square-root. For x² + 10x + 18 = 0: x² + 10x = −18, then x² + 10x + 25 = 7, so (x + 5)² = 7 and x = −5 ± √7. This method always works, and it is how the vertex form a(x − h)² + k is found.
The quadratic formula
Completing the square on the general equation ax² + bx + c = 0 gives a formula that works every time:
x = (−b ± √(b² − 4ac)) ÷ 2a
To see where it comes from, divide by a and move c/a across: x² + (b/a)x = −c/a. Add (b/2a)² to both sides: (x + b/2a)² = (b² − 4ac)/4a². Taking square roots gives x + b/2a = ±√(b² − 4ac)/2a, and subtracting b/2a gives the formula. The ± is what produces the two roots.
What the discriminant tells you
The expression under the square root, D = b² − 4ac, decides the type of roots before you finish the calculation:
| Discriminant | Roots | Graph | Example |
|---|---|---|---|
| Positive perfect square | Two rational roots | Crosses the x-axis twice | x² + 3x − 28 = 0 (D = 121) |
| Positive, not a perfect square | Two irrational roots in surd form | Crosses twice | x² + 10x + 18 = 0 (D = 28) |
| Zero | One repeated root | Touches the axis at the vertex | 9x² + 24x + 16 = 0 (D = 0) |
| Negative | Two complex conjugate roots | Never meets the x-axis | x² − 6x + 34 = 0 (D = −100) |
Complex roots are written with i, where i² = −1. x² − 6x + 34 = 0 has roots 3 + 5i and 3 − 5i. In a measurement problem, complex roots mean no real value meets the conditions. Check the numbers and assumptions rather than using the real part on its own.
The vertex and the shape of the parabola
The vertex is the turning point, at x = −b/2a. Substitute that back in to get the minimum value (if a > 0) or the maximum value (if a < 0). The vertical line through it is the axis of symmetry, so the two real roots always sit the same distance either side of it. Vertex form, a(x − h)² + k, shows the vertex (h, k) directly. It is what you need when a question asks for the greatest height, the lowest cost or the largest area.
Checking roots
Substitute each root into the original equation: both sides should agree. A second check is quicker. The roots of ax² + bx + c = 0 always add up to −b/a and multiply to c/a (Vieta’s formulas). For x² + 3x − 28 = 0, the roots 4 and −7 add to −3 and multiply to −28, which matches. The calculator runs both checks for you. Do not rely on a graph alone: a small viewing window can hide a root, and a repeated root only touches the axis.
Worked examples from real situations
Dimensions from an area
A rectangular rug is 4 m longer than it is wide and covers 60 m². If the width is x, then x(x + 4) = 60. That rearranges to x² + 4x − 60 = 0, which factors as (x + 10)(x − 6) = 0. A width cannot be negative, so the rug is 6 m by 10 m.
When does a thrown ball land?
A ball is thrown upwards at 15 m/s from 2 m above the ground. Ignoring air resistance, its height is −4.9t² + 15t + 2 metres after t seconds. Setting the height to zero gives roots of about −0.13 and 3.19. Only the positive time makes sense, so the ball lands after about 3.2 seconds. The vertex shows it peaks at about 13.5 m after about 1.53 seconds.
Break-even points and maximum profit
A simple profit model P(q) = −2q² + 40q − 150 gives break-even quantities where P(q) = 0: q = 5 and q = 15. The vertex at (10, 50) shows that the largest profit, 50, comes at a quantity of 10. These conclusions only hold where the model is valid, and if q counts items it must also be a whole number.
A path around a garden
A 10 m by 6 m garden has a path of width x all the way round, and the total area is 96 m². Then (10 + 2x)(6 + 2x) = 96, which simplifies to 4x² + 32x − 36 = 0, or x² + 8x − 9 = 0. The roots are 1 and −9, so the path is 1 m wide.
Two answers that both make sense
In the model h = −5t² + 20t + 1, asking when the height is 16 m gives t = 1 and t = 3 seconds. Both are valid: the object passes 16 m on the way up and again on the way down. Always check each root against what x stands for. A negative length is impossible, but a negative coordinate can be fine.
Common mistakes
- Not making one side zero before reading off a, b and c.
- Losing the sign of b. If b = −3, then −b = 3 and b² = 9.
- Dividing only −b by 2a. The whole numerator, −b ± √D, is divided by 2a.
- Dividing both sides by x, which throws away the root x = 0. Factor x out instead.
- Rounding √D early. Keep the surd or the full decimal until the last step.