15 integration by parts practice problems with step-by-step solutions, from ∫xe3xdx 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
∫udv=uv−∫vdu,∫abudv=[uv]ab−∫abvdu.
Choose u with the LIATE order (Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential); the rest of the integrand is dv. 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 ∫udv=uv−∫vdu 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.
Find ∫xe3xdx.
Verify your answer by differentiating the result.
Hint
Let u=x (algebraic, simplifies on differentiation) and dv=e3xdx. Compute du and v, then apply ∫udv=uv−∫vdu. Don’t forget the constant of integration.
View Solution
Solution to question 1:
Set u=x and dv=e3xdx. Then du=dx and v=3e3x.
∫xe3xdx=3xe3x−∫3e3xdx=3xe3x−9e3x+C.Solution to question 2:
Differentiate F(x)=3xe3x−9e3x:
F′(x)=3e3x+3xe3x−93e3x=3e3x+xe3x−3e3x=xe3x.✓
Exercise 2: Linear Polynomial Times Cosine
Easy
Evaluate each integral using integration by parts.
Compute ∫xcos(2x)dx.
Compute ∫(3x−1)sin(x)dx.
Hint
For both integrals, assign the polynomial factor to u (it vanishes after one differentiation) and the trigonometric factor to dv. Integrate dv carefully, watching the chain-rule factor for cos(2x).
View Solution
Solution to question 1:
Let u=x, dv=cos(2x)dx. Then du=dx, v=2sin(2x).
∫xcos(2x)dx=2xsin(2x)−∫2sin(2x)dx=2xsin(2x)+4cos(2x)+C.Solution to question 2:
Exercise 3: Quadratic Polynomial Times Exponential
Medium
Some polynomial–exponential integrals require integration by parts more than once.
Compute ∫x2e−xdx.
Compute ∫(x2+2x)e2xdx.
Hint
Apply integration by parts with u=x2 (or u=x2+2x) and dv=e±xdx. 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=x2, dv=e−xdx⇒du=2xdx, v=−e−x.
∫x2e−xdx=−x2e−x+2∫xe−xdx.
Second pass:u=x, dv=e−xdx⇒du=dx, v=−e−x.
∫xe−xdx=−xe−x+∫e−xdx=−xe−x−e−x+C.
Combining:
∫x2e−xdx=−x2e−x−2xe−x−2e−x+C=−e−x(x2+2x+2)+C.Solution to question 2:
Logarithmic functions occupy the top of the LIATE hierarchy, so they are almost always assigned the role of u. A characteristic trick is writing ∫lnxdx=∫1⋅lnxdx to manufacture a dv.
Exercise 4: The Classic Logarithm Integral
Easy
Logarithms appear alone in many integrals; a silent factor of 1 supplies the dv.
Compute ∫lnxdx.
Compute ∫ln(5x)dx.
Hint
Rewrite as ∫1⋅ln(⋅)dx. Let u=ln(⋅) and dv=dx. For part 2, use the logarithm property ln(5x)=ln5+lnx to simplify, or apply the formula directly.
View Solution
Solution to question 1:
Let u=lnx, dv=dx⇒du=x1dx, v=x.
∫lnxdx=xlnx−∫x⋅x1dx=xlnx−∫1dx=xlnx−x+C.Solution to question 2:
Exercise 5: Polynomial Factor Paired with a Logarithm
Medium
When a polynomial multiplies a logarithm, integrate the polynomial (assign it to dv) and differentiate the logarithm.
Compute ∫x3lnxdx.
Compute ∫xln(x2+1)dx.
Hint
For question 1, let u=lnx and dv=x3dx. For question 2, first try the substitution t=x2+1 to see whether integration by parts can be avoided, or directly apply the formula with u=ln(x2+1) and dv=xdx.
View Solution
Solution to question 1:
Let u=lnx, dv=x3dx⇒du=x1dx, v=4x4.
∫x3lnxdx=4x4lnx−∫4x4⋅x1dx=4x4lnx−41∫x3dx=4x4lnx−16x4+C.Solution to question 2:
Let u=ln(x2+1), dv=xdx⇒du=x2+12xdx, v=2x2.
∫xln(x2+1)dx=2x2ln(x2+1)−∫x2+1x3dx.
Perform polynomial division: x2+1x3=x−x2+1x.
∫x2+1x3dx=2x2−21ln(x2+1)+C.
Therefore:
∫xln(x2+1)dx=2x2ln(x2+1)−2x2+2ln(x2+1)+C.
Integration by Parts with Inverse Trigonometric Functions
Inverse trigonometric functions (arctanx, arcsinx, arccosx) rank above algebraic functions in the LIATE rule and are not easily integrated directly, making them natural candidates for u. 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 u.
Compute ∫arctan(x)dx.
Compute ∫arcsin(x)dx.
Hint
In both cases let u be the inverse trigonometric function and dv=dx. After applying the formula you will obtain a rational or algebraic integral in vdu that is manageable with a standard substitution.
View Solution
Solution to question 1:
Let u=arctanx, dv=dx⇒du=1+x2dx, v=x.
∫arctanxdx=xarctanx−∫1+x2xdx=xarctanx−21ln(1+x2)+C.Solution to question 2:
Let u=arcsinx, dv=dx⇒du=1−x2dx, v=x.
∫arcsinxdx=xarcsinx−∫1−x2xdx.
Substitute t=1−x2, dt=−2xdx:
∫1−x2xdx=−1−x2+C.
Therefore:
∫arcsinxdx=xarcsinx+1−x2+C.
Exercise 7: Polynomial Times Inverse Trigonometric Function
Medium
Combining a polynomial with an inverse trig function creates a richer residual integral.
Compute ∫xarctan(x)dx.
Compute ∫x2arcsin(x)dx.
Hint
Let u be the inverse trig part and dv be the polynomial times dx. After differentiating u and integrating dv, 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=arctanx, dv=xdx⇒du=1+x2dx, v=2x2.
∫xarctanxdx=2x2arctanx−21∫1+x2x2dx.
Since 1+x2x2=1−1+x21:
∫xarctanxdx=2x2arctanx−2x+2arctanx+C=2x2+1arctanx−2x+C.Solution to question 2:
Let u=arcsinx, dv=x2dx⇒du=1−x2dx, v=3x3.
∫x2arcsinxdx=3x3arcsinx−31∫1−x2x3dx.
For the residual integral, write x3=x2⋅x and substitute t=1−x2, so x2=1−t and xdx=−2dt:
Repeated Integration by Parts and the Tabular Method
When a polynomial of degree n≥2 multiplies a function whose repeated integrals are easily written, applying integration by parts n times in a systematic tabular scheme reduces computation significantly. The tabular (or DI) method organises successive derivatives of u and successive antiderivatives of dv in a table, with alternating signs.
Exercise 8: Applying the Tabular Method
Medium
Use the tabular method to evaluate the following integrals efficiently.
Compute ∫x3exdx.
Compute ∫x2cos(x)dx.
Hint
Build a two-column table. In the left column place xn 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 +,−,+,…
View Solution
Solution to question 1:
Sign
Derivatives of x3
Antiderivatives of ex
+
x3
ex
−
3x2
ex
+
6x
ex
−
6
ex
+
0
ex
∫x3exdx=ex(x3−3x2+6x−6)+C.Solution to question 2:
Sign
Derivatives of x2
Antiderivatives of cosx
+
x2
sinx
−
2x
−cosx
+
2
−sinx
−
0
cosx
∫x2cosxdx=x2sinx+2xcosx−2sinx+C.
Exercise 9: Higher-Degree Polynomial with Trigonometric Function
Hard
This exercise extends the tabular method to a higher-degree polynomial.
Compute ∫x4sin(x)dx.
Compute ∫(2x3−x)cos(3x)dx.
Hint
For question 1 the tabular table will have 5 derivative rows before hitting 0. For question 2, remember that dxndn(2x3−x) hits 0 after the 4th derivative, and track the chain-rule factors introduced by the cos(3x) column carefully.
View Solution
Solution to question 1:
Sign
Deriv. of x4
Antideriv. of sinx
+
x4
−cosx
−
4x3
−sinx
+
12x2
cosx
−
24x
sinx
+
24
−cosx
0
∫x4sinxdx=−x4cosx+4x3sinx+12x2cosx−24xsinx−24cosx+C.Solution to question 2:
Let p(x)=2x3−x. Build the table with dv=cos(3x)dx, so antiderivatives cycle through 3sin(3x),−9cos(3x),−27sin(3x),81cos(3x).
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 or ∫eaxcos(bx)dx.
Exercise 10: Exponential Times Sine or Cosine
Medium
Evaluate the following integrals using the cyclic technique.
Compute ∫exsin(x)dx.
Compute ∫e2xcos(3x)dx.
Hint
Apply integration by parts twice, keeping the same assignment convention each time (e.g., always let u=eax). After the second application you will see the original integral I appear on the right-hand side. Solve the resulting equation for I.
View Solution
Solution to question 1:
Let I=∫exsinxdx. Set u=ex, dv=sinxdx:
I=−excosx+∫excosxdx.
Apply again with u=ex, dv=cosxdx:
I=−excosx+exsinx−∫exsinxdx=−excosx+exsinx−I.
Solving:
2I=ex(sinx−cosx)⟹I=2ex(sinx−cosx)+C.Solution to question 2:
When the limits of integration are specified, the boundary term [uv]ab 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 uv at both endpoints.
Exercise 11: Definite Integral with a Polynomial–Exponential Product
Medium
Evaluate the following definite integrals exactly.
Compute ∫01xexdx.
Compute ∫0πxsin(x)dx.
Hint
Find the antiderivative using integration by parts, then apply the limits. Remember the formula [uv]ab−∫abvdu. Evaluate both the boundary term and the definite integral of vdu at the endpoints.
View Solution
Solution to question 1:
Let u=x, dv=exdx⇒du=dx, v=ex.
∫01xexdx=[xex]01−∫01exdx=(1⋅e−0)−[ex]01=e−(e−1)=1.Solution to question 2:
Exercise 12: Definite Integral Involving a Logarithm
Medium
Evaluate each definite integral, simplifying your answer fully.
Compute ∫1exln(x)dx.
Compute ∫1eln(x)dx.
Hint
For question 1, let u=lnx and dv=xdx. For question 2, use the silent-1 trick. In both cases carefully substitute x=e and x=1, recalling that ln(e)=1 and ln(1)=0.
View Solution
Solution to question 1:
Let u=lnx, dv=xdx⇒du=xdx, v=2x2.
∫1exlnxdx=[2x2lnx]1e−∫1e2xdx=2e2−0−[4x2]1e=2e2−4e2−1=4e2+1.Solution to question 2:
Using the antiderivative from Exercise 4: ∫lnxdx=xlnx−x.
∫1elnxdx=[xlnx−x]1e=(e⋅1−e)−(1⋅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.
Compute ∫xexdx.
Compute ∫sin(lnx)dx.
Hint
For question 1, substitute t=x to eliminate the square root, then apply integration by parts (it may need to be applied twice). For question 2, let t=lnx to convert the integral to ∫etsin(t)dt, which is a cyclic integral.
View Solution
Solution to question 1:
Let t=x, so x=t2 and dx=2tdt.
∫xexdx=∫tet⋅2tdt=2∫t2etdt.
Using the tabular method on 2∫t2etdt:
2∫t2etdt=2et(t2−2t+2)+C.
Substituting back t=x:
∫xexdx=2ex(x−2x+2)+C.Solution to question 2:
Let t=lnx, so x=et and dx=etdt.
∫sin(lnx)dx=∫etsin(t)dt.
This is the cyclic integral from Exercise 10, question 1:
∫etsin(t)dt=2et(sint−cost)+C.
Substituting back t=lnx:
∫sin(lnx)dx=2x(sin(lnx)−cos(lnx))+C.
Exercise 14: Reduction Formula for Powers of Sine
Hard
A reduction formula expresses ∫sinnxdx in terms of ∫sinn−2xdx, lowering the power step by step.
Use integration by parts to derive the reduction formula:
∫sinnxdx=−nsinn−1xcosx+nn−1∫sinn−2xdx.
Apply the formula to compute ∫0π/2sin4xdx.
Hint
For question 1, write sinnx=sinn−1x⋅sinx. Let u=sinn−1x and dv=sinxdx. After applying the formula, use the Pythagorean identity cos2x=1−sin2x to express the resulting integral back in terms of ∫sinnxdx and ∫sinn−2xdx. For question 2, apply the formula twice starting with n=4.
View Solution
Solution to question 1 (derivation):
Let u=sinn−1x, dv=sinxdx⇒du=(n−1)sinn−2xcosxdx, v=−cosx.
∫sinnxdx=−sinn−1xcosx+(n−1)∫sinn−2xcos2xdx.
Replace cos2x=1−sin2x:
=−sinn−1xcosx+(n−1)∫sinn−2xdx−(n−1)∫sinnxdx.
Move the last term to the left side:
n∫sinnxdx=−sinn−1xcosx+(n−1)∫sinn−2xdx,∴∫sinnxdx=−nsinn−1xcosx+nn−1∫sinn−2xdx.✓Solution to question 2:
Apply with n=4 on [0,π/2]. At both endpoints sinn−1xcosx vanishes, so the boundary term is always 0 on this interval.
∫0π/2sin4xdx=43∫0π/2sin2xdx.
Apply with n=2:
∫0π/2sin2xdx=21∫0π/21dx=4π.
Therefore:
∫0π/2sin4xdx=43⋅4π=163π.
Exercise 15: Integral Requiring Multiple Combined Strategies
Hard
This final exercise challenges you to chain together substitution, integration by parts, and algebraic manipulation.
Compute ∫x3x2+1dx using integration by parts (try u=x2, dv=xx2+1dx).
Compute ∫e3xdx.
Hint
For question 1, integrate dv=xx2+1dx by substituting t=x2+1; the result gives v=3(x2+1)3/2. For question 2, let t=x1/3 to reduce the integral to 3∫t2etdt, then use the tabular method.
View Solution
Solution to question 1:
Let u=x2, dv=xx2+1dx. To find v: set s=x2+1, ds=2xdx, so
v=∫xx2+1dx=3(x2+1)3/2.
Also du=2xdx. Applying integration by parts:
∫x3x2+1dx=3x2(x2+1)3/2−32∫x(x2+1)3/2dx.
For the remaining integral, use s=x2+1 again:
∫x(x2+1)3/2dx=5(x2+1)5/2.
Therefore:
∫x3x2+1dx=3x2(x2+1)3/2−152(x2+1)5/2+C.Solution to question 2:
Let t=x1/3, so x=t3 and dx=3t2dt.
∫e3xdx=3∫t2etdt.
From Exercise 8, question 1 (with base function et):
∫t2etdt=et(t2−2t+2). Hence: