In differential calculus, we use the product rule to differentiate the product of two functions. Integration by Parts is the corresponding rule in integral calculus, used to integrate the product of two functions.
Let u and v be differentiable functions of x. Then the product rule gives:
dxd(uv)=udxdv+vdxdu
Integrating both sides with respect to x, we get:
uv=∫udxdvdx+∫vdxdudx
Rearranging,
∫udxdvdx=uv−∫vdxdudx
In differential form, this is written more compactly as:
∫udv=uv−∫vdu
If we let u=f(x) and dv=g(x)dx, then v=∫g(x)dx. So the formula may also be written as:
∫f(x)g(x)dx=f(x)∫g(x)dx−∫(f′(x)∫g(x)dx)dx
In words
The integral of the product of two functions equals:
(first function) × (integral of second function) − integral of [(derivative of first function) × (integral of second function)].
Choosing the First and Second Functions (ILATE Rule)
The success of integration by parts depends heavily on making a good choice of the first function u and the second function dv. Usually, we choose:
- the first function so that its derivative becomes simpler,
- the second function so that it can be integrated easily.
A standard guideline for choosing the first function is the ILATE (or LIATE) rule. Choose the first function as the one that appears earlier in the following order:
- I: Inverse trigonometric functions (e.g. sin−1x,tan−1x)
- L: Logarithmic functions (e.g. logx,lnx)
- A: Algebraic functions (e.g. x,x2,x3+1)
- T: Trigonometric functions (e.g. sinx,cosx)
- E: Exponential functions (e.g. ex,ax)
So, in a product like xex, we choose u=x and dv=exdx because Algebraic comes before Exponential.
This rule is not a rigid law, but it is an extremely useful exam-time guide.
Integrating Logarithmic and Inverse Trigonometric Functions
There are no direct standard formulas for integrals like:
∫lnxdx,∫sin−1xdx,∫tan−1xdx
To integrate such functions, we rewrite them as a product with 1:
∫lnxdx=∫(lnx⋅1)dx
Then we apply Integration by Parts.
For example, in ∫lnxdx:
- choose u=lnx by the ILATE rule,
- choose dv=1dx.
This idea is very important, because it allows us to integrate functions that are not directly in standard anti-derivative form.
This is a very important and highly testable special case of integration by parts.
If the integrand is of the form:
∫ex[f(x)+f′(x)]dx
then the result is immediately:
∫ex[f(x)+f′(x)]dx=exf(x)+C
Why is this true?
Because if we differentiate exf(x) using the product rule, we get:
dxd(exf(x))=exf(x)+exf′(x)=ex[f(x)+f′(x)]
So the integral is simply the reverse of this derivative.
In many problems, the integrand is not visibly in this form at first. In such cases, you often need to simplify, split, or manipulate the expression so that it becomes f(x)+f′(x) inside the bracket.
Example 1: Basic Integration by Parts
Evaluate: ∫xcosxdx
Solution:
Step 1: Choose u and dv using the ILATE rule.
Here, x is Algebraic and cosx is Trigonometric.
So we take:
u=x,dv=cosxdx
Step 2: Differentiate and integrate.
du=dx,v=∫cosxdx=sinx
Step 3: Apply the formula ∫udv=uv−∫vdu.
∫xcosxdx=xsinx−∫sinxdx
Step 4: Evaluate the remaining integral.
Since
∫sinxdx=−cosx,
we get:
xsinx−(−cosx)=xsinx+cosx+C
Answer: xsinx+cosx+C
Example 2: Integrating a Logarithmic Function
Evaluate: ∫lnxdx
Solution:
Step 1: Rewrite the integrand as a product:
∫lnxdx=∫(lnx⋅1)dx
Step 2: Choose functions.
By ILATE, Logarithmic comes before Algebraic, so take:
u=lnx,dv=1dx
Step 3: Differentiate and integrate.
du=x1dx,v=∫1dx=x
Step 4: Apply integration by parts.
∫lnxdx=xlnx−∫x⋅x1dx
Step 5: Simplify the remaining integral.
=xlnx−∫1dx=xlnx−x+C
Step 6: Write neatly.
=x(lnx−1)+C
Answer: x(lnx−1)+C
Example 3: Repeated Integration by Parts
Evaluate: ∫x2exdx
Solution:
Step 1: Choose:
u=x2,dv=exdx
Then,
du=2xdx,v=ex
Step 2: Apply integration by parts.
∫x2exdx=x2ex−∫2xexdx
=x2ex−2∫xexdx
Step 3: The remaining integral still needs integration by parts.
For ∫xexdx, choose:
u=x,dv=exdx
Then,
du=dx,v=ex
Step 4: Apply integration by parts again.
∫xexdx=xex−∫exdx=xex−ex
Step 5: Substitute back into the original expression.
∫x2exdx=x2ex−2(xex−ex)+C
=x2ex−2xex+2ex+C
Step 6: Factor out ex.
=ex(x2−2x+2)+C
Answer: ex(x2−2x+2)+C
Example 4: Cyclic Integrals
Evaluate: I=∫exsinxdx
Solution:
Step 1: Choose:
u=sinx,dv=exdx
Then,
du=cosxdx,v=ex
Step 2: Apply integration by parts.
I=exsinx−∫excosxdx
Step 3: Now apply integration by parts to the new integral:
Let
J=∫excosxdx
Choose:
u=cosx,dv=exdx
Then,
du=−sinxdx,v=ex
So,
J=excosx−∫ex(−sinx)dx
J=excosx+∫exsinxdx
J=excosx+I
Step 4: Substitute this into the expression for I.
I=exsinx−J=exsinx−(excosx+I)
I=exsinx−excosx−I
Step 5: Bring I to the left side.
2I=ex(sinx−cosx)
Step 6: Divide by 2.
I=2ex(sinx−cosx)+C
Answer: 2ex(sinx−cosx)+C
Example 5: Integrating Inverse Trigonometric Functions
Evaluate: ∫xtan−1xdx
Solution:
Step 1: Choose functions using ILATE.
Inverse trigonometric comes before algebraic, so take:
u=tan−1x,dv=xdx
Step 2: Differentiate and integrate.
du=1+x21dx,v=∫xdx=2x2
Step 3: Apply integration by parts.
∫xtan−1xdx=2x2tan−1x−∫2(1+x2)x2dx
=2x2tan−1x−21∫1+x2x2dx
Step 4: Simplify the fraction inside the integral.
Write:
1+x2x2=1+x2x2+1−1=1−1+x21
So,
∫1+x2x2dx=∫(1−1+x21)dx
=x−tan−1x
Step 5: Substitute back.
∫xtan−1xdx=2x2tan−1x−21(x−tan−1x)+C
=2x2tan−1x−2x+21tan−1x+C
Step 6: Combine the inverse tangent terms.
=21(x2+1)tan−1x−2x+C
Answer: 21(x2+1)tan−1x−2x+C
Evaluate: ∫ex(sinx+cosx)dx
Solution:
Step 1: Compare the bracket with the form f(x)+f′(x).
Choose:
f(x)=sinx
Then,
f′(x)=cosx
Step 2: So the integrand becomes exactly:
ex[f(x)+f′(x)]
Step 3: Apply the standard result:
∫ex[f(x)+f′(x)]dx=exf(x)+C
Step 4: Substitute f(x)=sinx.
=exsinx+C
Answer: exsinx+C
Evaluate: ∫(1+x)2xexdx
Solution:
Step 1: Rewrite the integral as:
∫ex((1+x)2x)dx
Step 2: Try to rewrite the bracket in the form f(x)+f′(x).
Add and subtract 1 in the numerator:
x=(x+1)−1
So,
(1+x)2x=(x+1)2x+1−1=(x+1)2x+1−(x+1)21
=x+11−(x+1)21
Step 3: Let
f(x)=x+11
Then,
f′(x)=−(x+1)21
Step 4: Therefore the integrand becomes:
ex[f(x)+f′(x)]
Step 5: Apply the theorem.
∫ex[f(x)+f′(x)]dx=exf(x)+C
=ex(x+11)+C
Answer: x+1ex+C
Evaluate: ∫ex(1−cosx1−sinx)dx
Solution:
Step 1: Simplify the trigonometric ratio.
Using half-angle identities:
1−cosx=2sin2(2x),sinx=2sin(2x)cos(2x)
So,
1−cosx1−sinx=2sin2(x/2)1−2sin(x/2)cos(x/2)
Step 2: Split the fraction.
=2sin2(x/2)1−2sin2(x/2)2sin(x/2)cos(x/2)
=21csc2(2x)−cot(2x)
Step 3: Rearrange it as f(x)+f′(x).
Let
f(x)=−cot(2x)
Then,
f′(x)=−[−csc2(2x)⋅21]=21csc2(2x)
Thus the bracket becomes exactly:
f(x)+f′(x)
Step 4: Apply the theorem.
∫ex[f(x)+f′(x)]dx=exf(x)+C
=−excot(2x)+C
Answer: −excot(x/2)+C