Foundations to FrontierPart V: Calculus IIBezhig

Module 20: Integration by parts and structural choices

8 exercises, each with a complete solution. 1 figure. 1 note from the engine.

On this page
  1. A. Prerequisites and observable goals
  2. B. The central idea: reverse the product rule
  3. C. The rule and the roles of the pieces
  4. D. Why the transfer can simplify a product
  5. E. Choose a method by the resulting integral
  6. F. Worked teaching examples
  7. G. Independent practice
  8. H. Complete solutions: Module 20
  9. I. Retention and readiness

A. Prerequisites and observable goals#

Before

Product rule, substitution, logarithms, and definite integral evaluation.

After

Recognize when a product suggests integration by parts, choose useful components, repeat the method when necessary, and solve a cyclic integral.

B. The central idea: reverse the product rule#

Substitution reverses a chain rule. Integration by parts reverses a product rule. Neither is triggered by appearance alone: a product such as xex2x e^{x^2} is better handled by substitution, while xexx e^x is well suited to parts. Your task is to find a transformation that makes the remaining integral simpler or relates it to the original in a solvable way.

C. The rule and the roles of the pieces#

Integrating (uv)′=u′v+uv′(uv)'=u'v+uv' gives

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

For differentiable u,vu,v with sufficient continuity on [a,b][a,b],

∫abu(x)v′(x) dx=[u(x)v(x)]ab−∫abv(x)u′(x) dx.\int_a^b u(x)v'(x)\dd x=[u(x)v(x)]_a^b-\int_a^b v(x)u'(x)\dd x.

Here  dv\dd v includes the integration differential; it is not the same object as vv. Choosing uu requires differentiating it, while choosing  dv\dd v requires finding an antiderivative. A memorized ranking of logarithms, inverse trigonometric functions, polynomials, and exponentials can suggest choices, but it is a heuristic, not a theorem guaranteeing success. [O2Parts]

For indefinite calculations, one arbitrary constant at the end is enough. When using the symbol II to represent an integral in a cyclic calculation, work with a consistently chosen antiderivative up to constants, then restore the arbitrary constant after solving the relation.

Integration by parts as two areas. Plot vv against uu. The area under the curve is ∫v du\int v\dd u (blue), the area to its left is ∫u dv\int u\dd v (yellow), and together they fill the large rectangle less the small one: u2v2−u1v1u_2v_2-u_1v_1. That is the definite formula above, read as a picture.

D. Why the transfer can simplify a product#

In ∫xex dx\int x e^x\dd x, set u=xu=x,  dv=ex dx\dd v=e^x\dd x. Differentiating lowers the polynomial degree and integrating the exponential does not make it harder. The formula transfers one derivative onto xx:

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

The product rule checks the answer: ex(x−1)+ex=xexe^x(x-1)+e^x=xe^x. In contrast, choosing u=exu=e^x,  dv=x dx\dd v=x\dd x gives a new integral containing x2exx^2e^x, which is harder. A legal transformation need not be a useful one.

E. Choose a method by the resulting integral#

Simplify first. Look for a direct derivative pattern or substitution. If neither appears, ask whether one factor becomes simpler under differentiation and the other has a manageable antiderivative. Write a two-column record of u, duu,\dd u and  dv,v\dd v,v. Apply the formula with its minus sign, then inspect the new integral. Stop when it is elementary, repeat if complexity is decreasing, or solve algebraically if the original integral returns. For definite integrals, evaluate the boundary product as well as the remaining integral.

F. Worked teaching examples#

A hidden product. To integrate ln⁡x\ln x for x>0x>0, write it as (ln⁡x)⋅1(\ln x)\cdot1. Choose u=ln⁡xu=\ln x,  dv= dx\dd v=\dd x, so  du= dx/x\dd u=\dd x/x, v=xv=x. Then ∫ln⁡x dx=xln⁡x−∫1 dx=xln⁡x−x+C\int\ln x\dd x=x\ln x-\int1\dd x=x\ln x-x+C. A product need not have two visibly complicated factors.

