Find constants $A$ and $B$ such that \[\frac{x - 7}{x^2 - x - 2} = \frac{A}{x - 2} + \frac{B}{x + 1}\]for all $x$ such that $x\neq -1$ and $x\neq 2$. Give your answer as the ordered pair $(A,B)$.
I answered this qeustion a short time ago.
anyway...
Add the fractions on the right side (get a common denominator first). Then equate coefficients.