Skip to content

Integration by Parts Practice Problems: 15 Solved Step by Step

Type
Practice problems
Problems
15
Levels
Easy · Medium · Hard

15 integration by parts practice problems with step-by-step solutions, from ∫xe3x dx\int xe^{3x}\,dx to logarithms, inverse trigonometric functions, cyclic integrals and definite integrals. Each problem has a hint, then the full solution. New to the method? Start with integration by parts explained: formula, proof and examples.

Contents8 sections

The formula you need

∫u dv=uv−∫v du,∫abu dv=[uv]ab−∫abv du.\int u\,dv = uv - \int v\,du,\qquad \int_a^b u\,dv = \Big[uv\Big]_a^b - \int_a^b v\,du.

Choose uu with the LIATE order (Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential); the rest of the integrand is dvdv. When the rule must be applied several times, the tabular (DI) method keeps the signs straight.

Basic Integration by Parts: Polynomial–Exponential Products

These exercises introduce the formula ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du in its simplest setting: a linear or quadratic polynomial multiplied by an exponential function. Focus on a clean LIATE choice and careful bookkeeping of signs.

Exercise 1: Linear Polynomial Times Exponential

Easy

Evaluate the following indefinite integral.

  1. Find ∫xe3x dx\displaystyle \int x e^{3x}\,dx.
  2. Verify your answer by differentiating the result.
Hint
Let u=xu = x (algebraic, simplifies on differentiation) and dv=e3x dxdv = e^{3x}\,dx. Compute dudu and vv, then apply ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du. Don’t forget the constant of integration.
View Solution
Solution to question 1:

Set u=xu = x and dv=e3x dxdv = e^{3x}\,dx. Then du=dxdu = dx and v=e3x3v = \dfrac{e^{3x}}{3}.

∫xe3x dx=xe3x3−∫e3x3 dx=xe3x3−e3x9+C. \int x e^{3x}\,dx = \frac{x e^{3x}}{3} - \int \frac{e^{3x}}{3}\,dx = \frac{x e^{3x}}{3} - \frac{e^{3x}}{9} + C. Solution to question 2:

Differentiate F(x)=xe3x3−e3x9F(x) = \dfrac{x e^{3x}}{3} - \dfrac{e^{3x}}{9}:

F′(x)=e3x+3xe3x3−3e3x9=e3x3+xe3x−e3x3=xe3x.✓ F'(x) = \frac{e^{3x} + 3x e^{3x}}{3} - \frac{3e^{3x}}{9} = \frac{e^{3x}}{3} + x e^{3x} - \frac{e^{3x}}{3} = x e^{3x}. \checkmark

Exercise 2: Linear Polynomial Times Cosine

Easy

Evaluate each integral using integration by parts.

  1. Compute ∫xcos⁡(2x) dx\displaystyle \int x \cos(2x)\,dx.
  2. Compute ∫(3x−1)sin⁡(x) dx\displaystyle \int (3x - 1)\sin(x)\,dx.
Hint
For both integrals, assign the polynomial factor to uu (it vanishes after one differentiation) and the trigonometric factor to dvdv. Integrate dvdv carefully, watching the chain-rule factor for cos⁡(2x)\cos(2x).
View Solution
Solution to question 1:

Let u=xu = x, dv=cos⁡(2x) dxdv = \cos(2x)\,dx. Then du=dxdu = dx, v=sin⁡(2x)2v = \dfrac{\sin(2x)}{2}.

∫xcos⁡(2x) dx=xsin⁡(2x)2−∫sin⁡(2x)2 dx=xsin⁡(2x)2+cos⁡(2x)4+C. \int x\cos(2x)\,dx = \frac{x\sin(2x)}{2} - \int \frac{\sin(2x)}{2}\,dx = \frac{x\sin(2x)}{2} + \frac{\cos(2x)}{4} + C. Solution to question 2:

Let u=3x−1u = 3x-1, dv=sin⁡(x) dxdv = \sin(x)\,dx. Then du=3 dxdu = 3\,dx, v=−cos⁡(x)v = -\cos(x).

∫(3x−1)sin⁡(x) dx=−(3x−1)cos⁡(x)+3∫cos⁡(x) dx=−(3x−1)cos⁡(x)+3sin⁡(x)+C. \int (3x-1)\sin(x)\,dx = -(3x-1)\cos(x) + 3\int \cos(x)\,dx = -(3x-1)\cos(x) + 3\sin(x) + C.

Exercise 3: Quadratic Polynomial Times Exponential

Medium

Some polynomial–exponential integrals require integration by parts more than once.

  1. Compute ∫x2e−x dx\displaystyle \int x^2 e^{-x}\,dx.
  2. Compute ∫(x2+2x) e2x dx\displaystyle \int (x^2 + 2x)\,e^{2x}\,dx.
Hint
Apply integration by parts with u=x2u = x^2 (or u=x2+2xu = x^2 + 2x) and dv=e±x dxdv = e^{\pm x}\,dx. After the first application the polynomial degree drops by one; apply the formula a second time to finish.
View Solution
Solution to question 1:

