Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Quadratic Equations






Second-Degree Equations and the Threshold of Multiplicity

When the unknown is squared, equations acquire a new dimension of complexity. A quadratic equation can produce two solutions, one solution, or no real solutions at all — and a single quantity built from its coefficients determines which case applies before any solving begins. Several distinct methods handle the solving itself, each suited to different situations but all ultimately equivalent. Quadratic equations sit at the boundary between elementary algebra and the richer structure of polynomial equations, and the tools developed here — the discriminant, factoring, completing the square, the quadratic formula, and Vieta's formulas — recur throughout mathematics.

Key Terms

Equation Structure

Standard Form— ax2+bx+c=0ax^2 + bx + c = 0 with a≠0a \neq 0
Degree of an Equation— quadratic equations have degree 22
Coefficient— the values aa, bb, cc that determine the equation's behavior

Solutions

Discriminant— Δ=b2−4ac\Delta = b^2 - 4ac, determines the number and type of solutions
Solution Set— may contain two, one, or zero real values
Extraneous Solution— may arise from non-reversible steps during solving

Formulas Used on This Page

Quadratic Formula— x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
Discriminant— Δ=b2−4ac\Delta = b^2 - 4ac
Square Root Property— x2=p  ⟹  x=±px^2 = p \implies x = \pm\sqrt{p}
Completing the Square— x2+bx=(x+b2)2−b24x^2 + bx = \left(x + \frac{b}{2}\right)^2 - \frac{b^2}{4}
Vieta's Formulas (Quadratic)— x1+x2=−bax_1 + x_2 = -\frac{b}{a}, x1⋅x2=cax_1 \cdot x_2 = \frac{c}{a}

See All Algebra Definitions →

See All Algebra Formulas →


Definition and Standard Form

Linear equations are solved by undoing operations one at a time.
In 5x−6=45x - 6 = 4, add 66, then divide by 55: x=2x = 2. Each step peels one operation off xx, and the answer is a single number.
x² = 5x − 6 cannot be peeled that way — and it has two solutions, not one.
The unknown appears twice, once squared and once not. Moving terms around gives x2−5x+6=0x^2 - 5x + 6 = 0, but no single "undo" step frees xx. Trying values shows why one answer could never be enough: the left side hits zero twice.
xx² − 5x + 6is it 0?
06no
12no
20yes
30yes
42no
56no
The definition
A quadratic equation is an equation in one unknown that can be rearranged so the highest power of the unknown is 22 — the form ax2+bx+c=0ax^2 + bx + c = 0 with a≠0a \neq 0.
A quadratic equation in one variable is any equation that can be written as
Definition and Standard Form
ax2+bx+c=0ax^2 + bx + c = 0
where aa, bb, and cc are real constants and a≠0a \neq 0. The requirement a≠0a \neq 0 is what makes the equation genuinely quadratic — if aa were zero, the x2x^2 term would vanish and the equation would reduce to a linear equation.
So x2=5x−6x^2 = 5x - 6 is quadratic, with a=1a = 1, b=−5b = -5, c=6c = 6 — the next step up from linear, the way a square's area is one step up from a side's length.
It is an equation recognized by its form, however it is first written.
The word "quadratic" derives from the Latin word for square, reflecting the presence of x2x^2 as the highest-degree term. The coefficient aa is the leading coefficient, bb is the linear coefficient, and cc is the constant term. Every quadratic equation can be brought into standard form by rearranging: moving all terms to one side and ordering by descending powers of xx.
The equation x2=5x−6x^2 = 5x - 6, for instance, is not in standard form but is still quadratic. Subtracting 5x5x and adding 66 to both sides yields x2−5x+6=0x^2 - 5x + 6 = 0, with a=1a = 1, b=−5b = -5, and c=6c = 6. Recognition is the first step — any equation reducible to the form above, regardless of how it is initially presented, is quadratic and amenable to the methods on this page.
y020406080n = 5x-8-7-6-5-4-3-2-1012345678-24x² − 2x − 3 = 5
x² − 2x − 3 = 5: a quadratic not yet in standard form

The left side is drawn as a parabola and the right side 5 as a level above the axis; the solutions are where the two meet. Moving the 5 across gives x² − 2x − 8 = 0, which lowers the parabola by 5 so the same solutions become its crossings of the axis, the standard-form picture. Shift the level yourself on the equation visual explorer.

Bringing an equation to standard form never changes its solutions, only how they are read.
Nothing is lost: drop the x² term and the linear equation is back.
With a=0a = 0, the form ax2+bx+c=0ax^2 + bx + c = 0 becomes bx+c=0bx + c = 0, solved by the old undoing steps. Every linear technique still applies inside the new methods — factoring and the quadratic formula both end in small linear equations.
What is lost is the one-step answer: a quadratic can have two solutions, one, or none among the real numbers.
Undoing operations no longer works on its own, so new methods are needed — factoring, completing the square and the quadratic formula — and the number of solutions has to be found, not assumed. The section on solving by factoring starts with the most direct one.
The rest of the page covers the notation, solving by factoring, by completing the square and by the quadratic formula, the discriminant, Vieta's formulas and reducible equations.

Quadratic Notation

Notation

Quadratic Notation

