Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
HardQuadratic EquationsAlgebra

Solve x2+4x+5=0x^2 + 4x + 5 = 0.

A negative discriminant gives complex roots.

Try it first: work the problem on paper, then open the solution below and compare each step.
Show the step-by-step solution

Final answer

x1=−2−i,x2=−2+ix_1 = -2 - i,\quad x_2 = -2 + i

How we read your problem

A quadratic equation in x: solve with the quadratic formula.

x2+4 x+5=0{ x}^{2}+4~ x+5 = 0

Step-by-step solution

  1. Start with the equation

    x2+4 x+5=0{ x}^{2}+4~ x+5 = 0
  2. Move every term to one side to get standard form

    x2+4x+5=0x^{2} + 4x + 5 = 0
  3. Compute the discriminant

    Δ=b2−4ac=42−4⋅1⋅5=−4\Delta = b^2 - 4ac = 4^2 - 4 \cdot 1 \cdot 5 = -4
  4. Δ < 0, so there are no real roots; the two roots are complex conjugates

  5. Apply the quadratic formula with √(−1) = i

    x=−4±−42=−4±2 i2x = \frac{-4 \pm \sqrt{-4}}{2} = \frac{-4 \pm 2\,i}{2}
  6. Simplify

    x=−2±ix = -2 \pm i

Formulas used

  • Quadratic formula

    x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
  • Discriminant

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

    (−b2a, c−b24a)\left(-\frac{b}{2a},\ c - \frac{b^2}{4a}\right)

The discriminant is negative, so there are no real solutions; the solutions are a pair of complex conjugates.

Verification

  • Vieta: sum of roots = -4 = −b/a = -4; product = 5 = c/a = 5

About quadratic equations

Solve by factoring, completing the square or the quadratic formula; use the discriminant.

Quadratic formula

The roots of a quadratic in standard form.

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
Discriminant

Its sign tells whether there are two real, one repeated, or two complex roots.

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

Check your own work