1. Home
  2. Explore
  3. Mathematics
  4. Integration by Parts Explained

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Integration by Parts Explained

🧮 Integration by Parts Explained

Integration by Parts is a powerful technique used to integrate products of functions. It's derived from the product rule for differentiation and allows us to transform a complex integral into a simpler one. The fundamental formula is:

$\int u \ dv = uv - \int v \ du$

To effectively use this formula, the key is to strategically choose which part of the integrand will be u and which will be dv. The goal is to make the new integral, $\int v \ du$, easier to solve than the original integral.


💡 Strategy for Choosing u and dv

The choice of u and dv is crucial. A common mnemonic to help with this selection is LIATE:

  • Logarithmic functions (e.g., ln(x))

  • Inverse trigonometric functions (e.g., arctan(x))

  • Algebraic functions (e.g., x, x²)

  • Trigonometric functions (e.g., sin(x), cos(x))

  • Exponential functions (e.g., e^x)

Generally, you want to choose u as the function that comes first in the LIATE order. This is because:

  • should simplify when differentiated (e.g., x becomes 1).

  • should be easily integrable (e.g., e^x remains e^x, sin(x) becomes -cos(x)).


📝 Examples of Integration by Parts

1. Integrating $x \cdot e^x$

Let's find the indefinite integral of $x \cdot e^x \ dx$.

  • Choose and :

    Following LIATE, Algebraic (x) comes before Exponential (e^x).

  • Set $u = x$

  • Set $dv = e^x \ dx$

Find and :

  • Differentiate u: $du = 1 \ dx$

  • Integrate dv: $v = \int e^x \ dx = e^x$

Apply the formula: $\int u \ dv = uv - \int v \ du$

  • $\int x \cdot e^x \ dx = x \cdot e^x - \int e^x \cdot 1 \ dx$

  • $\int x \cdot e^x \ dx = x \cdot e^x - e^x + C$

The final answer is $\mathbf{x \cdot e^x - e^x + C}$.


2. Integrating $x \cdot \sin(x)$

Let's find the indefinite integral of $x \cdot \sin(x) \ dx$.

  • Choose and :

    Set $u = x$ (Algebraic)

  • Set $dv = \sin(x) \ dx$ (Trigonometric)

Find and :

  • $du = 1 \ dx$

  • $v = \int \sin(x) \ dx = -\cos(x)$

Apply the formula:

  • $\int x \cdot \sin(x) \ dx = x \cdot (-\cos(x)) - \int (-\cos(x)) \cdot 1 \ dx$

  • $\int x \cdot \sin(x) \ dx = -x \cos(x) + \int \cos(x) \ dx$

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

The final answer is $\mathbf{-x \cos(x) + \sin(x) + C}$.


3. Integrating $x^2 \ln(x)$

Let's find the indefinite integral of $x^2 \ln(x) \ dx$.

  • Strategic Choice: It's often easier to differentiate ln(x) than to integrate it.

    Set $u = \ln(x)$ (Logarithmic)

  • Set $dv = x^2 \ dx$ (Algebraic)

Find and :

  • $du = \frac{1}{x} \ dx$

  • $v = \int x^2 \ dx = \frac{x^3}{3}$

Apply the formula:

  • $\int x^2 \ln(x) \ dx = \ln(x) \cdot \frac{x^3}{3} - \int \frac{x^3}{3} \cdot \frac{1}{x} \ dx$

  • $\int x^2 \ln(x) \ dx = \frac{1}{3} x^3 \ln(x) - \int \frac{x^2}{3} \ dx$

  • $\int x^2 \ln(x) \ dx = \frac{1}{3} x^3 \ln(x) - \frac{1}{3} \int x^2 \ dx$

  • $\int x^2 \ln(x) \ dx = \frac{1}{3} x^3 \ln(x) - \frac{1}{3} \left( \frac{x^3}{3} \right) + C$

  • $\int x^2 \ln(x) \ dx = \frac{1}{3} x^3 \ln(x) - \frac{1}{9} x^3 + C$