The contract behind aa, bb, cc, the two letters that both mean discriminant, and what a lowered index does that a raised one does not.
The ±\pm — radical notation; ii and the conjugate pair — complex numbers;  \sqrt{\ } — roots.
ax2+bx+c=0ax^2 + bx + c = 0
Standard form — descending powers, everything on the left
A notational contract, not just a tidy habit: aa, bb, cc have meaning only relative to this form. The formula and the discriminant read their inputs from it — feed them coefficients from an unrearranged equation and every sign is suspect.
CasesFrom x2=5x−6x^2 = 5x - 6 the contract reads b=−5b = -5, not 55 — the sign travels with the term during the rearrangement in Definition and Standard Form above. The function f(x)=ax2+bx+cf(x) = ax^2 + bx + c is a different object: a parabola; the =0= 0 asks only where it crosses.
Also writtenMonic form x2+px+q=0x^2 + px + q = 0 — after dividing by aa; Vieta's formulas are cleanest there, as p and q pick up the sum and product directly.
Do not confuseA claim about xx. Standard form asserts nothing by itself — it is a position for the pieces, the notational equivalent of lining up digits before long division.
Δ=b2−4ac\Delta = b^2 - 4ac
Delta — the discriminant
One number, two letter traditions: Δ\Delta in most international and university texts — this page's choice, in The Discriminant below — and capital DD in Russian, German, and much school-level writing. Same definition, same verdicts.
CasesThe sign gives the verdict: Δ>0\Delta > 0 two real roots, Δ=0\Delta = 0 a double root, Δ<0\Delta < 0 a conjugate pair. Beyond the sign, its size only sets distances on the graph, as Connection to Graphing below shows.
Also writtenD=b2−4acD = b^2 - 4ac — interchangeable; pick whichever your course uses and stay with it.
Do not confuseThe other deltas. Δx\Delta x is an increment and Δ\Delta alone often means “change in” — the discriminant Δ\Delta is a single fixed number computed from coefficients, related to neither.
x1,  x2x_1, \; x_2
x one and x two — the two roots
Lowered indices enumerate: x1x_1 and x2x_2 are two different numbers sharing a letter. Position is everything — lowered counts, raised operates: x2x_2 is the second root, x2x^2 is a square.
CasesA double root is written x1=x2x_1 = x_2 — two labels, one value. Vieta's formulas in Vieta's Formulas below treat the pair symmetrically, which is why the labels never need to say which root is which.
Also writtenx′x', x′′x'' in some older European texts — a prime-based enumeration that collides with derivative notation and has largely died out for exactly that reason.
Do not confuseSequence indexing. In sequences the subscript ana_n runs over infinitely many positions; here it is a finite enumeration — two names, fixed in advance, nothing running.
DownloadPNG2×PDF
Notation · Cheat sheet
Polynomials, Equations and Inequalities: Notation at a Glance
The marks from the notation cards across the polynomial, equation and inequality pages: how each is read and what it means. Every group links to the full card on its page.
Polynomial roots
anxn+⋯+a0a_n x^n + \cdots + a_0
a-n x to the n, down to a-zero
Standard form; the subscript of each coefficient is its power of xx.
deg⁡P=n\deg P = n
the degree of P is n
The highest power with a nonzero coefficient.
(x−r)m(x - r)^m
x minus r, to the multiplicity m
The root rr counted mm times.
Polynomial rules
P=(x−c) Q+RP = (x - c)\,Q + R
quotient and remainder
Division as a product: quotient Q(x)Q(x), remainder R=P(c)R = P(c).
P(c),  P(−x)P(c), \; P(-x)
P of c; P of minus x
Put in, not multiply: a value, and a new polynomial.
±pq\pm\frac{p}{q}
plus or minus p over q
Rational root candidates: p∣a0p \mid a_0, q∣anq \mid a_n.
r1,…,rnr_1, \ldots, r_n
r sub one to r sub n
The roots, listed once per multiplicity.
Quadratic equationsThis page
ax2+bx+c=0ax^2 + bx + c = 0
standard form
Descending powers, everything on the left, a≠0a \neq 0.
Δ=b2−4ac\Delta = b^2 - 4ac
delta, the discriminant
Its sign tells how many real roots there are.
x1,  x2x_1, \; x_2
x one and x two
The two roots; the subscripts only count.
Absolute value equations
∣x∣|x|
the absolute value of x
Distance of xx from 00; never negative.
∣a+b∣|a + b|
absolute value of a plus b
The bars cover the whole quantity: add first, then take the size.
∣x∣=x2|x| = \sqrt{x^2}
the root of the square
A second definition, handy with radicals.
Inequalities
(a,b)(a, b)
open interval from a to b
Endpoints left out.
[a,b][a, b]
closed interval from a to b
Endpoints included.
(a,∞)(a, \infty) · (−∞,a](-\infty, a]
rays
Infinity always takes a round bracket.
∪\cup
union
Joins two intervals into one solution set.
Linear inequalities
<< · ≤\leq · >> · ≥\geq
less than … greater than or equal to
The bar under the sign adds equality.
−3<2x+1≤7-3 < 2x + 1 \leq 7
a compound inequality
Both conditions at once: an "and".
(−∞,9](-\infty, 9]
from minus infinity to nine, inclusive
The solution written as an interval.
Same marks, different job
∣x∣, ∣z∣, ∣A∣|x|, \ |z|, \ |A|Absolute value of a number, modulus of a complex number, determinant of a matrix: the same two bars.
(a,b)(a, b)An open interval here; a point in the plane in coordinate geometry.
pp in pq\frac{p}{q}Any divisor of a0a_0, not necessarily a prime.
Polynomials, Equations and Inequalities: Notation at a Glance·/algebra/polynomials/rootsLearn Math Class

Solving by Factoring

RULEZero-product property
When the quadratic expression ax2+bx+cax^2 + bx + c can be decomposed into a product of two first-degree factors, the equation reduces to a pair of linear equations through the zero-product property: if a product of two factors equals zero, at least one of the factors must be zero.

Example
Consider x2−5x+6=0x^2 - 5x + 6 = 0. The left side factors as (x−2)(x−3)=0(x - 2)(x - 3) = 0. Setting each factor equal to zero gives x−2=0x - 2 = 0 or x−3=0x - 3 = 0, so x=2x = 2 or x=3x = 3. Both values satisfy the original equation.

Pitfall: Factoring before the right side is zero
Setting each factor of x(x−1)=6x(x - 1) = 6 equal to 66 gives x=6x = 6 or x=7x = 7, but 6⋅5=306 \cdot 5 = 30. Moving the 66 first gives x2−x−6=(x−3)(x+2)=0x^2 - x - 6 = (x - 3)(x + 2) = 0, so x=3x = 3 or x=−2x = -2.

When the leading coefficient is not 11, factoring requires more care. The equation 6x2+x−2=06x^2 + x - 2 = 0 factors as (2x−1)(3x+2)=0(2x - 1)(3x + 2) = 0, giving x=12x = \frac{1}{2} or x=−23x = -\frac{2}{3}. Finding these factors involves searching for two binomials whose product reconstructs the original trinomial — a process that amounts to finding two numbers whose product is acac and whose sum is bb.

Factoring is efficient when it works, but it has a fundamental limitation: not every quadratic with rational coefficients factors into binomials with rational entries. The equation x2−2=0x^2 - 2 = 0 has solutions x=±2x = \pm\sqrt{2}, which are irrational, so no factorization over the rationals exists. A method that handles every quadratic without exception requires a different approach.

Fact: Three odd coefficients, no rational roots
If aa, bb and cc are all odd, ax2+bx+c=0ax^2 + bx + c = 0 has no rational root. An odd b2b^2 leaves remainder 11 on division by 88 and 4ac4ac leaves 44, so b2−4acb^2 - 4ac leaves 55, a remainder no perfect square has.

Whether a search for factors can succeed is decided before it starts. With integer coefficients, a quadratic factors over the rationals exactly when b2−4acb^2 - 4ac, the quantity under the square root in the formula derived below, is a perfect square. For x2−5x+6x^2 - 5x + 6 it is 25−24=125 - 24 = 1, and the factors exist; for x2−2x^2 - 2 it is 88, and no factors with rational entries exist.
(x - 2)(x - 3) = 0 exactly where x - 2 = 0 or x - 3 = 0xx = 2: x − 2 = 0x = 3: x − 3 = 0x − 2x − 3(x − 2)(x − 3) = x² − 5x + 6The product is zero exactly where one factor is zero
Factoring turns one quadratic into two linear equations

The section's x² − 5x + 6 = (x − 2)(x − 3). The two factor lines cross the axis at x = 2 and x = 3, and the parabola, their product, is zero at exactly those inputs and nowhere else: a product vanishes only when one of its factors does.

The zero-product property is why the right side must be 0 before factoring.

Solving by Completing the Square

Completing the square transforms any quadratic equation into a form where the solution can be extracted by taking a square root. The method works unconditionally — it does not depend on whether the quadratic factors neatly.

Square Root Property
x2=p  ⟹  x=±px^2 = p \implies x = \pm\sqrt{p}
Learn more about this formula: Square Root Property →


Completing the Square
x2+bx=(x+b2)2−b24x^2 + bx = \left(x + \frac{b}{2}\right)^2 - \frac{b^2}{4}
Learn more about this formula: Completing the Square →


Starting from ax2+bx+c=0ax^2 + bx + c = 0, divide every term by aa to obtain x2+bax+ca=0x^2 + \frac{b}{a}x + \frac{c}{a} = 0. Move the constant to the right side:

Solving by Completing the Square
x2+bax=−cax^2 + \frac{b}{a}x = -\frac{c}{a}

The left side is almost a perfect square trinomial. Adding (b2a)2\left(\frac{b}{2a}\right)^2 to both sides completes it:

Solving by Completing the Square
x2+bax+b24a2=b24a2−cax^2 + \frac{b}{a}x + \frac{b^2}{4a^2} = \frac{b^2}{4a^2} - \frac{c}{a}

The left side factors as a perfect square:

Solving by Completing the Square
(x+b2a)2=b2−4ac4a2\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}

Pitfall: Dropping the negative square root
Taking only the positive root of (x−2)2=9(x - 2)^2 = 9 gives x−2=3x - 2 = 3, so x=5x = 5 alone. Both roots count: x−2=±3x - 2 = \pm 3, so x=5x = 5 or x=−1x = -1.

Taking the square root of both sides and isolating xx gives the two solutions. The expression under the square root, b2−4acb^2 - 4ac, determines whether those solutions are real or complex.

Example
As a concrete example, consider x2+6x+2=0x^2 + 6x + 2 = 0. Move the constant: x2+6x=−2x^2 + 6x = -2. Half of 66 is 33, and 32=93^2 = 9. Add 99 to both sides: x2+6x+9=7x^2 + 6x + 9 = 7. Factor: (x+3)2=7(x + 3)^2 = 7. Take roots: x+3=±7x + 3 = \pm\sqrt{7}. The solutions are x=−3+7x = -3 + \sqrt{7} and x=−3−7x = -3 - \sqrt{7}.
x²3x3x54x +3x +3(x + 3)² − 4 = 0
x² + 6x + 5 = 0 becomes (x + 3)² − 4 = 0

The x² block and the 6x strip, split into two 3x halves, form an incomplete square; adding the 3 × 3 corner completes it, and the constant 5 falls short of that 9 by 4, so the equation reads (x + 3)² = 4 and x + 3 = ±2. The method is this rearrangement of area. Step through the corner and the gap on the completing the square visualizer.

The quadratic formula in the next section is this construction carried out once with letters.

The Quadratic Formula

Applying the method of completing the square to the general equation ax2+bx+c=0ax^2 + bx + c = 0 — with letters in place of specific numbers — produces a universal formula:

Quadratic Formula
x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
Learn more about this formula: Quadratic Formula →


This is the quadratic formula. It accepts any real coefficients aa, bb, cc (with a≠0a \neq 0) and returns the solutions directly. The ±\pm symbol indicates that two values are generated: one using the positive square root and one using the negative.

