As stated on the title, my question is: (a) represent the function $ f(x) = 1/x $ as a power series around $ x = 1 $. (b) represent the function $ f(x) = \ln (x) $ as a power series around $ x = 1 $.
Here's what I tried:
(a) We can rewrite $ 1/x $ as $ \frac{1}{1 - (1-x)} $ and thus using the series $ \frac{1}{1-k} = \sum_{n=0}^\infty k^n, |k| < 1 $, we can write that:
$ \frac{1}{x} = \frac{1}{1 - (1-x)} = \sum_{n=0}^\infty (1-x)^n, |1-x| < 1 $
I have a doubt because when I type "power series of 1/x when x = 1" on WolframAlpha the result is $ \sum_{n=1}^\infty (-1)^n \cdot (-1+x)^n $.
Am I wrong?
(b) Since $ (\ln (x))' = \frac{1}{x} $, all I have to do is integrate both sides of (a)' answer:
$ \int \frac{1}{x} dx = \int \sum_{n=0}^\infty (1-x)^n dx \therefore \ln(x) = \sum_{n=0}^\infty \frac{(1-x)^{n+1}}{n+1} + C $ and by putting $ x = 1 $ we get $ C =0 $ and thus $ \ln(x) = \sum_{n=0}^\infty \frac{(1-x)^{n+1}}{n+1} $.
Are my answers correct?
Really appreciate the help.
Have a good night, mates.