Calculate derivatives. Use an=f(n)(1)n!.

nf(n)(x)f(n)(1)an
0+x1+1+1
1x211
2+2x3+2+1
332x43!1
4+42x5+4!+1
552x65!1
6+62x7+6!+1

Each new derivative takes down the next power as a factor, and switches the sign. The accumulation of powers follows a factorial pattern, and these factorials cancel those added to the denominator to make an.

So we have:

f(x)=n=0(1)n(x1)n=1(x1)+(x1)2(x1)3+(x1)4

Alternate method:

We can derive this Taylor series using some algebraic tricks with the standard geometric series:

1x=11((x1))n=0((x1))nn=0(1)n(x1)n