Quadratic Equation Solver
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
Show the graph as a table of points
| x | y = f(x) | Point |
|---|---|---|
| −2 | 10 | |
| −1 | 0 | Root x₁ |
| 0 | −6 | y-intercept |
| 1 | −8 | Vertex |
| 2 | −6 | |
| 3 | 0 | Root x₂ |
| 4 | 10 |
The working, step by step
- Standard form. Write the equation as ax² + bx + c = 0. Here a = 2, b = −4, c = −6, so 2x² − 4x − 6 = 0.
- Discriminant. D = b² − 4ac = (−4)² − 4 × 2 × (−6) = 16 + 48 = 64.
- 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.
- Quadratic formula. x = (−b ± √D) / (2a) = (4 ± √64) / 4.
- Exact roots. √64 = 8, so x = (4 + 8) / 4 = 3 and x = (4 − 8) / 4 = −1. The roots are −1 and 3.
- 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.
- 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).
- 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.
- 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.
- 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.