Express your answer in terms of Γ(s), Γ′(s), and/or the digamma function ψ(s)=Γ′(s)/Γ(s).
Gamma functiondigamma functiondifferentiation under integral signEuler-Mascheroni constantFeynman's trick
Answer: The Integral That Knows Γ
Key Idea / Intuition
The key trick is differentiation under the integral sign with respect to a parameter. The Gamma function Γ(s)=∫0∞xs−1e−xdx already contains xs−1, and differentiating xs−1=e(s−1)lnx with respect to s pulls down exactly one factor of lnx. So the integral I is literally Γ′(s), which connects it immediately to the digamma function.
Formal Proof / Solution
Step 1: Recall the Gamma function.
Γ(s)=∫0∞xs−1e−xdx,s>0.
Step 2: Differentiate under the integral sign.
Write xs−1=e(s−1)lnx. Differentiating formally with respect to s:
dsdΓ(s)=dsd∫0∞xs−1e−xdx=∫0∞∂s∂(xs−1e−x)dx.
Since ∂s∂xs−1=xs−1lnx, we get:
Γ′(s)=∫0∞xs−1e−xlnxdx.
Step 3: Justify the differentiation.
To swap differentiation and integration, we need dominated convergence. For s in a compact interval [δ,M] with 0<δ≤M<∞, the integrand satisfies:
xs−1e−xlnx≤Cδ,M(xδ/2−1+xMe−x/2),
which is integrable on (0,∞). So the swap is valid for all s>0.
Step 4: Conclusion.
I=Γ′(s)=Γ(s)ψ(s),
where ψ(s)=Γ(s)Γ′(s) is the digamma function.
Special case: At s=1, Γ(1)=1 and ψ(1)=−γ (the Euler–Mascheroni constant), so:
∫0∞e−xlnxdx=Γ′(1)=ψ(1)⋅Γ(1)=−γ≈−0.5772…
This is a classical and beautiful result: integrating e−xlnx against the simplest exponential weight recovers the Euler–Mascheroni constant exactly.