For the equation 2x2−3x−5=02x^2 - 3x - 5 = 0, the coefficients are a=2a = 2, b=−3b = -3, c=−5c = -5. Substituting:

The Quadratic Formula
x=−(−3)±(−3)2−4(2)(−5)2(2)=3±9+404=3±494=3±74x = \frac{-(-3) \pm \sqrt{(-3)^2 - 4(2)(-5)}}{2(2)} = \frac{3 \pm \sqrt{9 + 40}}{4} = \frac{3 \pm \sqrt{49}}{4} = \frac{3 \pm 7}{4}

Pitfall: Dividing only the root by 2a
Writing x=−b±b2−4ac2ax = -b \pm \frac{\sqrt{b^2 - 4ac}}{2a} for x2−6x+5=0x^2 - 6x + 5 = 0 gives 6±426 \pm \frac{4}{2}, so 88 and 44. The whole numerator goes over 2a2a: 6±42\frac{6 \pm 4}{2}, so x=5x = 5 or x=1x = 1.

The two solutions are x=104=52x = \frac{10}{4} = \frac{5}{2} and x=−44=−1x = \frac{-4}{4} = -1.

The formula is not a separate technique from completing the square — it is the result of completing the square once, in general form, so that the work never needs repeating. Every specific application of completing the square arrives at the same place the formula reaches in a single substitution.

To solve your own quadratic equation with each step shown, use the quadratic equation solver.
2x^2 - 3x - 5 = 0: roots 3/4 plus or minus 7/4xy−2−11234−7−6−5−4−3−2−112345678axis x = −b/2a = 3/4y = 2x² − 3x − 53/4 − 7/4 = −13/4 + 7/4 = 5/2Roots = −b/2a ± √Δ/2a: 7/4 either side of the axis
What the ± in the formula does

The section's 2x² − 3x − 5 = 0. The term −b/2a = 3/4 is the parabola's axis of symmetry; √Δ/2a = √49/4 = 7/4 is how far each root sits from it. The ± sends one root left and one right: 3/4 − 7/4 = −1 and 3/4 + 7/4 = 5/2.

When the discriminant is 0 the half-width vanishes and the two roots merge on the axis.
Taking the formula apart: the ±\pm sign, the discriminant under the root, and the 2a2a below.
DownloadPNG2×PDF
the formula, part by part

The quadratic formula

completing the square once, in general form: put in a, b, c and read off both solutions
x=−b±√b2−4ac2a
1The solutionsx
What the formula returns: the roots of ax² + bx + c = 0, the points where the parabola meets the x-axis. Example: for 2x² − 3x − 5 = 0 the formula gives x = 5/2 and x = −1.
2Centre line−b
Divided by 2a, −b gives the vertex line x = −b/2a, halfway between the two solutions. When the discriminant is 0, the single solution sits exactly there. Example: b = −3, so −b = 3 and the centre is 3/4, halfway between 5/2 and −1.
3Two solutions±
One solution adds the square root, the other subtracts it, so the two solutions sit symmetrically around −b/2a. Example: (3 + 7)/4 = 5/2 and (3 − 7)/4 = −1.
4Discriminantb² − 4ac
The discriminant: positive gives two real solutions, zero gives one, negative gives none. Its square root sets the gap between them, √Δ / |a|. Example: (−3)² − 4(2)(−5) = 49, √49 = 7, gap 7/2.
5Divides everything above2a
The whole numerator goes over 2a, and the formula needs a ≠ 0. Example: 2a = 4, so all of 3 ± 7 is divided by 4. Dividing only the 7 gives 3 ± 7/4, which is wrong.
The quadratic formula, part by part·/algebra/equations/quadraticLearn Math Class
The part most often misread is the denominator: 2a2a divides −b-b as well as the square root. The discriminant alone tells how many real solutions to expect.

The Discriminant

The expression appearing under the square root in the quadratic formula is called the discriminant:

Discriminant
Δ=b2−4ac\Delta = b^2 - 4ac
Learn more about this formula: Discriminant →


Its value determines the nature and number of solutions without requiring the full computation.

When Δ>0\Delta > 0, the square root is a positive real number, and the formula produces two distinct real solutions. The equation x2−5x+3=0x^2 - 5x + 3 = 0 has Δ=25−12=13>0\Delta = 25 - 12 = 13 > 0, so two different real roots exist.

When Δ=0\Delta = 0, the square root vanishes, and the formula collapses to a single value x=−b2ax = -\frac{b}{2a}. The quadratic has a repeated root — a double root — and the polynomial factors as a(x−r)2a(x - r)^2 where r=−b2ar = -\frac{b}{2a}. The equation x2−6x+9=0x^2 - 6x + 9 = 0 has Δ=36−36=0\Delta = 36 - 36 = 0 and the single solution x=3x = 3.

Pitfall: Losing the sign of a negative c
Computing −4ac-4ac for x2+2x−3=0x^2 + 2x - 3 = 0 as −12-12 gives Δ=4−12=−8\Delta = 4 - 12 = -8 and no real roots. With c=−3c = -3, −4ac=−4(1)(−3)=12-4ac = -4(1)(-3) = 12, so Δ=16\Delta = 16 and x=1x = 1 or x=−3x = -3.

When Δ<0\Delta < 0, no real number has a negative square, so the square root does not produce a real value. Over the real numbers, the equation has no solutions. Over the complex numbers, the formula yields two conjugate roots x=−b±i∣Δ∣2ax = \frac{-b \pm i\sqrt{|\Delta|}}{2a}, where ii is the imaginary unit. The equation x2+x+1=0x^2 + x + 1 = 0 has Δ=1−4=−3<0\Delta = 1 - 4 = -3 < 0 and the complex roots x=−1±i32x = \frac{-1 \pm i\sqrt{3}}{2}.

