Integration by parts is another powerful technique to evaluate integrals. It is modeled after the product rule for differentiation. The goal is to transform an integral of a product of functions into one that is easier to evaluate. The basic formula to keep in mind is:\[ \int u \, dv = u \cdot v - \int v \, du \] In this exercise, integration by parts was used twice to resolve the integral of \( \cos(\ln x) \). Here's a step-by-step breakdown:
- First, let \( u = \cos(\ln x) \) and \( dv = dx \). Compute \( du \) and \( v \):
- \( du = -\frac{\sin(\ln x)}{x} dx \)
- \( v = x \)
- Apply the integration by parts formula: \( \int \cos(\ln x) \, dx = x \cdot \cos(\ln x) - \int x \cdot -\frac{\sin(\ln x)}{x} \, dx \).
- Then, apply integration by parts again, this time for \( \int \sin(\ln x) \, dx \).
- After simplifying, bring back the terms together to solve the original integral.
- Compare the expression obtained with the result from using substitution.
Using integration by parts requires careful selection of \( u \) and \( dv \) but can simplify integrals that are products of functions.