Solve x² − x − 2 = 0

The solutions of x2−x−2=0x^{2} - x - 2 = 0 are x1=−1,x2=2x_{1} = -1,\quad x_{2} = 2

Answer

Quadratic equation
x1=−1,x2=2x_{1} = -1,\quad x_{2} = 2

Checked numerically before it is shown

Step-by-step solution

Solve by

Factoring

  1. Two numbers

    Find two numbers whose product is −2-2 and whose sum is −1-1:

    1⋅(−2)=−2,1+(−2)=−11 \cdot \left(-2\right) = -2,\quad 1 + \left(-2\right) = -1
  2. Factor

    (x−2)(x+1)=0\left(x - 2\right) \left(x + 1\right) = 0
  3. Zero product property

    A product is zero when one of its factors is zero:

    x−2=0,x+1=0x - 2 = 0,\quad x + 1 = 0
  4. Add to both sides

    Add 22 to both sides:

    x=2x = 2
  5. Subtract from both sides

    Subtract 11 from both sides:

    x=−1x = -1

Check

  • (−1)2−(−1)−2=0  ✓\left(-1\right)^{2} - \left(-1\right) - 2 = 0\;\checkmark
  • 22−2−2=0  ✓2^{2} - 2 - 2 = 0\;\checkmark

Change the problem in the solver Equation solver

Related solved examples