The discriminant is a diagnostic tool: it classifies the equation's solution structure from the coefficients alone.
Discriminant Δ = b² − 4ac # real roots Type of roots Example
Δ > 0 2 two distinct real roots x² − 5x + 3 = 0 (Δ = 13)
Δ = 0 1 one repeated (double) real root x² − 6x + 9 = 0 (Δ = 0)
Δ < 0 0 two complex conjugate roots x² + x + 1 = 0 (Δ = −3)
y0204060n = 0x-8-7-6-5-4-3-2-1012345678x² + 4 = 0
x² + 4 = 0: the parabola never reaches the axis

The vertex sits at height 4 above the axis, so no real x makes the expression zero: the discriminant 0² − 4 · 1 · 4 = −16 is negative and there are no crossings to mark. Lower the parabola by 4 and the crossings merge into one at the vertex; lower it further and two appear. Watch the discriminant change sign on the equation visual explorer.

Positive, zero, negative: two crossings, one, none.

Vieta's Formulas

The French mathematician François Viète established a direct relationship between the roots of a quadratic equation and its coefficients. For the equation ax2+bx+c=0ax^2 + bx + c = 0 with roots x1x_1 and x2x_2:

Vieta's Formulas (Quadratic)
x1+x2=−bax1⋅x2=cax_1 + x_2 = -\frac{b}{a} \qquad x_1 \cdot x_2 = \frac{c}{a}
Learn more about this formula: Vieta's Formulas (Quadratic) →


These identities follow from factoring the quadratic as a(x−x1)(x−x2)=0a(x - x_1)(x - x_2) = 0 and expanding: a[x2−(x1+x2)x+x1x2]=0a[x^2 - (x_1 + x_2)x + x_1 x_2] = 0. Matching coefficients with ax2+bx+cax^2 + bx + c produces both formulas.

Vieta's formulas serve three purposes. First, they verify solutions: after solving x2−7x+10=0x^2 - 7x + 10 = 0 and obtaining x1=2x_1 = 2, x2=5x_2 = 5, check that 2+5=7=−−712 + 5 = 7 = -\frac{-7}{1} and 2⋅5=10=1012 \cdot 5 = 10 = \frac{10}{1}. Both match, confirming the answers.

Second, they construct equations from known roots.

Example
If a quadratic equation must have roots x1=−3x_1 = -3 and x2=4x_2 = 4, then x1+x2=1x_1 + x_2 = 1 and x1⋅x2=−12x_1 \cdot x_2 = -12, so the equation is x2−x−12=0x^2 - x - 12 = 0 (taking a=1a = 1).

COROLLARY
The roots determine the equation uniquely up to a constant multiple.

Fact: A number and its reciprocal share decimals
The golden ratio φ≈1.618\varphi \approx 1.618 solves x2−x−1=0x^2 - x - 1 = 0, whose roots multiply to −1-1 and add to 11. So the other root is −1φ-\frac{1}{\varphi}, and φ−1φ=1\varphi - \frac{1}{\varphi} = 1 gives 1φ≈0.618\frac{1}{\varphi} \approx 0.618, with exactly the decimals of φ\varphi.

Third — and often overlooked — they can be used to solve quadratic equations directly when the roots are simple integers. Instead of factoring or applying the formula, the question becomes: which two numbers sum to −ba-\frac{b}{a} and multiply to ca\frac{c}{a}? For x2−7x+10=0x^2 - 7x + 10 = 0, this asks for two numbers summing to 77 and multiplying to 1010 — namely 22 and 55. The roots are read off by inspection. This approach is fastest when applicable but limited: it works only when the roots are obvious enough to spot, which restricts it to quadratics with integer or simple rational solutions. For irrational or complex roots, the formula remains necessary. In practice, Vieta's inspection is essentially a special case of factoring — finding the factorization (x−x1)(x−x2)(x - x_1)(x - x_2) by going through the roots rather than the trinomial — but it is fast enough on simple cases to deserve recognition as a method in its own right.
Quantity In terms of roots In terms of coefficients Use
Sum x₁ + x₂ −b ⁄ a solve by inspection, verify, construct from roots
Product x₁ · x₂ c ⁄ a solve by inspection, verify, construct from roots
The coefficients already hold the sum and product of the roots, so roots can be checked, built or guessed without solving.

Reducible Equations

Certain equations of degree higher than two can be converted into quadratic equations through substitution. The key is recognizing that the equation's structure mirrors the quadratic pattern au2+bu+c=0au^2 + bu + c = 0, with some expression playing the role of uu.

The most common case is the bi-quadratic equation ax4+bx2+c=0ax^4 + bx^2 + c = 0. Setting u=x2u = x^2 transforms it into au2+bu+c=0au^2 + bu + c = 0, a standard quadratic in uu. Solving for uu yields up to two values, and each positive value of uu produces two values of xx via x=±ux = \pm\sqrt{u}. A negative value of uu contributes no real solutions for xx.

Example
For example, x4−5x2+4=0x^4 - 5x^2 + 4 = 0 becomes u2−5u+4=0u^2 - 5u + 4 = 0 with u=x2u = x^2. Factoring gives (u−1)(u−4)=0(u - 1)(u - 4) = 0, so u=1u = 1 or u=4u = 4. Back-substituting: x2=1x^2 = 1 gives x=±1x = \pm 1, and x2=4x^2 = 4 gives x=±2x = \pm 2. The original quartic has four real solutions.

Pitfall: Stopping at the substitute variable
Giving u=4u = 4 and u=−1u = -1 as the solutions of x4−3x2−4=0x^4 - 3x^2 - 4 = 0 answers for uu, not for xx. Back-substituting, x2=4x^2 = 4 gives x=±2x = \pm 2 and x2=−1x^2 = -1 gives no real xx, so the real solutions are x=±2x = \pm 2.

