Solve any quadratic equation of the form ax² + bx + c = 0. Compute real or complex roots, discriminant, vertex, and axis of symmetry.
For over 4000 years, mathematicians have sought solutions to quadratic equations. From ancient Babylonian clay tablets to the algebraic derivations of Al-Khwarizmi and later Euler, the quadratic formula x = [-b ± √(b² - 4ac)] / (2a) remains one of the most elegant tools in elementary algebra. This calculator empowers students, engineers, and data scientists to instantly solve and visualize any quadratic function.
Given ax² + bx + c = 0, the discriminant Δ = b² - 4ac determines the nature of roots:
Our calculator uses double-precision arithmetic to compute the discriminant, then applies the quadratic formula. For complex roots, it extracts the real part and imaginary part (√|Δ|/(2a)). The vertex is found using h = -b/(2a) and k = f(h). The interactive graph dynamically adjusts viewing window based on the vertex and roots, ensuring optimal visualization. Each step follows IEEE 754 standards for reliable numeric output.
| Equation | Discriminant | Roots | Vertex |
|---|---|---|---|
| x² - 5x + 6 = 0 | 1 | 2, 3 | (2.5, -0.25) |
| x² + 2x + 5 = 0 | -16 | -1 ± 2i | (-1, 4) |
| 2x² - 8x + 8 = 0 | 0 | 2 (double) | (2, 0) |
| -x² + 4x - 3 = 0 | 4 | 1, 3 | (2, 1) |
The quadratic formula as we know it was refined by Islamic mathematician Muhammad ibn Musa al-Khwarizmi in the 9th century, later generalized by René Descartes and Isaac Newton. The discriminant concept emerged from Gerolamo Cardano's work (16th century). Euler's "Elements of Algebra" (1770) formalized the modern notation. Our tool reflects these centuries of mathematical rigor, validated against Wolfram Alpha and standard algebraic methods.
A retail company models daily revenue as R(p) = -2p² + 120p - 800, where p is price per unit. By solving R(p)=0 we find break-even prices (roots: p≈4.56 and p≈35.44). Vertex (30, 1000) gives optimal price $30 achieving $1000 revenue. Quadratic optimization is essential for decision analytics — this calculator instantly provides those critical values.