First pass: u=x2u = x^2, dv=e−x dx⇒du=2x dxdv = e^{-x}\,dx \Rightarrow du = 2x\,dx, v=−e−xv = -e^{-x}.

∫x2e−x dx=−x2e−x+2∫xe−x dx. \int x^2 e^{-x}\,dx = -x^2 e^{-x} + 2\int x e^{-x}\,dx.

Second pass: u=xu = x, dv=e−x dx⇒du=dxdv = e^{-x}\,dx \Rightarrow du = dx, v=−e−xv = -e^{-x}.

∫xe−x dx=−xe−x+∫e−x dx=−xe−x−e−x+C. \int x e^{-x}\,dx = -xe^{-x} + \int e^{-x}\,dx = -xe^{-x} - e^{-x} + C.

Combining:

∫x2e−x dx=−x2e−x−2xe−x−2e−x+C=−e−x(x2+2x+2)+C. \int x^2 e^{-x}\,dx = -x^2 e^{-x} - 2xe^{-x} - 2e^{-x} + C = -e^{-x}(x^2 + 2x + 2) + C. Solution to question 2:

Let u=x2+2xu = x^2 + 2x, dv=e2x dx⇒du=(2x+2) dxdv = e^{2x}\,dx \Rightarrow du = (2x+2)\,dx, v=e2x2v = \dfrac{e^{2x}}{2}.

∫(x2+2x)e2x dx=(x2+2x)e2x2−∫(2x+2)e2x2 dx. \int (x^2+2x)e^{2x}\,dx = \frac{(x^2+2x)e^{2x}}{2} - \int \frac{(2x+2)e^{2x}}{2}\,dx.

Now apply once more with u=x+1u = x+1, dv=e2x dxdv = e^{2x}\,dx:

∫(x+1)e2x dx=(x+1)e2x2−e2x4+C. \int (x+1)e^{2x}\,dx = \frac{(x+1)e^{2x}}{2} - \frac{e^{2x}}{4} + C.

Combining:

∫(x2+2x)e2x dx=(x2+2x)e2x2−(x+1)e2x2+e2x4+C=e2x ⁣(x2+x2−14)+C. \int (x^2+2x)e^{2x}\,dx = \frac{(x^2+2x)e^{2x}}{2} - \frac{(x+1)e^{2x}}{2} + \frac{e^{2x}}{4} + C = e^{2x}\!\left(\frac{x^2+x}{2} - \frac{1}{4}\right) + C.

Integration by Parts with Logarithmic Functions

Logarithmic functions occupy the top of the LIATE hierarchy, so they are almost always assigned the role of uu. A characteristic trick is writing ∫ln⁡x dx=∫1⋅ln⁡x dx\int \ln x\,dx = \int 1 \cdot \ln x\,dx to manufacture a dvdv.

Exercise 4: The Classic Logarithm Integral

Easy

Logarithms appear alone in many integrals; a silent factor of 1 supplies the dvdv.

  1. Compute ∫ln⁡x dx\displaystyle \int \ln x\,dx.
  2. Compute ∫ln⁡(5x) dx\displaystyle \int \ln(5x)\,dx.
Hint
Rewrite as ∫1⋅ln⁡(⋅) dx\int 1 \cdot \ln(\cdot)\,dx. Let u=ln⁡(⋅)u = \ln(\cdot) and dv=dxdv = dx. For part 2, use the logarithm property ln⁡(5x)=ln⁡5+ln⁡x\ln(5x) = \ln 5 + \ln x to simplify, or apply the formula directly.
View Solution
Solution to question 1:

Let u=ln⁡xu = \ln x, dv=dx⇒du=1x dxdv = dx \Rightarrow du = \tfrac{1}{x}\,dx, v=xv = x.

∫ln⁡x dx=xln⁡x−∫x⋅1x dx=xln⁡x−∫1 dx=xln⁡x−x+C. \int \ln x\,dx = x\ln x - \int x \cdot \frac{1}{x}\,dx = x\ln x - \int 1\,dx = x\ln x - x + C. Solution to question 2:

Using ln⁡(5x)=ln⁡5+ln⁡x\ln(5x) = \ln 5 + \ln x:

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

Exercise 5: Polynomial Factor Paired with a Logarithm

Medium

When a polynomial multiplies a logarithm, integrate the polynomial (assign it to dvdv) and differentiate the logarithm.

  1. Compute ∫x3ln⁡x dx\displaystyle \int x^3 \ln x\,dx.
  2. Compute ∫x ln⁡(x2+1) dx\displaystyle \int x\,\ln(x^2 + 1)\,dx.
Hint
For question 1, let u=ln⁡xu = \ln x and dv=x3 dxdv = x^3\,dx. For question 2, first try the substitution t=x2+1t = x^2 + 1 to see whether integration by parts can be avoided, or directly apply the formula with u=ln⁡(x2+1)u = \ln(x^2+1) and dv=x dxdv = x\,dx.
View Solution
Solution to question 1:

