this is a homework problem I am stuck on: Compute the following integral for $\sigma > 1$ $$\displaystyle \lim_{T \to \infty} \frac{1}{2T} \int_{-T}^{T}\left|\zeta{(\sigma + it)}\right|^2dt .$$
I tried integrating over the contour given by the semicircle of radius $T$ with diameter from $\sigma - it$ to $\sigma + it$ going "left" and applying the residue theorem, but it does not seem to be going anywhere. I suppose part of my confusion comes from not completely understanding the structure of the function $\left|\zeta{(\sigma + it)}\right|^2$. Am I right to say that this function is holomorphic everywhere except at 1, where it has a pole of order 2 and no simple pole (by squaring the laurent expansion of $\zeta$ at 1)?
I'd rather not see a full solution immediately, but any hints in the right direction would be appreciated.
Someone may have some better hints, but perhaps this will help (I'm looking at at a calculation of $\int_{-T}^T |\zeta(\sigma+it)|^{2k}\ dt$, in case there are discrepancies in my answer). First, note that $|\zeta(s)|^2$ is not holomorphic (since it is real-valued), so trying to use holomorphy is probably not helpful. Instead, let's be direct. Write $\zeta(s)$ as a partial sum (of terms less than $T$) plus error, $S+E$. Now, your integral is $\int_0^T (S+E)(\bar S+\bar E)$. Expand the integrand and bound (in $T$) all the terms other than $\int_0^T |S|^2$ (they should all vanish when you divide by $T$ and take the limit). Then bound that term (just multiply everything out and collect the correct terms together, this step may be difficult). I hope I haven't given you more than you want. I can provide further steps if you need them.