lesson

Unit 2 - Integration Methods as Structural Rewriting · AP

Integration by Parts from the Product Rule

Derive integration by parts from the product rule and choose its parts because the new integral becomes simpler.

Overview

Central question: How does reversing the product rule trade one integral for another? You will derive the rule, make a defensible choice of uu and dvdv, and verify that the trade actually simplified the problem. Integration by parts is not a command to split every product. It is useful only when differentiating one factor and integrating the other produces a more manageable remaining integral.

Start with a product you can differentiate easily: xexx e^x. The product rule gives

ddx(xex)=xex+ex.\frac{d}{dx}\left(xe^x\right)=xe^x+e^x.

Rearranging and integrating both sides yields

∫xex dx=xex−∫ex dx.\int xe^x\,dx=xe^x-\int e^x\,dx.

This is the idea before it becomes a formula: one product integral is exchanged for another. The exchange helps here because ∫ex dx\int e^x\,dx is simpler than ∫xex dx\int xe^x\,dx.

Derive the rule before using it

Let uu and vv be differentiable functions. The product rule is

d(uv)=u dv+v du.d(uv)=u\,dv+v\,du.

Move the second term to the other side and integrate:

∫u dv=uv−∫v du.\int u\,dv=uv-\int v\,du.

The symbols have jobs. Choose uu to be differentiated, so dudu records its change. Choose dvdv to be integrated, so vv is an antiderivative of dvdv. Do not treat dvdv as an ordinary factor detached from its differential; the pair tells us which expression is being integrated.

L1-V01 - Product-rule reversal. Place this beside the derivation. It is a static, left-to-right diagram showing d(uv)=u dv+v dud(uv)=u\,dv+v\,dud(uv)=udv+vdu, then an arrow labeled “rearrange and integrate,” then ∫u dv=uv−∫v du\int u\,dv=uv-\int v\,du∫udv=uv−∫vdu. Use black text on a pale blue interior, a rounded black border, and no information outside the borderThe product rule is rearranged and integrated to derive integration by parts.
L1-V01 - Product-rule reversal. Place this beside the derivation. It is a static, left-to-right diagram showing d(uv)=u dv+v dud(uv)=u\,dv+v\,dud(uv)=udv+vdu, then an arrow labeled “rearrange and integrate,” then ∫u dv=uv−∫v du\int u\,dv=uv-\int v\,du∫udv=uv−∫vdu. Use black text on a pale blue interior, a rounded black border, and no information outside the border

Choose parts by measuring complexity

For ∫xex dx\int xe^x\,dx, choose u=xu=x and dv=ex dxdv=e^x\,dx. Then du=dxdu=dx and v=exv=e^x, so

∫xex dx=xex−∫ex dx=xex−ex+C=ex(x−1)+C.\int xe^x\,dx =xe^x-\int e^x\,dx =xe^x-e^x+C =e^x(x-1)+C.

The choice works because differentiating xx removes its algebraic complexity while integrating exe^x leaves it unchanged. A common heuristic puts logarithms and inverse trigonometric functions ahead of algebraic factors, then trigonometric or exponential factors, but a heuristic is not a theorem. The proof of a good choice is the resulting integral: it must be simpler, solvable, or part of a useful cycle.

L1-V02 - Complexity table. Place it beside the worked example. It is a static four-column table with the headings “factor,” “differentiate,” “integrate,” and “effect on remaining integral.” Its first row compares xxx and exe^xex for the example; a second row shows the unhelpful reversed choiceDifferentiating x simplifies it to one, while differentiating e to the x does not simplify the product integral.
L1-V02 - Complexity table. Place it beside the worked example. It is a static four-column table with the headings “factor,” “differentiate,” “integrate,” and “effect on remaining integral.” Its first row compares xxx and exe^xex for the example; a second row shows the unhelpful reversed choice

Contrast a poor split

Reverse the choices: u=exu=e^x and dv=x dxdv=x\,dx. Then du=ex dxdu=e^x\,dx and v=x22v=\frac{x^2}{2}, producing

∫xex dx=x2ex2−12∫x2ex dx.\int xe^x\,dx =\frac{x^2e^x}{2}-\frac12\int x^2e^x\,dx.

The remaining integral is worse because the polynomial degree increased. This is not algebraically false; it is strategically poor. If an application of the rule makes the unknown integral more complicated, stop and choose differently.