Let u=ln⁡xu = \ln x, dv=x3 dx⇒du=1x dxdv = x^3\,dx \Rightarrow du = \tfrac{1}{x}\,dx, v=x44v = \tfrac{x^4}{4}.

∫x3ln⁡x dx=x4ln⁡x4−∫x44⋅1x dx=x4ln⁡x4−14∫x3 dx=x4ln⁡x4−x416+C. \int x^3 \ln x\,dx = \frac{x^4 \ln x}{4} - \int \frac{x^4}{4} \cdot \frac{1}{x}\,dx = \frac{x^4 \ln x}{4} - \frac{1}{4}\int x^3\,dx = \frac{x^4 \ln x}{4} - \frac{x^4}{16} + C. Solution to question 2:

Let u=ln⁡(x2+1)u = \ln(x^2+1), dv=x dx⇒du=2xx2+1 dxdv = x\,dx \Rightarrow du = \tfrac{2x}{x^2+1}\,dx, v=x22v = \tfrac{x^2}{2}.

∫x ln⁡(x2+1) dx=x22ln⁡(x2+1)−∫x3x2+1 dx. \int x\,\ln(x^2+1)\,dx = \frac{x^2}{2}\ln(x^2+1) - \int \frac{x^3}{x^2+1}\,dx.

Perform polynomial division: x3x2+1=x−xx2+1\dfrac{x^3}{x^2+1} = x - \dfrac{x}{x^2+1}.

∫x3x2+1 dx=x22−12ln⁡(x2+1)+C. \int \frac{x^3}{x^2+1}\,dx = \frac{x^2}{2} - \frac{1}{2}\ln(x^2+1) + C.

Therefore:

∫x ln⁡(x2+1) dx=x22ln⁡(x2+1)−x22+ln⁡(x2+1)2+C. \int x\,\ln(x^2+1)\,dx = \frac{x^2}{2}\ln(x^2+1) - \frac{x^2}{2} + \frac{\ln(x^2+1)}{2} + C.

Integration by Parts with Inverse Trigonometric Functions

Inverse trigonometric functions (arctan⁡x\arctan x, arcsin⁡x\arcsin x, arccos⁡x\arccos x) rank above algebraic functions in the LIATE rule and are not easily integrated directly, making them natural candidates for uu. Their derivatives are rational or algebraic, which typically simplifies the residual integral.

Exercise 6: Arctangent and Arcsine Integrals

Easy

Evaluate the following integrals by assigning the inverse trigonometric function to uu.

  1. Compute ∫arctan⁡(x) dx\displaystyle \int \arctan(x)\,dx.
  2. Compute ∫arcsin⁡(x) dx\displaystyle \int \arcsin(x)\,dx.
Hint
In both cases let uu be the inverse trigonometric function and dv=dxdv = dx. After applying the formula you will obtain a rational or algebraic integral in v duv\,du that is manageable with a standard substitution.
View Solution
Solution to question 1:

Let u=arctan⁡xu = \arctan x, dv=dx⇒du=dx1+x2dv = dx \Rightarrow du = \tfrac{dx}{1+x^2}, v=xv = x.

∫arctan⁡x dx=xarctan⁡x−∫x1+x2 dx=xarctan⁡x−12ln⁡(1+x2)+C. \int \arctan x\,dx = x\arctan x - \int \frac{x}{1+x^2}\,dx = x\arctan x - \frac{1}{2}\ln(1+x^2) + C. Solution to question 2:

Let u=arcsin⁡xu = \arcsin x, dv=dx⇒du=dx1−x2dv = dx \Rightarrow du = \tfrac{dx}{\sqrt{1-x^2}}, v=xv = x.

∫arcsin⁡x dx=xarcsin⁡x−∫x1−x2 dx. \int \arcsin x\,dx = x\arcsin x - \int \frac{x}{\sqrt{1-x^2}}\,dx.

Substitute t=1−x2t = 1 - x^2, dt=−2x dxdt = -2x\,dx:

∫x1−x2 dx=−1−x2+C. \int \frac{x}{\sqrt{1-x^2}}\,dx = -\sqrt{1-x^2} + C.

Therefore:

∫arcsin⁡x dx=xarcsin⁡x+1−x2+C. \int \arcsin x\,dx = x\arcsin x + \sqrt{1-x^2} + C.

Exercise 7: Polynomial Times Inverse Trigonometric Function

Medium

Combining a polynomial with an inverse trig function creates a richer residual integral.

  1. Compute ∫x arctan⁡(x) dx\displaystyle \int x\,\arctan(x)\,dx.
  2. Compute ∫x2 arcsin⁡(x) dx\displaystyle \int x^2\,\arcsin(x)\,dx.
Hint
Let uu be the inverse trig part and dvdv be the polynomial times dxdx. After differentiating uu and integrating dvdv, the remaining integral will be a rational function (question 1) or require a trigonometric identity (question 2).
View Solution
Solution to question 1:

Let u=arctan⁡xu = \arctan x, dv=x dx⇒du=dx1+x2dv = x\,dx \Rightarrow du = \tfrac{dx}{1+x^2}, v=x22v = \tfrac{x^2}{2}.

