Find constants A and B such that
(x+7)/(x^2 - x - 2) = [A/(x-2)]+[B/(x+1)]
for all x such that x ≠ -1 and x ≠ 2. Give your answer as the ordered pair (A, B).
Letting x go to 2, we find that A + 2B = 4. Letting x go to -1, we find 2A - B = 3. Therefore, A = 2 and B = -1.