The final answer is $\mathbf{\frac{1}{3} x^3 \ln(x) - \frac{1}{9} x^3 + C}$.


4. Integrating $\ln(x)$

Let's find the indefinite integral of $\ln(x) \ dx$. This is a common application where dv is simply dx.

  • Choose and :

    Set $u = \ln(x)$

  • Set $dv = 1 \ dx$ (or just dx)

Find and :

  • $du = \frac{1}{x} \ dx$

  • $v = \int 1 \ dx = x$

Apply the formula:

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

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

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

The final answer is $\mathbf{x \ln(x) - x + C}$.


5. Integrating $x^2 \sin(x)$ (Repeated Integration by Parts)

Let's find the indefinite integral of $x^2 \sin(x) \ dx$. This requires applying integration by parts twice.

First Application:

  • Choose and :

    Set $u = x^2$

  • Set $dv = \sin(x) \ dx$

Find and :

  • $du = 2x \ dx$

  • $v = -\cos(x)$

Apply the formula:

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

  • $\int x^2 \sin(x) \ dx = -x^2 \cos(x) + 2 \int x \cos(x) \ dx$

Second Application (for $\int x \cos(x) \ dx$):

Now, we need to apply integration by parts to $\int x \cos(x) \ dx$.

  • Choose and :

    Set $u' = x$

  • Set $dv' = \cos(x) \ dx$

Find and :

  • $du' = 1 \ dx$

  • $v' = \sin(x)$

Apply the formula:

  • $\int x \cos(x) \ dx = x \sin(x) - \int \sin(x) \cdot 1 \ dx$

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

  • $\int x \cos(x) \ dx = x \sin(x) + \cos(x) + C'$

Combine Results:

Substitute the result of the second integration back into the first:

  • $\int x^2 \sin(x) \ dx = -x^2 \cos(x) + 2 [x \sin(x) + \cos(x)] + C$

  • $\int x^2 \sin(x) \ dx = -x^2 \cos(x) + 2x \sin(x) + 2 \cos(x) + C$

The final answer is $\mathbf{-x^2 \cos(x) + 2x \sin(x) + 2 \cos(x) + C}$.


6. Integrating $x^2 e^x$ (Repeated Integration by Parts)

Let's find the indefinite integral of $x^2 e^x \ dx$. This also requires applying integration by parts twice.

First Application:

  • Choose and :

    Set $u = x^2$

  • Set $dv = e^x \ dx$

Find and :

  • $du = 2x \ dx$

  • $v = e^x$

Apply the formula:

  • $\int x^2 e^x \ dx = x^2 e^x - \int e^x (2x \ dx)$

  • $\int x^2 e^x \ dx = x^2 e^x - 2 \int x e^x \ dx$

Second Application (for $\int x e^x \ dx$):

We already solved this in Example 1.

  • $\int x e^x \ dx = x e^x - e^x + C'$

Combine Results:

Substitute the result of the second integration back into the first:

  • $\int x^2 e^x \ dx = x^2 e^x - 2 [x e^x - e^x] + C$

  • $\int x^2 e^x \ dx = x^2 e^x - 2x e^x + 2e^x + C$

  • We can factor out $e^x$: $\int x^2 e^x \ dx = e^x (x^2 - 2x + 2) + C$

The final answer is $\mathbf{e^x (x^2 - 2x + 2) + C}$.


7. Integrating $(\ln x)^2$

Let's find the indefinite integral of $(\ln x)^2 \ dx$.

  • Choose and :

    Set $u = (\ln x)^2$

  • Set $dv = dx$

Find and :

  • $du = 2 \ln x \cdot \frac{1}{x} \ dx$ (using chain rule)

  • $v = x$

Apply the formula:

  • $\int (\ln x)^2 \ dx = (\ln x)^2 \cdot x - \int x \cdot (2 \ln x \cdot \frac{1}{x}) \ dx$

  • $\int (\ln x)^2 \ dx = x (\ln x)^2 - \int 2 \ln x \ dx$

  • $\int (\ln x)^2 \ dx = x (\ln x)^2 - 2 \int \ln x \ dx$

