Solve x/(x − 4) = 2

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

Answer

Solutionx = 8

Step-by-step solution

7 steps
  1. 1 Given
    \frac{x}{x - 4} = 2

    Solve for x.

  2. 2 Note the values that make a denominator zero — they can never be solutions
    x \neq 4
  3. 3 Multiply every term by the least common denominator x - 4
    \frac{x}{x - 4} \left(x - 4\right) = \left(x - 4\right) 2

    This clears all the fractions.

  4. 4 Cancel and simplify
    x = 2 x - 8
  5. 5 Subtract 2x from both sides
    - x = -8

    Collect every term containing x on the left.

  6. 6 Multiply both sides by −1
    x = 8
  7. 7 Check
    \begin{aligned}x = 8:\quad 2 = 2\quad\checkmark\end{aligned}

    Substituting each solution back makes both sides equal.

Check by substitution

xLeft sideRight side
822✓
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.