Introduction
Maya, a high school junior in Oakland, is working on her algebra homework. The problem asks her to find when a ball thrown upward at 20 meters per second from a height of 5 meters will hit the ground. The equation is -4.9t squared plus 20t plus 5 equals 0. She stares at it. She tries factoring, but the numbers do not work out cleanly. She tries completing the square, but makes an arithmetic error on the second step. Frustrated, she wonders if there is a tool that just gives her the answer and shows the work.
Quadratic equations are polynomial equations of degree two, written in the standard form ax squared plus bx plus c equals 0. The term "quadratic" comes from the Latin "quadratus," meaning square, referring to the x squared term. The Persian mathematician al-Khwarizmi, working in Baghdad around 820 CE, was the first to systematically solve quadratic equations in his book Al-Jabr, which gave us the word "algebra." His methods were geometric rather than symbolic, but the underlying mathematics is the same. According to Khan Academy, quadratic equations are among the most frequently used equations in applied mathematics.
Quadratic equations appear in physics (projectile motion), engineering (structural calculations), finance (profit optimization), and computer graphics (parabolic curves). Solving them accurately is a core skill in algebra and applied mathematics. This calculator solves any quadratic equation instantly and shows the discriminant, roots, vertex, and axis of symmetry with step-by-step working.
Inputs Required
- Coefficient a: The coefficient of x squared (cannot be zero)
- Coefficient b: The coefficient of x
- Constant c: The constant term
Outputs Provided
- Roots: Real or complex solutions for x
- Discriminant: The value b squared minus 4ac, which determines the nature of the roots
- Vertex: The highest or lowest point of the parabola
- Axis of symmetry: The vertical line through the vertex
How the Calculation Works
The Quadratic Formula
x = (-b ± √(b² - 4ac)) / 2a
This formula always produces the roots of a quadratic equation. The plus-minus symbol means there are two solutions: one using addition and one using subtraction of the square root term. Wolfram MathWorld provides a detailed derivation showing how this formula is derived by completing the square on the standard form.
The Discriminant
Discriminant = b² - 4ac
The discriminant is the value under the square root sign in the quadratic formula. Its sign tells you the nature of the roots without solving the full equation:
- Positive discriminant: Two distinct real roots. The parabola crosses the x-axis at two points
- Zero discriminant: One repeated real root. The parabola touches the x-axis at exactly one point (its vertex)
- Negative discriminant: Two complex (imaginary) roots. The parabola does not cross the x-axis
Vertex of the Parabola
h = -b / (2a)
k = c - b² / (4a)
The vertex (h, k) is the highest or lowest point of the parabola. If a is positive, the parabola opens upward and the vertex is a minimum. If a is negative, it opens downward and the vertex is a maximum.
How to Use the Calculator
- Identify the coefficients a, b, and c from your equation in standard form ax squared plus bx plus c equals 0
- Enter the value of a (the coefficient of x squared). Note: a cannot be zero
- Enter the value of b (the coefficient of x)
- Enter the value of c (the constant term)
- Results display instantly, including roots, discriminant, vertex, and axis of symmetry
Example Calculations
Example 1: Two Real Roots
Solve x squared minus 5x plus 6 equals 0. Here a = 1, b = -5, c = 6. Discriminant: (-5) squared minus 4(1)(6) = 25 - 24 = 1. Roots: x = (5 plus or minus 1) / 2. So x1 = 3 and x2 = 2. The parabola crosses the x-axis at x = 2 and x = 3. The vertex is at h = 5/2 = 2.5, k = 6 - 25/4 = -0.25, which is the minimum point of the parabola.
Example 2: Maya's Projectile Problem
Maya's ball equation: -4.9t squared plus 20t plus 5 equals 0. Here a = -4.9, b = 20, c = 5. Discriminant: 400 - 4(-4.9)(5) = 400 + 98 = 498. Roots: t = (-20 plus or minus √498) / (2 x -4.9) = (-20 plus or minus 22.32) / -9.8. So t1 = (-20 + 22.32) / -9.8 = -0.237 (discard, negative time) and t2 = (-20 - 22.32) / -9.8 = 4.32 seconds. The ball hits the ground after approximately 4.32 seconds. The vertex gives the maximum height at t = 20 / (2 x 4.9) = 2.04 seconds, with a height of -4.9(2.04) squared plus 20(2.04) plus 5 = 25.4 meters.
Real-World Scenarios
Projectile Motion in Physics
A physics student in Boston launches a rocket straight up at 30 meters per second from ground level. The height equation is h = -4.9t squared plus 30t. Setting h = 0 gives t(-4.9t + 30) = 0, so t = 0 (launch) or t = 30/4.6 = 6.12 seconds (landing). The maximum height occurs at the vertex: t = 30 / (2 x 4.9) = 3.06 seconds, h = -4.9(3.06) squared plus 30(3.06) = 45.9 meters. Quadratic equations model every projectile affected by gravity, from basketballs to artillery shells.
Profit Optimization in Business
A bakery in Portland models its daily profit as P = -0.5n squared plus 40n minus 200, where n is the number of cakes sold. The vertex gives the profit-maximizing quantity: n = -40 / (2 x -0.5) = 40 cakes. Maximum profit: P = -0.5(40) squared plus 40(40) minus 200 = -800 + 1600 - 200 = $600. Setting P = 0 gives the break-even points: n = (-40 plus or minus √(1600 - 400)) / -1 = (-40 plus or minus 34.64) / -1, so n = 5.36 or n = 74.64. The bakery breaks even at about 6 cakes and loses money below that threshold. For more business calculations, see our ROI Calculator.
Engineering and Parabolic Design
A civil engineer in Denver designs a parabolic arch bridge. The arch follows y = -0.01x squared plus 0.8x, where x is the horizontal distance in meters from the left support. The maximum height occurs at the vertex: x = -0.8 / (2 x -0.01) = 40 meters, y = -0.01(1600) plus 0.8(40) = 16 meters. The arch spans from x = 0 to x = 80 (where y = 0), giving an 80-meter bridge with a 16-meter peak. Quadratic equations describe parabolic satellite dishes, reflector surfaces, and suspension bridge cables. For related math tools, try our Slope Calculator or our Scientific Calculator.
Why This Calculation Matters
Quadratic equations are among the most frequently used equations in applied mathematics. Whether you are studying algebra, solving physics problems, or optimizing a business model, being able to quickly and accurately find the roots and properties of a quadratic saves significant time and reduces the chance of errors from manual calculation. Al-Khwarizmi's methods from 1,200 years ago remain relevant today in every field that models parabolic relationships.
Common Mistakes to Avoid
- Setting a to zero: When a = 0, the equation becomes linear (bx + c = 0), not quadratic. The quadratic formula does not apply
- Sign errors with b: The formula uses -b, not b. Forgetting to negate b is the most common arithmetic error when applying the formula by hand
- Misinterpreting complex roots: Complex roots do not mean there is no solution; they mean the parabola does not intersect the real number line (x-axis)
- Assuming a positive leading coefficient: When a is negative, the parabola opens downward. The vertex becomes a maximum rather than a minimum
- Not rewriting to standard form first: The equation must be in ax squared plus bx plus c equals 0 form. Move all terms to one side before identifying a, b, and c
Limitations of This Calculator
This calculator solves quadratic equations (degree 2 polynomials) only. It cannot solve cubic equations (degree 3), quartic equations (degree 4), or higher-order polynomials. It does not solve systems of equations or equations with multiple variables. The calculator uses floating-point arithmetic, which can produce small rounding errors for equations with very large or very small coefficients. For equations where the discriminant is extremely close to zero, the calculator may display one root or two nearly identical roots depending on floating-point precision.