We know from Example 4 that $\int \ln x \ dx = x \ln x - x$.

  • $\int (\ln x)^2 \ dx = x (\ln x)^2 - 2 (x \ln x - x) + C$

  • $\int (\ln x)^2 \ dx = x (\ln x)^2 - 2x \ln x + 2x + C$

The final answer is $\mathbf{x (\ln x)^2 - 2x \ln x + 2x + C}$.


8. Integrating $\ln(x^7)$

Let's find the indefinite integral of $\ln(x^7) \ dx$.

  • Logarithm Property: First, use the logarithm property $\ln(a^b) = b \ln(a)$ to simplify the integrand.

    $\ln(x^7) = 7 \ln(x)$

Now, the integral becomes $\int 7 \ln(x) \ dx = 7 \int \ln(x) \ dx$.

We know from Example 4 that $\int \ln(x) \ dx = x \ln(x) - x + C'$.

  • $7 \int \ln(x) \ dx = 7 (x \ln(x) - x) + C$

  • $7 \int \ln(x) \ dx = 7x \ln(x) - 7x + C$

The final answer is $\mathbf{7x \ln(x) - 7x + C}$.
⚠️ Important Note: This property applies to $\ln(x^7)$, not $(\ln x)^7$. If it were $(\ln x)^7$, the 7 could not be moved to the front.


9. Integrating $e^x \sin(x)$ (Cyclic Integration by Parts)

Let's find the indefinite integral of $e^x \sin(x) \ dx$. This is a cyclic integration by parts problem where the original integral reappears.

First Application:

  • Choose and :

    Set $u = \sin(x)$

  • Set $dv = e^x \ dx$

Find and :

  • $du = \cos(x) \ dx$

  • $v = e^x$

Apply the formula:

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

Second Application (for $\int e^x \cos(x) \ dx$):

Now, apply integration by parts to $\int e^x \cos(x) \ dx$.

  • Choose and :

    Set $u' = \cos(x)$

  • Set $dv' = e^x \ dx$

Find and :

  • $du' = -\sin(x) \ dx$

  • $v' = e^x$

Apply the formula:

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

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

Combine Results and Solve for the Integral:

Substitute the result of the second integration back into the first equation:

  • $I = e^x \sin(x) - [e^x \cos(x) + \int e^x \sin(x) \ dx]$

  • $I = e^x \sin(x) - e^x \cos(x) - \int e^x \sin(x) \ dx$
    Notice that the original integral $I$ appears on the right side.

  • $I = e^x \sin(x) - e^x \cos(x) - I$

  • Add $I$ to both sides:

    $2I = e^x \sin(x) - e^x \cos(x)$

Divide by 2:

  • $I = \frac{1}{2} (e^x \sin(x) - e^x \cos(x)) + C$

Factor out $e^x$:

  • $I = \frac{1}{2} e^x (\sin(x) - \cos(x)) + C$

The final answer is $\mathbf{\frac{1}{2} e^x (\sin(x) - \cos(x)) + C}$.


10. Integrating $\frac{(\ln x)^2}{x}$

Let's find the indefinite integral of $\frac{(\ln x)^2}{x} \ dx$. This problem is best solved using u-substitution, but can also be approached with integration by parts.

Using U-Substitution (Simpler Method):

  • Let $u = \ln x$

  • Then $du = \frac{1}{x} \ dx$

  • The integral becomes $\int u^2 \ du = \frac{u^3}{3} + C$

  • Substitute back $u = \ln x$: $\frac{(\ln x)^3}{3} + C$

Using Integration by Parts (More Complex, but shown for demonstration):

  • Rewrite as a product: $\int (\ln x)^2 \cdot \frac{1}{x} \ dx$

  • Choose and :

    Set $u = (\ln x)^2$

  • Set $dv = \frac{1}{x} \ dx$

Find and :

  • $du = 2 \ln x \cdot \frac{1}{x} \ dx$

  • $v = \ln x$

