The Formula
When two different types of functions are multiplied (like \(x\) and \(\sin x\)), we use Integration by Parts (IBP). It is derived from the Product Rule:
\[\int u dv = uv - \int v du\]
Worked Examples
Example 1: Polynomial and Trig
Evaluate \(\int x \cos x dx\).
- Let \(u = x\) (easier to differentiate). Then \(du = dx\).
- Let \(dv = \cos x dx\). Then \(v = \sin x\).
- Apply formula: \(x \sin x - \int \sin x dx\).
- Finish: \(x \sin x - (-\cos x) + C\).
- Result: \(x \sin x + \cos x + C\).
Example 2: The Logarithm
Evaluate \(\int \ln x dx\).
- Let \(u = \ln x\). Then \(du = \frac{1}{x} dx\).
- Let \(dv = dx\). Then \(v = x\).
- Apply formula: \(x \ln x - \int x \frac{1}{x} dx = x \ln x - \int 1 dx\).
- Finish: \(x \ln x - x + C\).
- Result: \(x(\ln x - 1) + C\).
The Bridge to Quantum Mechanics
Integration by Parts is the most powerful tool for proving the Hermiticity of Operators. In Quantum Mechanics, observables like momentum and energy must be "Hermitian," which means \(\int \psi_1^* (\hat{A} \psi_2) dx = \int (\hat{A} \psi_1)^* \psi_2 dx\). We use IBP to "move" the derivative operator from one wavefunction to the other. This ensures that the results of our measurements are always real numbers, which is a requirement for anything we want to measure in the lab.