I want to calculate the radius of convergence and the sum of
$$\sum_{n=1}^\infty \frac{2^nx^n}{n}$$
I have already calculed the radius of convergence using the Cauchy–Hadamard theorem (or using the ratio test), it is $|x|<\frac{1}{2}$. Now, how can I calculate the sum? For $x>\frac{1}{2}$ its easy to see that $\sum_{n=1}^\infty \frac{2^nx^n}{n}=\infty$. How do i calculate it for $x<\frac{1}{2}$?
$f(x) = \sum_\limits{n=1}^{\infty}\frac {2^n x^n}{n}$
You might note that
$\frac {df}{dx} = \sum_\limits{n=1}^{\infty}2^n x^{n-1}$
Sum of a geometric series (when it converges)
$\frac {df}{dx} = \frac {2}{1-2x}$
Integrate to find $f(x)$