Solved Exercises on Integration by Parts in Calculus 2

Master integration by parts: basic, repeated, exponential, logarithmic, and cyclic integration through these 5 detailed exercises.

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

Integration by Parts Formula: \(\displaystyle\int u dv = uv - \int v du\), derived from the product rule of differentiation.

Integration by parts method:
  1. Choose \(u\) and \(dv\) using the LIATE rule (Logarithmic, Inverse, Algebraic, Trigonometric, Exponential)
  2. Compute \(du = \frac{du}{dx}dx\) and find \(v = \int dv\)
  3. Apply the formula: \(\int u dv = uv - \int v du\)
  4. Integrate the remaining term if possible
Original
\(\int x e^x dx\)
Parts Choice
\(u = x, dv = e^x dx\)
Result
\(xe^x - e^x + C\)
Step 1: Choose u and dv

Following LIATE: \(u = x\) (algebraic), \(dv = e^x dx\) (exponential)

Step 2: Compute du and v

\(du = \frac{d}{dx}[x]dx = 1 \cdot dx = dx\)

\(v = \int dv = \int e^x dx = e^x\)

Step 3: Apply integration by parts formula

\(\displaystyle\int x e^x dx = uv - \int v du = x \cdot e^x - \int e^x \cdot dx\)

Step 4: Complete the integration

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

Step 5: Verify by differentiation

\(\displaystyle\frac{d}{dx}[xe^x - e^x + C] = e^x + xe^x - e^x = xe^x\) ✓

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

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

Applied rules:

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

• LIATE Rule: Helps choose \(u\) and \(dv\) optimally

• Basic Integration: \(\int e^x dx = e^x + C\)

2 Repeated Integration by Parts
Exercise 2
Evaluate: \(\displaystyle\int x^2 e^x dx\) using repeated integration by parts
Definition:

Repeated Integration by Parts: When the result of the first application still requires integration by parts, continue until the integral can be evaluated directly.

Original
\(\int x^2 e^x dx\)
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

Choose: \(u = x^2\) (algebraic), \(dv = e^x dx\) (exponential)

Then: \(du = 2x dx\), \(v = e^x\)

\(\displaystyle\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: Apply integration by parts to \(\int x e^x dx\)

From Exercise 1: \(\displaystyle\int x e^x dx = xe^x - e^x\)

Step 3: Substitute and simplify

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

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

Step 4: Verify by differentiation

\(\displaystyle\frac{d}{dx}[e^x(x^2 - 2x + 2)] = e^x(x^2 - 2x + 2) + e^x(2x - 2) = e^x(x^2) = x^2 e^x\) ✓

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

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

Applied rules:

• Repeated Integration by Parts: Continue until the integral is resolved

• LIATE Rule: Helps choose optimal \(u\) and \(dv\) for each step

• Algebraic Simplification: Factor out common terms

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

Logarithmic Integration: For \(\int \ln(x) dx\), treat as \(\int \ln(x) \cdot 1 dx\) to apply integration by parts.

Original
\(\int \ln(x) dx\)
Parts Choice
\(u = \ln(x), dv = dx\)
Result
\(x\ln(x) - x + C\)
Step 1: Rewrite the integral

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

Step 2: Choose u and dv

Following LIATE: \(u = \ln(x)\) (logarithmic), \(dv = dx\) (algebraic)

Step 3: Compute du and v

\(du = \frac{d}{dx}[\ln(x)]dx = \frac{1}{x}dx\)

\(v = \int dv = \int dx = x\)

Step 4: Apply integration by parts formula

\(\displaystyle\int \ln(x) dx = uv - \int v du = x\ln(x) - \int x \cdot \frac{1}{x} dx\)

Step 5: Complete the integration

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

Step 6: Verify by differentiation

\(\displaystyle\frac{d}{dx}[x\ln(x) - x + C] = \ln(x) + x \cdot \frac{1}{x} - 1 = \ln(x) + 1 - 1 = \ln(x)\) ✓

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

\(\displaystyle\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 chosen as \(u\)

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

Integration by Parts Properties
\(\displaystyle\int u dv = uv - \int v du\)
Integration by Parts Formula
Basic Formula
\(\int u dv = uv - \int v du\)
Derived from product rule
LIATE Rule
L > I > A > T > E
Log, Inv Trig, Alg, Trig, Exp
Definite Version
\(\int_a^b u dv = [uv]_a^b - \int_a^b v du\)
For definite integrals
Cyclic Integration
\(\int e^x \cos(x) dx\)
Applies integration by parts twice
Key definitions:

Integration by Parts: A technique for integrating products of functions, based on the product rule of differentiation: \((uv)' = u'v + uv'\), which rearranges to \(uv' = (uv)' - u'v\).

LIATE Rule: A mnemonic for choosing \(u\) in integration by parts: Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential. Choose the function that appears first as \(u\).

Cyclic Integration: When applying integration by parts twice returns to the original integral (possibly multiplied by a constant), allowing for algebraic solution.

Integration by parts methodology:
  1. Identify the integrand: Recognize if it's a product of two functions
  2. Choose u and dv: Use LIATE rule to select which function becomes \(u\) and which becomes \(dv\)
  3. Compute du and v: Find the derivative of \(u\) and antiderivative of \(dv\)
  4. Apply the formula: Use \(\int u dv = uv - \int v du\)
  5. Simplify: Integrate the remaining term if possible
  6. Verify: Differentiate the result to confirm accuracy
Tip 1: Use LIATE to choose \(u\): Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential.
Tip 2: For \(\int \ln(x) dx\), write as \(\int \ln(x) \cdot 1 dx\) and let \(dv = dx\).
Tip 3: For \(\int x^n e^x dx\), repeated integration by parts will eventually eliminate the polynomial.
Solution: Exercises 4 to 5
4 Cyclic Integration by Parts
Exercise 4
Evaluate: \(\displaystyle\int e^x \cos(x) dx\) using cyclic integration by parts
Definition:

Cyclic Integration: When applying integration by parts twice leads back to the original integral, allowing algebraic solution.

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

Choose: \(u = e^x\) (exponential), \(dv = \cos(x) dx\) (trigonometric)

Then: \(du = e^x dx\), \(v = \sin(x)\)

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

Step 2: Apply integration by parts to \(\int e^x \sin(x) dx\)

Choose: \(u = e^x\), \(dv = \sin(x) dx\)

Then: \(du = e^x dx\), \(v = -\cos(x)\)

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

Step 3: Substitute back into the original equation

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

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

Step 4: Solve algebraically for the integral

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

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

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

Step 5: Verify by differentiation

\(\displaystyle\frac{d}{dx}\left[\frac{e^x(\sin(x) + \cos(x))}{2}\right] = \frac{e^x(\sin(x) + \cos(x)) + e^x(\cos(x) - \sin(x))}{2} = \frac{2e^x \cos(x)}{2} = e^x \cos(x)\) ✓

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

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

Applied rules:

• Cyclic Integration: Apply integration by parts twice to return to original integral

• Algebraic Solution: Solve for the integral using algebra

• Trigonometric Derivatives: \(\frac{d}{dx}[\sin(x)] = \cos(x)\), \(\frac{d}{dx}[\cos(x)] = -\sin(x)\)

5 Trigonometric Integration by Parts
Exercise 5
Evaluate: \(\displaystyle\int x \sin(x) dx\) using integration by parts
Definition:

Trigonometric Integration by Parts: For products of algebraic and trigonometric functions, use LIATE rule to choose \(u\) and \(dv\).

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

Following LIATE: \(u = x\) (algebraic), \(dv = \sin(x) dx\) (trigonometric)

Step 2: Compute du and v

\(du = \frac{d}{dx}[x]dx = dx\)

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

Step 3: Apply integration by parts formula

\(\displaystyle\int x \sin(x) dx = uv - \int v du = x(-\cos(x)) - \int (-\cos(x)) dx\)

Step 4: Complete the integration

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

Step 5: Verify by differentiation

\(\displaystyle\frac{d}{dx}[-x\cos(x) + \sin(x) + C] = -\cos(x) + x\sin(x) + \cos(x) = x\sin(x)\) ✓

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

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

Applied rules:

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

• LIATE Rule: Algebraic functions are chosen as \(u\) over trigonometric

• Trigonometric Integration: \(\int \sin(x) dx = -\cos(x) + C\), \(\int \cos(x) dx = \sin(x) + C\)

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

Integration by Parts: A technique derived from the product rule of differentiation: \((uv)' = u'v + uv'\), which rearranges to \(uv' = (uv)' - u'v\), and integrating both sides gives \(\int uv' dx = uv - \int u'v dx\).

LIATE Rule: A mnemonic for choosing \(u\) in integration by parts: L = Logarithmic, I = Inverse trigonometric, A = Algebraic, T = Trigonometric, E = Exponential. Choose the function that appears first as \(u\).

Cyclic Integration: A special case where applying integration by parts twice returns to the original integral, allowing for algebraic solution.

Complete integration by parts methodology:
  1. Pattern Recognition: Identify if the integrand is a product of two functions
  2. Select u and dv: Use LIATE rule to choose which function becomes \(u\) and which becomes \(dv\)
  3. Compute du and v: Find the derivative of \(u\) and antiderivative of \(dv\)
  4. Apply the Formula: Use \(\int u dv = uv - \int v du\)
  5. Evaluate Remaining Integral: Integrate \(\int v du\) if possible
  6. Simplify: Combine and factor terms as needed
  7. Verify: Differentiate the result to confirm accuracy
Tip 1: Use LIATE to choose \(u\): Logarithmic functions are most likely to be \(u\), exponentials least likely.
Tip 2: For \(\int x^n \ln(x) dx\), let \(u = \ln(x)\) and \(dv = x^n dx\).
Tip 3: For \(\int x^n e^x dx\), repeated integration by parts will eventually eliminate the polynomial.
Tip 4: For \(\int e^x \sin(x) dx\) or \(\int e^x \cos(x) dx\), expect to apply integration by parts twice.
Tip 5: Always verify your result by differentiating it to ensure it matches the original integrand.
Common errors: Choosing wrong functions for \(u\) and \(dv\), making sign errors, forgetting to apply the formula correctly, not recognizing when to stop applying integration by parts.
Exam preparation: Practice pattern recognition, memorize the LIATE rule, master basic integration formulas, work with various function combinations.
Essential integration by parts formulas and patterns:

• Basic Formula: \(\int u dv = uv - \int v du\)

• Definite Version: \(\int_a^b u dv = [uv]_a^b - \int_a^b v du\)

• Repeated Applications: For \(\int x^n e^x dx\), \(\int x^n \sin(x) dx\), \(\int x^n \cos(x) dx\)

• Cyclic Cases: For \(\int e^x \sin(x) dx\), \(\int e^x \cos(x) dx\), \(\int \sin(x)\cos(x) dx\)

• Logarithmic Cases: For \(\int \ln(x) dx\), \(\int x^n \ln(x) dx\)

• Inverse Trigonometric: For \(\int \arcsin(x) dx\), \(\int \arctan(x) dx\)

• Algebraic-Transcendental: For products of polynomials with exponential/trigonometric/logarithmic functions

Common function combinations and their treatment:
Polynomial × Exponential: Let \(u =\) polynomial, \(dv =\) exponential. Repeat until polynomial becomes constant.
Polynomial × Trigonometric: Let \(u =\) polynomial, \(dv =\) trigonometric. May require repeated applications.
Logarithmic × Algebraic: Let \(u =\) logarithmic, \(dv =\) algebraic. Usually only needs one application.
Exponential × Trigonometric: Expect cyclic behavior. Apply integration by parts twice and solve algebraically.

Questions & Answers

Question: How do I know which function to choose as \(u\) and which as \(dv\)? The LIATE rule seems complicated.

Answer: The LIATE rule prioritizes functions based on how difficult they are to integrate:

  • L = Logarithmic functions (\(\ln(x)\), \(\log(x)\)) - hardest to integrate, so choose as \(u\)
  • I = Inverse trigonometric functions (\(\arcsin(x)\), \(\arctan(x)\))
  • A = Algebraic functions (polynomials, \(\sqrt{x}\))
  • T = Trigonometric functions (\(\sin(x)\), \(\cos(x)\))
  • E = Exponential functions (\(e^x\), \(a^x\)) - easiest to integrate, so choose as \(dv\)

The idea is to choose as \(u\) the function that becomes simpler when differentiated, and as \(dv\) the function that is easy to integrate.

Question: What happens if I choose the wrong functions for \(u\) and \(dv\)? Will I get a wrong answer?

Answer: You won't get a wrong answer mathematically, but you might get an integral that's harder than the original. For example:

If you try \(\int x e^x dx\) with \(u = e^x\) and \(dv = x dx\):

  • You get \(du = e^x dx\) and \(v = \frac{x^2}{2}\)
  • Formula gives: \(\int x e^x dx = e^x \cdot \frac{x^2}{2} - \int \frac{x^2}{2} \cdot e^x dx\)
  • Now you have \(\int \frac{x^2}{2} e^x dx\), which is harder than the original!

The formula is always correct, but choosing wisely makes the resulting integral easier to solve.

Question: How do I recognize when I need to apply integration by parts multiple times?

Answer: You need repeated applications when:

  • The result of the first application still contains a product that requires integration by parts
  • You have \(\int x^n f(x) dx\) where \(f(x)\) is exponential or trigonometric, and \(n > 0\)
  • Each application reduces the power of the polynomial by 1 until it becomes constant

For example, \(\int x^3 e^x dx\) requires 3 applications of integration by parts, reducing the polynomial from \(x^3\) to \(x^2\) to \(x\) to constant.

You'll know you're done when the remaining integral can be evaluated directly using basic integration formulas.