L1-V03 - Better and worse trades. Place it after the contrast case. It is a same-scale two-panel comparison: the left panel labels x→1x\to1x→1 and the simpler remaining integral ∫ex dx\int e^x\,dx∫exdx; the right labels ex→exe^x\to e^xex→ex and x→x22x\to\frac{x^2}{2}x→2x2​ with the more complicated ∫x2ex dx\int x^2e^x\,dx∫x2exdxOne choice lowers polynomial complexity; the reversed choice raises it.
L1-V03 - Better and worse trades. Place it after the contrast case. It is a same-scale two-panel comparison: the left panel labels x→1x\to1x→1 and the simpler remaining integral ∫ex dx\int e^x\,dx∫exdx; the right labels ex→exe^x\to e^xex→ex and x→x22x\to\frac{x^2}{2}x→2x2​ with the more complicated ∫x2ex dx\int x^2e^x\,dx∫x2exdx

Definite integrals use the same trade

Integration by parts also applies to a definite integral, provided the product term is evaluated at the endpoints. For example,

∫01xex dx=[xex]01−∫01ex dx.\int_0^1 xe^x\,dx =\left[xe^x\right]_0^1-\int_0^1e^x\,dx.

The first term is an endpoint contribution. At x=1x=1 it is ee; at x=0x=0 it is zero. The remaining definite integral is e−1e-1, so the complete value is e−(e−1)=1e-(e-1)=1. Writing the brackets explicitly prevents an easy mistake: the product term is not an indefinite expression with a new constant; it is a definite difference of values.

This example also supplies a reasonableness check. On 0≤x≤10\le x\le1, the integrand xexxe^x is nonnegative, so the integral must be nonnegative. Its graph lies below the rectangle of height ee and width 11, so the answer should be less than ee. The value 11 passes both checks. A graph or a rough numerical estimate cannot replace the calculation, but it can reveal a missing endpoint sign or an algebraic error.

A transfer example with a logarithm

The integral ∫arctan⁡(x) dx\int\arctan(x)\,dx has no obvious product until it is written as ∫arctan⁡(x)⋅1 dx\int\arctan(x)\cdot1\,dx. Choose u=arctan⁡(x)u=\arctan(x) and dv=dxdv=dx. Then du=11+x2 dxdu=\frac{1}{1+x^2}\,dx and v=xv=x, producing

∫arctan⁡(x) dx=xarctan⁡(x)−∫x1+x2 dx.\int\arctan(x)\,dx =x\arctan(x)-\int\frac{x}{1+x^2}\,dx.

The remaining integral is now a substitution problem, not another parts problem. With w=1+x2w=1+x^2, dw=2x dxdw=2x\,dx, so the answer is

xarctan⁡(x)−12ln⁡(1+x2)+C.x\arctan(x)-\frac12\ln\left(1+x^2\right)+C.

This example shows how techniques can cooperate. The first method is chosen from product structure; the second is chosen from a matching inside derivative. The handoff is justified by the new expression, not by a preselected sequence of formula names.

Stop and check

A plausible incorrect claim is: “LIATE says u=xu=x, so the choice is proven.” The misconception is confusing a useful pattern with a mathematical justification. Targeted feedback: use the heuristic to propose a choice, then inspect the new integral. If it does not simplify, the heuristic has not licensed the calculation.

Retrieval check

Find an antiderivative of ∫ln⁡(x) dx\int \ln(x)\,dx for x>0x>0. Choose u=ln⁡(x)u=\ln(x) and dv=dxdv=dx, giving du=1x dxdu=\frac1x\,dx and v=xv=x. Therefore

∫ln⁡(x) dx=xln⁡(x)−∫1 dx=xln⁡(x)−x+C.\int\ln(x)\,dx=x\ln(x)-\int1\,dx=x\ln(x)-x+C.

Differentiate your answer. The Chain Rule reduces the derivative of xln⁡(x)x\ln(x) to ln⁡(x)+1\ln(x)+1, and the derivative of −x-x removes the extra 11. The next lesson develops two special outcomes of the same trade: repeated reduction and a cycle that brings the original integral back.

Knowledge Map

Where this lesson fits

Prerequisites

Unit 1 - Integration Foundations and Strategic ChoiceNumerical Integration and Error

Next lessons

Unit 2 - Integration Techniques and VerificationRepeated and Cyclic Integration by PartsUnit 2 - Integration Techniques and VerificationTrigonometric Integrals