Solved Exercises on Integration by Parts in Integral Calculus

Master integration by parts: product rule in reverse through these 5 detailed exercises with polynomial-exponential, logarithmic, and trigonometric applications.

Solution: Exercises 1 to 3
1 Basic integration by parts
Exercise 1
Evaluate \(\int x e^x dx\) using integration by parts.
Definition:

Integration by parts formula: \(\int u dv = uv - \int v du\), derived from the product rule for differentiation

Integration by parts method:
  1. Choose \(u\) and \(dv\) from the integrand
  2. Compute \(du\) by differentiating \(u\)
  3. Compute \(v\) by integrating \(dv\)
  4. Apply the formula: \(\int u dv = uv - \int v du\)
  5. Simplify the resulting expression
Original function
\(f(x) = x e^x\)
Choice
\(u = x\), \(dv = e^x dx\)
Result
\(e^x(x - 1) + C\)
Step 1: Choose \(u\) and \(dv\)

For \(\int x e^x dx\), we use the LIATE rule (Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential) to guide our choice.

Since we have algebraic (\(x\)) and exponential (\(e^x\)), choose \(u = x\) (algebraic) and \(dv = e^x dx\) (exponential).

Step 2: Find \(du\) and \(v\)

If \(u = x\), then \(du = dx\).

If \(dv = e^x dx\), then \(v = \int e^x dx = e^x\).

Step 3: Apply integration by parts formula

\(\int u dv = uv - \int v du\)

\(\int x e^x dx = x \cdot e^x - \int e^x \cdot dx\)

\(= x e^x - \int e^x dx\)

Step 4: Complete the integration

\(\int x e^x dx = x e^x - e^x + C = e^x(x - 1) + C\)

Step 5: Verification

Take the derivative: \(\frac{d}{dx}[e^x(x - 1) + C] = e^x(x - 1) + e^x = e^x(x - 1 + 1) = xe^x\) ✓

\(\int x e^x dx = e^x(x - 1) + C\)
Final answer:

\(\int x e^x dx = e^x(x - 1) + C\)

Applied rules:

• Integration by parts: \(\int u dv = uv - \int v du\)

• LIATE rule: Choose \(u\) according to: Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential

• Exponential integration: \(\int e^x dx = e^x\)

2 Trigonometric integration by parts
Exercise 2
Evaluate \(\int x \cos x dx\) using integration by parts.
Definition:

Trigonometric integration by parts: When dealing with products of algebraic and trigonometric functions, choose the algebraic part as \(u\) and the trigonometric part as \(dv\)

Original function
\(f(x) = x \cos x\)
Choice
\(u = x\), \(dv = \cos x dx\)
Result
\(x\sin x + \cos x + C\)
Step 1: Choose \(u\) and \(dv\)

For \(\int x \cos x dx\), we have algebraic (\(x\)) and trigonometric (\(\cos x\)).

Following LIATE: choose \(u = x\) (algebraic) and \(dv = \cos x dx\) (trigonometric).

Step 2: Find \(du\) and \(v\)

If \(u = x\), then \(du = dx\).

If \(dv = \cos x dx\), then \(v = \int \cos x dx = \sin x\).

Step 3: Apply integration by parts formula

\(\int x \cos x dx = x \sin x - \int \sin x dx\)

Step 4: Complete the integration

\(\int x \cos x dx = x \sin x - (-\cos x) + C = x \sin x + \cos x + C\)

Step 5: Verification

Take the derivative: \(\frac{d}{dx}[x \sin x + \cos x + C] = \sin x + x \cos x - \sin x = x \cos x\) ✓

\(\int x \cos x dx = x \sin x + \cos x + C\)
Final answer:

\(\int x \cos x dx = x \sin x + \cos x + C\)

Applied rules:

• Integration by parts: \(\int u dv = uv - \int v du\)

• LIATE rule: Choose \(u\) according to priority order

• Trigonometric integration: \(\int \cos x dx = \sin x\), \(\int \sin x dx = -\cos x\)

3 Logarithmic integration by parts
Exercise 3
Evaluate \(\int \ln x dx\) using integration by parts.
Definition:

Logarithmic integration by parts: When integrating \(\ln x\), treat it as \((\ln x) \cdot 1\) and choose \(u = \ln x\), \(dv = 1 dx\)

