Quadratic Equation Solver

Free quadratic equation solver. Enter a, b, c for ax² + bx + c = 0 and get roots using the quadratic formula with step-by-step working.

Free Tool Formerly CalcSolver No Sign-up Instant Results

Quadratic Solver: ax² + bx + c = 0

Comprehensive Guide to Quadratic Equations & Parabolic Geometry

A rigorous, masterclass examination of second-degree polynomials, the algebraic derivation of the quadratic formula, the discriminant, real and complex roots, and real-world trajectory dynamics.

1

The Anatomy of Quadratic Functions and Equations

A quadratic equation is a second-degree polynomial equation in a single variable $x$, where the highest exponent of the unknown is strictly equal to two. In its canonical standard algebraic form, every quadratic equation is expressed as:

ax² + bx + c = 0   (where a ≠ 0 and a, b, c ∈ ℝ)

The coefficients possess specific mathematical significance:

  • $a$ (Quadratic Coefficient): Determines the curvature and concavity of the parabola. If $a > 0$, the parabola opens upward, creating a global minimum. If $a < 0$, it opens downward, producing a global maximum. If $a = 0$, the equation degenerates into a first-degree linear relationship.
  • $b$ (Linear Coefficient): Controls the slope of the parabola at its intersection with the $y$-axis and shifts the horizontal position of the vertex.
  • $c$ (Constant Term): Identifies the precise vertical intercept $(0, c)$ where the curve crosses the $y$-axis.

Beyond standard form, quadratic relationships can be expressed in two other structurally revealing representations:

  • Vertex Form: $y = a(x - h)^2 + k$, where $(h, k)$ represents the exact coordinate of the parabola's vertex or extremum, with $h = -\frac{b}{2a}$ and $k = c - \frac{b^2}{4a}$.
  • Factored (Intercept) Form: $y = a(x - r_1)(x - r_2)$, where $r_1$ and $r_2$ represent the real roots ($x$-intercepts) of the equation.

Geometrically, solving $ax^2 + bx + c = 0$ corresponds to identifying the horizontal coordinates where the parabola intersects the horizontal line $y = 0$. Depending on the vertical placement and orientation of the vertex, a parabola may pierce the $x$-axis at two distinct locations, graze it tangentially at a single point, or hover entirely above or below it.

2

Derivation of the Quadratic Formula & The Discriminant

The universal quadratic formula is not an arbitrary rule; it is derived through the elegant algebraic method known as completing the square. Here is the formal mathematical derivation:

1. Start with standard form:   ax² + bx + c = 0
2. Divide the entire equation by a:   x² + (b/a)x + (c/a) = 0
3. Subtract the constant term:   x² + (b/a)x = -(c/a)
4. Complete the square by adding [b / (2a)]² = b² / (4a²) to both sides:
  x² + (b/a)x + b²/(4a²) = b²/(4a²) - c/a
5. Factor the left side as a perfect square and combine common denominators on the right:
  (x + b/(2a))² = (b² - 4ac) / (4a²)
6. Take the square root of both sides:
  x + b/(2a) = ± √(b² - 4ac) / (2a)
7. Isolate x by subtracting b/(2a):
  x = [-b ± √(b² - 4ac)] / (2a)

The Discriminant ($\Delta$): The radicand expression nestled beneath the radical sign, denoted by the Greek capital letter Delta ($\Delta = b^2 - 4ac$), governs the qualitative nature and count of the equation's roots:

Δ > 0: Two Real Roots

The radical yields a positive real number. The parabola crosses the $x$-axis at two distinct real coordinates: $x_1 = \frac{-b + \sqrt{\Delta}}{2a}$ and $x_2 = \frac{-b - \sqrt{\Delta}}{2a}$. If $\Delta$ is a perfect square, both roots are rational numbers.

Δ = 0: One Repeated Root

The radical vanishes entirely. The parabola's vertex touches the $x$-axis tangentially at exactly one coordinate ($x = -\frac{b}{2a}$). This is a repeated double root of multiplicity two.

Δ < 0: Two Complex Roots

