About the Quadratic Equation Solver
Quadratic equations model projectiles, areas, profit curves and many exam questions. This quadratic equation solver finds both roots with the quadratic formula, whether real or complex, so x² − 5x + 6 = 0 gives x = 2 and x = 3, and it also reports the discriminant, vertex, axis of symmetry and factored form, with each step written out for checking.
The quadratic formula is x = (−b ± √(b² − 4ac)) ÷ 2a. The discriminant D = b² − 4ac decides the type of answer: if D > 0 there are two different real roots, if D = 0 one repeated real root, and if D < 0 two complex roots of the form p ± qi. The vertex of the parabola is at x = −b ÷ 2a, and substituting that x gives the minimum (if a > 0) or maximum (if a < 0) value.
Example: x² − 3x + 2 = 0 has D = 9 − 8 = 1, so x = (3 ± 1) ÷ 2, giving the roots 2 and 1 and the factored form (x − 1)(x − 2). The vertex is at (1.5, −0.25). For x² + 2x + 5 = 0, D = 4 − 20 = −16, so the roots are complex: −1 + 2i and −1 − 2i, and the parabola never crosses the x-axis.
Exact radical forms are shown where possible, with decimals to 10 places. For systems of linear equations use the system of equations solver, for square roots the square root calculator, and for lines and gradients the slope calculator.
How to use the Quadratic Equation Solver
- Enter a, b and cType the coefficients of ax² + bx + c = 0; a cannot be zero.
- Read the rootsSee both roots, real or complex, as decimals and exact values.
- Check the graph factsSee the discriminant, vertex, axis of symmetry and y-intercept.
- Follow the stepsSee the quadratic formula worked through with your numbers.
Quadratic Equation Solver features
- Real and complex roots
- Discriminant with the type of roots explained
- Vertex, axis of symmetry and y-intercept
- Factored form when the roots are rational
- Exact radical form of irrational roots
- Step-by-step quadratic formula
- Decimal coefficients accepted
Common uses
- Checking algebra homework
- Finding where a projectile lands
- Finding break-even points in quadratic profit models
- Locating a parabola's maximum or minimum
- Preparing for exams with worked examples
Quadratic equations in the real world: flight paths, areas, profits and history
A quadratic equation contains a squared term, such as x² + 3x − 70 = 0, and its graph is a curved parabola. Quadratics describe the flight of a thrown ball, the shape of satellite dishes, the area of a garden with a path around it and the point where a business makes the most profit. This guide works through real examples, shows what the solutions mean, explains why one solution is sometimes rejected and gives a brief history of how quadratics were first solved.
Where quadratics come from
Quadratics arise whenever a quantity depends on the square of another. Area depends on length times width, so problems about rectangles of a certain area lead to quadratics. Under gravity, the height of a thrown object changes with time squared. Revenue often rises with sales at first and then falls when prices are cut too far, giving a curve with a maximum.
A worked example: a thrown ball
A ball is thrown straight up at 15 metres per second from a height of 2 metres. Its height after t seconds is approximately h = −4.9t² + 15t + 2. To find when it hits the ground, solve −4.9t² + 15t + 2 = 0. The discriminant is 15² − 4 × (−4.9) × 2 = 264.2, and the quadratic formula gives t ≈ 3.19 seconds or t ≈ −0.13 seconds.
The negative solution is rejected because it lies before the throw, so the ball lands after about 3.19 seconds. The vertex shows the highest point: at t = 15 ÷ 9.8 ≈ 1.53 seconds, the ball reaches about 13.5 metres.
A worked example: a garden
A rectangular garden is 3 metres longer than it is wide and has an area of 70 square metres. If the width is x, then x(x + 3) = 70, which rearranges to x² + 3x − 70 = 0. This factorises as (x + 10)(x − 7) = 0, so x = 7 or x = −10. A width cannot be negative, so the garden is 7 metres wide and 10 metres long.
As in the ball example, a quadratic often has one solution that makes sense in the real situation and one that does not. Checking the context is part of solving the problem.
Maximum and minimum points
The vertex of a parabola is its highest or lowest point, at x = −b ÷ 2a. In business, if profit is described by a quadratic in the selling price, the vertex gives the price that maximises profit. In engineering, it might give the angle that maximises a projectile's range or the dimensions that minimise material for a container.
The discriminant in context
The discriminant, b² − 4ac, tells you how many real solutions there are. In a real problem, a negative discriminant often has a clear meaning: if you ask when a ball reaches 20 metres and the discriminant is negative, the ball never gets that high. A discriminant of zero means the ball just touches that height at its peak.
Parabolas in design
Satellite dishes, car headlight reflectors and some solar cookers use parabolic shapes because a parabola reflects incoming parallel rays to a single point, the focus. Suspension bridge cables under a uniform load also hang in a shape close to a parabola. Quadratic equations describe all of these shapes.
A short history
Babylonian mathematicians solved problems equivalent to quadratic equations nearly 4,000 years ago, using geometric methods. In the 9th century, the Persian mathematician Muhammad ibn Musa al-Khwarizmi wrote a book whose title gave us the word "algebra", setting out systematic methods, including completing the square, for solving quadratics. The modern formula, written with symbols, developed over the following centuries.
Checking solutions
Always substitute solutions back into the original equation. For the garden, 7 × 10 = 70 confirms the answer. Substitution catches arithmetic slips and confirms that a solution satisfies the real conditions, not just the algebra.
Common mistakes
- Forgetting to rearrange the equation so one side is zero.
- Dropping the negative sign when b is negative.
- Keeping solutions that make no sense in context.
- Dividing only part of the formula by 2a.
Related tools
For pairs of linear equations, use System of Equations Solver. For square roots, try Square Root Calculator, and for slopes of lines, Slope Calculator.
A worked example: maximising revenue
A small shop finds that at a price of p rupees, it sells about 1,000 − 20p units of a product per week. Revenue is price times quantity, R = p(1,000 − 20p) = −20p² + 1,000p, a quadratic with a maximum. The vertex is at p = −1,000 ÷ (2 × −20) = 25, so revenue peaks at a price of Rs 25, giving 500 units and Rs 12,500 a week. Real demand is rarely this tidy, but the method shows why raising prices can reduce income past a certain point.
Using a solver to learn
A solver gives instant answers, which is useful for checking homework, but the steps matter as much as the result. Try each problem by hand first, by factorising, completing the square or using the formula, and then compare your working with the solver's steps. Mistakes usually show up in the discriminant or in the signs, and seeing where your working diverges is the quickest way to learn.
Limits
Solutions are computed exactly where possible and shown as decimals otherwise; complex roots are shown when the discriminant is negative.
Frequently asked questions
What is the quadratic formula?
x = (−b ± √(b² − 4ac)) ÷ (2a). It solves every equation of the form ax² + bx + c = 0, whether or not it factors neatly. The ± sign gives the two roots, one using + and one using −.
What does the discriminant tell me?
D = b² − 4ac. Positive means two real roots, zero means one repeated root, and negative means two complex roots. A perfect-square D with whole-number coefficients means the roots are rational.
How do I find the vertex of a parabola?
The vertex x-coordinate is −b ÷ (2a); substitute it into the equation for the y-coordinate. For x² − 3x + 2, x = 1.5 and y = −0.25.
What are complex roots?
When D < 0 there is no real solution, but there are two complex conjugate solutions p ± qi, where i = √−1. For x² + 2x + 5 = 0 they are −1 ± 2i.
Can a be zero?
No. If a = 0 the equation is linear, bx + c = 0, with the single solution x = −c ÷ b. The solver tells you when that happens.
How do I factor a quadratic?
If the roots are r₁ and r₂, then ax² + bx + c = a(x − r₁)(x − r₂). With roots 1 and 2, x² − 3x + 2 = (x − 1)(x − 2).
What is completing the square?
It rewrites ax² + bx + c as a(x − h)² + k, which shows the vertex (h, k) directly. The quadratic formula itself comes from completing the square on the general equation.
How do I solve a quadratic by factoring?
Find two numbers that multiply to ac and add to b, use them to split the middle term, and factor by grouping. For x² − 3x + 2, the numbers −1 and −2 give (x − 1)(x − 2) = 0, so x = 1 or x = 2.
What do the roots mean on a graph?
They are the x-intercepts, the points where the parabola crosses the x-axis. Two real roots mean two crossings, a double root means the vertex just touches the axis, and complex roots mean the curve never reaches the axis at all.