Substitution undoes the chain rule. Integration by parts undoes the product rule, so it is the tool for integrals of products like $x e^{x}$, $x\cos x$ or $x^{2}\ln x$, where no factor is the derivative of the other.
Por qué funciona
Idea clave
- A rule of thumb for $u$, first match wins: Logarithms, Inverse trig, Algebraic (powers of $x$), Trig, Exponentials (LIATE).
- Write the four pieces $u$, $du$, $dv$, $v$ before you substitute. You never need a $+C$ in $v$.
- Check the answer by differentiating it.
Ejemplo resuelto: A power times a trig function
- $u = x$, $dv = \cos x\,dx$, so $du = dx$ and $v = \sin x$.
- $$\begin{aligned} &\int x\cos x\,dx \\ &= x\sin x - \int \sin x\,dx \\ &= x\sin x + \cos x + C. \end{aligned}$$
- Check: $$\begin{aligned} &\frac{d}{dx}(x\sin x + \cos x) \\ &= \sin x + x\cos x - \sin x \\ &= x\cos x. \end{aligned}$$
Respuesta: $x\sin x + \cos x + C$
Ejemplo resuelto: A lone logarithm
- There is only one factor, so let $u = \ln x$ and $dv = dx$. Then $du = \frac{1}{x}dx$ and $v = x$.
- $$\begin{aligned} \int \ln x\,dx &= x\ln x - \int x\cdot\frac{1}{x}\,dx \\ &= x\ln x - x + C. \end{aligned}$$
Respuesta: $x\ln x - x + C$
Error común
Ejemplo resuelto: Parts twice
- $u = x^{2}$, $dv = e^{x}dx$: $\int x^{2}e^{x}dx = x^{2}e^{x} - \int 2x e^{x}\,dx$.
- Again with $u = 2x$: $\int 2x e^{x}dx = 2x e^{x} - 2e^{x}$.
- Combine: $$\begin{aligned} &x^{2}e^{x} - 2x e^{x} + 2e^{x} + C \\ &= e^{x}(x^{2} - 2x + 2) + C. \end{aligned}$$
Respuesta: $e^{x}(x^{2} - 2x + 2) + C$
Ejemplo resuelto: When the integral comes back
- $u = \sin x$, $dv = e^{x}dx$: $I = e^{x}\sin x - \int e^{x}\cos x\,dx$.
- Again with $u = \cos x$: $$\begin{aligned} &\int e^{x}\cos x\,dx \\ &= e^{x}\cos x + \int e^{x}\sin x\,dx \\ &= e^{x}\cos x + I. \end{aligned}$$
- So $I = e^{x}\sin x - e^{x}\cos x - I$, and $2I = e^{x}(\sin x - \cos x)$.
- $I = \frac{e^{x}}{2}(\sin x - \cos x) + C$. Treat $I$ like an unknown and solve for it; keep the same kind of choice ($u$ = the trig factor) both times.
Respuesta: $\frac{e^{x}}{2}(\sin x - \cos x) + C$