Apply the formula:

  • $\int \frac{(\ln x)^2}{x} \ dx = (\ln x)^2 \cdot (\ln x) - \int (\ln x) \cdot (2 \ln x \cdot \frac{1}{x}) \ dx$

  • $\int \frac{(\ln x)^2}{x} \ dx = (\ln x)^3 - 2 \int \frac{(\ln x)^2}{x} \ dx$
    Notice the original integral reappears. Let $I = \int \frac{(\ln x)^2}{x} \ dx$.

$I = (\ln x)^3 - 2I$

Add $2I$ to both sides:

  • $3I = (\ln x)^3$

Divide by 3:

  • $I = \frac{(\ln x)^3}{3} + C$

The final answer is $\mathbf{\frac{(\ln x)^3}{3} + C}$.


11. Integrating $e^{3x} \cos(4x)$ (Cyclic Integration by Parts)

Let's find the indefinite integral of $e^{3x} \cos(4x) \ dx$. This is another cyclic integration by parts problem.

First Application:

  • Choose and :

    Set $u = \cos(4x)$

  • Set $dv = e^{3x} \ dx$

Find and :

  • $du = -4 \sin(4x) \ dx$

  • $v = \frac{1}{3} e^{3x}$

Apply the formula:

  • $I = \int e^{3x} \cos(4x) \ dx = \frac{1}{3} e^{3x} \cos(4x) - \int \frac{1}{3} e^{3x} (-4 \sin(4x)) \ dx$

  • $I = \frac{1}{3} e^{3x} \cos(4x) + \frac{4}{3} \int e^{3x} \sin(4x) \ dx$

Second Application (for $\int e^{3x} \sin(4x) \ dx$):

  • Choose and :

    Set $u' = \sin(4x)$

  • Set $dv' = e^{3x} \ dx$

Find and :

  • $du' = 4 \cos(4x) \ dx$

  • $v' = \frac{1}{3} e^{3x}$

Apply the formula:

  • $\int e^{3x} \sin(4x) \ dx = \frac{1}{3} e^{3x} \sin(4x) - \int \frac{1}{3} e^{3x} (4 \cos(4x)) \ dx$

  • $\int e^{3x} \sin(4x) \ dx = \frac{1}{3} e^{3x} \sin(4x) - \frac{4}{3} \int e^{3x} \cos(4x) \ dx$

Combine Results and Solve for the Integral:

Substitute the result of the second integration back into the first equation:

  • $I = \frac{1}{3} e^{3x} \cos(4x) + \frac{4}{3} \left[ \frac{1}{3} e^{3x} \sin(4x) - \frac{4}{3} \int e^{3x} \cos(4x) \ dx \right]$

  • $I = \frac{1}{3} e^{3x} \cos(4x) + \frac{4}{9} e^{3x} \sin(4x) - \frac{16}{9} \int e^{3x} \cos(4x) \ dx$

  • $I = \frac{1}{3} e^{3x} \cos(4x) + \frac{4}{9} e^{3x} \sin(4x) - \frac{16}{9} I$

  • Add $\frac{16}{9} I$ to both sides:

    $I + \frac{16}{9} I = \frac{1}{3} e^{3x} \cos(4x) + \frac{4}{9} e^{3x} \sin(4x)$

  • $\frac{9}{9} I + \frac{16}{9} I = \frac{1}{3} e^{3x} \cos(4x) + \frac{4}{9} e^{3x} \sin(4x)$

  • $\frac{25}{9} I = \frac{1}{3} e^{3x} \cos(4x) + \frac{4}{9} e^{3x} \sin(4x)$

Multiply both sides by $\frac{9}{25}$:

  • $I = \frac{9}{25} \left( \frac{1}{3} e^{3x} \cos(4x) + \frac{4}{9} e^{3x} \sin(4x) \right) + C$

  • $I = \frac{3}{25} e^{3x} \cos(4x) + \frac{4}{25} e^{3x} \sin(4x) + C$

Factor out $\frac{1}{25} e^{3x}$:

  • $I = \frac{1}{25} e^{3x} (3 \cos(4x) + 4 \sin(4x)) + C$

The final answer is $\mathbf{\frac{1}{25} e^{3x} (3 \cos(4x) + 4 \sin(4x)) + C}$.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent