// / pi*I\ \
||-(-2 - x)*polylog\2, (2 + x)*e / |
||------------------------------------ for |2 + x| <= 1|
|| 2 + x |
|| |
|| oo |
|| ____ |
oo + |< \ ` |
|| \ n n |
|| \ (-1) *(2 + x) |
|| ) -------------- otherwise |
|| / 2 |
|| / n |
|| /___, |
\\ n = 1 /
$$\begin{cases} - \frac{\left(- x - 2\right) \operatorname{Li}_{2}\left(\left(x + 2\right) e^{i \pi}\right)}{x + 2} & \text{for}\: \left|{x + 2}\right| \leq 1 \\\sum_{n=1}^{\infty} \frac{\left(-1\right)^{n} \left(x + 2\right)^{n}}{n^{2}} & \text{otherwise} \end{cases} + \infty$$
oo + Piecewise((-(-2 - x)*polylog(2, (2 + x)*exp_polar(pi*i))/(2 + x), |2 + x| <= 1), (Sum((-1)^n*(2 + x)^n/n^2, (n, 1, oo)), True))