The substitution pattern extends beyond powers of xx. Any equation of the form a[f(x)]2+b[f(x)]+c=0a[f(x)]^2 + b[f(x)] + c = 0 is quadratic in f(x)f(x). Setting u=f(x)u = f(x) reduces it, and back-substitution after solving requires solving f(x)=u1f(x) = u_1 and f(x)=u2f(x) = u_2 separately. Extraneous solutions can arise during back-substitution, so every candidate must be checked in the original equation.
Original form Substitute Becomes Recover x by
ax⁴ + bx² + c = 0 (bi-quadratic) u = x² au² + bu + c = 0 x = ±√u for each u ≥ 0
a[f(x)]² + b·f(x) + c = 0 (general) u = f(x) au² + bu + c = 0 solve f(x) = u₁ and f(x) = u₂; verify all candidates
An equation that is quadratic in some expression is solved for that expression first, then each value is turned back into xx.

Connection to Graphing

RULE
The solutions of ax2+bx+c=0ax^2 + bx + c = 0 correspond to the points where the parabola y=ax2+bx+cy = ax^2 + bx + c meets the xx-axis.

At these points the output value is zero, which is precisely what the equation demands. The discriminant controls the geometry of this intersection.

When Δ>0\Delta > 0, the parabola crosses the xx-axis at two distinct points, and the equation has two real solutions. The horizontal distance between these crossing points is Δ∣a∣\frac{\sqrt{\Delta}}{|a|}, so a larger discriminant means the roots are farther apart.

When Δ=0\Delta = 0, the parabola is tangent to the xx-axis — it touches at exactly one point and turns back. The vertex of the parabola sits on the axis, and the double root x=−b2ax = -\frac{b}{2a} is the xx-coordinate of that vertex.

When Δ<0\Delta < 0, the parabola lies entirely above the xx-axis (if a>0a > 0) or entirely below it (if a<0a < 0). It never reaches the axis, so no real intersection exists and the equation has no real solutions. The vertex is the closest the parabola comes to the axis, and the gap between them is ∣Δ∣4∣a∣\frac{|\Delta|}{4|a|}, so it grows with how negative the discriminant is.

The sign of aa determines the parabola's orientation — opening upward when a>0a > 0 and downward when a<0a < 0 — but it does not affect the number of solutions. That role belongs exclusively to the discriminant.
Discriminant x-axis intersection Geometric behavior
Δ > 0 two distinct points parabola crosses the axis; gap between roots is √Δ ⁄ |a|
Δ = 0 one point (tangent) vertex sits on the axis at x = −b ⁄ 2a
Δ < 0 none parabola entirely above (a > 0) or below (a < 0) the axis
y0204060n = 0x-8-7-6-5-4-3-2-1012345678-22x² − 4 = 0
x² − 4 = 0: the solutions are the x-intercepts

The two crossings of the parabola with the axis, at −2 and 2, are the two solutions of the equation: solving a quadratic and finding the x-intercepts of its graph are the same task. The vertex halfway between them sits on the axis of symmetry x = −b/2a. Drag the parabola and watch the intercepts move together on the equation visual explorer.

Every algebraic method on this page locates these two points without drawing the curve.

Summary of Solving Methods

Four methods cover every quadratic equation in practice. Two are universal — completing the square and the quadratic formula always work. Two depend on the equation's specific structure: factoring needs a clean rational decomposition, and Vieta's inspection needs roots simple enough to spot. The table below summarizes when to reach for each, whether it is universal, and what insight each one produces beyond the solution itself.
Method When to use Universal? Notes
Factoring when the quadratic factors over the rationals ✗ fastest when applicable; uses the zero-product property
Completing the square always ✓ conceptual root; produces the quadratic formula in the general case
Quadratic formula always ✓ direct substitution; surfaces the discriminant explicitly
Vieta's / inspection when integer roots are visible from sum and product ✗ guess two numbers with sum −b ⁄ a and product c ⁄ a; only practical when roots are simple
DownloadPNG2×PDF
Before you read
Four ways to solve a quadratic
Two methods always work; two are shortcuts that work only when the numbers cooperate.
Solving quadratic equations4 methods
Factoring
Worksonly if it factors over Q\mathbb{Q}
Thenzero-product property
Completing the square
Worksalways
Bonusderives the formula
Quadratic formula
Worksalways
Bonusshows the discriminant
Vieta, by inspection
Howguess roots from sum −b/a-b/a and product c/ac/a
Takeaway
Start fast, fall back safe
Try factoring or Vieta first; when they fail, completing the square or the formula always finish the job.
Four ways to solve a quadratic·/algebra/equations/quadraticLearn Math Class

Formula Summary

This summary collects the formulas of the page in one table, in the order the page builds them. Each row gives the name with a line on where the formula comes from and a link to its section, the formula itself, and what it gives.