Original function
\(f(x) = \ln x\)
Rewrite
\(\int \ln x \cdot 1 dx\)
Result
\(x\ln x - x + C\)
Step 1: Rewrite the integrand

\(\int \ln x dx = \int \ln x \cdot 1 dx\)

Now we have a product: \(\ln x\) and \(1\).

Step 2: Choose \(u\) and \(dv\)

Following LIATE, choose \(u = \ln x\) (logarithmic) and \(dv = 1 dx\).

Step 3: Find \(du\) and \(v\)

If \(u = \ln x\), then \(du = \frac{1}{x} dx\).

If \(dv = 1 dx\), then \(v = \int 1 dx = x\).

Step 4: Apply integration by parts formula

\(\int \ln x dx = \int \ln x \cdot 1 dx = \ln x \cdot x - \int x \cdot \frac{1}{x} dx\)

\(= x \ln x - \int 1 dx\)

Step 5: Complete the integration

\(\int \ln x dx = x \ln x - x + C\)

Step 6: Verification

Take the derivative: \(\frac{d}{dx}[x \ln x - x + C] = \ln x + x \cdot \frac{1}{x} - 1 = \ln x + 1 - 1 = \ln x\) ✓

\(\int \ln x dx = x \ln x - x + C\)
Final answer:

\(\int \ln x dx = x \ln x - x + C\)

Applied rules:

• Integration by parts: \(\int u dv = uv - \int v du\)

• LIATE rule: Logarithmic functions are first priority for \(u\)

• Logarithmic derivative: \(\frac{d}{dx}[\ln x] = \frac{1}{x}\)

Key Concepts: Integration by Parts
\(\int u dv = uv - \int v du\)
Integration by Parts Formula
General Formula
\(\int u dv = uv - \int v du\)
Product rule in reverse
Exponential
\(\int x^n e^x dx\)
Choose \(u = x^n\), \(dv = e^x dx\)
Trigonometric
\(\int x^n \sin x dx\), \(\int x^n \cos x dx\)
Choose \(u = x^n\), \(dv = \sin x dx\) or \(\cos x dx\)
Logarithmic
\(\int \ln x dx\)
Rewrite as \(\int \ln x \cdot 1 dx\)
Inverse Trig
\(\int \arcsin x dx\), \(\int \arctan x dx\)
Choose \(u = \arcsin x\), \(dv = 1 dx\)
LIATE Rule
Logarithmic, Inverse, Algebraic, Trigonometric, Exponential
Priority for choosing \(u\)
Key definitions:

Integration by parts: A technique that reverses the product rule for differentiation, allowing us to integrate products of functions by converting to a simpler integral

LIATE rule: A mnemonic for choosing \(u\): Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential functions (in order of priority)

Product rule: \(\frac{d}{dx}[uv] = u\frac{dv}{dx} + v\frac{du}{dx}\), which leads to the integration by parts formula

Integration by parts method:
  1. Identify the product: Recognize that the integrand is a product of two functions
  2. Choose \(u\) and \(dv\): Use LIATE rule to select which function to differentiate and which to integrate
  3. Compute \(du\) and \(v\): Differentiate \(u\) and integrate \(dv\)
  4. Apply the formula: \(\int u dv = uv - \int v du\)
  5. Simplify: Evaluate the new integral, which should be simpler than the original
  6. Repeat if necessary: Sometimes multiple applications are needed
Tip 1: Always use the LIATE rule to choose \(u\): Logarithmic, Inverse, Algebraic, Trigonometric, Exponential.
Tip 2: If the new integral is harder than the original, reconsider your choice of \(u\) and \(dv\).
Tip 3: For \(\int \ln x dx\), rewrite as \(\int \ln x \cdot 1 dx\) and choose \(u = \ln x\), \(dv = 1 dx\).
Tip 4: Always verify by differentiating your result.
Common applications: Integration of products of polynomials with exponentials, trigonometric functions, logarithms, and inverse trigonometric functions.
Visualization: Integration by parts transforms complex products into simpler forms by distributing the derivative across the product.
Essential formulas to know:

• Integration by parts: \(\int u dv = uv - \int v du\)

• LIATE order: Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential

• Common choices: For \(\int x^n e^x dx\), choose \(u = x^n\), \(dv = e^x dx\)

