Clever way, using a temporary variable. This involves noticing that this equation is quadratic in (x-5). It might help you to see this if I use a temporary variable. Let q = x-5. Substituting q for x-5, your equation becomes:
This equation is easily solved for q. Just factor it:
Use the Zero Product property:
q-7 = 0 or q+3 = 0
Solving these we get:
q = 7 or q = -3
And last we replace q with x-5:
x-5 = 7 or x-5 = -3
Solving these we get:
x = 12 or x = 2
Clever way without a temporary variable. Eventually you will be able to solve this kind of problem without a temporary variable:
x-12 = 0 or x-2 = 0
x = 12 or x = 2
Without the temporary variable this is a very short solution.
The long way to do this problem is to start by simplifying the equation. We'll square (x-5) first:
Multiply next:
Combine like terms:
Factor:
Zero Product property:
x-12 = 0 or x-2 = 0
Solve:
x = 12 or x = 2