Evaluating a logarithmic Fresnel integral by differentiating under the integral sign
A factor of \(\ln x\) in an integrand can often be generated by differentiating a family of power integrals \(x^{s-1}\) with respect to the exponent \(s\). Combining this principle with the Mellin transform of \(\sin t\) proved in an earlier post, we will show that
where \(\gamma\) is the Euler-Mascheroni constant.
Reducing to a Mellin derivative
First, the substitution \(t = x^2\) (so that \(\frac{dx}{x} = \frac{dt}{2t}\) and \(\ln x = \frac{1}{2}\ln t\)) removes the quadratic argument inside the sine:
Recall from our post on the Mellin transforms of sine and cosine that for \(s \in (-1, 1) \setminus \{0\}\),
with removable singularity at \(s = 0\) matching the Dirichlet integral \(\frac{\pi}{2}\). Differentiating under the integral sign with respect to \(s\) at \(s = 0\) produces the logarithmic factor \(\ln t\):
Taking the limit via Laurent expansions
Near \(s = 0\), the gamma function and its derivative have the Laurent expansions
Substituting these into the limit gives
Using the Taylor series \(\cos\left(\frac{\pi s}{2}\right) = 1 - O(s^2)\) and \(\sin\left(\frac{\pi s}{2}\right) = \frac{\pi s}{2} - O(s^3)\), the singular \(1/s\) terms cancel identically:
Therefore,
A shortcut via \(\Gamma(s+1) = s\Gamma(s)\)
We can also see why the singular terms cancel without writing out the second-order Laurent coefficients by factoring \(\sin\left(\frac{\pi s}{2}\right)\Gamma(s)\) as
Here \(g(s) = \frac{\sin(\pi s/2)}{s}\) is a smooth, even function with \(g(0) = \frac{\pi}{2}\) and \(g'(0) = 0\), while \(\Gamma(1) = 1\) and \(\Gamma'(1) = -\gamma\). Applying the product rule at \(s=0\) immediately yields \(g'(0)\Gamma(1) + g(0)\Gamma'(1) = -\frac{\pi\gamma}{2}\).
Substituting equation (2) into equation (1) completes the proof: