百科

Quadratic Equation Solver: Formula, Discriminant, and Vertex

How to solve quadratic equations using the quadratic formula. Discriminant analysis, vertex form, and parabola properties explained.

Verified against Khan Academy - Quadratic Formula on 20 Feb 2025 Updated 20 February 2025 4 min read
打开计算器

Translation unavailable - this article is shown in English. View English version

Summary

A quadratic equation is a second-degree polynomial of the form ax^2 + bx + c = 0. These equations model parabolic trajectories, area optimization, projectile motion, and countless other phenomena. The quadratic formula provides exact solutions for any quadratic equation, and the discriminant reveals how many real solutions exist before you even solve it.

How it works

The calculator takes three coefficients (a, b, c) and computes:

  1. Roots (solutions) — the values of x where the parabola crosses the x-axis, found using the quadratic formula.
  2. Discriminant — the value under the square root that determines the nature of the roots: two real, one repeated, or two complex.
  3. Vertex — the highest or lowest point of the parabola, found at x = -b/(2a).
  4. Axis of symmetry — the vertical line x = -b/(2a) that divides the parabola into two mirror halves.

The discriminant

  • D > 0 — two distinct real roots. The parabola crosses the x-axis at two points.
  • D = 0 — one repeated real root (a “double root”). The parabola touches the x-axis at exactly one point.
  • D < 0 — no real roots; two complex conjugate roots. The parabola does not cross the x-axis.

The formulas

x = (-b +/- sqrt(b^2 - 4ac)) / (2a)

Where

a= Coefficient of x^2 (must not be zero)
b= Coefficient of x
c= Constant term
b^2 - 4ac= The discriminant (D)
Vertex: (h, k) = (-b/(2a), c - b^2/(4a))

Where

h= x-coordinate of the vertex (axis of symmetry)
k= y-coordinate of the vertex (minimum or maximum value)

Worked examples

Solve 2x^2 + 5x - 3 = 0

1

Identify coefficients

a = 2, b = 5, c = -3

= a = 2, b = 5, c = -3

2

Calculate the discriminant

D = 5^2 - 4(2)(-3) = 25 + 24

= 49

3

Apply the quadratic formula

x = (-5 +/- sqrt(49)) / (2*2) = (-5 +/- 7) / 4

= x = 2/4 or x = -12/4

4

Simplify

x = 0.5 or x = -3

= Two real roots

Result

x = 0.5 and x = -3

Find the vertex of y = x^2 - 6x + 5

1

Identify coefficients

a = 1, b = -6, c = 5

= a = 1, b = -6, c = 5

2

Calculate x-coordinate of vertex

h = -(-6) / (2*1) = 6/2

= 3

3

Calculate y-coordinate of vertex

k = 5 - (-6)^2 / (4*1) = 5 - 36/4 = 5 - 9

= -4

Result

Vertex is at (3, -4) -- a minimum since a > 0

Practical uses

  • Projectile motion — the height of a thrown ball follows a parabolic path; the roots give when it hits the ground, and the vertex gives maximum height.
  • Area optimization — maximizing the area of a rectangle with a fixed perimeter leads to a quadratic equation.
  • Revenue modeling — if price and demand have a linear relationship, revenue (price times quantity) is quadratic, and the vertex gives maximum revenue.
  • Engineering — parabolic shapes appear in bridges, satellite dishes, and headlight reflectors.

Assumptions & limitations

  • a cannot be zero — if a = 0, the equation becomes linear (bx + c = 0), not quadratic. The calculator rejects a = 0.
  • Complex roots — when the discriminant is negative, the roots involve imaginary numbers. The calculator displays these as a +/- bi where i = sqrt(-1).
  • Floating-point precision — for very large or very small coefficients, rounding may introduce minor inaccuracies in the displayed roots. The calculator uses standard double-precision arithmetic.

数据来源

Academic
quadratic algebra parabola discriminant vertex math