It starts from the standard form and the square root property, then follows completing the square from the identity to the completed form of the general equation. The quadratic formula comes out of that last line, the discriminant is the part under its square root, and Vieta's formulas close the table with the sum and the product of the roots.
DownloadPNG2×PDF
FormulaStatementWhat it gives
Standard formThe coefficients aa, bb and cc used by every formula below, from definition and standard form.ax2+bx+c=0ax^2 + bx + c = 0the shape every quadratic equation is brought to, with a≠0a \neq 0
Square root propertyThe last step of completing the square; the ±\pm keeps both roots.x2=p  ⟹  x=±px^2 = p \implies x = \pm\sqrt{p}both solutions of a squared expression equal to a number
Completing the squareThe identity behind completing the square, which works whether or not the quadratic factors.x2+bx=(x+b2)2−b24\displaystyle x^2 + bx = \left(x + \frac{b}{2}\right)^2 - \frac{b^2}{4}turns the two xx terms into one perfect square
Completed formDividing by aa and adding (b2a)2\left(\frac{b}{2a}\right)^2 to both sides in completing the square gives this line.(x+b2a)2=b2−4ac4a2\displaystyle \left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}the general equation after the square is completed
Quadratic formulaTaking the square root of the completed form, as the quadratic formula does.x=−b±b2−4ac2a\displaystyle x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}both solutions of any quadratic equation
DiscriminantThe part under the root; the discriminant reads the number of solutions from it.Δ=b2−4ac\Delta = b^2 - 4actwo real roots, one repeated root or none, by its sign
Vieta's formulasFrom expanding a(x−x1)(x−x2)a(x - x_1)(x - x_2); Vieta's formulas uses them to check solutions.x1+x2=−bax1⋅x2=ca\displaystyle x_1 + x_2 = -\frac{b}{a} \qquad x_1 \cdot x_2 = \frac{c}{a}the sum and the product of the roots
Quadratic equation formulas·All algebra formulasLearn Math Class
Read from top to bottom, the table is one derivation: completing the square on the standard form produces the quadratic formula. The discriminant then says how many real solutions to expect before computing them, and Vieta's formulas check the answer once it is found.

Common Pitfalls

Five mistakes account for most wrong answers to quadratic equations. Each one is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
DownloadPNG2×PDF
1Factoring before the right side is zero
The equation is already written as a product, but the product equals a number other than zero. The zero-product property is applied anyway, and each factor is set equal to that number.
Start
x(x−1)=6x(x - 1) = 6
Wrong turn
Error here
  ⟹  x=6 or x−1=6\implies x = 6 \text{ or } x - 1 = 6
  ⟹  x=6 or x=7\implies x = 6 \text{ or } x = 7
Right path
Move every term to one side first.
x2−x−6=0x^2 - x - 6 = 0
  ⟹  (x−3)(x+2)=0\implies (x - 3)(x + 2) = 0
  ⟹  x=3 or x=−2\implies x = 3 \text{ or } x = -2
Why it happensThe left side already looks factored, so bringing the equation to standard form seems unnecessary. But the zero-product property works only because zero is special: a product is 00 only when one factor is 00, while a product of 66 can come from 2⋅32 \cdot 3, 12⋅1212 \cdot \frac{1}{2} or infinitely many other pairs.
How to checkSubstitute each answer into the original equation. x=6x = 6 gives 6⋅5=306 \cdot 5 = 30 and x=7x = 7 gives 7⋅6=427 \cdot 6 = 42, neither equal to 66. The right answers give 3⋅2=63 \cdot 2 = 6 and (−2)(−3)=6(-2)(-3) = 6.
2Dropping the negative square root
After completing the square, the equation has the form (x+k)2=p(x + k)^2 = p with p>0p > 0, and only the positive square root of pp is taken.
Start
(x−2)2=9(x - 2)^2 = 9
Wrong turn
Error here
  ⟹  x−2=3\implies x - 2 = 3
  ⟹  x=5\implies x = 5
Right path
Both 33 and −3-3 square to 99.
  ⟹  x−2=±3\implies x - 2 = \pm 3
  ⟹  x=5 or x=−1\implies x = 5 \text{ or } x = -1
Why it happensThe symbol 9\sqrt{9} means only the positive root, 33, and taking the square root of both sides is read as applying that symbol. The equation asks for every number whose square is 99, and there are two.
How to checkWhen p>0p > 0, the equation (x+k)2=p(x + k)^2 = p always has two roots, placed symmetrically around x=−kx = -k. Here 55 and −1-1 lie 33 units on either side of 22, and (−1−2)2=9(-1 - 2)^2 = 9.
3Dividing only the root by 2a
The quadratic formula is copied with the fraction bar under the square root alone, so −b-b is left outside the division.
Start
For x2−6x+5=0x^2 - 6x + 5 = 0, with a=1a = 1, b=−6b = -6, c=5c = 5 and Δ=36−20=16\Delta = 36 - 20 = 16:
Wrong turn
Error here
x=6±162=6±2x = 6 \pm \frac{\sqrt{16}}{2} = 6 \pm 2
  ⟹  x=8 or x=4\implies x = 8 \text{ or } x = 4
Right path
The whole numerator −b±Δ-b \pm \sqrt{\Delta} is divided by 2a2a.
x=6±42x = \frac{6 \pm 4}{2}
  ⟹  x=5 or x=1\implies x = 5 \text{ or } x = 1
Why it happensThe formula is often written or remembered in one line, and the length of the fraction bar gets lost. On a calculator the same slip appears when the numerator is not put in brackets.
How to checkBy Vieta's formulas the roots must add up to −ba=6-\frac{b}{a} = 6 and multiply to ca=5\frac{c}{a} = 5. The wrong pair gives 8+4=128 + 4 = 12 and 8⋅4=328 \cdot 4 = 32; the right pair gives 5+1=65 + 1 = 6 and 5⋅1=55 \cdot 1 = 5.
4Losing the sign of a negative c
The discriminant is computed with the minus sign in −4ac-4ac but without the sign of cc itself, so a negative cc is treated as positive.
Start
For x2+2x−3=0x^2 + 2x - 3 = 0:
Wrong turn
Error here
Δ=22−4⋅1⋅3=4−12=−8<0\Delta = 2^2 - 4 \cdot 1 \cdot 3 = 4 - 12 = -8 < 0
Which suggests the equation has no real solutions.
Right path
With c=−3c = -3,
Δ=22−4(1)(−3)=4+12=16>0\Delta = 2^2 - 4(1)(-3) = 4 + 12 = 16 > 0
So there are two real roots, x=−2±42x = \frac{-2 \pm 4}{2}, that is x=1x = 1 or x=−3x = -3.
Why it happensThe formula already contains a minus sign, and writing the coefficients without brackets hides the second one.
How to checkWhen aa and cc have opposite signs, −4ac-4ac is positive, so Δ=b2−4ac>0\Delta = b^2 - 4ac > 0 and the equation always has two real roots. A negative discriminant in that case means a sign was lost. Factoring confirms the roots here: (x−1)(x+3)=x2+2x−3(x - 1)(x + 3) = x^2 + 2x - 3.
5Stopping at the substitute variable
In a reducible equation, the substitution u=x2u = x^2 turns the problem into a quadratic in uu, and the values of uu are reported as the answer.
Start
x4−3x2−4=0x^4 - 3x^2 - 4 = 0
  ⟹  u2−3u−4=0\implies u^2 - 3u - 4 = 0
  ⟹  (u−4)(u+1)=0\implies (u - 4)(u + 1) = 0
