Let $$f(x)=\sum_{i=1}^{\infty} (-1)^{i-1}\frac{x^i}{i}$$
Then the simple question is to find out $f'(1)$
I did it in two ways--
Differentiating f(x) we get $$f'(x)=\sum_{i=1}^{\infty} (-1)^{i-1}x^{i-1}$$.Putting $x=1$ we see that all terms cancels out.Hence $f'(1)=0$
Now $f'(x)$ can also be written using the formula for infinite G.P. as
$$f'(x)=\frac{1}{1+x}$$
Putting in $x=1$ we get $f'(x)=1/2$.
How are these two results contradictory.Can someone explain which one is wrong and why?Thanks.