Taking the square root of a negative value introduces the imaginary unit $i = \sqrt{-1}$. The roots form a complex conjugate pair: $x = -\frac{b}{2a} \pm \frac{\sqrt{-\Delta}}{2a}i$. The parabola never touches or intersects the real $x$-axis.

3

Step-by-Step Worked Case Studies

Examine these three comprehensive numerical examples detailing how different discriminant outcomes are computed and verified.

Case Study 1: Two Distinct Real Roots ($\Delta > 0$)

Problem: Solve for $x$: $2x^2 - 7x + 3 = 0$

Step 1: Identify coefficients. $a = 2$, $b = -7$, $c = 3$.
Step 2: Calculate the discriminant ($\Delta$).
Δ = b² - 4ac = (-7)² - 4(2)(3) = 49 - 24 = 25
Because $\Delta = 25 > 0$ and $25 = 5^2$ is a perfect square, there exist two rational real roots.

Step 3: Apply the Quadratic Formula.
x = [-(-7) ± √25] / (2 × 2) = (7 ± 5) / 4
Root 1: $x_1 = \frac{7 + 5}{4} = \frac{12}{4} = 3$
Root 2: $x_2 = \frac{7 - 5}{4} = \frac{2}{4} = 0.5$

Verification via Factoring & Vieta: $(2x - 1)(x - 3) = 2x^2 - 6x - x + 3 = 2x^2 - 7x + 3 = 0$. Sum of roots: $3 + 0.5 = 3.5 = -(-7)/2$. Product: $3 \times 0.5 = 1.5 = 3/2$ ✓.

Case Study 2: One Repeated Real Root ($\Delta = 0$)

Problem: Solve for $x$: $4x^2 - 12x + 9 = 0$

Step 1: Identify coefficients. $a = 4$, $b = -12$, $c = 9$.
Step 2: Calculate the discriminant.
Δ = (-12)² - 4(4)(9) = 144 - 144 = 0
Because $\Delta = 0$, the equation possesses exactly one unique real solution of multiplicity two.

Step 3: Solve for $x$.
x = [-(-12) ± √0] / (2 × 4) = 12 / 8 = 1.5 = 3/2

Geometric Meaning: The parabola touches the $x$-axis tangentially at its vertex $(1.5, 0)$. In factored form, $(2x - 3)^2 = 0$.

Case Study 3: Complex Conjugate Roots ($\Delta < 0$)

Problem: Solve for $x$: $x^2 - 4x + 13 = 0$

Step 1: Identify coefficients. $a = 1$, $b = -4$, $c = 13$.
Step 2: Calculate the discriminant.
Δ = (-4)² - 4(1)(13) = 16 - 52 = -36
Because $\Delta = -36 < 0$, the solutions are complex conjugates involving $i = \sqrt{-1}$.

Step 3: Evaluate roots. $\sqrt{-36} = \sqrt{36} \cdot \sqrt{-1} = 6i$.
x = [-(-4) ± 6i] / (2 × 1) = (4 ± 6i) / 2 = 2 ± 3i
Roots: x₁ = 2 + 3i   and   x₂ = 2 - 3i

Verification: Sum: $(2+3i) + (2-3i) = 4 = -(-4)/1$. Product: $(2+3i)(2-3i) = 2^2 - (3i)^2 = 4 - 9(-1) = 4 + 9 = 13 = 13/1$ ✓.

4

Real-World Applications & Common Computational Traps

Quadratic modeling is critical across engineering, astrophysics, and corporate economics:

Ballistics & Projectile Trajectory

Any projectile launched under constant Earth gravity follows a parabolic altitude model: $h(t) = -4.9t^2 + v_0 t + h_0$ (in meters). Calculating when an artillery shell or flare impacts the ground ($h(t) = 0$) requires solving a quadratic equation for time $t$.

Corporate Revenue Maximization

If price per subscriber follows demand curve $p(x) = 120 - 0.5x$, total revenue is $R(x) = x(120 - 0.5x) = -0.5x^2 + 120x$. Because $a = -0.5 < 0$, the parabola opens downward; the vertex $x = -b/(2a) = -120 / (-1) = 120$ pinpointing optimal subscription sales.

Structural Civil Engineering

Suspension bridge cables and parabolic arches distribute vertical gravitational loads evenly into lateral compression forces. Civil engineers calculate clearance heights and anchor spans by solving quadratic boundary conditions.

