Discriminant Calculator
Calculate discriminant instantly with our math tool. Shows detailed work, formulas used, and multiple solution methods.
Reviewed for accuracy 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 Discriminant = b^2 - 4ac = (-5)^2 - 4(1)(6) = 25 - 24 = 1 Since discriminant = 1 > 0 and is a perfect square: Two distinct rational real roots x = (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 Discriminant = b^2 - 4ac = 9 - 40 = -31 Since discriminant < 0: two complex conjugate roots Real part = -b/(2a) = -3/4 = -0.75 Imaginary part = sqrt(31)/4 = 1.3919 Roots: -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.
How does the discriminant relate to the quadratic formula?
The quadratic formula x = (-b +/- sqrt(b^2 - 4ac)) / (2a) contains the discriminant b^2 - 4ac under the square root sign. The discriminant directly controls the +/- part of the formula. When the discriminant is positive, sqrt(discriminant) is a real number, and the +/- produces two different values for x, giving two distinct roots. When the discriminant is zero, sqrt(0) = 0, so the +/- makes no difference and both branches give the same root x = -b/(2a). When the discriminant is negative, the square root produces an imaginary number, leading to complex conjugate roots. The discriminant is essentially the decision-maker within the quadratic formula.
Can the discriminant be used for higher-degree polynomials?
Yes, discriminants exist for polynomials of any degree, though they become increasingly complex. For a cubic ax^3 + bx^2 + cx + d, the discriminant involves an 18-term expression. For a quartic, the formula is even more elaborate. The general principle remains the same: the sign of the discriminant reveals information about the nature of roots. For cubics, a positive discriminant indicates three distinct real roots, zero indicates a repeated root, and negative indicates one real root and two complex conjugate roots. Computing higher-degree discriminants by hand is impractical, which is why calculators and computer algebra systems are essential for polynomials beyond degree two.
How do you find the discriminant when the equation is not in standard form?
When a quadratic equation is not in standard form, you must rearrange it to ax^2 + bx + c = 0 before identifying a, b, and c. For equations like 3x^2 + 5 = 8x, rearrange to 3x^2 - 8x + 5 = 0, giving a = 3, b = -8, c = 5. For factored forms like 2(x - 3)(x + 1) = 0, expand to 2x^2 - 4x - 6 = 0, giving a = 2, b = -4, c = -6. For vertex form y = a(x - h)^2 + k, expand to get standard form. Common mistakes include forgetting to move all terms to one side, dropping negative signs when rearranging, or not dividing through when the coefficient is not 1. Always double-check by substituting back.
What role does the discriminant play in the vertex form?
The vertex form y = a(x - h)^2 + k and the discriminant are connected through the vertex coordinates. The x-coordinate of the vertex is h = -b/(2a) and the y-coordinate is k = c - b^2/(4a) = -(discriminant)/(4a). This means the discriminant equals -4ak. When a > 0, a negative discriminant means k > 0 (vertex above x-axis, no real roots). When a > 0, a positive discriminant means k < 0 (vertex below x-axis, two real roots). A zero discriminant means k = 0 (vertex on the x-axis, one repeated root). This connection shows that the discriminant encodes information about the vertex position relative to the x-axis.
How is the discriminant used in solving quadratic inequalities?
The discriminant helps determine the solution set of quadratic inequalities like ax^2 + bx + c > 0. First, compute the discriminant to understand the root structure. If the discriminant is negative and a > 0, the parabola is entirely above the x-axis, so ax^2 + bx + c > 0 for all x (the inequality holds everywhere). If the discriminant is positive, the parabola crosses the x-axis at two points, creating intervals where the expression is positive and negative. For ax^2 + bx + c > 0 with a > 0 and positive discriminant, the solution is x < r1 or x > r2. The discriminant tells you immediately whether the inequality has universal solutions, no solutions, or interval solutions.
What are common mistakes when working with the discriminant?
The most frequent mistake is using b^2 + 4ac instead of b^2 - 4ac, forgetting the subtraction sign. Another common error is not squaring b correctly when b is negative, since (-b)^2 = b^2, not -b^2. Students also confuse the discriminant with the full quadratic formula, computing (-b +/- sqrt(b^2 - 4ac))/(2a) when only b^2 - 4ac is needed. Misidentifying coefficients is another pitfall, especially when terms are missing (like x^2 - 4 = 0 where b = 0) or when the equation needs rearranging. Finally, some students forget that a must not equal zero, since that would make the equation linear, not quadratic. Always verify a is nonzero before computing the discriminant.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎAnnulus Area Calculator
Calculate annulus area with inputs, formulas, and instant results.
๐งฎArea Calculator
Calculate area with inputs, formulas, and instant results.
๐งฎArea of a Rectangle Calculator
Calculate the area, perimeter, and diagonal of a rectangle. Find missing sides from known area. Convert between metric and imperial area units.
๐งฎArea of Crescent Calculator
Calculate area of crescent with inputs, formulas, and instant results.
๐งฎCenter of Mass Calculator
Calculate center of mass with inputs, formulas, and instant results.
๐งฎCentroid Calculator
Calculate centroid with inputs, formulas, and instant results.
๐งฎChord Length Calculator
Calculate chord length with inputs, formulas, and instant results.
๐งฎConic Sections Calculator
Calculate conic sections with inputs, formulas, and instant results.