// / ___________\ \ // / ___________\ \
|| 2 | / 2 | | || 2 | / 2 | |
||(-2 + x) *atanh\\/ (-2 + x) / | ||(-2 + x) *atanh\\/ (-2 + x) / |
||------------------------------- for And(x > 1, x < 3)| ||------------------------------- for And(x > 1, x < 3)|
|| ___________ | || ___________ |
|| / 2 | || / 2 |
|| \/ (-2 + x) | || \/ (-2 + x) |
|| | || |
- 2*|< oo | + x*|< oo |
|| ____ | || ____ |
|| \ ` | || \ ` |
|| \ 2*n | || \ 2*n |
|| \ (-2 + x) | || \ (-2 + x) |
|| / ----------- otherwise | || / ----------- otherwise |
|| / -1 + 2*n | || / -1 + 2*n |
|| /___, | || /___, |
\\ n = 1 / \\ n = 1 /
$$x \left(\begin{cases} \frac{\left(x - 2\right)^{2} \operatorname{atanh}{\left(\sqrt{\left(x - 2\right)^{2}} \right)}}{\sqrt{\left(x - 2\right)^{2}}} & \text{for}\: x > 1 \wedge x < 3 \\\sum_{n=1}^{\infty} \frac{\left(x - 2\right)^{2 n}}{2 n - 1} & \text{otherwise} \end{cases}\right) - 2 \left(\begin{cases} \frac{\left(x - 2\right)^{2} \operatorname{atanh}{\left(\sqrt{\left(x - 2\right)^{2}} \right)}}{\sqrt{\left(x - 2\right)^{2}}} & \text{for}\: x > 1 \wedge x < 3 \\\sum_{n=1}^{\infty} \frac{\left(x - 2\right)^{2 n}}{2 n - 1} & \text{otherwise} \end{cases}\right)$$
-2*Piecewise(((-2 + x)^2*atanh(sqrt((-2 + x)^2))/sqrt((-2 + x)^2), (x > 1)∧(x < 3)), (Sum((-2 + x)^(2*n)/(-1 + 2*n), (n, 1, oo)), True)) + x*Piecewise(((-2 + x)^2*atanh(sqrt((-2 + x)^2))/sqrt((-2 + x)^2), (x > 1)∧(x < 3)), (Sum((-2 + x)^(2*n)/(-1 + 2*n), (n, 1, oo)), True))