Esta lección aún no está traducida. Por ahora se muestra en inglés; la versión en español está en camino.
Here is the first payoff of the residue theorem: real integrals of trigonometric expressions over a full turn, which are hard by real methods, become contour integrals around the unit circle.
🔑 Idea clave
For $\displaystyle\int_0^{2\pi} R(\cos\theta, \sin\theta)\,d\theta$, put $z = e^{i\theta}$. As $\theta$ runs from $0$ to $2\pi$, $z$ goes once around $|z| = 1$, and
$$\cos\theta = \frac{z + z^{-1}}{2}, \qquad \sin\theta = \frac{z - z^{-1}}{2i}, \qquad d\theta = \frac{dz}{iz}.$$
The integral becomes $\oint_{|z| = 1}(\text{a rational function of } z)\,dz = 2\pi i\,\times$ (sum of the residues inside the unit circle). A standard result: for $a > |b|$,
$$\int_0^{2\pi}\frac{d\theta}{a + b\cos\theta} = \frac{2\pi}{\sqrt{a^2 - b^2}}.$$
💡 Por qué funciona
The substitutions come from Euler's formula: $z + \frac{1}{z} = e^{i\theta} + e^{-i\theta} = 2\cos\theta$, and similarly for sine. From $z = e^{i\theta}$, $dz = ie^{i\theta}d\theta = iz\,d\theta$, so $d\theta = \frac{dz}{iz}$. For the standard result, $a + b\frac{z + z^{-1}}{2} = \frac{bz^2 + 2az + b}{2z}$, so the integrand becomes $\frac{2}{i(bz^2 + 2az + b)}$. The two roots of $bz^2 + 2az + b$ multiply to $1$; the one inside the unit circle is $z_1 = \frac{-a + \sqrt{a^2 - b^2}}{b}$, with residue $\frac{2}{ib(z_1 - z_2)} = \frac{1}{i\sqrt{a^2 - b^2}}$. Times $2\pi i$ gives the result.
$\int_0^{2\pi}\frac{d\theta}{5 + 3\cos\theta}$: as $\theta$ moves, $z = e^{i\theta}$ goes around the unit circle. The integrand in $z$ has poles at $-\frac{1}{3}$ (inside) and $-3$ (outside); only the inside one counts, and the numerical integral matches $2\pi i$ times its residue, $\frac{\pi}{2}$.
The same method (or the same formula with $\sin$, since shifting $\theta$ by $\frac{\pi}{2}$ turns $\cos$ into $\sin$ over a full period) gives $\frac{2\pi}{\sqrt{169 - 25}}$.
$\sqrt{144} = 12$, so the integral is $\frac{2\pi}{12} = \frac{\pi}{6}$.
The integrand becomes $\frac{dz}{iz}\cdot\frac{4z^2}{(3z^2 + 10z + 3)^2} = \frac{4z\,dz}{9i(z + \frac{1}{3})^2(z + 3)^2}$, with a double pole at $-\frac{1}{3}$ inside.
$2\pi i\cdot\frac{5}{64i} = \frac{5\pi}{32}$ (in general $\frac{2\pi a}{(a^2 - b^2)^{3/2}}$).
Respuesta: $\frac{5\pi}{32}$
Replace $\cos\theta$, $\sin\theta$ and $d\theta$ using $z = e^{i\theta}$, and simplify to one fraction in $z$.
Find the poles and keep those with $|z| < 1$.
Add their residues and multiply by $2\pi i$. The result must be real; if it is not, recheck the factor $\frac{1}{iz}$.
The method needs a full period $0$ to $2\pi$. For $\int_0^{\pi}$, use symmetry first (for example, an even function of $\cos\theta$ over $[0, \pi]$ is half of the integral over $[0, 2\pi]$).
⚠️ Error común
Forgetting $d\theta = \frac{dz}{iz}$, or counting poles outside the circle. Leaving out the factor $\frac{1}{iz}$ changes the integrand and its poles, and the answer comes out wrong (often not even real). And of the two roots of $bz^2 + 2az + b$, only the one with modulus less than $1$ is inside; including both gives $0$. Check: the original integral is a real number, and positive when the integrand is positive.
Práctica
Apruebas con 3 respuestas correctas, las 2 últimas seguidas. Cada respuesta correcta da 3 XP.