Quadratic Formula Calculator
Enter coefficients a, b, and c to solve ax² + bx + c = 0. Instant roots with discriminant, vertex, and step-by-step working.
📐 What is the Quadratic Formula?
The quadratic formula is the universal algebraic method for finding the roots (solutions) of any quadratic equation in the standard form ax² + bx + c = 0, where a, b, and c are real numbers and a is not equal to zero. The formula is: x = (-b ± sqrt(b² - 4ac)) / (2a). It was derived from the technique of completing the square and works for every possible quadratic, whether the roots are integers, fractions, irrational surds, or complex numbers.
The quadratic formula has direct real-world applications across many fields. Engineers use it to calculate projectile trajectories, optimize structural load distributions, and solve resonance frequencies in circuits. Financial analysts apply quadratic equations to break-even analysis, profit maximization, and bond pricing. Physicists use it for kinematics problems involving constant acceleration, while computer graphics programmers rely on it for ray-sphere intersection tests, bezier curve calculations, and collision detection algorithms. Any time a quantity grows or shrinks in proportion to the square of another variable, a quadratic equation arises.
A critical part of the quadratic formula is the expression under the square root sign, called the discriminant: D = b² - 4ac. The discriminant reveals the nature of the solutions before you even finish the calculation. A positive discriminant produces two distinct real roots, corresponding to two x-intercepts on the parabola y = ax² + bx + c. A discriminant of exactly zero produces one repeated real root, meaning the parabola just touches the x-axis at its vertex. A negative discriminant means the parabola does not cross the x-axis at all, and the two roots are complex conjugate numbers involving i = sqrt(-1).
This calculator solves ax² + bx + c = 0 instantly by applying the quadratic formula step by step. It displays both roots, the discriminant and its interpretation, the vertex of the parabola, and the axis of symmetry. The step-by-step panel shows every arithmetic substitution, making it suitable for checking homework, understanding the method, or verifying manual calculations in engineering and science contexts.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1: Two Distinct Real Roots
Solve x² - 5x + 6 = 0 (a=1, b=-5, c=6)
Example 2: Repeated Root (D = 0)
Solve x² - 6x + 9 = 0 (a=1, b=-6, c=9)
Example 3: Complex Conjugate Roots (D < 0)
Solve x² + 2x + 5 = 0 (a=1, b=2, c=5)
Example 4: Irrational Roots
Solve 2x² - 3x - 2 = 0 (a=2, b=-3, c=-2)
❓ Frequently Asked Questions
🔗 Related Calculators
What is the quadratic formula and how does it work?
The quadratic formula x = (-b ± sqrt(b²-4ac)) / (2a) gives the exact roots of any equation ax² + bx + c = 0. It is derived by completing the square on the standard form. The formula handles all cases: rational roots, irrational roots, and complex roots, making it the universal method for solving quadratics.
What is the discriminant of a quadratic equation?
The discriminant D = b² - 4ac determines the nature of the roots without fully solving. D > 0 gives two distinct real roots. D = 0 gives one repeated real root (the parabola touches the x-axis at exactly one point). D < 0 gives two complex conjugate roots with no real x-intercepts.
How do I identify a, b, and c in a quadratic equation?
Rewrite the equation in standard form ax² + bx + c = 0. The coefficient of x² is a, the coefficient of x is b, and the constant term is c. For 3x² - 7x + 2 = 0, a = 3, b = -7, c = 2. Always include the sign: if the x term is subtracted, b is negative.
What does a repeated root mean geometrically?
A repeated root (D = 0) means the parabola y = ax² + bx + c is tangent to the x-axis at exactly one point. The single root x = -b/(2a) is also the x-coordinate of the vertex. The parabola touches zero without crossing it.
What are complex conjugate roots?
When D < 0, the roots are complex numbers of the form p + qi and p - qi, where i = sqrt(-1). They always come in conjugate pairs for equations with real coefficients. Complex roots mean the parabola does not intersect the x-axis at all. The real part p = -b/(2a) is the axis of symmetry.
How do I verify my quadratic solutions?
Substitute each root back into ax² + bx + c. The result should equal zero. For example, if x = 3 is a root of x² - 5x + 6 = 0, check: 9 - 15 + 6 = 0. You can also use Vieta's formulas: the sum of roots equals -b/a and the product of roots equals c/a.
What are Vieta's formulas for a quadratic equation?
For ax² + bx + c = 0 with roots x₁ and x₂: sum of roots x₁ + x₂ = -b/a, and product of roots x₁ × x₂ = c/a. For x² - 5x + 6 = 0: sum = 3 + 2 = 5 = -(-5)/1, product = 3 × 2 = 6 = 6/1. Vieta's formulas let you verify roots quickly and construct quadratics from known roots.
What is the vertex form of a quadratic?
Vertex form is a(x - h)² + k, where (h, k) is the vertex of the parabola. The vertex x-coordinate is h = -b/(2a) and the y-coordinate is k = c - b²/(4a). Vertex form makes the maximum or minimum value of the parabola immediately visible: k is the extreme value, attained at x = h.
Can all quadratic equations be solved with the quadratic formula?
Yes. The quadratic formula works for every quadratic ax² + bx + c = 0 with a not equal to zero, regardless of whether the coefficients are integers, fractions, or irrational numbers. Other methods like factoring or completing the square are faster in special cases, but the quadratic formula is always applicable.
What is the axis of symmetry of a parabola?
The axis of symmetry is the vertical line x = -b/(2a) that passes through the vertex and divides the parabola into two mirror-image halves. It is also exactly halfway between the two real roots. For x² - 5x + 6 = 0 with roots 2 and 3, the axis of symmetry is x = 2.5.
How is the quadratic formula derived?
Start with ax² + bx + c = 0. Divide by a: x² + (b/a)x + c/a = 0. Complete the square by adding (b/2a)² to both sides: (x + b/2a)² = (b² - 4ac)/(4a²). Take the square root of both sides and solve for x to get x = (-b ± sqrt(b²-4ac)) / (2a).
What happens when a quadratic has irrational roots?
Irrational roots appear when the discriminant D is a positive non-perfect square. For example, x² - 3 = 0 has roots x = ±sqrt(3), which are irrational. The calculator displays the decimal approximation. You can confirm a root is irrational by checking that sqrt(D) is not a whole number.