A quadratic equation is an equation in the form ax2+bx+c=0ax^2 + bx + c = 0, where the highest power of the unknown variable is 22. For example, x24x+1=0x^2 - 4x + 1 = 0 is a quadratic equation, whereas 2x+3=02x + 3 = 0 is a linear equation. Keep these two key formulas in mind from the start:

ax2+bx+c=0(a0)ax^2 + bx + c = 0 \quad (a \ne 0)

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Here aa, bb, and cc are the coefficients. In graphing terms, solving the equation is equivalent to finding where the parabola y=ax2+bx+cy = ax^2 + bx + c intersects the xx-axis, which is why the discriminant is so useful for predicting the number of solutions.

Why the discriminant comes first

The discriminant is defined as:

D=b24acD = b^2 - 4ac

Since D=b24acD = b^2 - 4ac sits inside the square root of the quadratic formula, its sign directly determines how many solutions exist within the real numbers:

  • If D>0D > 0, there are two distinct real roots.
  • If D=0D = 0, there is one repeated root (double root).
  • If D<0D < 0, there are no real roots.

The important condition is the "real number range." If we expand our scope to complex numbers, solutions can still exist even if D<0D < 0. Checking the discriminant first tells you exactly how many solutions to expect before you start the main calculation.

The calculation procedure

For a test or homework, follow three steps: organize the equation into standard form, use the discriminant to determine the number of solutions, then calculate with the quadratic formula if necessary.

If an equation factors easily, factoring is the fastest method. But exams often include equations that don't break down neatly into integers, and in those cases the quadratic formula is the most reliable:

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Ensure the equation is organized into ax2+bx+c=0ax^2 + bx + c = 0 before using this formula. Plugging in numbers without organizing first makes it easy to mistake the signs of bb or cc.

Worked example: from start to finish

Solve

x24x+1=0x^2 - 4x + 1 = 0

Since it is already in standard form:

a=1,b=4,c=1a = 1,\quad b = -4,\quad c = 1

1. Check the discriminant first.

D=b24ac=(4)24(1)(1)=164=12D = b^2 - 4ac = (-4)^2 - 4(1)(1) = 16 - 4 = 12

Since D=12>0D = 12 > 0, there are two distinct real solutions.

2. Substitute into the quadratic formula.

x=(4)±1221x = \frac{-(-4) \pm \sqrt{12}}{2 \cdot 1}

Simplifying:

x=4±122x = \frac{4 \pm \sqrt{12}}{2}

Since 12=23\sqrt{12} = 2\sqrt{3}:

x=4±232x = \frac{4 \pm 2\sqrt{3}}{2}

Therefore:

x=2±3x = 2 \pm \sqrt{3}

Two takeaways: you can solve the problem even when factoring isn't obvious, and checking the discriminant first tells you how many solutions to expect before the main calculation.

Practice on your own

Following the same steps, try:

2x2+3x1=02x^2 + 3x - 1 = 0

First identify aa, bb, and cc, calculate the discriminant, and finish with the quadratic formula. Solving one more similar problem makes the process much clearer.

Calculation traps to avoid

Plugging numbers in without converting to standard form

You cannot plug x2+1=4xx^2 + 1 = 4x directly into the formula. Move it to

x24x+1=0x^2 - 4x + 1 = 0

first, so that you correctly identify b=4b = -4.

Mistakes with the sign of b-b

If b=4b = -4, then b=4-b = 4. A single sign error here changes your entire final answer.

Calculating the discriminant but forgetting what it means

Remember the connection: D>0D > 0 means two solutions, D=0D = 0 means one, and D<0D < 0 means no real roots. The discriminant isn't just a tool for calculating a number; it reads the nature of the solutions.

Where quadratic equations are used

Quadratic equations are the foundation of middle and high school algebra and also appear constantly in parabolic graphs, area problems, and maximum/minimum value problems. Whenever a situation is modeled with a squared term, you will eventually need to solve a quadratic equation. When linked to function graphs, the solutions are the points where the parabola meets the xx-axis, so the discriminant is a criterion for whether the graph intersects the xx-axis twice, touches it once, or doesn't meet it at all.

Frequently Asked Questions

How do you solve a quadratic equation step by step?
Follow three steps: organize the equation into the standard form ax squared plus bx plus c equals 0, use the discriminant b squared minus 4ac to determine how many solutions exist, and then compute the solutions with the quadratic formula if needed. If the equation factors easily, factoring is the faster route.
How does the discriminant determine the number of solutions?
The discriminant is D equals b squared minus 4ac. If D is positive there are two distinct real roots, if D is zero there is one repeated root, and if D is negative there are no real roots. This works because D sits inside the square root of the quadratic formula.
Can a quadratic equation have no real solutions?
Yes. When the discriminant is negative, there are no solutions within the real numbers, which means the parabola never crosses the x-axis. However, if you expand the scope to complex numbers, solutions still exist even when the discriminant is negative, so the answer depends on the number system allowed.
When is the quadratic formula the best method?
If an equation factors easily, factoring is fastest. But exams often include quadratics that do not break into neat integer factors, and in those cases the quadratic formula is the most reliable method. It works on any quadratic once the equation is arranged into standard form with the correct signs.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →