A quadratic equation is any equation that can be written in the standard form

ax2+bx+c=0,a0ax^2 + bx + c = 0, \qquad a \neq 0

where aa, bb, and cc are constants and xx is the unknown. The condition a0a \neq 0 is what makes it quadratic: if a=0a = 0, the x2x^2 term disappears and you are left with a linear equation. Because the highest power of xx is two, a quadratic equation has at most two real solutions, called its roots. This guide covers the three main solving methods — the quadratic formula, factoring, and completing the square — along with the discriminant, which tells you how many real roots to expect before you solve.

Standard Form And What The Coefficients Mean

Putting an equation in standard form is almost always the first step, because every method below assumes one side equals zero. For example, 2x2+5x=32x^2 + 5x = 3 becomes 2x2+5x3=02x^2 + 5x - 3 = 0, so a=2a = 2, b=5b = 5, and c=3c = -3. Identifying aa, bb, cc correctly — including their signs — is the single most important setup step. A misplaced sign here propagates through every later calculation.

The Discriminant: How Many Real Roots?

The discriminant is the quantity under the square root in the quadratic formula:

Δ=b24ac\Delta = b^2 - 4ac

It tells you the nature of the roots without solving the whole equation:

Discriminant         Roots
------------------   ------------------------------------------
Δ > 0                Two distinct real roots
Δ = 0                One repeated real root (a double root)
Δ < 0                No real roots (two complex conjugate roots)

For 2x2+5x3=02x^2 + 5x - 3 = 0, the discriminant is

Δ=524(2)(3)=25+24=49\Delta = 5^2 - 4(2)(-3) = 25 + 24 = 49

Since 49>049 > 0, there are two distinct real roots. And because 49=7249 = 7^2 is a perfect square, the roots will be rational, which is a hint that factoring may work cleanly.

The Quadratic Formula

The quadratic formula solves any quadratic equation in standard form:

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

The ±\pm produces the two roots. This is the method to reach for when factoring is not obvious, since it never fails as long as a0a \neq 0.

Why The Formula Works (Derivation)

The quadratic formula is not magic — it is completing the square done once, in general. Start from standard form, divide by aa, move the constant to the right, and add (b2a)2\left(\frac{b}{2a}\right)^2 to both sides. The left side becomes a perfect square, and combining the right side over a common denominator gives

(x+b2a)2=b24ac4a2\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}

Take the square root of both sides (keeping the ±\pm) and isolate xx:

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

This derivation also explains why the discriminant b24acb^2 - 4ac controls the number of roots: it is the quantity sitting under the square root.

Solving By Factoring

Factoring is the fastest method when the quadratic factors nicely over the integers. The idea relies on the zero-product property: if a product equals zero, at least one factor is zero.

To factor 2x2+5x3=02x^2 + 5x - 3 = 0, look for two numbers that multiply to ac=(2)(3)=6a \cdot c = (2)(-3) = -6 and add to b=5b = 5. Those numbers are 66 and 1-1. Split the middle term and factor by grouping:

2x2+6xx3=0    2x(x+3)1(x+3)=0    (2x1)(x+3)=02x^2 + 6x - x - 3 = 0 \;\Rightarrow\; 2x(x + 3) - 1(x + 3) = 0 \;\Rightarrow\; (2x - 1)(x + 3) = 0

Setting each factor to zero gives

2x1=0    x=12,x+3=0    x=32x - 1 = 0 \;\Rightarrow\; x = \tfrac{1}{2}, \qquad x + 3 = 0 \;\Rightarrow\; x = -3

Solving By Completing The Square

Completing the square works for every quadratic and is the method behind the formula. Take x2+6x7=0x^2 + 6x - 7 = 0, move the constant across, and add (62)2=9\left(\frac{6}{2}\right)^2 = 9 to both sides to form a perfect square:

x2+6x+9=16    (x+3)2=16x^2 + 6x + 9 = 16 \;\Rightarrow\; (x + 3)^2 = 16

Take square roots and solve:

x+3=±4    x=1   or   x=7x + 3 = \pm 4 \;\Rightarrow\; x = 1 \;\text{ or }\; x = -7

This method is especially useful for finding the vertex of a parabola, since it rewrites the quadratic in vertex form.

Choosing A Method

Situation                              Best method
------------------------------------   --------------------------
Factors over the integers              Factoring (fastest)
Messy / non-integer coefficients       Quadratic formula
Need vertex form or a proof            Completing the square
Just need root count                   Discriminant only

Worked Example 1: Quadratic Formula

Solve 3x25x2=03x^2 - 5x - 2 = 0.

Here a=3a = 3, b=5b = -5, c=2c = -2. Compute the discriminant first:

Δ=(5)24(3)(2)=25+24=49\Delta = (-5)^2 - 4(3)(-2) = 25 + 24 = 49

Since Δ=49>0\Delta = 49 > 0, expect two real roots. Apply the formula:

x=(5)±492(3)=5±76x = \frac{-(-5) \pm \sqrt{49}}{2(3)} = \frac{5 \pm 7}{6} x=126=2orx=26=13x = \frac{12}{6} = 2 \qquad \text{or} \qquad x = \frac{-2}{6} = -\frac{1}{3}

So the roots are x=2x = 2 and x=13x = -\tfrac{1}{3}.

Worked Example 2: A Repeated Root

Solve x26x+9=0x^2 - 6x + 9 = 0.

With a=1a = 1, b=6b = -6, c=9c = 9, the discriminant is

Δ=(6)24(1)(9)=3636=0\Delta = (-6)^2 - 4(1)(9) = 36 - 36 = 0

Because Δ=0\Delta = 0, there is exactly one repeated root. The formula gives

x=6±02=3x = \frac{6 \pm \sqrt{0}}{2} = 3

This matches factoring, since x26x+9=(x3)2x^2 - 6x + 9 = (x - 3)^2, confirming the double root at x=3x = 3. Here the parabola just touches the xx-axis at one point instead of crossing it twice.

Now You Try

Solve 2x27x+3=02x^2 - 7x + 3 = 0 by two different methods and check that they agree. First compute the discriminant (Δ=4924=25\Delta = 49 - 24 = 25), so two rational roots exist; then try factoring by finding numbers that multiply to ac=6a\cdot c = 6 and add to 7-7. Confirm with the quadratic formula. Your roots should be x=3x = 3 and x=12x = \tfrac{1}{2} — if both methods land on the same pair, you have verified your work.

Calculation Traps To Watch

Sign errors in b24acb^2 - 4ac are the most common mistake; when cc is negative, 4ac-4ac becomes positive, so Δ\Delta grows rather than shrinks. The second trap is forgetting that the whole numerator b-b is divided by 2a2a, not just the square-root part — write the fraction bar across the entire numerator. Third, students sometimes divide both sides by xx to "simplify," which silently discards the root x=0x = 0; factor instead. Finally, never drop the ±\pm: a quadratic almost always has two roots, and keeping only the plus sign loses one of them.

Where Quadratic Equations Show Up

Quadratics model projectile motion, area and optimization problems, and the parabolic shapes that appear throughout physics and engineering. Mastering the standard form, the discriminant, and all three solving methods gives you a complete toolkit: the discriminant tells you what to expect, factoring handles the clean cases quickly, and the quadratic formula closes out everything else.

Frequently Asked Questions

What is the standard form of a quadratic equation?
The standard form is a x squared plus b x plus c equals zero, where a, b, and c are constants and a is not zero. The condition that a is nonzero is essential: if a were zero, the x squared term would vanish and the equation would be linear, not quadratic. Writing an equation in standard form is the first step for every solving method.
What does the discriminant tell you?
The discriminant is b squared minus 4 a c, the quantity under the square root in the quadratic formula. If it is positive, there are two distinct real roots. If it equals zero, there is one repeated real root. If it is negative, there are no real roots, only a pair of complex conjugate roots. It lets you predict the number of real solutions before solving.
When should I factor instead of using the quadratic formula?
Factoring is fastest when the quadratic factors nicely over the integers, which often happens when the discriminant is a perfect square. If the coefficients are messy or the discriminant is not a perfect square, the quadratic formula is more reliable because it works for every quadratic regardless of how the numbers behave.
What is completing the square used for?
Completing the square rewrites a quadratic as a perfect square plus a constant, which both solves the equation and produces vertex form for the parabola. It is the method behind the derivation of the quadratic formula, and it is especially useful when you need the vertex, the axis of symmetry, or a clean proof rather than just the roots.
Why does a quadratic have two solutions?
The quadratic formula contains a plus-or-minus sign in front of the square root, which produces two values whenever the discriminant is positive. Geometrically, these correspond to the two points where the parabola crosses the x-axis. When the discriminant is zero the two points merge into one repeated root, and when it is negative the parabola never touches the axis.

Need help with a problem?

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

Open GPAI Solver →