<s>[INST] Compute a partial fractions decomposition. How do I compute a partial fractions decomposition of
$$\dfrac{x+1}{x^2-x}$$
I've tried,
Since, $x^2-x$ is a quadratic expression so, I wrote the partial fraction decomposition of this as
$$\dfrac{Ax+B}{x^2-x}$$
But the answer came incorrect. Thanks 
 [/INST] \begin{gathered}
  \frac{{x + 1}}{{{x^2} - x}} = \frac{{x + 1}}{{x \cdot (x - 1)}} \
   = \frac{{2 \cdot x + 1 - x}}{{x \cdot (x - 1)}} \
   = \frac{{2 \cdot x}}{{x \cdot (x - 1)}} - \frac{{x - 1}}{{x \cdot (x - 1)}} \ 
   = \frac{2}{{x - 1}} - \frac{1}{x} \\ 
\end{gathered}
</s>