Solve for all values of x by factoring. x^2 = -2x

Check the final answer first, then review the worked steps.

Answer

\(x = 0, -2\)

Work

$x^2 = -2x$
$x^2 + 2x = 0$
$x(x + 2) = 0$
$x = 0, x = -2$

Step-by-step solution

  1. Move all terms to one side to set the equation to zero: $x^2 + 2x = 0$.
  2. Factor out the common term $x$: $x(x + 2) = 0$.
  3. Set each factor equal to zero: $x = 0$ or $x + 2 = 0$.
  4. Solve for $x$: $x = 0$ or $x = -2$.