Solve x + 12/x = 7

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

Answer

Solutionsx = 3, x = 4

Step-by-step solution

12 steps
  1. 1 Given
    x + \frac{12}{x} = 7

    Solve for x.

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

    This clears all the fractions.

  4. 4 Cancel and simplify
    x^{2} + 12 = 7 x
  5. 5 Move every term to the left side so the right side is 0
    x^{2} - 7 x + 12 = 0
  6. 6 This is a quadratic in standard form ax² + bx + c = 0
    a = 1,\quad b = -7,\quad c = 12
  7. 7 Factor the trinomial: find two numbers whose product is c = 12 and whose sum is b = -7
    (-4) \cdot (-3) = 12,\qquad (-4) + (-3) = -7
  8. 8 Write the factored form
    \left(x - 4\right) \left(x - 3\right) = 0
  9. 9 Zero product property: a product is 0 only when one of its factors is 0
    x - 4 = 0\quad \text{or} \quad x - 3 = 0
  10. 10 Add 4 to both sides
    x = 4

    Move the constant terms to the right.

  11. 11 Add 3 to both sides
    x = 3

    Move the constant terms to the right.

  12. 12 Check
    \begin{aligned}x = 3:\quad 7 = 7\quad\checkmark\\ x = 4:\quad 7 = 7\quad\checkmark\end{aligned}

    Substituting each solution back makes both sides equal.

Check by substitution

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