I came upon a question on Laplace transforms in my exams.
$${\scr L}[\{x\}]$$
where $\{x\}=x - [x]$ denotes the fractional part of $x$.
This is how I approached the problem.
$$f(x)=\{x\}=\sum_{n=-\infty}^\infty{(x-n)(u_n(x)-u_{n+1}(x))}$$
where $u_a(x)$ denotes the Heaviside function shifted to $x=a$.
$$\implies \scr L[f(x)]=\sum_{n=-\infty}^\infty{e^{-ns}\scr L[x-n]} - e^{-(n+1)s}\scr L[x-n]$$
$$=\sum_{n=-\infty}^\infty{\frac{e^{-ns}-e^{-(n+1)s}}{s^2}-\frac{n(e^{-ns}-e^{-(n+1)s})}{s}}$$
$$=\sum_{n=-\infty}^\infty{\frac{e^{-ns}-e^{-(n+1)s}}{s}\left(\frac{1}{s}-n\right)}$$
Is the way I approached the problem correct? I noticed that the last summation is a telescopic series which results in a $e^{\infty s}$ term which is making me doubtful. I've checked the procedure multiple times, and the vanishing property seems to hold too, but still, I'm not sure what to make of the telescopic series term.
So, in short, I need an experienced look on my method and tell me if I went wrong somewhere. Thanks in advance.
Here is how I would suggest to proceed. Let $f(x)=\{x\}$. Then, the Laplace Transform of $f$ is given by
$$\begin{align} \mathscr{L}\{f\}(s)&=\int_0^\infty \{x\}e^{-sx}\,dx\\\\ &=\int_0^\infty \left(x-\lfloor x\rfloor\right)e^{-sx}\,dx\\\\ &=\frac1{s^2}-\int_0^\infty \lfloor x\rfloor e^{-sx}\,dx\\\\ &=\frac1{s^2}-\sum_{n=0}^\infty \int_{n}^{n+1}\lfloor x\rfloor e^{-sx}\,dx\\\\ &=\frac1{s^2}-\sum_{n=0}^\infty ne^{-ns}\int_{0}^{1} e^{-sx}\,dx\\\\ &=\frac1{s^2}-\left(\frac{1-e^{-s}}{s}\right)\sum_{n=0}^\infty ne^{-ns}\\\\ &=\frac1{s^2}-\left(\frac{1-e^{-s}}s\right)\frac{e^{-s}}{(1-e^{-s})^2}\\\\ &=\frac1{s^2}-\frac{e^{-s}}{s(1-e^{-s})}\\\\ &=\frac1{s^2}-\frac{e^{-s/2}}{s(e^{s/2}-e^{-s/2})}\\\\ &=\frac1{s^2}+\frac1{2s}-\frac{\coth(s/2)}{2s} \end{align}$$