Choosing a Setup That Simplifies the Integral
Integration by parts can turn a product into an integral that is easier to evaluate. The formula itself is short; the important choice is how to divide the integrand into \(u\) and \(dv\). A useful setup makes \(du\) simpler than \(u\), gives a manageable antiderivative \(v\) for \(dv\), and leaves an integral that is simpler than the one you started with.
A poor choice may still be mathematically valid, but it can make the remaining integral more complicated. Signs also deserve care: the remaining integral is subtracted, and that minus sign combines with any negative signs in \(v\) or \(du\).
A Practical Choice Strategy
For a product, begin by asking which factor becomes simpler when differentiated and which factor has a straightforward antiderivative. These questions point toward a useful split, but they are a guide rather than a rule that guarantees success. The decisive test is the remaining integral.
- Try a factor with a simpler derivative as \(u\). Polynomials often work well here because repeated differentiation eventually gives zero.
- Try a factor with a familiar antiderivative as \(dv\). Exponentials, sines, cosines, and constants are common choices.
- After applying the formula, compare the new integral with the original. It should be easier to evaluate, or at least lead to a manageable next step.
- If a choice creates a more complicated product or returns an unevaluated integral of similar difficulty, reconsider the split.
For example, in \(\int x e^x\,dx\), taking \(u=x\) and \(dv=e^x\,dx\) reduces the power of the polynomial factor to a constant. Reversing the roles requires integrating \(x\) but leaves an integral involving \(x^2e^x\), a higher-degree polynomial product. The reversed choice is not forbidden; it is simply less efficient.
Why the Formula Works
The choice strategy rests on an identity, not on a special trick. The product rule says that the derivative of \(uv\) is the sum of two terms. Rearranging that rule and integrating gives integration by parts.
If \(u\) and \(v\) are differentiable, then \((uv)'=u'v+uv'\).
Subtract \(u'v\) from both sides to get \(uv'= (uv)'-u'v\).
Integrating with respect to \(x\) gives \(\int uv'\,dx=uv-\int vu'\,dx\), with an arbitrary constant included in the final antiderivative.
In differential notation, \(du=u'\,dx\) and \(dv=v'\,dx\). Thus \(\int u\,dv=\int uv'\,dx\), while \(\int v\,du=\int vu'\,dx\). This proves the stated formula wherever the functions involved are differentiable and the integrals exist on the interval under consideration. The minus sign comes directly from rearranging the product rule.
Worked Example: A Polynomial and an Exponential
Worked Example: Choosing the Polynomial as \(u\)
Evaluate \(\int x e^x\,dx\). Choose \(u=x\) and \(dv=e^x\,dx\). Then \(du=dx\) and \(v=e^x\). The formula gives
Check by differentiating the proposed antiderivative:
The derivative matches the integrand. The choice works well because differentiating \(x\) gives the simpler factor \(1\), while \(e^x\) has a straightforward antiderivative.
Worked Example: A Logarithm and a Power
Worked Example: Integrating a Logarithm by Parts
Evaluate \(\int x\ln x\,dx\), where \(x>0\). Choose \(u=\ln x\) and \(dv=x\,dx\). Then \(du=\frac{1}{x}\,dx\) and \(v=\frac{x^2}{2}\). Applying the formula:
Check the result:
This split makes the logarithm disappear after differentiation and leaves a simple power integral. If instead \(u=x\) and \(dv=\ln x\,dx\), finding \(v\) already requires an integration-by-parts calculation. That reverses the useful order: it adds work before the original integral has been simplified.
Worked Example: Two Applications and Careful Signs
Worked Example: A Polynomial and a Trigonometric Factor
Evaluate \(\int x^2\sin x\,dx\). Choose \(u=x^2\) and \(dv=\sin x\,dx\). Then \(du=2x\,dx\) and \(v=-\cos x\). The negative sign in \(v\) matters:
For the remaining integral, choose \(u=x\), \(dv=\cos x\,dx\), so \(du=dx\) and \(v=\sin x\):
Substitute this result into the first calculation:
Differentiate to check all terms:
The terms involving \(x\cos x\) and \(\sin x\) cancel, leaving the original integrand.
Notation and Sign Checks
Writing each part explicitly prevents several common errors. \(dv\) is the chosen differential to integrate; \(v\) is an antiderivative of it. Likewise, \(du\) is found by differentiating \(u\). Do not treat \(dv\) and \(v\) as interchangeable, and do not omit the differential when recording the setup.
The formula has a minus sign before the remaining integral. That sign does not mean the result of the remaining integration must be negative. For instance, \(\int\sin x\,dx=-\cos x\), so subtracting this integral gives \(-\int\sin x\,dx=+\cos x\).
Common Mistake: Losing a Minus Sign
Consider \(\int x\cos x\,dx\). With \(u=x\), \(dv=\cos x\,dx\), we have \(du=dx\) and \(v=\sin x\). A common incorrect line is
This mishandles the integral of \(\sin x\). Since \(\int\sin x\,dx=-\cos x\), the formula actually gives
Differentiate the incorrect expression to see the error:
which is not the integrand. The corrected expression checks because
How to Judge a Candidate Setup
A setup is useful when the new integral is easier to evaluate than the original, not merely because the formula can be applied. After choosing \(u\) and \(dv\), pause before doing more algebra and inspect \(\int v\,du\). If it has fewer polynomial factors, a simpler derivative, or a known elementary form, the choice is likely productive. If it introduces a more complicated power or a new integral that is harder to evaluate, try a different split.
Some integrals require repeated applications of the formula; others need a separate strategy if integration by parts does not simplify them. The formula guarantees an identity under its conditions, not that every choice leads to a quick antiderivative. In all cases, differentiating the final expression is a direct and reliable check for sign and algebra errors.
Check Your Understanding
For each question, identify the choice or calculation that makes the method simpler or verifies the result.
- For \(\int x^2e^x\,dx\), which factor is a useful choice for \(u\), and why?
- For \(\int\ln x\,dx\) on \(x>0\), what can you choose for \(u\) and \(dv\)?
- In integration by parts, what does \(v\) represent, and how is it related to \(dv\)?
- Explain why subtracting \(\int\sin x\,dx\) produces \(+\cos x\).
- What derivative check would confirm that a proposed antiderivative is correct?