Solve x² + 2x + 1 = 0

x² + 2x + 1 = 0 has one answer where most quadratics have two, and the reason is visible in the discriminant before any roots are worked out: 2² − 4(1)(1) = 0. A discriminant of zero means the ± in the formula contributes nothing, so both branches give the same value. The roots have not disappeared...

Type the equation as it is written — it does not have to be in standard form. (x − 2)(x + 3) = 5x − 1 is an ordinary quadratic, and rearranging it into ax² + bx + c = 0 is most of the work. Roots come out exactly: fractions where they are rational, simplified surds like (3 + √17)/4 where they are not, and exact complex pairs where the curve misses the axis. If the squared terms cancel, the equation was linear all along and this solves it rather than complaining.

THE EQUATION

Powers with ^, brackets, fractions and terms on both sides all work. Any single letter can be the unknown.

ONE REPEATED ROOT

x = −1

The discriminant is zero, so the two roots coincide. The curve touches the axis here rather than crossing it.

As typedx^2 + 2x + 1 = 0
Expandedx² + 2x + 1 = 0
Standard formx² + 2x + 1 = 0
Factored(x + 1)² = 0

EACH ROOT PUT BACK, EXACTLY

−1 → 0

DISCRIMINANT

0

zero, so the roots coincide

AXIS OF SYMMETRY

x = −1

the roots sit either side of this

AS DECIMALS

−1

exact — the roots are rational

FACTORS OVER ℚ

yes

the discriminant is a square number

WHAT IS HAPPENING

1Expand both sides and collect

x² + 2x + 1 = 0

Brackets multiplied out and powers expanded, with each side written as a multiple of the square, a multiple of the unknown, and a constant.

2Move everything to one side

x² + 2x + 1 = 0

Subtracting the right from the left. Only now is the equation in the form the quadratic formula expects, and for most equations as they are actually written this step is the bulk of the work.

3Work out b² − 4ac

(2)² − 4(1)(1) = 0

This single number decides the shape of the answer: positive gives two roots, zero gives one, negative gives a conjugate pair with an imaginary part.

4One repeated root

x = −1

A discriminant of zero means the two roots have collapsed onto each other. The curve touches the axis at exactly one point rather than crossing it.

5It factors over the rationals

(x + 1)² = 0

A product is zero exactly when one of its factors is zero, so each bracket gives a root directly. Factoring is quicker than the formula when it is available, and it is available precisely when the discriminant is a square number.

THE CURVEthe curve touches the axis at one point rather than crossing it−2.50.52.6−0.32filled circles are the roots · the gold circle is the turning point at (−1, 0)

Why the formula is worth trusting over factoring. Factoring is faster when it works, and it works only when the discriminant is a square number — which across quadratics with two real roots and small coefficients is 21.2% of them. On the other four fifths, time spent hunting for factors is time spent looking for something that is not there. The formula never fails to apply, and this page shows the factorisation whenever one genuinely exists so you can see which case you are in rather than guessing.

HOW THE ROOTS ARE BUILTthe formula gives a centre and a step: the roots sit the same distance either side of the axis−1−b ÷ 2aboth roots herethe step is zero, so the two roots sit on top of each otherthe step is √(b² − 4ac) ÷ 2a, which is zero exactly when the discriminant is

Exact surds throughout · each root is substituted back symbolically, not numerically

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Compute the discriminant first: 2² − 4(1)(1) = 4 − 4 = 0. A value of zero tells you there is one root before you find it.

  2. 2

    Factor: x² + 2x + 1 is (x + 1)², since 1 and 1 multiply to 1 and add to 2.

  3. 3

    Set the repeated bracket to zero: x + 1 = 0, so x = −1. There is nothing else to set.

  4. 4

    Check: (−1)² + 2(−1) + 1 = 1 − 2 + 1 = 0. The curve touches the axis at that point rather than crossing it.

WORKED EXAMPLE

x² + 2x + 1 = 0 Start with the discriminant, because it settles the shape of the answer immediately: b² − 4ac = 2² − 4(1)(1) = 4 − 4 = 0 Zero, so there is one root rather than two. The ± in the formula adds and subtracts nothing: x = (−2 ± 0) ÷ 2 = −1 The factorisation says the same thing. Two numbers multiplying to 1 and adding to 2 are 1 and 1, so: x² + 2x + 1 = (x + 1)(x + 1) = (x + 1)² The only way a product is zero is for a factor to be zero, and both factors are the same bracket, so x = −1 is the whole answer. Check: (−1)² + 2(−1) + 1 = 1 − 2 + 1 = 0. Geometrically the curve touches the axis and turns back. To cross, a curve has to pass from below the axis to above it, and this one never gets below: its lowest point is exactly on the axis. That is what a zero discriminant looks like, and it is the boundary case between two real roots and none.

REFERENCE RULES

RuleWhat it saysWhy
Standard formax² + bx + c = 0Everything has to reach this shape first. For most typed equations that is the work.
The formulax = (−b ± √(b² − 4ac)) ÷ 2aAlways available. Factoring is quicker when it is possible, which is not often.
The discriminantb² − 4acPositive gives two roots, zero gives one, negative gives a complex pair.
Factoring is the exception21.2% of real-root casesHunting for factors on the rest is time spent on something that is not there.
When it factorsthe discriminant is a square numberThat is the exact test. No guessing required.
The axis of symmetryx = −b ÷ 2aThe roots sit an equal distance either side of it.
Roots as surds(3 + √17)/4, not 1.7808The surd is exact; a decimal put back into the equation misses zero.
The x² term may cancel(x+1)² = x² + 5Then the equation was linear all along, with one solution.
Complex roots come in pairsp + qi and p − qiThey differ only in the sign of the imaginary part.
Sum and product−b/a and c/aA check that never touches the formula that produced the roots.
The formula can cancelwhen b² is far larger than 4acOne root becomes a difference of nearly equal numbers. 90% failed in doubles.
Not linear, not quadraticx³ is refusedA cubic needs different methods entirely, so it gets a reason rather than a number.
The unknown in a denominator1/x is refusedNot a polynomial equation. Multiplying up first may make it one.
Where the formula comes fromcompleting the square, in generalThat method has its own page here; the formula is it done once with letters instead of numbers.

FREQUENTLY ASKED QUESTIONS

x = −1, and there is no second answer. The discriminant is 2² − 4(1)(1) = 0, so the two roots coincide. The expression is (x + 1)², so the only value making it zero is −1, and substituting gives 1 − 2 + 1 = 0.

  • ·x = −1, once
  • ·The discriminant is exactly zero
  • ·The expression is (x + 1)²
  • ·1 − 2 + 1 = 0 confirms it

RELATED CALCULATORS

MORE ALGEBRA CALCULATORS

Was this calculator helpful?

Last updated: August 31, 2026 · Exact surds throughout, never floating point · The equation does not have to be in standard form before you type it.