• For \(\int x^n \sin x dx\), choose \(u = x^n\), \(dv = \sin x dx\)

• For \(\int \ln x dx\), choose \(u = \ln x\), \(dv = 1 dx\)

Visual Analysis: Integration by Parts Patterns
Exercise 6: Product Integration
Explore integration by parts patterns:
\(\int x e^x dx\)
\(\int x \sin x dx\)
\(\int x \ln x dx\)

Analysis: Demonstrating integration by parts with various function types.

  • \(\int x e^x dx = e^x(x - 1) + C\) (polynomial-exponential)
  • \(\int x \sin x dx = -x\cos x + \sin x + C\) (polynomial-trigonometric)
  • \(\int x \ln x dx = \frac{x^2}{2}\ln x - \frac{x^2}{4} + C\) (polynomial-logarithmic)
Solution: Exercises 4 to 5
4 Repeated integration by parts
Exercise 4
Evaluate \(\int x^2 e^x dx\) using integration by parts twice.
Definition:

Repeated integration by parts: When the resulting integral after one application of integration by parts is still a product, apply the formula again

Original function
\(f(x) = x^2 e^x\)
First application
\(x^2 e^x - \int 2x e^x dx\)
Result
\(e^x(x^2 - 2x + 2) + C\)
Step 1: First application of integration by parts

For \(\int x^2 e^x dx\), choose \(u = x^2\) (algebraic) and \(dv = e^x dx\) (exponential).

Then \(du = 2x dx\) and \(v = e^x\).

\(\int x^2 e^x dx = x^2 e^x - \int e^x \cdot 2x dx = x^2 e^x - 2\int x e^x dx\)

Step 2: Second application of integration by parts

We now need \(\int x e^x dx\). From our earlier exercise: \(\int x e^x dx = e^x(x - 1) + C\).

Step 3: Combine results

\(\int x^2 e^x dx = x^2 e^x - 2[e^x(x - 1)] + C\)

\(= x^2 e^x - 2x e^x + 2e^x + C\)

\(= e^x(x^2 - 2x + 2) + C\)

Step 4: Verification

Take the derivative: \(\frac{d}{dx}[e^x(x^2 - 2x + 2)] = e^x(x^2 - 2x + 2) + e^x(2x - 2) = e^x(x^2 - 2x + 2 + 2x - 2) = e^x x^2 = x^2 e^x\) ✓

Step 5: Alternative approach

We could have recognized the pattern: for \(\int x^n e^x dx\), repeated integration by parts reduces the power of \(x\) each time until it becomes a constant.

For \(\int x^2 e^x dx\): After 2 applications, we get \(\int e^x dx\) which is elementary.

\(\int x^2 e^x dx = e^x(x^2 - 2x + 2) + C\)
Final answer:

\(\int x^2 e^x dx = e^x(x^2 - 2x + 2) + C\)

Applied rules:

• Integration by parts: \(\int u dv = uv - \int v du\)

• Repeated application: Apply the formula multiple times when necessary

• Pattern recognition: For \(\int x^n e^x dx\), repeated applications reduce to elementary integral

5 Advanced integration by parts
Exercise 5
Evaluate \(\int e^x \sin x dx\) using integration by parts twice and algebraic manipulation.
Definition:

Cyclic integration by parts: When applying integration by parts twice leads back to the original integral, we can solve algebraically for the result

Original function
\(f(x) = e^x \sin x\)
First application
\(e^x \sin x - \int e^x \cos x dx\)
Result
\(\frac{e^x(\sin x - \cos x)}{2} + C\)
Step 1: First application of integration by parts

For \(\int e^x \sin x dx\), choose \(u = \sin x\) (trigonometric) and \(dv = e^x dx\) (exponential).

Then \(du = \cos x dx\) and \(v = e^x\).

\(\int e^x \sin x dx = e^x \sin x - \int e^x \cos x dx\)

Step 2: Second application of integration by parts

For \(\int e^x \cos x dx\), choose \(u = \cos x\) and \(dv = e^x dx\).

Then \(du = -\sin x dx\) and \(v = e^x\).

\(\int e^x \cos x dx = e^x \cos x - \int e^x (-\sin x) dx = e^x \cos x + \int e^x \sin x dx\)

Step 3: Substitute back into the first equation

