I was trying to compute the value of $\sum_{n=0}^\infty n(n-1)x^n$ and realizing this is the second derivative of $\sum_{n=0}^\infty x^n = \frac{1}{1-x}$ (whenever $|x|<1$) I proceed to take derivatives. The first derivative of the power series is $$\sum nx^{n-1}=\frac{1}{(1-x)^2}$$
And this is when I get in trouble. Rewriting this last term as $(1-x)^{-2}$, I compute its derivative as $(-2)(1-x)^{-3}(-1)=\frac{2}{(1-x)^3}$, on the other hand $\frac{1}{(1-x)^2} = \frac{1}{(x-1)^2}$ so it seems that the derivative of $(x-1)^{-2}$ is $(-2)(x-1)^{-3}(1)=\frac{-2}{(x-1)^3}$.
While we're at it.... I feel like this "paradox" is probably related to the fact that while $\cos(x)=\cos(-x)$ it is not the case that $(\cos(-x))'=\sin(x)$. I'm not sure how to make sense of this last fact either, but I suspect direct application of the derivative's definition will resolve this .... it is still unsettling.
How can we resolve these paradoxes?
There are some paradoxes in mathematics, but not in your examples. $$-\frac{2}{(1-x^3)} = \frac{2}{(x^3-1)}$$ And $$(\cos(x))'=-\sin(x)$$ while $$(\cos(-x))'=-\sin(-x)\cdot(-x)'= \sin(-x)=-\sin(x)$$