Repeated parts. With I=∫x2cos⁡x dxI=\int x^2\cos x\dd x, choose u=x2u=x^2,  dv=cos⁡x dx\dd v=\cos x\dd x. Then I=x2sin⁡x−2∫xsin⁡x dxI=x^2\sin x-2\int x\sin x\dd x. The second integral, using u=xu=x,  dv=sin⁡x dx\dd v=\sin x\dd x, equals −xcos⁡x+sin⁡x-x\cos x+\sin x. Therefore

I=x2sin⁡x+2xcos⁡x−2sin⁡x+C.I=x^2\sin x+2x\cos x-2\sin x+C.

Notice that −2-2 multiplies both terms of the second result.

A cyclic comparison. Integrals of eaxsin⁡bxe^{ax}\sin bx or eaxcos⁡bxe^{ax}\cos bx often return to themselves after two applications. That is not failure: it supplies an equation for the unknown antiderivative. Keep the repeated integral named consistently and collect it on one side.

G. Independent practice#

F foundation C standard course work T transfer S optional stretch L runnable lab or project. Attempt the complete set before opening its solutions.

M20.01FSolution

Evaluate ∫xcos⁡(2x) dx\int x\cos(2x)\dd x.

M20.02CSolution

Evaluate ∫x2ex dx\int x^2e^x\dd x.

M20.03CSolution

Evaluate ∫1eln⁡x dx\int_1^e\ln x\dd x.

M20.04TSolution

Evaluate ∫arctan⁡x dx\int\arctan x\dd x.

M20.05TSolution

Evaluate ∫e2xsin⁡x dx\int e^{2x}\sin x\dd x by a cyclic integration-by-parts calculation.

M20.06CSolution

Evaluate ∫01xln⁡(1+x) dx\int_0^1x\ln(1+x)\dd x.

M20.07TSolution

Choose and execute an efficient method for each integral: ∫xex2 dx\int x e^{x^2}\dd x and ∫xex dx\int x e^x\dd x. Explain the structural difference.

M20.08SSolution

For integers n≥1n\ge1, derive a reduction relation for In=∫0π/2sin⁡nx dxI_n=\int_0^{\pi/2}\sin^n x\dd x. Use it to find I5I_5, treating the base case separately.

Optional small hints

For M20.04, use  dv= dx\dd v=\dd x. For M20.05, name the sine integral II and the cosine integral JJ. For M20.06, divide x2x^2 by 1+x1+x after parts. For M20.08, the standard recurrence is intended for n≥2n\ge2, not for the base case n=1n=1.

H. Complete solutions: Module 20#

Compare the first step where your work differs. A corrected answer is not yet an independent success.

M20.01Show solution

Remember the antiderivative’s scale factor

Choose u=xu=x,  dv=cos⁡(2x) dx\dd v=\cos(2x)\dd x, so  du= dx\dd u=\dd x and v=sin⁡(2x)/2v=\sin(2x)/2. Then

∫xcos⁡(2x) dx=xsin⁡(2x)2−12∫sin⁡(2x) dx=xsin⁡(2x)2+cos⁡(2x)4+C.\int x\cos(2x)\dd x=\frac{x\sin(2x)}2-\frac12\int\sin(2x)\dd x =\boxed{\frac{x\sin(2x)}2+\frac{\cos(2x)}4+C}.

Differentiation makes the two extra sine terms cancel.

Back to M20.01
M20.02Show solution

Lower the polynomial degree twice

First, I=x2ex−2∫xex dxI=x^2e^x-2\int xe^x\dd x. A second application gives ∫xex dx=xex−ex\int xe^x\dd x=xe^x-e^x. Thus I=ex(x2−2x+2)+C\boxed{I=e^x(x^2-2x+2)+C}. Checking: the product derivative is ex[(x2−2x+2)+(2x−2)]=x2exe^x[(x^2-2x+2)+(2x-2)]=x^2e^x.

Back to M20.02
M20.03Show solution

Evaluate the boundary product too

The primitive is xln⁡x−xx\ln x-x. At ee it is e−e=0e-e=0; at 11 it is −1-1. Hence the integral is 0−(−1)=10-(-1)=\boxed1. The positive answer agrees with ln⁡x≥0\ln x\ge0 on the interval.

Back to M20.03
M20.04Show solution

A single inverse trigonometric factor is a product with one

Use u=arctan⁡xu=\arctan x, v=xv=x. Then