From Step 1: \(\int e^x \sin x dx = e^x \sin x - \int e^x \cos x dx\)

From Step 2: \(\int e^x \cos x dx = e^x \cos x + \int e^x \sin x dx\)

Substituting: \(\int e^x \sin x dx = e^x \sin x - [e^x \cos x + \int e^x \sin x dx]\)

\(\int e^x \sin x dx = e^x \sin x - e^x \cos x - \int e^x \sin x dx\)

Step 4: Solve algebraically for the integral

\(\int e^x \sin x dx + \int e^x \sin x dx = e^x \sin x - e^x \cos x\)

\(2\int e^x \sin x dx = e^x \sin x - e^x \cos x\)

\(\int e^x \sin x dx = \frac{e^x \sin x - e^x \cos x}{2} = \frac{e^x(\sin x - \cos x)}{2}\)

Step 5: Add the constant of integration

\(\int e^x \sin x dx = \frac{e^x(\sin x - \cos x)}{2} + C\)

Step 6: Verification

Take the derivative: \(\frac{d}{dx}\left[\frac{e^x(\sin x - \cos x)}{2}\right] = \frac{1}{2}[e^x(\sin x - \cos x) + e^x(\cos x + \sin x)] = \frac{1}{2}[e^x(\sin x - \cos x + \cos x + \sin x)] = \frac{1}{2}[2e^x \sin x] = e^x \sin x\) ✓

\(\int e^x \sin x dx = \frac{e^x(\sin x - \cos x)}{2} + C\)
Final answer:

\(\int e^x \sin x dx = \frac{e^x(\sin x - \cos x)}{2} + C\)

Applied rules:

• Integration by parts: \(\int u dv = uv - \int v du\)

• Cyclic pattern: When the second application returns to the original integral

• Algebraic manipulation: Solve for the integral when it appears on both sides

Comprehensive Summary: Integration by Parts
\(\int u dv = uv - \int v du\)
Integration by Parts Formula
Key definitions:

Integration by parts: A technique derived from the product rule for differentiation, allowing us to integrate products of functions by distributing the derivative

LIATE rule: A mnemonic for choosing \(u\): L (Logarithmic), I (Inverse trigonometric), A (Algebraic), T (Trigonometric), E (Exponential) in order of priority

Cyclic integration: When repeated applications of integration by parts lead back to the original integral, allowing algebraic solution

Complete methodology:
  1. Identify the product: Recognize that the integrand is a product of two functions
  2. Choose \(u\) and \(dv\): Use LIATE rule to decide which function to differentiate and which to integrate
  3. Compute \(du\) and \(v\): Differentiate \(u\) and integrate \(dv\)
  4. Apply the formula: Use \(\int u dv = uv - \int v du\)
  5. Evaluate: Check if the new integral is simpler; if not, reconsider your choice
  6. Repeat if necessary: For higher powers, apply the formula multiple times
  7. Verify: Differentiate the result to ensure it matches the original integrand
Tip 1: Always choose \(u\) as the function that becomes simpler when differentiated.
Tip 2: If the new integral is more complex, switch your choice of \(u\) and \(dv\).
Tip 3: For \(\int x^n e^x dx\), apply integration by parts \(n\) times to reduce to elementary integral.
Tip 4: For cyclic integrals like \(\int e^x \sin x dx\), solve algebraically when the integral reappears.
Common applications: Integration of products involving polynomials, exponentials, logarithms, and trigonometric functions; solving differential equations; Fourier transforms.
Visualization: Integration by parts redistributes the derivative across a product, often simplifying the integrand.
Essential formulas to know by heart:

• Integration by parts: \(\int u dv = uv - \int v du\)

• LIATE order: Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential

• Common integrals: \(\int \ln x dx = x\ln x - x\), \(\int \arctan x dx = x\arctan x - \frac{1}{2}\ln(1+x^2)\)

• Polynomial-exponential: \(\int x^n e^x dx\) requires \(n\) applications of integration by parts

• Cyclic integrals: \(\int e^x \sin x dx = \frac{e^x(\sin x - \cos x)}{2}\), \(\int e^x \cos x dx = \frac{e^x(\cos x + \sin x)}{2}\)

Advanced Integration by Parts Techniques
Exercise 7: Complex Integrals
Evaluate using advanced techniques:
\(\int x^2 \sin x dx\)
\(\int x \ln x dx\)
\(\int \arctan x dx\)

