I have the following fraction:
$$ \frac{z}{(z-1)(z-2)} $$
When I try to decompose it to partial fractions, I get:
$$ -\frac{1}{z-1} + \frac{2}{z-2} $$
But the result in my book is:
$$ -\frac{z}{z-1} + \frac{z}{z-2} $$
Both results are correct, but, how am I supposed to get the second one?
I agree with the comments that the result stated in the back of the book is somewhat non-standard. The way that you can see that the two results are the same is by cleverly adding and subtracting 1.
\begin{align*} \frac{-1}{z-1} + \frac{2}{z-2} &= \frac{-1}{z-1} -1 + \frac{2}{z-2} + 1 \\ &= \frac{-1}{z-1}-\frac{(z-1)}{z-1} + \frac{2}{z-2} + \frac{z-2}{z-2} \\ &= \frac{-z}{z-1} + \frac{z}{z-2} \end{align*}