∫arctan⁡x dx=xarctan⁡x−∫x1+x2 dx=xarctan⁡x−12ln⁡(1+x2)+C.\int\arctan x\dd x=x\arctan x-\int\frac{x}{1+x^2}\dd x =\boxed{x\arctan x-\tfrac12\ln(1+x^2)+C}.

The remaining integral is a substitution with w=1+x2w=1+x^2. The logarithm argument is positive for every real xx, so no additional domain split is required.

Back to M20.04
M20.05Show solution

Solve the equation produced by repetition

Let I=∫e2xsin⁡x dxI=\int e^{2x}\sin x\dd x and J=∫e2xcos⁡x dxJ=\int e^{2x}\cos x\dd x. Integrate the exponential in each parts step:

I=12e2xsin⁡x−12J,J=12e2xcos⁡x+12I.I=\tfrac12e^{2x}\sin x-\tfrac12J,\qquad J=\tfrac12e^{2x}\cos x+\tfrac12I.

Substitution gives

I=12e2xsin⁡x−14e2xcos⁡x−14I.I=\tfrac12e^{2x}\sin x-\tfrac14e^{2x}\cos x-\tfrac14I.

Thus (5/4)I=e2x(2sin⁡x−cos⁡x)/4(5/4)I=e^{2x}(2\sin x-\cos x)/4, so

I=e2x(2sin⁡x−cos⁡x)/5+C.\boxed{I=e^{2x}(2\sin x-\cos x)/5+C}.

Product differentiation verifies the coefficients and signs.

Back to M20.05
M20.06Show solution

Parts followed by polynomial division

Take u=ln⁡(1+x)u=\ln(1+x) and  dv=x dx\dd v=x\dd x. Then

I=[x22ln⁡(1+x)]01−12∫01x21+x dx.I=\left[\frac{x^2}2\ln(1+x)\right]_0^1-\frac12\int_0^1\frac{x^2}{1+x}\dd x.

Since x2/(1+x)=x−1+1/(1+x)x^2/(1+x)=x-1+1/(1+x), the remaining integral is 1/2−1+ln⁡2=ln⁡2−1/21/2-1+\ln2=\ln2-1/2. Consequently I=12ln⁡2−12(ln⁡2−1/2)=1/4I=\tfrac12\ln2-\tfrac12(\ln2-1/2)=\boxed{1/4}. The logarithmic terms cancel only after both definite evaluations are included.

Back to M20.06
M20.07Show solution

Similar-looking products can encode different rules

For xex2xe^{x^2}, the inner exponent’s derivative is 2x2x, so u=x2u=x^2 gives 12ex2+C\boxed{\tfrac12e^{x^2}+C}. For xexxe^x, the polynomial factor is not the derivative of the exponent; parts reduces it to ex(x−1)+C\boxed{e^x(x-1)+C}. Differentiating both answers checks that the first produces an extra 2x2x through the chain rule while the second uses product-rule cancellation.

Back to M20.07
M20.08Show solution

A recurrence from one parts step and an identity

For n≥2n\ge2, write sin⁡nx=sin⁡n−1xsin⁡x\sin^n x=\sin^{n-1}x\sin x and choose u=sin⁡n−1xu=\sin^{n-1}x,  dv=sin⁡x dx\dd v=\sin x\dd x. The boundary term −sin⁡n−1xcos⁡x-\sin^{n-1}x\cos x vanishes at both ends. Thus

In=(n−1)∫0π/2sin⁡n−2xcos⁡2x dx=(n−1)(In−2−In).I_n=(n-1)\int_0^{\pi/2}\sin^{n-2}x\cos^2x\dd x =(n-1)(I_{n-2}-I_n).

Solving gives In=n−1nIn−2\boxed{I_n=\frac{n-1}{n}I_{n-2}}. With I1=∫0π/2sin⁡x dx=1I_1=\int_0^{\pi/2}\sin x\dd x=1, I3=2/3I_3=2/3 and I5=8/15\boxed{I_5=8/15}. For n=1n=1 the boundary term is not zero, which is why the recurrence’s derivation must not be blindly extended to that base case.

Back to M20.08

I. Retention and readiness#

Revisit M17.04 and M10.05. Explain which earlier derivative rule each integration method reverses. Advance when you can predict the new integral before committing to a parts choice and can check the final primitive by differentiation.