Quick Answer
For x^2 - 5x + 6 = 0 (a=1, b=-5, c=6), the discriminant is 1, and the two roots are x = 3 and x = 2.
Enter coefficients for ax2 + bx + c = 0
Common Examples
| Input | Result |
|---|---|
| a=1, b=-5, c=6 | x = 3 and x = 2 |
| a=2, b=4, c=-6 | x = 1 and x = -3 |
| a=1, b=-6, c=9 | x = 3 (repeated root) |
| a=1, b=2, c=5 | x = -1 + 2i and x = -1 - 2i |
| a=3, b=0, c=-27 | x = 3 and x = -3 |
How It Works
The Formula
The quadratic formula gives the solutions (roots) of any quadratic equation ax^2 + bx + c = 0:
x = (-b +/- sqrt(b^2 - 4ac)) / (2a)
The expression under the square root, b^2 - 4ac, is called the discriminant and determines the nature of the roots:
- Discriminant > 0: Two distinct real roots. The parabola crosses the x-axis at two points.
- Discriminant = 0: One repeated real root (also called a double root). The parabola touches the x-axis at exactly one point.
- Discriminant < 0: Two complex conjugate roots. The parabola does not cross the x-axis.
The vertex of the parabola y = ax^2 + bx + c is located at:
x = -b / (2a), y = a(-b/(2a))^2 + b(-b/(2a)) + c
The vertex represents the minimum point if a > 0 (parabola opens upward) or the maximum point if a < 0 (parabola opens downward).
The axis of symmetry is the vertical line x = -b/(2a), and the y-intercept is simply c (the value when x = 0).
Worked Example
Solve 2x^2 + 4x - 6 = 0 (a = 2, b = 4, c = -6).
Discriminant = 4^2 - 4(2)(-6) = 16 + 48 = 64. Since 64 > 0, there are two real roots.
x = (-4 +/- sqrt(64)) / (2 x 2) = (-4 +/- 8) / 4.
x1 = (-4 + 8) / 4 = 4 / 4 = 1. x2 = (-4 - 8) / 4 = -12 / 4 = -3.
Vertex: x = -4 / (2 x 2) = -1, y = 2(-1)^2 + 4(-1) - 6 = 2 - 4 - 6 = -8. Vertex at (-1, -8).
Axis of symmetry: x = -1. Y-intercept: -6. Concavity: opens upward (a = 2 > 0).
CalculateY