Introduction and Formula

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 uu and vv be differentiable functions of xx. Then the product rule gives: ddx(uv)=udvdx+vdudx\frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx}

Integrating both sides with respect to xx, we get: uv=udvdxdx+vdudxdxuv = \int u\frac{dv}{dx}dx + \int v\frac{du}{dx}dx

Rearranging, udvdxdx=uvvdudxdx\int u\frac{dv}{dx}dx = uv - \int v\frac{du}{dx}dx

In differential form, this is written more compactly as: udv=uvvdu\int u \, dv = uv - \int v \, du

If we let u=f(x)u = f(x) and dv=g(x)dxdv = g(x)dx, then v=g(x)dxv = \int 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\int f(x)g(x)dx = f(x)\int g(x)dx - \int \left( f'(x) \int g(x)dx \right)dx

In words

The integral of the product of two functions equals:

(first function) ×\times (integral of second function) - integral of [(derivative of first function) ×\times (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 uu and the second function dvdv. 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. sin1x,tan1x\sin^{-1}x, \tan^{-1}x)
  • L: Logarithmic functions (e.g. logx,lnx\log x, \ln x)
  • A: Algebraic functions (e.g. x,x2,x3+1x, x^2, x^3+1)
  • T: Trigonometric functions (e.g. sinx,cosx\sin x, \cos x)
  • E: Exponential functions (e.g. ex,axe^x, a^x)

So, in a product like xexx e^x, we choose u=xu = x and dv=exdxdv = e^x dx 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,sin1xdx,tan1xdx\int \ln x \, dx, \qquad \int \sin^{-1}x \, dx, \qquad \int \tan^{-1}x \, dx

To integrate such functions, we rewrite them as a product with 11: lnxdx=(lnx1)dx\int \ln x \, dx = \int (\ln x \cdot 1) \, dx

Then we apply Integration by Parts.

For example, in lnxdx\int \ln x \, dx:

  • choose u=lnxu = \ln x by the ILATE rule,
  • choose dv=1dxdv = 1\,dx.

This idea is very important, because it allows us to integrate functions that are not directly in standard anti-derivative form.

Integrals of the form ex[f(x)+f(x)]dx\int e^x [f(x) + f'(x)] dx

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\int e^x [f(x) + f'(x)] dx then the result is immediately: ex[f(x)+f(x)]dx=exf(x)+C\int e^x [f(x) + f'(x)] dx = e^x f(x) + C

Why is this true? Because if we differentiate exf(x)e^x f(x) using the product rule, we get: ddx(exf(x))=exf(x)+exf(x)=ex[f(x)+f(x)]\frac{d}{dx}(e^x f(x)) = e^x f(x) + e^x f'(x) = e^x [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)f(x) + f'(x) inside the bracket.

Example 1: Basic Integration by Parts

Evaluate: xcosxdx\int x \cos x \, dx

Solution: Step 1: Choose uu and dvdv using the ILATE rule. Here, xx is Algebraic and cosx\cos x is Trigonometric. So we take: u=x,dv=cosxdxu = x, \qquad dv = \cos x \, dx

Step 2: Differentiate and integrate. du=dx,v=cosxdx=sinxdu = dx, \qquad v = \int \cos x \, dx = \sin x

Step 3: Apply the formula udv=uvvdu\int u \, dv = uv - \int v \, du. xcosxdx=xsinxsinxdx\int x \cos x \, dx = x \sin x - \int \sin x \, dx

Step 4: Evaluate the remaining integral. Since sinxdx=cosx,\int \sin x \, dx = -\cos x, we get: xsinx(cosx)=xsinx+cosx+Cx \sin x - (-\cos x) = x \sin x + \cos x + C

Answer: xsinx+cosx+Cx \sin x + \cos x + C

Example 2: Integrating a Logarithmic Function

Evaluate: lnxdx\int \ln x \, dx

Solution: Step 1: Rewrite the integrand as a product: lnxdx=(lnx1)dx\int \ln x \, dx = \int (\ln x \cdot 1) \, dx

Step 2: Choose functions. By ILATE, Logarithmic comes before Algebraic, so take: u=lnx,dv=1dxu = \ln x, \qquad dv = 1\,dx

Step 3: Differentiate and integrate. du=1xdx,v=1dx=xdu = \frac{1}{x}dx, \qquad v = \int 1\,dx = x

Step 4: Apply integration by parts. lnxdx=xlnxx1xdx\int \ln x \, dx = x \ln x - \int x \cdot \frac{1}{x} \, dx

Step 5: Simplify the remaining integral. =xlnx1dx=xlnxx+C= x \ln x - \int 1 \, dx = x \ln x - x + C

Step 6: Write neatly. =x(lnx1)+C= x(\ln x - 1) + C

Answer: x(lnx1)+Cx(\ln x - 1) + C

Example 3: Repeated Integration by Parts

Evaluate: x2exdx\int x^2 e^x \, dx

Solution: Step 1: Choose: u=x2,dv=exdxu = x^2, \qquad dv = e^x dx Then, du=2xdx,v=exdu = 2x\,dx, \qquad v = e^x

Step 2: Apply integration by parts. x2exdx=x2ex2xexdx\int x^2 e^x dx = x^2 e^x - \int 2x e^x dx =x2ex2xexdx= x^2 e^x - 2\int x e^x dx

Step 3: The remaining integral still needs integration by parts. For xexdx\int x e^x dx, choose: u=x,dv=exdxu = x, \qquad dv = e^x dx Then, du=dx,v=exdu = dx, \qquad v = e^x

Step 4: Apply integration by parts again. xexdx=xexexdx=xexex\int x e^x dx = x e^x - \int e^x dx = x e^x - e^x

Step 5: Substitute back into the original expression. x2exdx=x2ex2(xexex)+C\int x^2 e^x dx = x^2 e^x - 2(x e^x - e^x) + C =x2ex2xex+2ex+C= x^2 e^x - 2x e^x + 2e^x + C

Step 6: Factor out exe^x. =ex(x22x+2)+C= e^x(x^2 - 2x + 2) + C

Answer: ex(x22x+2)+Ce^x(x^2 - 2x + 2) + C

Example 4: Cyclic Integrals

Evaluate: I=exsinxdxI = \int e^x \sin x \, dx

Solution: Step 1: Choose: u=sinx,dv=exdxu = \sin x, \qquad dv = e^x dx Then, du=cosxdx,v=exdu = \cos x\,dx, \qquad v = e^x

Step 2: Apply integration by parts. I=exsinxexcosxdxI = e^x \sin x - \int e^x \cos x \, dx

Step 3: Now apply integration by parts to the new integral: Let J=excosxdxJ = \int e^x \cos x \, dx Choose: u=cosx,dv=exdxu = \cos x, \qquad dv = e^x dx Then, du=sinxdx,v=exdu = -\sin x\,dx, \qquad v = e^x

So, J=excosxex(sinx)dxJ = e^x \cos x - \int e^x(-\sin x)dx J=excosx+exsinxdxJ = e^x \cos x + \int e^x \sin x dx J=excosx+IJ = e^x \cos x + I

Step 4: Substitute this into the expression for II. I=exsinxJ=exsinx(excosx+I)I = e^x \sin x - J = e^x \sin x - (e^x \cos x + I) I=exsinxexcosxII = e^x \sin x - e^x \cos x - I

Step 5: Bring II to the left side. 2I=ex(sinxcosx)2I = e^x(\sin x - \cos x)

Step 6: Divide by 2. I=ex(sinxcosx)2+CI = \frac{e^x(\sin x - \cos x)}{2} + C

Answer: ex(sinxcosx)2+C\frac{e^x(\sin x - \cos x)}{2} + C

Example 5: Integrating Inverse Trigonometric Functions

Evaluate: xtan1xdx\int x \tan^{-1} x \, dx

Solution: Step 1: Choose functions using ILATE. Inverse trigonometric comes before algebraic, so take: u=tan1x,dv=xdxu = \tan^{-1}x, \qquad dv = x\,dx

Step 2: Differentiate and integrate. du=11+x2dx,v=xdx=x22du = \frac{1}{1+x^2}dx, \qquad v = \int x\,dx = \frac{x^2}{2}

Step 3: Apply integration by parts. xtan1xdx=x22tan1xx22(1+x2)dx\int x\tan^{-1}x\,dx = \frac{x^2}{2}\tan^{-1}x - \int \frac{x^2}{2(1+x^2)}dx =x22tan1x12x21+x2dx= \frac{x^2}{2}\tan^{-1}x - \frac{1}{2}\int \frac{x^2}{1+x^2}dx

Step 4: Simplify the fraction inside the integral. Write: x21+x2=x2+111+x2=111+x2\frac{x^2}{1+x^2} = \frac{x^2+1-1}{1+x^2} = 1 - \frac{1}{1+x^2}

So, x21+x2dx=(111+x2)dx\int \frac{x^2}{1+x^2}dx = \int \left(1 - \frac{1}{1+x^2}\right)dx =xtan1x= x - \tan^{-1}x

Step 5: Substitute back. xtan1xdx=x22tan1x12(xtan1x)+C\int x\tan^{-1}x\,dx = \frac{x^2}{2}\tan^{-1}x - \frac{1}{2}(x - \tan^{-1}x) + C =x22tan1xx2+12tan1x+C= \frac{x^2}{2}\tan^{-1}x - \frac{x}{2} + \frac{1}{2}\tan^{-1}x + C

Step 6: Combine the inverse tangent terms. =12(x2+1)tan1xx2+C= \frac{1}{2}(x^2+1)\tan^{-1}x - \frac{x}{2} + C

Answer: 12(x2+1)tan1xx2+C\frac{1}{2}(x^2 + 1)\tan^{-1} x - \frac{x}{2} + C

Example 6: Special Form ex[f(x)+f(x)]dx\int e^x [f(x) + f'(x)] dx

Evaluate: ex(sinx+cosx)dx\int e^x (\sin x + \cos x) \, dx

Solution: Step 1: Compare the bracket with the form f(x)+f(x)f(x) + f'(x). Choose: f(x)=sinxf(x) = \sin x Then, f(x)=cosxf'(x) = \cos x

Step 2: So the integrand becomes exactly: ex[f(x)+f(x)]e^x[f(x) + f'(x)]

Step 3: Apply the standard result: ex[f(x)+f(x)]dx=exf(x)+C\int e^x[f(x) + f'(x)]dx = e^x f(x) + C

Step 4: Substitute f(x)=sinxf(x)=\sin x. =exsinx+C= e^x \sin x + C

Answer: exsinx+Ce^x \sin x + C

Example 7: Manipulating into the Special Form

Evaluate: xex(1+x)2dx\int \frac{x e^x}{(1+x)^2} dx

Solution: Step 1: Rewrite the integral as: ex(x(1+x)2)dx\int e^x \left(\frac{x}{(1+x)^2}\right) dx

Step 2: Try to rewrite the bracket in the form f(x)+f(x)f(x)+f'(x). Add and subtract 1 in the numerator: x=(x+1)1x = (x+1)-1 So, x(1+x)2=x+11(x+1)2=x+1(x+1)21(x+1)2\frac{x}{(1+x)^2} = \frac{x+1-1}{(x+1)^2} = \frac{x+1}{(x+1)^2} - \frac{1}{(x+1)^2} =1x+11(x+1)2= \frac{1}{x+1} - \frac{1}{(x+1)^2}

Step 3: Let f(x)=1x+1f(x)=\frac{1}{x+1} Then, f(x)=1(x+1)2f'(x)= -\frac{1}{(x+1)^2}

Step 4: Therefore the integrand becomes: ex[f(x)+f(x)]e^x[f(x)+f'(x)]

Step 5: Apply the theorem. ex[f(x)+f(x)]dx=exf(x)+C\int e^x[f(x)+f'(x)]dx = e^x f(x) + C =ex(1x+1)+C= e^x\left(\frac{1}{x+1}\right) + C

Answer: exx+1+C\frac{e^x}{x+1} + C

Example 8: Trigonometric Manipulation into Special Form

Evaluate: ex(1sinx1cosx)dx\int e^x \left( \frac{1 - \sin x}{1 - \cos x} \right) dx

Solution: Step 1: Simplify the trigonometric ratio. Using half-angle identities: 1cosx=2sin2(x2),sinx=2sin(x2)cos(x2)1-\cos x = 2\sin^2\left(\frac{x}{2}\right), \qquad \sin x = 2\sin\left(\frac{x}{2}\right)\cos\left(\frac{x}{2}\right)

So, 1sinx1cosx=12sin(x/2)cos(x/2)2sin2(x/2)\frac{1-\sin x}{1-\cos x} = \frac{1-2\sin(x/2)\cos(x/2)}{2\sin^2(x/2)}

Step 2: Split the fraction. =12sin2(x/2)2sin(x/2)cos(x/2)2sin2(x/2)= \frac{1}{2\sin^2(x/2)} - \frac{2\sin(x/2)\cos(x/2)}{2\sin^2(x/2)} =12csc2(x2)cot(x2)= \frac{1}{2}\csc^2\left(\frac{x}{2}\right) - \cot\left(\frac{x}{2}\right)

Step 3: Rearrange it as f(x)+f(x)f(x)+f'(x). Let f(x)=cot(x2)f(x) = -\cot\left(\frac{x}{2}\right) Then, f(x)=[csc2(x2)12]=12csc2(x2)f'(x) = -\left[-\csc^2\left(\frac{x}{2}\right)\cdot \frac{1}{2}\right] = \frac{1}{2}\csc^2\left(\frac{x}{2}\right)

Thus the bracket becomes exactly: f(x)+f(x)f(x)+f'(x)

Step 4: Apply the theorem. ex[f(x)+f(x)]dx=exf(x)+C\int e^x[f(x)+f'(x)]dx = e^x f(x) + C =excot(x2)+C= -e^x \cot\left(\frac{x}{2}\right) + C

Answer: excot(x/2)+C-e^x \cot(x/2) + C