The short answer: a quadratic equation is ax² + bx + c = 0, with a ≠ 0. The quadratic formula gives x = [−b ± √(b² − 4ac)] ÷ 2a. The discriminant b² − 4ac tells you whether there are two real roots, one repeated root, or complex roots.

Key takeaways

  • a cannot be zero, or it is not quadratic.
  • The discriminant determines the root type.
  • The vertex is not a root.
  • Check both roots against the original problem.
  • Some roots are not physically meaningful.

The formula

For ax² + bx + c = 0, x = [−b ± √(b² − 4ac)] ÷ 2a. The ± gives two roots. Example: x² − 5x + 6 = 0. a = 1, b = −5, c = 6. Discriminant = 25 − 24 = 1. Roots = (5 ± 1) ÷ 2 = 3 and 2.

The discriminant

b² − 4ac. If positive, two distinct real roots. If zero, one repeated real root. If negative, two complex roots. The discriminant also tells you how many times the parabola crosses the x-axis.

Example: x² + 2x + 5 = 0. Discriminant = 4 − 20 = −16. The roots are complex: −1 ± 2i. The parabola does not cross the x-axis.

Factoring

If the roots are simple integers, factoring may be faster. x² − 5x + 6 = (x − 2)(x − 3). Set each factor to zero: x = 2 or x = 3. Factoring is a shortcut, not a universal method; the quadratic formula works for every quadratic.

The vertex

The vertex is at x = −b ÷ 2a. For y = x² − 5x + 6, the vertex x is 2.5; the y value is 2.5² − 5 × 2.5 + 6 = −0.25. The vertex is the minimum or maximum, not a root. A graphing calculator can show the parabola, the roots, and the vertex together.

Real-world checks

A negative time or a negative length may be mathematically valid but physically meaningless. In a projectile problem, reject a negative time. In an area problem, reject a negative side length. Always check the roots against the context.

An example

A rectangle has a length 3 m longer than its width and an area of 40 m². Let width = x; length = x + 3; x(x + 3) = 40; x² + 3x − 40 = 0. Discriminant = 9 + 160 = 169; roots = (−3 ± 13) ÷ 2 = 5 and −8. The width is 5 m, the length is 8 m. The negative root is rejected.

Common mistakes

  • Forgetting the negative sign in −b.
  • Using a = 0.
  • Dividing only part of the numerator by 2a.
  • Reporting only one root when two are valid.
  • Ignoring the context of the roots.

Deriving the formula

Start with ax² + bx + c = 0. Divide by a: x² + (b/a)x + c/a = 0. Complete the square: (x + b/2a)² = (b² − 4ac)/4a². Take the square root and solve for x. The result is the quadratic formula. The derivation shows why the discriminant appears under the square root.

Two real roots

x² − 7x + 12 = 0. Discriminant 49 − 48 = 1. Roots (7 ± 1)/2 = 4 and 3. Check: 4² − 7×4 + 12 = 0; 3² − 7×3 + 12 = 0. Both roots satisfy the equation.

Repeated root

x² − 6x + 9 = 0. Discriminant 36 − 36 = 0. Root 6/2 = 3. The parabola touches the x-axis at one point. The equation factors as (x − 3)² = 0.

Applications

Quadratics appear in area, projectile motion, profit, and optimization. In a profit model, the vertex may be the maximum; in a projectile model, the roots may be the times when height is zero. The math gives the candidates; the context chooses the meaningful one.

What to compare

Compare the discriminant, the roots, the vertex, and the graph. A root is not always the answer to the real-world question. Check the domain.

Completing the square

For x² + 6x + 5 = 0, move the constant: x² + 6x = −5. Add (6/2)² = 9: x² + 6x + 9 = 4. Factor: (x + 3)² = 4. Take the square root: x + 3 = ±2. Roots: −1 and −5. Completing the square is another route to the same answer.

Graphing

The graph of y = ax² + bx + c is a parabola. If a > 0, it opens upward; if a < 0, downward. The roots are the x-intercepts. The vertex is the minimum or maximum. The discriminant tells how many x-intercepts exist.

Word problems

Set up the equation, solve it, and then check the units and the domain. A negative time or length is often rejected. A quadratic can have two mathematical answers but only one physical answer.

What to compare

Compare the discriminant, the roots, the vertex, and the graph. Check the original equation and the context before reporting the answer.

Choosing a method

Factoring is fastest for simple integer roots. Completing the square is useful for deriving the vertex form. The quadratic formula works for every quadratic, including irrational and complex roots. Graphing shows the shape and the number of real roots. Use the method that fits the numbers.

Checking the roots

Substitute each root back into the original equation. If the result is not zero, the root is wrong. For a complex root, check the real and imaginary parts separately. A quick check catches sign errors.

What to compare

Compare the discriminant, the roots, the vertex, and the graph. Check the original equation and the context before reporting the answer.

Roots and factors

If r is a root, (x − r) is a factor. For x² − 5x + 6, roots 2 and 3 give factors (x − 2)(x − 3). The leading coefficient a scales the factors: a(x − r₁)(x − r₂). This relationship connects the formula, factoring, and the graph.

Sum and product of roots

For ax² + bx + c = 0, the sum of the roots is −b/a and the product is c/a. These identities are a quick check. For x² − 5x + 6, sum 5 and product 6, matching roots 2 and 3.

What to compare

Compare the discriminant, the roots, the vertex, and the graph. Check the original equation and the context before reporting the answer.

A graphing check

Graph y = ax² + bx + c and look for the x-intercepts. The number of intercepts should match the discriminant: two, one, or none. The vertex should sit at x = −b/2a. A graph is a visual check, not a substitute for the algebra.

What to compare

Compare the discriminant, the roots, the vertex, and the graph. Check the original equation and the context before reporting the answer.

Practice

Solve x² − 4x + 3 = 0. Discriminant 16 − 12 = 4; roots (4 ± 2)/2 = 3 and 1. Solve x² + 4x + 4 = 0. Discriminant 0; root −2. Check both by substitution.

What to compare

Compare the discriminant, the roots, the vertex, and the graph. Check the original equation and the context before reporting the answer.

Then check the roots in the original equation.

Use the graph as a visual check.

Check the discriminant and the graph together.

Then check both roots in the original equation.

Check the result with a graph.

Then verify the roots.

Now check.

Now verify.

Now.

Frequently asked questions

What is the quadratic formula?

x = [−b ± √(b² − 4ac)] ÷ 2a for ax² + bx + c = 0.

What does a negative discriminant mean?

The roots are complex; the parabola does not cross the x-axis.

How many roots does a quadratic have?

Two roots, counting a repeated root as one, over the complex numbers. Over the reals, zero, one, or two.

Can a quadratic have a = 0?

No. If a = 0, the equation is linear, not quadratic.

Further reading

Keep exploring

Read next Logarithm: Base, Product Rule, and Scale A logarithm is an exponent in disguise. Learn the definition, the product, quotient and power rules, change of… Read next Order of Operations: PEMDAS and Ambiguous Expressions PEMDAS is a shared convention, not a law of mathematics. Learn the real precedence rules, the exponent and… Read next Significant Figures: Counting, Rounding, and Precision Significant figures record how precisely a value was measured. Learn the counting rules, the addition and multiplication rules,…

Decision path

Use this guide in a decision

Open Math Decision Center Open companion solver