ponderloop.com

Quadratic Equation Solver

Enter the equation as

For ax² + bx + c = 0. Whole numbers, decimals and fractions like 3/4 all work.

Need the slope of a line instead? Try the slope calculator.

2x² − 4x − 6 = 0

x = −1 or x = 3

D = 64 > 0: two distinct real roots, rational.

Discriminant D = b² − 4ac
64
Type of roots
Two distinct real roots
Exact roots
−1 or 3
Roots as decimals
x₁ ≈ −1, x₂ ≈ 3
Vertex
(1, −8)
Axis of symmetry
x = 1
y-intercept
(0, −6)
Opens
Upward (a > 0)
Minimum value
−8 at x = 1
Sum of roots (−b/a)
2
Product of roots (c/a)
−3
Factored form
2(x + 1)(x − 3)
Vertex form
y = 2(x − 1)² − 8

Graph

Graph of y = 2x² − 4x − 6A parabola opening upward with its vertex at (1, −8). It crosses the x-axis at x = −1 and x = 3, and crosses the y-axis at y = −6. Circles mark the roots, a diamond the vertex and a triangle the y-intercept.−2−101234−10−50510xyx₁x₂Vy-int
Circle: a root (where the curve meets the x-axis). Diamond: the vertex. Triangle: the y-intercept.
Show the graph as a table of points
Points on the graph, in order of x
xy = f(x)Point
−210
−10Root x₁
0−6y-intercept
1−8Vertex
2−6
30Root x₂
410

The working, step by step

  1. Standard form. Write the equation as ax² + bx + c = 0. Here a = 2, b = −4, c = −6, so 2x² − 4x − 6 = 0.
  2. Discriminant. D = b² − 4ac = (−4)² − 4 × 2 × (−6) = 16 + 48 = 64.
  3. What D tells you. D > 0, so there are two distinct real roots, and the parabola crosses the x-axis twice. D is the square of a rational number, so the roots are rational and the quadratic factors.
  4. Quadratic formula. x = (−b ± √D) / (2a) = (4 ± √64) / 4.
  5. Exact roots. √64 = 8, so x = (4 + 8) / 4 = 3 and x = (4 − 8) / 4 = −1. The roots are −1 and 3.
  6. Decimal roots. Use the numerically stable form: √D ≈ 8, q = −½(b + sgn(b)√D) ≈ 6, and the roots are q/a and c/q: x ≈ −1 and x ≈ 3. The textbook formula subtracts two nearly equal numbers for one of the roots when b² is much larger than |4ac|, which throws away digits; this form never does (Press et al., Numerical Recipes, section 5.6; Higham, Accuracy and Stability of Numerical Algorithms, section 1.8). D itself is computed exactly first.
  7. Vertex and axis. The vertex is at x = −b / (2a) = −(−4) / (2 × 2) = 1. Its height is y = −D / (4a) = −8, so the vertex is (1, −8). The axis of symmetry is the vertical line x = 1. The parabola opens upward because a > 0, so −8 is the minimum value. The y-intercept is where x = 0: y = c = −6, the point (0, −6).
  8. Completing the square. Divide by a: x² − 2x − 3 = 0. Move the constant: x² − 2x = 3. Add (b / 2a)² = 1 to both sides: (x − 1)² = 4. Take the square root of both sides: x − 1 = ±2, so x = 1 ± 2. In vertex form the equation is y = 2(x − 1)² − 8.
  9. Factored form. With rational roots r₁ = −1 and r₂ = 3, ax² + bx + c = a(x − r₁)(x − r₂) = 2(x + 1)(x − 3). Each factor is zero at one root.
  10. Sum and product of roots. Vieta’s formulas: the roots add up to −b/a = 2 and multiply to c/a = −3. Check: −1 + 3 = 2 and −1 × 3 = −3.