🧮 Quadratic Equation Solver – Roots, Vertex & Parabola Properties
A quadratic equation is any polynomial of degree two written in the standard form ax² + bx + c = 0, where a ≠ 0. Quadratics appear everywhere — from the arc of a thrown ball to the profit curves of a business, from the lens curvature in optics to the signal processing algorithms in your phone. This solver computes every meaningful property of a quadratic equation in one place: roots, discriminant, vertex, axis of symmetry, factored form, and vertex form, along with an interactive parabola graph.
📐 The Quadratic Formula
The cornerstone of every quadratic solution is the quadratic formula:
x = (−b ± √(b² − 4ac)) / (2a)
The formula derives from the technique of completing the square. By substituting the three coefficients a, b, and c, you obtain either two distinct values, one repeated value, or a pair of complex conjugate values for x — the exact outcome depends on the discriminant.
🔍 The Discriminant and Root Classification
The discriminant D = b² − 4ac is the expression under the square root. Its sign alone reveals the nature of the solutions:
D > 0
Two distinct real roots. The parabola crosses the x-axis at two separate points.
D = 0
One repeated real root. The parabola is tangent to the x-axis (touches but does not cross).
D < 0
Two complex conjugate roots. The parabola does not intersect the x-axis at any real point.
Understanding the discriminant before solving saves time — especially on timed exams where recognising an irreducible quadratic (negative discriminant) immediately tells you to switch to complex-number arithmetic.
📍 Vertex, Axis of Symmetry & Parabola Shape
Every parabola has a single turning point called the vertex. Its x-coordinate is the axis of symmetry, given by:
h = −b / (2a)
k = f(h) = a·h² + b·h + c
If a > 0 the parabola opens upward and the vertex is the global minimum. If a < 0 it opens downward and the vertex is the global maximum. The y-intercept is simply f(0) = c — the constant term.
✏️ Vertex Form and Factored Form
Two alternative representations give different geometric insights:
- Vertex form
a(x − h)² + kmakes the turning point visible at a glance. It is the preferred form when graphing by hand or identifying transformations of the basic parabolay = x². - Factored form
a(x − r₁)(x − r₂)shows the x-intercepts directly. It is most useful for root finding, polynomial long division, and understanding the sign of the function between its roots.
🔢 Complex Roots Explained
When D < 0, the square root of a negative number is required. The result is a pair of complex conjugates:
x = (−b / 2a) ± (√|D| / 2a) · i
Complex roots always appear as conjugate pairs when the coefficients are real numbers. They have profound applications in electrical engineering (AC circuit analysis), signal processing (frequency response), control systems, and quantum mechanics.
📊 Reading the Interactive Graph
The parabola graph plots f(x) = ax² + bx + c over a window centred on the vertex. Key visual markers include:
- Green dots — the real x-intercepts (roots). Absent when roots are complex.
- Orange dot (V) — the vertex (minimum or maximum).
- Dashed orange line — the axis of symmetry
x = h.
Hover over any point on the curve to see the precise (x, f(x)) coordinates. Try adjusting the coefficients to see how changing a widens or narrows the parabola, changing b shifts it horizontally, and changing cmoves it vertically.
🎓 Step-by-Step Mode
Toggle Show step-by-step to reveal a detailed derivation that walks through every calculation: identifying coefficients, computing the discriminant, applying the quadratic formula, finding the vertex, and deriving the y-intercept. This mode is designed for students who want to verify their work, teachers who need to explain solutions, and professionals who need to audit calculations.
⚡ Practical Applications
Quadratic equations model a remarkable variety of real-world situations:
- Projectile motion — the height of a ball over time follows
h(t) = −½g·t² + v₀t + h₀. - Revenue optimisation — profit as a function of price is often quadratic, and the vertex gives the profit-maximising price.
- Electrical circuits — resonant frequency calculations use quadratic equations involving capacitance and inductance.
- Geometry — computing areas, distances, and the intersection of geometric objects frequently reduces to a quadratic equation.
- Computer graphics — ray-sphere intersection tests in rendering engines solve the quadratic that describes a sphere's surface.
✅ Tips for Accurate Results
- Enter a ≠ 0 — if a = 0 the equation is linear, not quadratic.
- Use negative values for b and c by typing a minus sign before the number.
- Adjust decimal precision (0–10) to control how many significant figures appear.
- For irrational roots (non-perfect-square discriminant), the decimal approximation is shown automatically.
- Factored form is shown when the roots are rational numbers or simple fractions; otherwise only the vertex form is displayed.