Quadratic Equation Solver
Solve any quadratic equation of the form ax² + bx + c = 0. Find the discriminant, roots (real or complex), vertex, axis of symmetry, and see a step-by-step solution with an interactive parabola graph.
Enter the coefficients a, b, and c for the equation ax² + bx + c = 0 (a must not be zero).
Roots
Tool Highlights
Complete Root Analysis
This solver handles every possible outcome of a quadratic equation. When the discriminant is positive, you get two distinct real roots displayed as exact decimal values. When the discriminant is zero, the tool identifies the single repeated root. When the discriminant is negative, the solver computes complex conjugate roots and displays them in standard a + bi notation, making it invaluable for algebra and pre-calculus courses where complex numbers first appear. The nature of the roots is clearly labeled so you immediately know what type of solution set the equation produces.
Step-by-Step Solutions
Every solution includes a detailed walkthrough of the quadratic formula applied to your specific coefficients. The step-by-step panel shows the discriminant calculation, its interpretation, substitution into the quadratic formula, simplification of the square root, and the final root values. This breakdown is designed for students learning the quadratic formula for the first time, for teachers preparing worked examples, and for anyone who needs to verify their own hand calculations. Each step is numbered and highlights the key mathematical expressions in accent color for easy scanning.
Vertex and Parabola Graph
Beyond finding roots, the solver calculates the vertex coordinates, axis of symmetry, and renders an SVG parabola graph showing the curve in relation to the x-axis. The graph automatically scales to fit the roots and vertex, plots the x-intercepts when they exist, and marks the vertex point. This visual representation helps build geometric intuition about how the coefficients a, b, and c control the shape and position of the parabola, which is essential for understanding optimization problems and the connection between algebra and coordinate geometry.
Getting Started with Quadratic Equation Solver
- Enter the coefficient a (the number in front of x²). This value cannot be zero because the equation would no longer be quadratic. Decimal and negative values are accepted.
- Enter the coefficient b (the number in front of x) and the constant term c. Leave them as zero if the equation lacks a linear or constant term.
- Click the Solve button to compute the discriminant, roots, vertex, and axis of symmetry. The equation preview updates in real time as you type.
- Review the results panel showing the discriminant value, nature of roots, vertex coordinates, and the roots themselves. For complex roots, the imaginary part is displayed with the i symbol.
- Scroll down to see the step-by-step solution explaining every calculation, followed by the SVG parabola graph with the curve, roots, and vertex clearly marked.
When the discriminant (b²−4ac) is negative, the equation has complex roots. In engineering and physics, complex roots indicate oscillatory behavior — springs bouncing, electrical circuits resonating, or waves propagating through a medium.
Forgetting to rearrange the equation into standard form (ax² + bx + c = 0) before identifying coefficients. If your equation is 3x² = 5x − 2, rewrite it as 3x² − 5x + 2 = 0 first, giving a=3, b=−5, c=2.
Understanding Quadratic Equations
A quadratic equation is any equation that can be rearranged into the standard form ax² + bx + c = 0, where a, b, and c are constants and a is not zero. The requirement that a be nonzero is what makes the equation quadratic rather than linear. The word quadratic derives from the Latin quadratus, meaning square, because the highest power of the unknown variable is two. These equations appear throughout mathematics, physics, engineering, economics, and computer science whenever a relationship involves a squared quantity.
The primary method for solving any quadratic equation is the quadratic formula: x = (-b ± sqrt(b² - 4ac)) / (2a). This formula was known in various geometric forms to Babylonian mathematicians around 2000 BCE, and the general algebraic version was developed by Indian and Islamic mathematicians between the sixth and twelfth centuries. The expression under the square root sign, b² - 4ac, is called the discriminant and it completely determines the nature of the solutions. A positive discriminant yields two distinct real roots corresponding to the two points where the parabola crosses the x-axis. A discriminant of zero yields exactly one real root, meaning the parabola touches the x-axis at its vertex. A negative discriminant yields two complex conjugate roots, and geometrically the parabola does not intersect the x-axis at all.
Every quadratic function y = ax² + bx + c graphs as a parabola, a smooth U-shaped curve that opens upward when a is positive and downward when a is negative. The vertex of the parabola is the point where the curve reaches its minimum (if a is positive) or maximum (if a is negative) value. The x-coordinate of the vertex is h = -b/(2a), and substituting this back gives the y-coordinate k = c - b²/(4a). The vertical line x = h is the axis of symmetry, meaning the parabola is a mirror image of itself across this line. Understanding the vertex form y = a(x - h)² + k is crucial for graphing parabolas and solving optimization problems in physics, engineering, and business.
Quadratic equations appear in a wide range of practical situations. In physics, projectile motion is described by quadratic equations because the vertical displacement under constant gravitational acceleration is a second-degree function of time. Engineers use them to model the catenary curves of cables and arches. In finance, compound interest formulas sometimes reduce to quadratic equations when solving for unknown rates or time periods. Computer graphics rely heavily on quadratic curves for rendering smooth shapes and calculating ray-surface intersections. Even the design of satellite dishes and car headlights involves parabolic reflectors, whose cross-sections are described by quadratic equations. This solver gives you instant access to all the mathematical properties of any quadratic equation, whether you are a student working through algebra homework, a professional engineer verifying a calculation, or a curious learner exploring the beauty of parabolic curves.
Common Scenarios
Physics Student
A physics student solves projectile motion problems where the height of a ball follows a quadratic equation. Finding the roots tells them when the ball hits the ground, and the vertex reveals the maximum height reached during flight.
Electrical Engineer
An engineer analyzes RLC circuit behavior by solving the characteristic quadratic equation. Complex roots indicate the circuit will oscillate, while real roots mean it will decay exponentially without oscillation.
Math Tutor
A tutor generates step-by-step solved examples with parabola graphs for a student struggling with the quadratic formula. The visual representation of discriminant, vertex, and roots makes abstract algebra concepts concrete.
FAQ
What is a quadratic equation?
A quadratic equation is a polynomial equation of the second degree, written in the standard form ax² + bx + c = 0. Here, a, b, and c are real-number coefficients, and a must not be zero (otherwise the equation becomes linear). The solutions to a quadratic equation are called roots or zeros, and every quadratic equation has exactly two roots when counted with multiplicity. These roots may both be real numbers, or they may be a pair of complex conjugate numbers. Quadratic equations are fundamental in algebra and appear across nearly every branch of science and engineering, from calculating projectile trajectories to optimizing business revenue functions.
What does the discriminant tell you about a quadratic equation?
The discriminant is the value b² - 4ac, the expression found under the square root in the quadratic formula. It acts as a diagnostic that reveals the nature of the roots without computing them fully. When the discriminant is positive (greater than zero), the square root produces a real number, and the plus-or-minus sign gives two distinct real roots. When the discriminant equals exactly zero, the square root vanishes, and both roots collapse into a single repeated real value known as a double root. When the discriminant is negative, you need the square root of a negative number, which introduces the imaginary unit i, resulting in two complex conjugate roots of the form p + qi and p - qi. The discriminant also has geometric meaning: it tells you whether the parabola crosses the x-axis in two places, just touches it at the vertex, or floats entirely above or below it.
How do you find complex roots of a quadratic equation?
Complex roots arise when the discriminant b² - 4ac is negative. In this case, the quadratic formula still applies, but you must handle the square root of a negative number. Factor out the imaginary unit i (defined as the square root of negative one) from under the radical: sqrt(negative D) becomes i times sqrt(|D|). The two roots become x = -b/(2a) + i times sqrt(|D|)/(2a) and x = -b/(2a) - i times sqrt(|D|)/(2a). These are always complex conjugates of each other, meaning they share the same real part and have opposite imaginary parts. Complex roots indicate that the parabola does not cross the x-axis. This calculator automatically detects a negative discriminant and presents both roots in standard a + bi format.
What is the vertex form of a quadratic equation?
The vertex form is y = a(x - h)² + k, where (h, k) is the vertex of the parabola. This form makes it immediately clear where the peak or trough of the curve is located and how wide or narrow the parabola opens. To convert from standard form ax² + bx + c to vertex form, compute h = -b/(2a) and k = c - b²/(4a), then substitute. Alternatively, you can derive vertex form by completing the square. The vertex form is especially useful for graphing because you can plot the vertex first and then sketch the curve using the value of a to determine direction and steepness. When a is positive, the vertex is the minimum point; when a is negative, the vertex is the maximum point.
What is completing the square and how does it work?
Completing the square is an algebraic method for rewriting a quadratic expression as a perfect square plus a constant. Starting with ax² + bx + c = 0, divide through by a to get x² + (b/a)x + c/a = 0. Move the constant to the right side: x² + (b/a)x = -c/a. Take half of the coefficient of x, which is b/(2a), and square it to get b²/(4a²). Add this quantity to both sides so the left side becomes a perfect square: (x + b/(2a))² = (b² - 4ac)/(4a²). Taking the square root of both sides and solving for x yields the quadratic formula. Completing the square is also the standard technique for converting standard form to vertex form and for deriving the equation of a circle from its expanded form.
How is the axis of symmetry related to the roots?
The axis of symmetry is the vertical line x = -b/(2a) that passes through the vertex of the parabola. It divides the curve into two mirror-image halves, meaning that for any point on one side of the axis, there is a corresponding point at the same height on the other side. When the quadratic equation has two real roots, the axis of symmetry passes exactly halfway between them: x = (x₁ + x₂)/2. This is a direct consequence of the quadratic formula, where the two roots are -b/(2a) plus and minus the same offset. Even when the roots are complex, the real part of both roots equals -b/(2a), confirming that the axis of symmetry still represents the horizontal center of the parabola.
Is this quadratic equation solver free to use?
Yes, this quadratic equation solver is completely free, requires no account or signup, and has no usage limits. All calculations run entirely in your browser using JavaScript, so no data is ever sent to a server and your inputs remain completely private on your device. The tool works on desktops, laptops, tablets, and smartphones with any modern web browser. You can bookmark this page for instant access whenever you need to solve a quadratic equation for schoolwork, exam preparation, engineering calculations, or personal curiosity. The step-by-step solutions and parabola graph are included at no cost with every calculation.