Why a Product Rule Leads to an Integration Rule
A product of functions can be easy to differentiate but less obvious to integrate. The product rule gives a way to reverse part of that differentiation: it expresses the integral of one product as a product minus a different integral.
The key is that the factors are not interchangeable in their roles. One factor is differentiated, while the other is integrated. The choice affects the new integral, so a useful setup is one that leaves an integral we can handle more readily than the one we started with.
Deriving the Formula
Let \(u\) and \(v\) be differentiable functions on an interval. The product rule states that the derivative of their product is
Rearrange this equation to isolate the term containing \(u(x)v'(x)\):
Now take antiderivatives of both sides. The antiderivative of the derivative of \(uv\) is \(uv\), up to an arbitrary constant. Therefore, whenever the antiderivatives involved exist on the interval,
This is integration by parts. It is the product rule rearranged and integrated—not a separate rule with an unrelated origin.
The notation \(dv=v'(x)\,dx\) signals that we need an antiderivative \(v\) of the factor being integrated. The notation \(du=u'(x)\,dx\) records the derivative of the factor being differentiated. Thus, for an integrand written as a product, we choose one factor to be \(u\) and the other, together with \(dx\), to be \(dv\).
What Makes a Factor Choice Useful?
The formula always transforms the integral in the stated way when its conditions hold. But it does not guarantee that the new integral will be easier. A sensible choice usually has two features:
- The chosen \(dv\) has an antiderivative \(v\) that can be found.
- The product \(v\,du\) produces a simpler or more familiar integral than the original one.
These are practical goals, not additional mathematical assumptions. A choice may satisfy the formula perfectly and still make the calculation harder. Looking at the integral that will remain—before carrying out the calculation—is an important part of using the method well.
Decide which factor will be differentiated, and calculate \(du\).
Assign the remaining factor and \(dx\) to \(dv\), then find an antiderivative \(v\).
Substitute into \(uv-\int v\,du\). Check whether the new integral is manageable.
Differentiate the proposed antiderivative and confirm that it gives the original integrand.
Worked Examples
Worked Example: Choosing Factors for \(\int x\cos x\,dx\)
Let \(u=x\) and \(dv=\cos x\,dx\). Then \(du=dx\), and an antiderivative of \(\cos x\) is \(v=\sin x\). Apply the formula:
For the second line, \(\int\sin x\,dx=-\cos x+C\), so subtracting that antiderivative gives \(+\cos x\). Check by differentiation:
The derivative matches the integrand. This choice is useful because differentiating \(x\) gives \(1\), leaving the manageable integral \(\int\sin x\,dx\).
Worked Example: Choosing Factors for \(\int x\sin x\,dx\)
Set \(u=x\) and \(dv=\sin x\,dx\). Then \(du=dx\), and \(v=-\cos x\), since \(\frac{d}{dx}(-\cos x)=\sin x\). Substitution into the formula gives
Check the result:
The opposite signs in the antiderivative of \(\sin x\) and in the formula’s subtraction are both essential. Writing \(v=-\cos x\) first makes the sign in the remaining integral visible.
Worked Example: A Radical Product with a Manageable Remainder
Find \(\int x\sqrt{x+1}\,dx\) on \(x>-1\). Choose \(u=x\), so \(du=dx\), and \(dv=\sqrt{x+1}\,dx\). An antiderivative for \(dv\) is
Now use integration by parts:
In the second line, \(\int(x+1)^{3/2}\,dx=\frac{2}{5}(x+1)^{5/2}+C\), as can be checked by differentiating. Check the final expression:
The two terms involving \((x+1)^{3/2}\) cancel, leaving exactly the original integrand.
When a Different Choice Does Not Help
For the first example, we chose \(u=x\) and \(dv=\cos x\,dx\). Reversing those roles is valid as a formal application, but it does not make progress. To see why, let \(u=\cos x\), \(dv=x\,dx\), so \(du=-\sin x\,dx\) and \(v=x^2/2\). If \(I=\int x\cos x\,dx\), the formula gives
For the remaining integral, set \(J=\int x^2\sin x\,dx\), and apply the formula with \(u=x^2\), \(dv=\sin x\,dx\). Then \(du=2x\,dx\) and \(v=-\cos x\), so
Substituting this expression for \(J\) into the first equation yields
This identity is true, but it gives no new information about \(I\): the unknown integral cancels from both sides. By contrast, the earlier choice reduced the calculation to \(\int\sin x\,dx\), which could be evaluated directly. This illustrates why factor choice determines whether the transformed integral is useful.
A Common Mistake: Forgetting the Subtraction
A frequent error is to write the product term correctly but use a plus sign before the remaining integral. For \(\int x\cos x\,dx\), that mistake would give
Differentiate this incorrect result:
This is not the original integrand. The correct formula has a minus sign before \(\int v\,du\). Since \(\int\sin x\,dx=-\cos x\), the correct result is \(x\sin x+\cos x+C\), whose derivative is \(x\cos x\).
Why the Derivation Matters
Remembering the formula is useful, but understanding its origin helps control its signs and roles. The term \(uv\) comes from the derivative of a product; the remaining integral appears because the product rule has two terms, and one of them must be moved to the other side. When in doubt, begin with \((uv)'=u'v+uv'\), rearrange, and then take antiderivatives.
Integration by parts is most effective when the choice of \(u\) and \(dv\) produces a remainder that is simpler or already understood. It is not enough for a split to be algebraically valid. Compare the new integral with the original one, and check the final answer by differentiation.
Check Your Understanding
Answer each question, and use differentiation to check any antiderivative you find.
- Starting from the product rule, explain how rearranging and taking antiderivatives gives the integration-by-parts formula.
- For \(\int x\sin x\,dx\), identify \(u\), \(dv\), \(du\), and \(v\) when \(u=x\), and explain why \(v=-\cos x\).
- Evaluate \(\int x\sin x\,dx\) using integration by parts, showing the remaining integral and the constant of integration.
- What makes the choice \(u=x\), \(dv=\cos x\,dx\) useful for \(\int x\cos x\,dx\)?
- Why does reversing the factors for \(\int x\cos x\,dx\) lead to an identity rather than a new evaluation?