Analysis: Advanced integration by parts applications.

  • \(\int x^2 \sin x dx = -x^2\cos x + 2x\sin x + 2\cos x + C\) (apply IBP twice)
  • \(\int x \ln x dx = \frac{x^2}{2}\ln x - \frac{x^2}{4} + C\) (choose \(u = \ln x\), \(dv = x dx\))
  • \(\int \arctan x dx = x\arctan x - \frac{1}{2}\ln(1+x^2) + C\) (choose \(u = \arctan x\), \(dv = 1 dx\))

Questions & Answers

Question: How do I know when to use integration by parts versus other integration techniques?

Answer: Use integration by parts when you have:

Products of different function types:

  • Polynomial × exponential: \(\int x^n e^x dx\), \(\int x^n a^x dx\)
  • Polynomial × trigonometric: \(\int x^n \sin x dx\), \(\int x^n \cos x dx\)
  • Logarithmic functions: \(\int \ln x dx\), \(\int x \ln x dx\)
  • Inverse trigonometric: \(\int \arcsin x dx\), \(\int \arctan x dx\)

Don't use IBP when:

Look for products of fundamentally different function types!

Question: Why does the LIATE rule work? What's the logic behind choosing \(u\) in that order?

Answer: The LIATE rule works because it prioritizes functions that become simpler when differentiated:

L - Logarithmic: \(\frac{d}{dx}[\ln x] = \frac{1}{x}\) (becomes algebraic)

I - Inverse trig: Derivatives are algebraic expressions (e.g., \(\frac{d}{dx}[\arcsin x] = \frac{1}{\sqrt{1-x^2}}\))

A - Algebraic: Powers of \(x\) become simpler when differentiated (\(\frac{d}{dx}[x^n] = nx^{n-1}\))

T - Trigonometric: Derivatives cycle between \(\sin x\) and \(\cos x\)

E - Exponential: Derivative is the same function (\(\frac{d}{dx}[e^x] = e^x\))

We choose \(u\) to be the function that becomes simpler when differentiated, and \(dv\) to be the function that's easy to integrate.

Question: What happens if I choose the wrong \(u\) and \(dv\)? How can I tell?

Answer: If you choose the wrong \(u\) and \(dv\), you'll notice:

Signs of wrong choice:

  • The new integral \(\int v du\) is more complicated than the original \(\int u dv\)
  • After integration by parts, you get a harder integral instead of a simpler one
  • The process doesn't seem to be simplifying the problem

What to do: Switch your choice! Try \(u = dv_{\text{old}}\) and \(dv = u_{\text{old}}\).

Example: For \(\int x e^x dx\), if you choose \(u = e^x\) and \(dv = x dx\), you get \(du = e^x dx\) and \(v = \frac{x^2}{2}\).

This gives: \(\int x e^x dx = e^x \cdot \frac{x^2}{2} - \int \frac{x^2}{2} \cdot e^x dx = \frac{x^2 e^x}{2} - \frac{1}{2}\int x^2 e^x dx\).

The new integral is actually harder! Switching to \(u = x\) and \(dv = e^x dx\) gives the simpler path.

Question: How is integration by parts used in business applications?

Answer: Integration by parts appears in several business applications:

Continuous models: Integrating functions like \(t e^{-rt}\) for discounted cash flow calculations.

Probability: Computing expected values for continuous distributions involving products of functions.

Engineering economics: Present value calculations with polynomial growth rates: \(\int t^n e^{-rt} dt\).

Operations research: Solving optimization problems with complex constraints.

Finance: Deriving option pricing formulas that involve integration of products of functions.

The technique is essential for any business model involving products of exponential decay with polynomial growth.

Question: How does integration by parts apply to physics problems?

Answer: Integration by parts is fundamental in physics:

Quantum mechanics: Computing matrix elements and normalization integrals.

Electromagnetism: Solving Maxwell's equations in complex geometries.

Heat conduction: Solving partial differential equations with boundary conditions.

Wave equations: Finding solutions involving products of trigonometric and exponential functions.

Probability: Quantum mechanical expectation values: \(\langle x \rangle = \int x |\psi(x)|^2 dx\).

The technique is essential for any physics problem involving products of functions that cannot be integrated directly.