Skip to content
    Greek Mathematician Mascot - Daskalos
    Mathimatikos

    60% off your first year

    Terms

    Student Pro: €35.60 for the first year instead of €89

    Teacher Pro: €75.60 for the first year instead of €189

    Code LAG60. One use per account. Renews automatically at the regular price. Cancel anytime.

    View plans
    algebraequationshigh schooldiscriminant

    How to Solve Quadratic Equations: The Complete Guide

    Mathimatikos TeamFebruary 1, 2025Updated: November 22, 20267 min read
    On this page

    Solving a quadratic equation involves three decisions: put the equation into standard form, check whether it factors simply, and use the discriminant to determine its real roots. This lesson works in the real numbers. Each result comes with a check so that the formula connects to the equation it solves.

    1. Put the equation into standard form

    A quadratic equation has the form:

    ax2+bx+c=0,a≠0.ax^2+bx+c=0,\qquad a\ne0.

    The numbers a,b,ca,b,c are its coefficients, including their signs. The condition a≠0a\ne0 matters: if the coefficient of x2x^2 vanishes, the equation is not quadratic. For example, 0x2+3x−6=00x^2+3x-6=0 is linear and gives x=2x=2. If the coefficients of both x2x^2 and xx are zero, check whether the remaining constant statement is true or impossible.

    Expand brackets, collect like terms, and move everything to one side before identifying the coefficients. For example, x2+6=5xx^2+6=5x becomes x2−5x+6=0x^2-5x+6=0, so a=1a=1, b=−5b=-5, and c=6c=6. A missing term has coefficient zero: in 2x2−8=02x^2-8=0, we have b=0b=0.

    2. Look for a simple factorisation

    For x2−5x+6=0x^2-5x+6=0, find two numbers whose sum is −5-5 and whose product is 66. They are −2-2 and −3-3, giving:

    x2−5x+6=(x−2)(x−3).x^2-5x+6=(x-2)(x-3).

    The equation is therefore equivalent to:

    (x−2)(x−3)=0.(x-2)(x-3)=0.

    A product of real numbers is zero when at least one factor is zero. Thus x−2=0x-2=0 or x−3=0x-3=0, so x=2x=2 or x=3x=3. The two factors do not have to vanish at the same time.

    Check each root in the original equation, x2+6=5xx^2+6=5x:

    • At x=2x=2, the left side is 22+6=102^2+6=10 and the right side is 5⋅2=105\cdot2=10.
    • At x=3x=3, the left side is 32+6=153^2+6=15 and the right side is 5⋅3=155\cdot3=15.

    Factoring is convenient here, but it is not compulsory. If no simple factors are apparent, use the discriminant instead of guessing indefinitely.

    3. Use the discriminant to classify the roots

    Calculate:

    Δ=b2−4ac.\Delta=b^2-4ac.

    If Δ>0\Delta>0, there are two distinct real roots. If Δ=0\Delta=0, there is one real value, called a repeated or double root. If Δ<0\Delta<0, there are no real roots, because the square of a real number cannot be negative.

    For Δ≥0\Delta\ge0, use:

    x1,2=−b±Δ2a.x_{1,2}=\frac{-b\pm\sqrt{\Delta}}{2a}.

    The ±\pm symbol means two calculations: one with addition and one with subtraction. The entire numerator is divided by 2a2a.

    Two roots with a non-square discriminant

    For 2x2+3x−1=02x^2+3x-1=0, the coefficients are a=2a=2, b=3b=3, and c=−1c=-1. Therefore:

    Δ=32−4⋅2⋅(−1)=9+8=17.\Delta=3^2-4\cdot2\cdot(-1)=9+8=17.

    Substitution into the formula gives:

    x1=−3+174,x2=−3−174.x_1=\frac{-3+\sqrt{17}}4,\qquad x_2=\frac{-3-\sqrt{17}}4.

    These are the exact values. Their decimal approximations are 0.28080.2808 and −1.7808-1.7808, but rounding does not replace the exact answer. To check both roots together, write r=(−3+s)/4r=(-3+s)/4, where s=17s=\sqrt{17} or s=−17s=-\sqrt{17}. In either case s2=17s^2=17, so:

    2r2+3r−1=(−3+s)2+6(−3+s)−88=s2−178=0.2r^2+3r-1=\frac{(-3+s)^2+6(-3+s)-8}{8}=\frac{s^2-17}{8}=0.

    One repeated root

    For x2+6x+9=0x^2+6x+9=0, the discriminant is 36−36=036-36=0. The formula gives x=−6/2=−3x=-6/2=-3. Factoring as (x+3)2=0(x+3)^2=0 explains the name “double root”: the same factor occurs twice. There is still only one distinct value of xx. Substitution confirms 9−18+9=09-18+9=0.

    No real roots

    For x2+2x+5=0x^2+2x+5=0, we obtain Δ=4−20=−16\Delta=4-20=-16. There is no real square root of −16-16. Completing the square gives (x+1)2+4=0(x+1)^2+4=0, whose left side is at least 44 for real xx. In the complex numbers the roots are −1±2i-1\pm2i, where i2=−1i^2=-1, but that uses a different number system.

    Where do roots appear on a graph?

    For the function y=ax2+bx+cy=ax^2+bx+c, a real root is the horizontal coordinate of a point where the parabola meets the horizontal axis. The graph of y=x2−5x+6y=x^2-5x+6 crosses at (2,0)(2,0) and (3,0)(3,0). The graph of y=(x+3)2y=(x+3)^2 touches at (−3,0)(-3,0), while y=(x+1)2+4y=(x+1)^2+4 stays entirely above the axis. This gives the discriminant's three cases a visual meaning. A graph can help check your reasoning, but a rough sketch does not establish exact roots.

    4. Avoid three mistakes that change the answers

    Do not cancel a factor that could be zero. From x(x−4)=0x(x-4)=0, dividing straight away by xx loses the solution x=0x=0. Apply the zero-product rule instead: x=0x=0 or x=4x=4. The rule applies to a product equal to zero; you cannot set each factor of a nonzero product equal to zero. Keep parentheses around negative coefficients. If b=−5b=-5, then b2=(−5)2=25b^2=(-5)^2=25 and −b=5-b=5. If aa and cc have opposite signs, the term −4ac-4ac is positive. Write that multiplication before simplifying it. Keep the denominator together. On a calculator, enter (−b+Δ)/(2a)(-b+\sqrt{\Delta})/(2a) for the first root. Omitting parentheses can produce a different order of operations. Keep fractions and radicals until the final step, then check both roots in the original equation.

    5. Practice with answers

    Try each problem before reading its answer. First write the equation with zero on one side, then explain why your chosen method works.

    1. x2−7x+10=0x^2-7x+10=0. Answer: (x−2)(x−5)=0(x-2)(x-5)=0, so x=2x=2 or x=5x=5.
    2. 3x2+2x−2=03x^2+2x-2=0. Answer: Δ=28\Delta=28, so x=(−1±7)/3x=(-1\pm\sqrt{7})/3.
    3. x2−4x+8=0x^2-4x+8=0. Answer: Δ=−16\Delta=-16, so there are no real roots. Equivalently, (x−2)2+4=0(x-2)^2+4=0.

    Compare your calculations by entering the same coefficients into the quadratic equation calculator. Before using the output, identify which branch applies: two real roots, one repeated root, or no real roots. That decision is part of the solution, not an optional final label.

    More articles