Solve x² + 4x − 1 = 0 by completing the square

Quadratic equation, worked out line by line the way a teacher would write it.

Answer

Solutionsx = −√5 − 2, x = √5 − 2

Step-by-step solution

8 steps
  1. 1 Given
    x^{2} + 4 x - 1 = 0

    Solve for x.

  2. 2 This is a quadratic in standard form ax² + bx + c = 0
    a = 1,\quad b = 4,\quad c = -1
  3. 3 Add 1 to both sides
    x^{2} + 4 x = 1
  4. 4 Add (b/2)² = 4 to both sides to complete the square
    x^{2} + 4 x + 4 = 1 + 4

    Half the x coefficient is 2; its square is 4.

  5. 5 The left side is now a perfect square
    \left(x + 2\right)^{2} = 5
  6. 6 Take the square root of both sides — remember both signs
    x + 2 = \pm \sqrt{5}
  7. 7 Subtract 2 from both sides
    x = - \sqrt{5} - 2\quad \text{or} \quad x = \sqrt{5} - 2
  8. 8 Check
    \begin{aligned}x = - \sqrt{5} - 2:\quad 0 = 0\quad\checkmark\\ x = \sqrt{5} - 2:\quad 0 = 0\quad\checkmark\end{aligned}

    Substituting each solution back makes both sides equal.

Check by substitution

xLeft sideRight side
−√5 − 200✓
√5 − 200✓
Open this problem in the solver

Change a number or try your own problem: the solver works it out the same way, with a graph and hint mode.