The Quadratic Equation Solver on FreeToolZones solves equations of the form a times x squared plus b times x plus c equals 0, giving the roots, the discriminant, the vertex of the parabola, and the direction in which the parabola opens. Quadratic equations describe thrown balls, profit curves, areas with unknown sides, and any relationship where a quantity depends on the square of another. Solving them by factoring works only for convenient numbers, and completing the square is slow and error-prone. The quadratic formula works for every case, including repeated roots and complex roots, and this tool applies it while showing the discriminant and vertex that explain what kind of answer to expect.
The discriminant, b squared minus 4ac, is the key to the whole problem. If it is positive, there are two distinct real roots, and the parabola crosses the horizontal axis twice. If it is zero, there is one repeated real root, and the parabola just touches the axis at its vertex. If it is negative, there are no real roots, but there are two complex conjugate roots, and the parabola never touches the axis. The Quadratic Equation Solver reports all three cases in words, so you learn the classification as well as the numbers.
What Is the Quadratic Equation Solver?
The Quadratic Equation Solver takes three coefficients, a, b, and c, and solves a times x squared plus b times x plus c equals 0 using the quadratic formula: x equals minus b plus or minus the square root of the discriminant, all divided by 2a. The coefficient a must not be zero, because with a equal to zero the equation is linear, not quadratic, and the tool says so directly. The coefficients may be decimals, including negative numbers, which covers the full range of textbook and applied problems.
For a positive discriminant, the tool shows two distinct real roots, labelled as two distinct real roots. For a zero discriminant, it shows a single double root, labelled as one repeated real root. For a negative discriminant, it shows two complex conjugate roots in the form real part plus or minus imaginary part times i, labelled as two complex conjugate roots with no real roots. In every case, the summary shows the discriminant, the vertex as a coordinate pair, and whether the parabola opens upwards, when a is positive, or downwards, when a is negative.
The vertex is the turning point of the parabola, at x equal to minus b divided by 2a, with y equal to the value of the quadratic at that x. For an upward-opening parabola, the vertex is the minimum point. For a downward-opening parabola, it is the maximum point. That makes the vertex as practically important as the roots: in a profit model, the vertex tells you the best price; in a projectile model, it tells you the maximum height and when it occurs. The tool computes the vertex from the same coefficients, so roots and turning point always agree.
How to Use the Quadratic Equation Solver
- Enter the coefficient a in the a field, b in the b field, and c in the c field. The tool starts with a as 1, b as minus 3, and c as 2, for the equation x squared minus 3x plus 2 equals 0.
- Press Solve, or change any field, because the result updates automatically as you type.
- Read the large display, which shows the roots in the form appropriate to the discriminant, and the note below it, which classifies the roots.
- Check the summary for the Discriminant, the Vertex, and the direction the parabola opens.
With the default values, the discriminant is 9 minus 8, which is 1. The roots are x equals 2 and x equals 1, because minus b is 3, plus or minus 1, divided by 2, gives 2 and 1. The vertex is at x equals 1.5, with y equal to minus 0.25, and the parabola opens upwards. Verify the roots by substitution: 1 squared minus 3 times 1 plus 2 is 0, and 2 squared minus 3 times 2 plus 2 is 0. Both check out. Try a as 1, b as minus 4, and c as 4 to see a double root at 2, with discriminant 0. Try a as 1, b as 0, and c as 1 to see complex roots 0 plus or minus 1i, with discriminant minus 4.
If a is zero, the tool reports that a must not be zero and explains that the equation would be linear. Use the Linear Equation Solver or solve the linear equation by hand in that case. If any field is empty or not a number, the tool asks for values for a, b, and c. Decimal coefficients are accepted, so equations from measurement and modelling work directly without converting to fractions first.
Key Features of the Quadratic Equation Solver
- Quadratic formula: Solves any quadratic equation with real coefficients, including cases that do not factor neatly.
- Three root cases: Distinct real roots, a repeated real root, and complex conjugate roots are each reported with the correct form and a plain-language label.
- Discriminant display: Shows b squared minus 4ac, which classifies the roots before you read them.
- Vertex calculation: Shows the turning point as a coordinate pair, identifying the minimum or maximum of the parabola.
- Opening direction: States whether the parabola opens upwards or downwards, based on the sign of a.
- Decimal coefficients: Accepts decimal and negative coefficients for applied problems.
- Live updates: Results recalculate as you type, so you can watch the roots move as coefficients change.
The complex-root form deserves a note. When the discriminant is negative, the roots are a conjugate pair: they share the same real part, minus b divided by 2a, and have imaginary parts of equal size and opposite sign. The tool computes the imaginary part as the square root of the negative discriminant divided by twice the absolute value of a, and displays both roots with plus and minus signs. For x squared plus 1 equals 0, the roots are 0 plus 1i and 0 minus 1i. For x squared plus 2x plus 5 equals 0, the discriminant is 4 minus 20, which is minus 16, and the roots are minus 1 plus 2i and minus 1 minus 2i.
Practical Use Cases and Worked Examples
Example 1: Two distinct real roots
Solve x squared minus 5x plus 6 equals 0. Enter a as 1, b as minus 5, and c as 6. The discriminant is 25 minus 24, which is 1. The roots are x equals 3 and x equals 2. The vertex is at x equals 2.5, with y equal to minus 0.25, and the parabola opens upwards. Factoring confirms the answer: x squared minus 5x plus 6 factors as x minus 2 times x minus 3, which is zero when x is 2 or 3. The vertex lies halfway between the roots, at 2.5, which is always true for real roots: the axis of symmetry passes through the midpoint of the roots.
Example 2: A repeated root
Solve x squared minus 4x plus 4 equals 0. Enter a as 1, b as minus 4, and c as 4. The discriminant is 16 minus 16, which is 0. The tool shows x equals 2 as a double root, with the note that there is one repeated real root. The vertex is at (2, 0), which is the point where the parabola touches the horizontal axis. The expression factors as x minus 2 squared, which is zero only when x is 2, and positive everywhere else. A repeated root means the parabola is tangent to the axis, touching it without crossing.
Example 3: Complex roots
Solve x squared plus 2x plus 5 equals 0. Enter a as 1, b as 2, and c as 5. The discriminant is 4 minus 20, which is minus 16. The tool shows x equals minus 1 plus 2i and x equals minus 1 minus 2i, with the note that there are two complex conjugate roots and no real roots. The vertex is at (minus 1, 4), above the axis, and the parabola opens upwards, so it never reaches the axis. That geometric picture, a parabola floating entirely above the axis, is exactly what a negative discriminant means.
Example 4: Projectile motion
A ball is thrown upward with height given by h equals minus 5t squared plus 20t plus 2, where t is time in seconds. When does it hit the ground? Set h to 0 and solve minus 5t squared plus 20t plus 2 equals 0. Enter a as minus 5, b as 20, and c as 2. The discriminant is 400 minus 4 times minus 5 times 2, which is 400 plus 40, which is 440. The roots are t equals about minus 0.0976 and t equals about 4.0976. The negative root is not physically meaningful, so the ball lands after about 4.10 seconds. The vertex is at t equals 2, with height 22, so the maximum height is 22 units after 2 seconds, and the parabola opens downwards, as expected for gravity.
Example 5: Area and optimization
A rectangular garden has a fixed perimeter, and its area as a function of width is A equals minus w squared plus 20w. The maximum area occurs at the vertex, where w equals 10, giving area 100. To find where the area is 75, solve minus w squared plus 20w minus 75 equals 0, or equivalently w squared minus 20w plus 75 equals 0. Enter a as 1, b as minus 20, and c as 75. The discriminant is 400 minus 300, which is 100. The roots are w equals 15 and w equals 5. Both widths give area 75, symmetric around the optimum width of 10. The vertex of the original area function, at (10, 100), confirms the maximum.
Example 6: Decimal coefficients
Solve 2x squared plus 3.5x minus 2 equals 0. Enter a as 2, b as 3.5, and c as minus 2. The discriminant is 12.25 minus 4 times 2 times minus 2, which is 12.25 plus 16, which is 28.25. The square root of 28.25 is about 5.315073. The roots are x equals (minus 3.5 plus 5.315073) divided by 4, which is about 0.453768, and x equals (minus 3.5 minus 5.315073) divided by 4, which is about minus 2.203768. The vertex is at x equals minus 0.875, and the parabola opens upwards. Decimal problems like this rarely factor, which is where the formula earns its keep.
Tips and Best Practices
First, always write the equation in standard form, with zero on one side, before entering coefficients. An equation such as x squared equals 3x minus 2 must be rearranged to x squared minus 3x plus 2 equals 0, giving a as 1, b as minus 3, and c as 2. Entering coefficients from the unrearranged form gives the wrong equation. Second, watch the signs of b and c: the most common error is entering a positive b when the equation has minus b. Third, check the discriminant first. It tells you how many real roots to expect, so a surprising root count usually means a coefficient error.
Fourth, verify roots by substitution, especially for applied problems where only one root makes physical sense. Fifth, use the vertex for optimization questions: the x-coordinate of the vertex is the optimal input, and the y-coordinate is the optimal output. Sixth, for complex roots, remember that the two roots are conjugates: if you have one, the other is the same real part with the opposite imaginary sign. Finally, round answers to the precision the problem requires. The tool shows roots to ten decimal places, but a projectile time is usually reported to two or three decimal places.
Limitations
The Quadratic Equation Solver handles a single quadratic equation in one variable with real coefficients. The coefficient a must not be zero. It does not solve cubic or higher-degree equations, systems of equations, quadratic inequalities, or equations with complex coefficients. It does not show step-by-step working, factoring, or completing-the-square steps, and it does not draw the parabola.
Roots are shown to ten decimal places, and the discriminant and vertex to six decimal places, so irrational roots are rounded approximations. Complex roots are shown in rectangular form with real and imaginary parts; polar form is not shown. The tool does not interpret which root is physically meaningful in an applied problem: you must decide based on the context, such as rejecting a negative time or a negative length.
Frequently Asked Questions
What is the discriminant?
It is b squared minus 4ac. If it is positive, there are two distinct real roots. If it is zero, there is one repeated real root. If it is negative, there are two complex roots and no real roots.
What happens when a is zero?
The equation is linear, not quadratic, and the tool reports that a must not be zero. Solve the resulting linear equation separately.
What does a double root mean?
It means the discriminant is zero and both applications of the quadratic formula give the same value. The parabola touches the horizontal axis at its vertex without crossing it.
What are complex roots?
They are roots involving the imaginary unit i, which occur when the discriminant is negative. They come in conjugate pairs, such as minus 1 plus 2i and minus 1 minus 2i, and they mean the parabola never crosses the horizontal axis.
How do I find the maximum or minimum?
Read the vertex. Its x-coordinate is minus b divided by 2a, and its y-coordinate is the value of the quadratic there. For an upward-opening parabola it is the minimum; for a downward-opening parabola it is the maximum.
Can I use decimal coefficients?
Yes. Enter decimals such as 3.5 for b. The tool handles decimal coefficients and shows roots to ten decimal places.
Related Tools
Continue with the Linear Equation Solver for systems of two linear equations, the Scientific Calculator to verify roots by substitution, the Exponent Calculator for squares and powers, the Square Root Calculator for the square root in the formula, and the Number Rounding Tool to round roots for reports. You can also return to the FreeToolZones home page to browse the full tool collection.