The Quadratic Formula

April 12, 2026

Problem

Solve 2x²−5x−3=0 using x = (−b ± √(b²−4ac))/(2a). Visualize the parabola and roots.

Explanation

The quadratic formula

The quadratic formula solves any equation of the form ax2+bx+c=0ax^2 + bx + c = 0:

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

It always works — even when factoring doesn't. The ±\pm means there are (potentially) two solutions.

Step-by-step solution: Solve 2x25x3=02x^2 - 5x - 3 = 0

Step 1 — Identify aa, bb, cc. a=2a = 2, b=5b = -5, c=3c = -3.

Step 2 — Compute the discriminant Δ=b24ac\Delta = b^2 - 4ac:

Δ=(5)24(2)(3)=25+24=49\Delta = (-5)^2 - 4(2)(-3) = 25 + 24 = 49

Since Δ>0\Delta > 0, there are two distinct real roots.

Step 3 — Apply the formula:

x=(5)±492(2)=5±74x = \frac{-(-5) \pm \sqrt{49}}{2(2)} = \frac{5 \pm 7}{4}

Step 4 — Compute both roots:

x1=5+74=124=3x_1 = \frac{5 + 7}{4} = \frac{12}{4} = 3

x2=574=24=12x_2 = \frac{5 - 7}{4} = \frac{-2}{4} = -\frac{1}{2}

Step 5 — Check both roots.

  • x=3x = 3: 2(9)5(3)3=18153=02(9) - 5(3) - 3 = 18 - 15 - 3 = 0
  • x=1/2x = -1/2: 2(1/4)5(1/2)3=1/2+5/23=02(1/4) - 5(-1/2) - 3 = 1/2 + 5/2 - 3 = 0

The discriminant tells you what to expect

  • Δ>0\Delta > 0: two real roots (parabola crosses x-axis twice)
  • Δ=0\Delta = 0: one repeated root (parabola touches x-axis)
  • Δ<0\Delta < 0: no real roots (parabola misses x-axis)

Common mistakes

  • Sign errors with b-b. If b=5b = -5, then b=(5)=+5-b = -(-5) = +5. Double-check the sign.
  • Forgetting 2a2a in the denominator. The formula divides by 2a2a, not just aa or 22.
  • Arithmetic errors in b24acb^2 - 4ac. Especially when cc is negative: 4(2)(3)=+24-4(2)(-3) = +24, not 24-24.

Try it in the visualization

Adjust aa, bb, cc and watch the parabola shift. The roots (if real) appear as green dots on the x-axis. The discriminant value and its sign are shown — change the sliders to see all three cases (two roots, one root, no real roots).

Interactive Visualization

Parameters

2.00
-5.00
-3.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
The Quadratic Formula | MathSpin