∫x arctan⁡x dx=x22arctan⁡x−12∫x21+x2 dx. \int x\,\arctan x\,dx = \frac{x^2}{2}\arctan x - \frac{1}{2}\int \frac{x^2}{1+x^2}\,dx.

Since x21+x2=1−11+x2\dfrac{x^2}{1+x^2} = 1 - \dfrac{1}{1+x^2}:

∫x arctan⁡x dx=x22arctan⁡x−x2+arctan⁡x2+C=x2+12arctan⁡x−x2+C. \int x\,\arctan x\,dx = \frac{x^2}{2}\arctan x - \frac{x}{2} + \frac{\arctan x}{2} + C = \frac{x^2+1}{2}\arctan x - \frac{x}{2} + C. Solution to question 2:

Let u=arcsin⁡xu = \arcsin x, dv=x2 dx⇒du=dx1−x2dv = x^2\,dx \Rightarrow du = \tfrac{dx}{\sqrt{1-x^2}}, v=x33v = \tfrac{x^3}{3}.

∫x2arcsin⁡x dx=x33arcsin⁡x−13∫x31−x2 dx. \int x^2 \arcsin x\,dx = \frac{x^3}{3}\arcsin x - \frac{1}{3}\int \frac{x^3}{\sqrt{1-x^2}}\,dx.

For the residual integral, write x3=x2⋅xx^3 = x^2 \cdot x and substitute t=1−x2t = 1 - x^2, so x2=1−tx^2 = 1-t and x dx=−dt2x\,dx = -\tfrac{dt}{2}:

∫x31−x2 dx=∫(1−t)t⋅(−12)dt=12∫ ⁣(t1/2−t−1/2)dt=(1−x2)3/23−1−x2+C. \int \frac{x^3}{\sqrt{1-x^2}}\,dx = \int \frac{(1-t)}{\sqrt{t}}\cdot\left(-\frac{1}{2}\right)dt = \frac{1}{2}\int\!\left(t^{1/2} - t^{-1/2}\right)dt = \frac{(1-x^2)^{3/2}}{3} - \sqrt{1-x^2} + C.

Combining:

∫x2arcsin⁡x dx=x33arcsin⁡x−(1−x2)3/29+1−x23+C. \int x^2 \arcsin x\,dx = \frac{x^3}{3}\arcsin x - \frac{(1-x^2)^{3/2}}{9} + \frac{\sqrt{1-x^2}}{3} + C.

Repeated Integration by Parts and the Tabular Method

When a polynomial of degree n≥2n \geq 2 multiplies a function whose repeated integrals are easily written, applying integration by parts nn times in a systematic tabular scheme reduces computation significantly. The tabular (or DI) method organises successive derivatives of uu and successive antiderivatives of dvdv in a table, with alternating signs.

Exercise 8: Applying the Tabular Method

Medium

Use the tabular method to evaluate the following integrals efficiently.

  1. Compute ∫x3ex dx\displaystyle \int x^3 e^{x}\,dx.
  2. Compute ∫x2cos⁡(x) dx\displaystyle \int x^2 \cos(x)\,dx.
Hint
Build a two-column table. In the left column place xnx^n and its successive derivatives (which eventually reach 0). In the right column place the repeatedly integrated trigonometric or exponential function. Multiply diagonally down with alternating signs +,−,+,…+, -, +, \ldots
View Solution
Solution to question 1:
SignDerivatives of x3x^3Antiderivatives of exe^x
++x3x^3exe^x
−-3x23x^2exe^x
++6x6xexe^x
−-66exe^x
++00exe^x
∫x3ex dx=ex(x3−3x2+6x−6)+C. \int x^3 e^x\,dx = e^x(x^3 - 3x^2 + 6x - 6) + C. Solution to question 2:
SignDerivatives of x2x^2Antiderivatives of cos⁡x\cos x
++x2x^2sin⁡x\sin x
−-2x2x−cos⁡x-\cos x
++22−sin⁡x-\sin x
−-00cos⁡x\cos x
∫x2cos⁡x dx=x2sin⁡x+2xcos⁡x−2sin⁡x+C. \int x^2 \cos x\,dx = x^2 \sin x + 2x\cos x - 2\sin x + C.

Exercise 9: Higher-Degree Polynomial with Trigonometric Function

Hard

This exercise extends the tabular method to a higher-degree polynomial.

  1. Compute ∫x4sin⁡(x) dx\displaystyle \int x^4 \sin(x)\,dx.
  2. Compute ∫(2x3−x)cos⁡(3x) dx\displaystyle \int (2x^3 - x)\cos(3x)\,dx.
Hint
For question 1 the tabular table will have 5 derivative rows before hitting 0. For question 2, remember that dndxn(2x3−x)\dfrac{d^n}{dx^n}(2x^3 - x) hits 0 after the 4th derivative, and track the chain-rule factors introduced by the cos⁡(3x)\cos(3x) column carefully.
View Solution
Solution to question 1:
SignDeriv. of x4x^4Antideriv. of sin⁡x\sin x
++x4x^4−cos⁡x-\cos x
−-4x34x^3−sin⁡x-\sin x
++12x212x^2cos⁡x\cos x
−-24x24xsin⁡x\sin x
++2424−cos⁡x-\cos x
00
∫x4sin⁡x dx=−x4cos⁡x+4x3sin⁡x+12x2cos⁡x−24xsin⁡x−24cos⁡x+C. \int x^4 \sin x\,dx = -x^4\cos x + 4x^3\sin x + 12x^2\cos x - 24x\sin x - 24\cos x + C. Solution to question 2:

Let p(x)=2x3−xp(x) = 2x^3 - x. Build the table with dv=cos⁡(3x) dxdv = \cos(3x)\,dx, so antiderivatives cycle through sin⁡(3x)3,−cos⁡(3x)9,−sin⁡(3x)27,cos⁡(3x)81\tfrac{\sin(3x)}{3}, -\tfrac{\cos(3x)}{9}, -\tfrac{\sin(3x)}{27}, \tfrac{\cos(3x)}{81}.

∫(2x3−x)cos⁡(3x) dx=(2x3−x)sin⁡(3x)3+(6x2−1)cos⁡(3x)9−12xsin⁡(3x)27−12cos⁡(3x)81+C. \int (2x^3-x)\cos(3x)\,dx = \frac{(2x^3-x)\sin(3x)}{3} + \frac{(6x^2-1)\cos(3x)}{9} - \frac{12x\sin(3x)}{27} - \frac{12\cos(3x)}{81} + C.

Simplifying the last term: 1281=427\dfrac{12}{81} = \dfrac{4}{27}.

=(2x3−x)sin⁡(3x)3+(6x2−1)cos⁡(3x)9−4xsin⁡(3x)9−4cos⁡(3x)27+C. = \frac{(2x^3-x)\sin(3x)}{3} + \frac{(6x^2-1)\cos(3x)}{9} - \frac{4x\sin(3x)}{9} - \frac{4\cos(3x)}{27} + C.

Cyclic Integrals: Integration by Parts Applied Twice

When both factors in a product are “permanent” (neither differentiates to zero nor integrates to zero), applying integration by parts twice returns the original integral on the right-hand side. Solving the resulting equation for the integral yields the answer. This technique is central to integrals of the form ∫eaxsin⁡(bx) dx\int e^{ax}\sin(bx)\,dx or ∫eaxcos⁡(bx) dx\int e^{ax}\cos(bx)\,dx.

Exercise 10: Exponential Times Sine or Cosine

Medium

Evaluate the following integrals using the cyclic technique.

  1. Compute ∫exsin⁡(x) dx\displaystyle \int e^{x}\sin(x)\,dx.
  2. Compute ∫e2xcos⁡(3x) dx\displaystyle \int e^{2x}\cos(3x)\,dx.
Hint
Apply integration by parts twice, keeping the same assignment convention each time (e.g., always let u=eaxu = e^{ax}). After the second application you will see the original integral II appear on the right-hand side. Solve the resulting equation for II.
View Solution
Solution to question 1:

Let I=∫exsin⁡x dxI = \int e^x \sin x\,dx. Set u=exu = e^x, dv=sin⁡x dxdv = \sin x\,dx:

I=−excos⁡x+∫excos⁡x dx. I = -e^x\cos x + \int e^x\cos x\,dx.

Apply again with u=exu = e^x, dv=cos⁡x dxdv = \cos x\,dx:

I=−excos⁡x+exsin⁡x−∫exsin⁡x dx=−excos⁡x+exsin⁡x−I. I = -e^x\cos x + e^x\sin x - \int e^x\sin x\,dx = -e^x\cos x + e^x\sin x - I.

Solving:

2I=ex(sin⁡x−cos⁡x)  ⟹  I=ex(sin⁡x−cos⁡x)2+C. 2I = e^x(\sin x - \cos x) \implies \boxed{I = \frac{e^x(\sin x - \cos x)}{2} + C}. Solution to question 2:

Let I=∫e2xcos⁡(3x) dxI = \int e^{2x}\cos(3x)\,dx. Let u=e2xu = e^{2x}, dv=cos⁡(3x) dxdv = \cos(3x)\,dx:

I=e2xsin⁡(3x)3−23∫e2xsin⁡(3x) dx. I = \frac{e^{2x}\sin(3x)}{3} - \frac{2}{3}\int e^{2x}\sin(3x)\,dx.

Apply again with u=e2xu = e^{2x}, dv=sin⁡(3x) dxdv = \sin(3x)\,dx:

∫e2xsin⁡(3x) dx=−e2xcos⁡(3x)3+23∫e2xcos⁡(3x) dx=−e2xcos⁡(3x)3+2I3. \int e^{2x}\sin(3x)\,dx = -\frac{e^{2x}\cos(3x)}{3} + \frac{2}{3}\int e^{2x}\cos(3x)\,dx = -\frac{e^{2x}\cos(3x)}{3} + \frac{2I}{3}.

Substituting back:

I=e2xsin⁡(3x)3−23 ⁣(−e2xcos⁡(3x)3+2I3)=e2xsin⁡(3x)3+2e2xcos⁡(3x)9−4I9. I = \frac{e^{2x}\sin(3x)}{3} - \frac{2}{3}\!\left(-\frac{e^{2x}\cos(3x)}{3} + \frac{2I}{3}\right) = \frac{e^{2x}\sin(3x)}{3} + \frac{2e^{2x}\cos(3x)}{9} - \frac{4I}{9}. 13I9=3e2xsin⁡(3x)+2e2xcos⁡(3x)9  ⟹  I=e2x(3sin⁡(3x)+2cos⁡(3x))13+C. \frac{13I}{9} = \frac{3e^{2x}\sin(3x) + 2e^{2x}\cos(3x)}{9} \implies \boxed{I = \frac{e^{2x}(3\sin(3x) + 2\cos(3x))}{13} + C}.

Definite Integrals Using Integration by Parts

When the limits of integration are specified, the boundary term [uv]ab\bigl[uv\bigr]_a^b must be evaluated explicitly. It is essential to apply the limits to both the boundary term and the remaining integral. Always double-check the evaluation of uvuv at both endpoints.

Exercise 11: Definite Integral with a Polynomial–Exponential Product

Medium

Evaluate the following definite integrals exactly.

  1. Compute ∫01xex dx\displaystyle \int_0^1 x e^{x}\,dx.
  2. Compute ∫0πxsin⁡(x) dx\displaystyle \int_0^{\pi} x \sin(x)\,dx.
Hint
Find the antiderivative using integration by parts, then apply the limits. Remember the formula [uv]ab−∫abv du\bigl[uv\bigr]_a^b - \int_a^b v\,du. Evaluate both the boundary term and the definite integral of v duv\,du at the endpoints.
View Solution
Solution to question 1:

Let u=xu = x, dv=ex dx⇒du=dxdv = e^x\,dx \Rightarrow du = dx, v=exv = e^x.

∫01xex dx=[xex]01−∫01ex dx=(1⋅e−0)−[ex]01=e−(e−1)=1. \int_0^1 x e^x\,dx = \bigl[xe^x\bigr]_0^1 - \int_0^1 e^x\,dx = (1\cdot e - 0) - \bigl[e^x\bigr]_0^1 = e - (e - 1) = 1. Solution to question 2:

Let u=xu = x, dv=sin⁡(x) dx⇒du=dxdv = \sin(x)\,dx \Rightarrow du = dx, v=−cos⁡(x)v = -\cos(x).

∫0πxsin⁡(x) dx=[−xcos⁡(x)]0π+∫0πcos⁡(x) dx=(−πcos⁡π+0)+[sin⁡x]0π. \int_0^{\pi} x\sin(x)\,dx = \bigl[-x\cos(x)\bigr]_0^{\pi} + \int_0^{\pi}\cos(x)\,dx = (-\pi\cos\pi + 0) + \bigl[\sin x\bigr]_0^{\pi}. =π+(sin⁡π−sin⁡0)=π+0=π. = \pi + (\sin\pi - \sin 0) = \pi + 0 = \pi.

Exercise 12: Definite Integral Involving a Logarithm

Medium

Evaluate each definite integral, simplifying your answer fully.

  1. Compute ∫1ex ln⁡(x) dx\displaystyle \int_1^e x\,\ln(x)\,dx.
  2. Compute ∫1eln⁡(x) dx\displaystyle \int_1^e \ln(x)\,dx.
Hint
For question 1, let u=ln⁡xu = \ln x and dv=x dxdv = x\,dx. For question 2, use the silent-1 trick. In both cases carefully substitute x=ex = e and x=1x = 1, recalling that ln⁡(e)=1\ln(e) = 1 and ln⁡(1)=0\ln(1) = 0.
View Solution
Solution to question 1:

Let u=ln⁡xu = \ln x, dv=x dx⇒du=dxxdv = x\,dx \Rightarrow du = \tfrac{dx}{x}, v=x22v = \tfrac{x^2}{2}.

∫1exln⁡x dx=[x2ln⁡x2]1e−∫1ex2 dx=e22−0−[x24]1e=e22−e2−14=e2+14. \int_1^e x\ln x\,dx = \left[\frac{x^2\ln x}{2}\right]_1^e - \int_1^e \frac{x}{2}\,dx = \frac{e^2}{2} - 0 - \left[\frac{x^2}{4}\right]_1^e = \frac{e^2}{2} - \frac{e^2-1}{4} = \frac{e^2+1}{4}. Solution to question 2:

Using the antiderivative from Exercise 4: ∫ln⁡x dx=xln⁡x−x\int \ln x\,dx = x\ln x - x.

∫1eln⁡x dx=[xln⁡x−x]1e=(e⋅1−e)−(1⋅0−1)=0+1=1. \int_1^e \ln x\,dx = \bigl[x\ln x - x\bigr]_1^e = (e\cdot 1 - e) - (1\cdot 0 - 1) = 0 + 1 = 1.

Advanced and Mixed-Strategy Problems

At this level, a single integral may require a combination of techniques: a preliminary substitution followed by integration by parts, or repeated integration by parts leading to a reduction formula. Recognising which strategy to apply, and in what order,is the mark of a confident practitioner.

Exercise 13: Substitution Followed by Integration by Parts

Hard

These integrals require a substitution before integration by parts can be applied.

  1. Compute ∫x ex dx\displaystyle \int \sqrt{x}\,e^{\sqrt{x}}\,dx.
  2. Compute ∫sin⁡(ln⁡x) dx\displaystyle \int \sin(\ln x)\,dx.
Hint
For question 1, substitute t=xt = \sqrt{x} to eliminate the square root, then apply integration by parts (it may need to be applied twice). For question 2, let t=ln⁡xt = \ln x to convert the integral to ∫etsin⁡(t) dt\int e^t \sin(t)\,dt, which is a cyclic integral.
View Solution
Solution to question 1:

Let t=xt = \sqrt{x}, so x=t2x = t^2 and dx=2t dtdx = 2t\,dt.

∫x ex dx=∫t et⋅2t dt=2∫t2et dt. \int \sqrt{x}\,e^{\sqrt{x}}\,dx = \int t\,e^t\cdot 2t\,dt = 2\int t^2 e^t\,dt.

Using the tabular method on 2∫t2et dt2\int t^2 e^t\,dt:

2∫t2et dt=2et(t2−2t+2)+C. 2\int t^2 e^t\,dt = 2e^t(t^2 - 2t + 2) + C.

Substituting back t=xt = \sqrt{x}:

∫x ex dx=2ex(x−2x+2)+C. \int \sqrt{x}\,e^{\sqrt{x}}\,dx = 2e^{\sqrt{x}}(x - 2\sqrt{x} + 2) + C. Solution to question 2:

Let t=ln⁡xt = \ln x, so x=etx = e^t and dx=et dtdx = e^t\,dt.

∫sin⁡(ln⁡x) dx=∫etsin⁡(t) dt. \int \sin(\ln x)\,dx = \int e^t\sin(t)\,dt.

This is the cyclic integral from Exercise 10, question 1:

∫etsin⁡(t) dt=et(sin⁡t−cos⁡t)2+C. \int e^t\sin(t)\,dt = \frac{e^t(\sin t - \cos t)}{2} + C.

Substituting back t=ln⁡xt = \ln x:

∫sin⁡(ln⁡x) dx=x(sin⁡(ln⁡x)−cos⁡(ln⁡x))2+C. \int \sin(\ln x)\,dx = \frac{x\bigl(\sin(\ln x) - \cos(\ln x)\bigr)}{2} + C.

Exercise 14: Reduction Formula for Powers of Sine

Hard

A reduction formula expresses ∫sin⁡nx dx\int \sin^n x\,dx in terms of ∫sin⁡n−2x dx\int \sin^{n-2}x\,dx, lowering the power step by step.

  1. Use integration by parts to derive the reduction formula: ∫sin⁡nx dx=−sin⁡n−1xcos⁡xn+n−1n∫sin⁡n−2x dx. \int \sin^n x\,dx = -\frac{\sin^{n-1}x\cos x}{n} + \frac{n-1}{n}\int \sin^{n-2}x\,dx.
  2. Apply the formula to compute ∫0π/2sin⁡4x dx\displaystyle \int_0^{\pi/2} \sin^4 x\,dx.
Hint
For question 1, write sin⁡nx=sin⁡n−1x⋅sin⁡x\sin^n x = \sin^{n-1}x \cdot \sin x. Let u=sin⁡n−1xu = \sin^{n-1}x and dv=sin⁡x dxdv = \sin x\,dx. After applying the formula, use the Pythagorean identity cos⁡2x=1−sin⁡2x\cos^2 x = 1 - \sin^2 x to express the resulting integral back in terms of ∫sin⁡nx dx\int \sin^n x\,dx and ∫sin⁡n−2x dx\int \sin^{n-2}x\,dx. For question 2, apply the formula twice starting with n=4n = 4.
View Solution
Solution to question 1 (derivation):

Let u=sin⁡n−1xu = \sin^{n-1}x, dv=sin⁡x dx⇒du=(n−1)sin⁡n−2xcos⁡x dxdv = \sin x\,dx \Rightarrow du = (n-1)\sin^{n-2}x\cos x\,dx, v=−cos⁡xv = -\cos x.

∫sin⁡nx dx=−sin⁡n−1xcos⁡x+(n−1)∫sin⁡n−2xcos⁡2x dx. \int \sin^n x\,dx = -\sin^{n-1}x\cos x + (n-1)\int \sin^{n-2}x\cos^2 x\,dx.

Replace cos⁡2x=1−sin⁡2x\cos^2 x = 1 - \sin^2 x:

=−sin⁡n−1xcos⁡x+(n−1)∫sin⁡n−2x dx−(n−1)∫sin⁡nx dx. = -\sin^{n-1}x\cos x + (n-1)\int \sin^{n-2}x\,dx - (n-1)\int \sin^n x\,dx.

Move the last term to the left side:

n∫sin⁡nx dx=−sin⁡n−1xcos⁡x+(n−1)∫sin⁡n−2x dx, n\int \sin^n x\,dx = -\sin^{n-1}x\cos x + (n-1)\int \sin^{n-2}x\,dx, ∴∫sin⁡nx dx=−sin⁡n−1xcos⁡xn+n−1n∫sin⁡n−2x dx.✓ \therefore \int \sin^n x\,dx = -\frac{\sin^{n-1}x\cos x}{n} + \frac{n-1}{n}\int \sin^{n-2}x\,dx. \quad \checkmark Solution to question 2:

Apply with n=4n = 4 on [0,π/2][0, \pi/2]. At both endpoints sin⁡n−1xcos⁡x\sin^{n-1}x\cos x vanishes, so the boundary term is always 0 on this interval.

∫0π/2sin⁡4x dx=34∫0π/2sin⁡2x dx. \int_0^{\pi/2}\sin^4 x\,dx = \frac{3}{4}\int_0^{\pi/2}\sin^2 x\,dx.

Apply with n=2n = 2:

∫0π/2sin⁡2x dx=12∫0π/21 dx=π4. \int_0^{\pi/2}\sin^2 x\,dx = \frac{1}{2}\int_0^{\pi/2}1\,dx = \frac{\pi}{4}.

Therefore:

∫0π/2sin⁡4x dx=34⋅π4=3π16. \int_0^{\pi/2}\sin^4 x\,dx = \frac{3}{4}\cdot\frac{\pi}{4} = \frac{3\pi}{16}.

Exercise 15: Integral Requiring Multiple Combined Strategies

Hard

This final exercise challenges you to chain together substitution, integration by parts, and algebraic manipulation.

  1. Compute ∫x3x2+1 dx\displaystyle \int x^3\sqrt{x^2+1}\,dx using integration by parts (try u=x2u = x^2, dv=xx2+1 dxdv = x\sqrt{x^2+1}\,dx).
  2. Compute ∫ex3 dx\displaystyle \int e^{\sqrt[3]{x}}\,dx.
Hint
For question 1, integrate dv=xx2+1 dxdv = x\sqrt{x^2+1}\,dx by substituting t=x2+1t = x^2 + 1; the result gives v=(x2+1)3/23v = \tfrac{(x^2+1)^{3/2}}{3}. For question 2, let t=x1/3t = x^{1/3} to reduce the integral to 3∫t2et dt3\int t^2 e^t\,dt, then use the tabular method.
View Solution
Solution to question 1:

Let u=x2u = x^2, dv=xx2+1 dxdv = x\sqrt{x^2+1}\,dx. To find vv: set s=x2+1s = x^2+1, ds=2x dxds = 2x\,dx, so

v=∫xx2+1 dx=(x2+1)3/23. v = \int x\sqrt{x^2+1}\,dx = \frac{(x^2+1)^{3/2}}{3}.

Also du=2x dxdu = 2x\,dx. Applying integration by parts:

∫x3x2+1 dx=x2(x2+1)3/23−23∫x(x2+1)3/2 dx. \int x^3\sqrt{x^2+1}\,dx = \frac{x^2(x^2+1)^{3/2}}{3} - \frac{2}{3}\int x(x^2+1)^{3/2}\,dx.

For the remaining integral, use s=x2+1s = x^2+1 again:

∫x(x2+1)3/2 dx=(x2+1)5/25. \int x(x^2+1)^{3/2}\,dx = \frac{(x^2+1)^{5/2}}{5}.

Therefore:

∫x3x2+1 dx=x2(x2+1)3/23−2(x2+1)5/215+C. \int x^3\sqrt{x^2+1}\,dx = \frac{x^2(x^2+1)^{3/2}}{3} - \frac{2(x^2+1)^{5/2}}{15} + C. Solution to question 2:

Let t=x1/3t = x^{1/3}, so x=t3x = t^3 and dx=3t2 dtdx = 3t^2\,dt.

∫ex3 dx=3∫t2et dt. \int e^{\sqrt[3]{x}}\,dx = 3\int t^2 e^t\,dt.

From Exercise 8, question 1 (with base function ete^t): ∫t2et dt=et(t2−2t+2)\int t^2 e^t\,dt = e^t(t^2 - 2t + 2). Hence:

∫ex3 dx=3et(t2−2t+2)+C. \int e^{\sqrt[3]{x}}\,dx = 3e^t(t^2 - 2t + 2) + C.

Substituting back t=x1/3t = x^{1/3}:

∫ex3 dx=3ex3 ⁣(x2/3−2x1/3+2)+C. \int e^{\sqrt[3]{x}}\,dx = 3e^{\sqrt[3]{x}}\!\left(x^{2/3} - 2x^{1/3} + 2\right) + C.