Quadratic Functions & Parabolas
Explore y = ax² + bx + c. The vertex, axis of symmetry, roots, and discriminant all update as you drag the coefficients.
The cyan curve is y = ax² + bx + c. The amber point is the vertex, the dashed line is the axis of symmetry, and pink points are real roots. A negative discriminant means the parabola never touches the x-axis.
What you are seeing
The coefficient a controls whether the parabola opens up or down and how narrow it is.
The vertex is at x = −b / (2a). The axis of symmetry passes through it.
The discriminant b² − 4ac tells you whether there are two real roots, one repeated root, or no real roots.
Why it matters
Quadratics model projectile motion, area, optimization, and parabolic reflectors. They are also the first nonlinear functions students analyze in depth.
Complexity & details
Evaluating the curve at n points costs O(n). Roots and vertex are O(1).
Frequently asked questions
What does a negative discriminant mean?+
The parabola never touches the x-axis, so the equation has no real roots. The roots are complex conjugates.
Why is the vertex at −b/2a?+
Completing the square puts the quadratic in vertex form, and the squared term is minimized when x = −b/(2a).