Skip to main content

Discriminant Calculator

Calculate discriminant instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods.

Reviewed by Manoj Kumar, Mathematics Educator

Reviewed by Manoj Kumar, Mathematics Educator

Formula

D = b^2 - 4ac

Where a, b, c are coefficients of the quadratic equation ax^2 + bx + c = 0. If D > 0: two distinct real roots. If D = 0: one repeated root. If D < 0: two complex conjugate roots. If D is a perfect square, roots are rational.

Worked Examples

Example 1: Two Distinct Real Roots

Problem:Find the discriminant of x^2 - 5x + 6 = 0 and determine the nature of its roots.

Solution:a = 1, b = -5, c = 6\nDiscriminant = b^2 - 4ac = (-5)^2 - 4(1)(6) = 25 - 24 = 1\nSince discriminant = 1 > 0 and is a perfect square:\nTwo distinct rational real roots\nx = (5 + 1)/2 = 3 and x = (5 - 1)/2 = 2

Result:Discriminant = 1 | Roots: x = 2 and x = 3

Example 2: Complex Conjugate Roots

Problem:Find the discriminant of 2x^2 + 3x + 5 = 0 and describe its roots.

Solution:a = 2, b = 3, c = 5\nDiscriminant = b^2 - 4ac = 9 - 40 = -31\nSince discriminant < 0: two complex conjugate roots\nReal part = -b/(2a) = -3/4 = -0.75\nImaginary part = sqrt(31)/4 = 1.3919\nRoots: -0.75 +/- 1.3919i

Result:Discriminant = -31 | Roots: -0.75 +/- 1.3919i (complex)

Frequently Asked Questions

What is the discriminant and what does it tell you?

The discriminant is the expression b^2 - 4ac found under the square root in the quadratic formula. It determines the nature and number of roots of a quadratic equation ax^2 + bx + c = 0 without actually solving it. When the discriminant is positive, the equation has two distinct real roots. When it equals zero, there is exactly one repeated root (the parabola touches the x-axis at one point). When negative, there are no real roots but two complex conjugate roots. The discriminant also reveals whether the roots are rational or irrational: if the discriminant is a perfect square, the roots are rational; otherwise, they are irrational.

How do you calculate the discriminant step by step?

To calculate the discriminant, first identify the coefficients a, b, and c from the standard form ax^2 + bx + c = 0. Then compute b^2 - 4ac. For example, in 2x^2 - 7x + 3 = 0, we have a = 2, b = -7, c = 3. The discriminant is (-7)^2 - 4(2)(3) = 49 - 24 = 25. Since 25 is positive and a perfect square, this equation has two distinct rational real roots. Always make sure the equation is in standard form before identifying coefficients. If the equation is written as 3x^2 = 5x - 1, first rearrange to 3x^2 - 5x + 1 = 0 before computing the discriminant.

Why is a perfect square discriminant significant?

When the discriminant is a perfect square (like 0, 1, 4, 9, 16, 25, etc.), the square root in the quadratic formula simplifies to a rational number, making both roots rational. This means the quadratic can be factored over the rationals. For example, discriminant = 25 means sqrt(25) = 5, yielding rational roots. If the discriminant is positive but not a perfect square, like 7 or 20, the square root is irrational, producing irrational roots that come in conjugate pairs like (3 + sqrt(7))/2 and (3 - sqrt(7))/2. For factoring exercises, a perfect square discriminant guarantees the expression factors neatly with integer or rational coefficients.

What is the geometric meaning of the discriminant?

Geometrically, the discriminant determines how the parabola y = ax^2 + bx + c intersects the x-axis. A positive discriminant means the parabola crosses the x-axis at two points (two real roots). The larger the discriminant, the farther apart these intersection points are, since the distance between roots equals sqrt(discriminant)/|a|. A zero discriminant means the parabola is tangent to the x-axis, touching it at exactly one point (the vertex). A negative discriminant means the parabola floats entirely above or entirely below the x-axis (depending on the sign of a) with no intersection. This visual interpretation makes the discriminant a powerful tool for understanding quadratic behavior.

References

Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy