Use the residue theorem to compute the integral $$ \int_{Re(s)=2}\frac{x^{-s}}{s^3}ds\quad\text{for real}\ x>0, $$ where the contour is oriented upwards. (Hint: treat the cases of $ x<1 $ and $ x\ge 1 $ separately.)
My Attempt:
Draw the semicircle $ \Gamma: 2+R\exp(i\theta), \theta\in[\frac \pi 2, \frac {3\pi}2], R>2 $. Then $$\begin{align} \int_{\Gamma}\frac{x^{-s}}{s^3}ds &=\int\limits_{\substack{Re(s)=2\\Im(s)=-R}}^{\substack{Re(s)=2\\Im(s)=R}}\frac{x^{-s}}{s^3}ds+\int_{\frac \pi2}^{\frac {3\pi}2}\frac{x^{-2-R\exp(i\theta)}}{(2+R\exp(i\theta))^3}R\exp(i\theta)id\theta. \end{align} $$ Now let $ R\to\infty $ and by the standard trick we know that the second term on the right tends to zero and the first term on the right is $ \int_{Re(s)=2}\frac{x^{-s}}{s^3}ds\quad\text{for real}\ x>0. $ By the residue theorem, $$ \begin{align} \int_{\Gamma}\frac{x^{-s}}{s^3}ds &=2\pi i Res(\frac{x^{-s}}{s^3}, 0)\\ &=2\pi i\frac{\ln^2 x}{2}\\ &=\pi i\ln^2 x .\end{align}$$ Therefore, $$ \int_{Re(s)=2}\frac{x^{-s}}{s^3}ds=\pi i\ln^2 x\quad\text{for real}\ x>0. $$
Am I right? I am confused that the hint says that we should treat the cases of $ x<1 $ and $ x\ge 1 $ separately, but I didn't use this fact, why?
The half-plane where $x^{-s}$ decays depends on the sign of $\log x$.
For $x \in (0,1)$ then $$\int_{\Re(s)=2} s^{-3}x^{-s}ds = \lim_{R \to \infty} \int_{\partial ([-R,2] +i[-R,R])} s^{-3}x^{-s}ds =2i\pi Res(s^{-3}x^{-s},s=0) = i\pi \log^2 x$$
For $x \ge 1$ then $$\int_{\Re(s)=2} s^{-3}x^{-s}ds = -\lim_{R \to \infty} \int_{\partial ([2,R] +i[-R,R])} s^{-3}x^{-s}ds =0$$