Wrong turn
Error here
  ⟹  u=4 or u=−1\implies u = 4 \text{ or } u = -1
Right path
Each value of uu is turned back into an equation in xx. From x2=4x^2 = 4, x=2x = 2 or x=−2x = -2. From x2=−1x^2 = -1 there is no real xx. The real solutions are x=2x = 2 and x=−2x = -2.
Why it happensSolving the quadratic in uu feels like the end of the problem, because it is the step where the familiar methods are used. The question, though, was asked about xx.
How to checkSubstitute the answers into the original equation. x=2x = 2 gives 16−12−4=016 - 12 - 4 = 0. Read as values of xx, the numbers 44 and −1-1 fail: x=4x = 4 gives 256−48−4=204256 - 48 - 4 = 204 and x=−1x = -1 gives 1−3−4=−61 - 3 - 4 = -6.
Common pitfalls in quadratic equations·/algebra/equations/quadraticLearn Math Class
Three quick checks between them catch all five slips. Substituting the answers into the original equation exposes the factoring done too early and the stop at the substitute variable. Vieta's formulas, with the roots adding up to −ba-\frac{b}{a} and multiplying to ca\frac{c}{a}, expose the half-divided formula and the missing negative root. And when aa and cc have opposite signs the equation always has two real roots, so a negative discriminant there means a sign was lost.

Quadratic Equations FAQ

In x2=5x−6x^2 = 5x - 6, is bb equal to 55 or −5-5?

+
It is −5-5. The letters aa, bb and cc mean nothing until the equation sits in standard form, so rearrange first: x2−5x+6=0x^2 - 5x + 6 = 0. The sign travels with the term as it crosses, giving a=1a = 1, b=−5b = -5, c=6c = 6. Reading coefficients off an unrearranged equation makes every sign in the formula suspect.Read more →

Is the discriminant written Δ\Delta or DD?

+
Both, and they mean the same thing. International and university texts favour Δ\Delta, while Russian, German and much school-level writing use capital DD; the definition b2−4acb^2 - 4ac and the verdicts are identical. Pick whichever your course uses and stay consistent. Note that this Δ\Delta is unrelated to Δx\Delta x, which means a change in xx.Read more →

What is the difference between x2x_2 and x2x^2?

+
Position decides: a lowered index enumerates, a raised one operates. So x2x_2 is the second root, a number in its own right, while x2x^2 is xx multiplied by itself. A double root is written x1=x2x_1 = x_2, meaning two labels pointing at one value, which is why the subscripts never have to say which root is which.Read more →

Can a quadratic with all odd coefficients have a rational root?

+
No. With integer coefficients, ax2+bx+c=0ax^2 + bx + c = 0 has rational roots only when b2−4acb^2 - 4ac is a perfect square. If aa, bb and cc are all odd, b2b^2 leaves remainder 11 on division by 88 and 4ac4ac leaves 44, so b2−4acb^2 - 4ac leaves 55, and no perfect square does. So 3x2+5x+1=03x^2 + 5x + 1 = 0, for example, can only have irrational or complex roots.Read more →

Why must one side be zero before you factor?

+
Because the zero-product property works only for zero: a product is 00 only when one of its factors is 00. A product of 66 can come from 2⋅32 \cdot 3, 12⋅1212 \cdot \frac{1}{2} or infinitely many other pairs, so setting each factor of x(x−1)=6x(x - 1) = 6 equal to 66 gives x=6x = 6 or x=7x = 7, both wrong. Rearranged, x2−x−6=(x−3)(x+2)=0x^2 - x - 6 = (x - 3)(x + 2) = 0 gives x=3x = 3 or x=−2x = -2.Read more →

Does a quadratic always have real roots when aa and cc have opposite signs?

+
Yes, always two distinct ones. Then ac<0ac < 0, so −4ac-4ac is positive and Δ=b2−4ac\Delta = b^2 - 4ac is greater than b2b^2, which is never negative. That holds whatever bb is: x2+2x−3=0x^2 + 2x - 3 = 0 has Δ=16\Delta = 16 and the roots 11 and −3-3. A negative discriminant in that case means a sign was lost, usually the sign of cc.Read more →

What does the size of the discriminant tell you?

+
Distances on the graph; the sign alone gives the number of real roots. When Δ>0\Delta > 0 the two roots are Δ∣a∣\frac{\sqrt{\Delta}}{|a|} apart: for 2x2−3x−5=02x^2 - 3x - 5 = 0, Δ=49\Delta = 49 and the roots −1-1 and 52\frac{5}{2} are 72\frac{7}{2} apart. When Δ<0\Delta < 0 the vertex sits ∣Δ∣4∣a∣\frac{|\Delta|}{4|a|} from the axis: for x2+4=0x^2 + 4 = 0, Δ=−16\Delta = -16 and the vertex is 44 units above it.Read more →