In a homework assignment (about generating functions) the students find themselves having to expand $\frac{3-7x+9x^{2}-3x^{3}}{\left(1-x\right)^{4}}$ intro partial fractions. Using some automated tool (e.g. Wolfram alpha) the expansion is found right away: $\frac{3}{1-x}-\frac{2}{\left(1-x\right)^{3}}+\frac{2}{\left(1-x\right)^{4}}$.
However, sending the students to use Wolfram alpha instead of computing by themselves seems problematic to me. However, I have no idea how the partial fraction representation can be found without a lot of dirty work involved, which will ensure the students hate the exercise instead of learning from it.
My question - is there some "nice" way of doing such things I am simply unaware of? Of course, the best answer is a demonstration on the concrete case of $\frac{3-7x+9x^{2}-3x^{3}}{\left(1-x\right)^{4}}$ - but only give it if your method is simple enough so that writing it down is not a lot of work...
One thing that students sometimes find appealing (and I did when I first saw it), is the use of Taylor polynomials. Put $f(x) = (3 - 7x+9x^2 -3x^3)$, and then write $f(x)$ as $f(1) + f^{\prime}(1)(x-1) + \frac{f^{"}(1)}{2!}(x-1)^{2} + \frac{f^{(3)}(1)}{3!}(x-1)^{3}$. Of course, the same trick will work whenever you have a rational function of the form $\frac{g(x)}{(x-a)^d}$ to deal with. If $g(x)$ has degree $n,$ just write it as $\sum_{j=0}^{n} \frac{g^{(j)}(a)}{j!}(x-a)^{j}$.