Common Pitfalls to Avoid

  • Forgetting to Negate Negative $b$: The formula begins with $-b$. If $b = -7$, then $-b = -(-7) = +7$. A frequent student mistake is writing $-7$, which completely inverts both roots.
  • Truncating the Denominator: The entire numerator $[-b \pm \sqrt{b^2 - 4ac}]$ must be divided by $2a$. Never divide only the radical part or only the leading $-b$ term.
  • Failing to Set Equation to Zero: Before identifying $a, b, c$, the equation must be rearranged so that one side is strictly zero. If given $3x^2 + 5x = 8$, the constant is $c = -8$ (from $3x^2 + 5x - 8 = 0$), not $+8$.
  • Illegal Radical Distribution: The radical $\sqrt{b^2 - 4ac}$ cannot be distributed term-by-term into $\sqrt{b^2} - \sqrt{4ac} = b - 2\sqrt{ac}$. Square roots do not distribute across addition or subtraction.
5

Quadratic Solving Methodologies: Comparative Reference Table

The table below summarizes the four primary methods for solving quadratic equations, contrasting their optimal use cases, computational complexity, and applicability to complex roots:

Resolution Method Optimal Condition Computational Speed Handles Complex Roots? Key Advantage
Factoring (Zero Product) Δ is a clean perfect square Fastest No (impractical) Mental math, reveals linear factors
Square Root Property b = 0 (pure form: ax² + c = 0) Very Fast Yes (x = ±i√(c/a)) Direct algebraic isolation without formula
Completing the Square a = 1 and b is an even integer Moderate Yes Converts directly into vertex form (h, k)
Quadratic Formula Any quadratic equation (Universal) Consistent Yes (Universal) 100% success rate on any coefficients
6

Frequently Asked Questions

Is SolveCalc the new version of CalcSolver?

Yes! SolveCalc (calcsolves.net) is the official upgraded continuation of CalcSolver (also known as Calc Solver). All original interactive calculators, formulas, and math tools have been upgraded with enhanced precision, step-by-step solutions, and comprehensive learning guides.

Can the quadratic formula be used when b = 0 or c = 0?

Yes. If $b = 0$, the equation simplifies to $ax^2 + c = 0$, which yields $x = \pm\sqrt{-c/a}$. Substituting $b = 0$ into the quadratic formula gives the exact same result: $x = \frac{0 \pm \sqrt{0 - 4ac}}{2a} = \pm\frac{\sqrt{-4ac}}{2a} = \pm\sqrt{-\frac{c}{a}}$. If $c = 0$, the equation becomes $ax^2 + bx = 0$, factoring easily into $x(ax + b) = 0$, giving roots $x_1 = 0$ and $x_2 = -b/a$.

What is the geometric meaning of a negative discriminant (Δ < 0)?

When $\Delta = b^2 - 4ac < 0$, taking the square root requires the imaginary unit $i = \sqrt{-1}$, producing two complex conjugate roots. Geometrically, on a real 2D Cartesian plane, this means the parabola never intersects or touches the horizontal $x$-axis. If $a > 0$, the entire parabola hovers strictly above the $x$-axis; if $a < 0$, it resides entirely below the $x$-axis.

Why can coefficient 'a' never equal zero in a quadratic equation?

By definition, the quadratic nature of the equation requires a non-zero second-degree term ($x^2$). If $a = 0$, the quadratic term vanishes ($0 \cdot x^2 = 0$), transforming the equation into $bx + c = 0$, which is a first-degree linear equation. Additionally, in the quadratic formula, the denominator is $2a$; setting $a = 0$ would cause an illegal division by zero.

What are Vieta's formulas for quadratic equations?

Vieta's formulas establish an exact algebraic link between a polynomial's roots and its coefficients. For any quadratic equation $ax^2 + bx + c = 0$ with roots $r_1$ and $r_2$:
Sum of Roots: $r_1 + r_2 = -\frac{b}{a}$
Product of Roots: $r_1 \cdot r_2 = \frac{c}{a}$
This provides a powerful method to immediately verify solved roots or construct a quadratic equation from given solutions.