MatheramaMatherama
← Definite Integration
Definite Integration·Section 6·10 min read

Integration by Parts in Definite Integrals

In indefinite integration, integration by parts reverses the Product Rule of differentiation, allowing us to integrate products of functions such as xexx e^x, x2sin⁡xx^2 \sin x, ln⁡x\ln x, tan⁡−1x\tan^{-1} x, and exsin⁡xe^x \sin x.

When evaluating a definite integral by parts over [a,b][a, b], we do not need to find the complete indefinite integral first and plug in the limits at the very end. Instead, we can evaluate the "already integrated" product term at the boundaries aa and bb immediately, while simplifying the remaining integral!


1. The Integration by Parts Formula§

Form 1: Product of First and Second Functions§

Suppose we want to integrate the product of two functions f(x)f(x) (chosen as the First Function, to be differentiated) and g(x)g(x) (chosen as the Second Function, to be integrated) over the interval [a,b][a, b].

Let G(x)=∫g(x) dxG(x) = \int g(x) \, dx denote an antiderivative of the second function g(x)g(x), so that G′(x)=g(x)G'(x) = g(x).

By the Product Rule of differentiation, the derivative of the product f(x) G(x)f(x) \, G(x) is:

ddx[f(x) G(x)]=f(x) G′(x)+f′(x) G(x)=f(x) g(x)+f′(x) G(x)\frac{d}{dx} \Big[ f(x) \, G(x) \Big] = f(x) \, G'(x) + f'(x) \, G(x) = f(x) \, g(x) + f'(x) \, G(x)

Assuming f′(x)f'(x) and g(x)g(x) are continuous on [a,b][a, b], we integrate both sides with respect to xx from aa to bb:

∫abddx[f(x) G(x)]dx=∫abf(x) g(x) dx+∫abf′(x) G(x) dx\int_a^b \frac{d}{dx} \Big[ f(x) \, G(x) \Big] dx = \int_a^b f(x) \, g(x) \, dx + \int_a^b f'(x) \, G(x) \, dx

By the First Fundamental Theorem of Calculus, the left-hand side is simply [f(x) G(x)]ab\Big[ f(x) \, G(x) \Big]_a^b. Rearranging for ∫abf(x) g(x) dx\int_a^b f(x) \, g(x) \, dx gives our fundamental formula:

[!IMPORTANT] Integration by Parts for Definite Integrals: If f(x)f(x) has a continuous derivative f′(x)f'(x) on [a,b][a, b] and g(x)g(x) is continuous on [a,b][a, b] with antiderivative ∫g(x) dx\int g(x) \, dx, then:

∫abf(x) g(x) dx=[f(x)∫g(x) dx]ab−∫ab(f′(x)∫g(x) dx)dx\int_a^b f(x) \, g(x) \, dx = \left[ f(x) \int g(x) \, dx \right]_a^b - \int_a^b \left( f'(x) \int g(x) \, dx \right) dx


Form 2: Compact Differential Notation§

If we write u=f(x)u = f(x) and dv=g(x) dxdv = g(x) \, dx (so that du=f′(x) dxdu = f'(x) \, dx and v=∫g(x) dxv = \int g(x) \, dx), the formula takes the compact form:

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

or equivalently, writing v=G(x)v = G(x) and v′(x)=g(x)v'(x) = g(x):

∫abu(x) v′(x) dx=[u(x) v(x)]ab−∫abu′(x) v(x) dx\int_a^b u(x) \, v'(x) \, dx = \Big[ u(x) \, v(x) \Big]_a^b - \int_a^b u'(x) \, v(x) \, dx

Choosing the First Function: The ILATE Priority Rule§

To make the new integral ∫abf′(x)(∫g(x) dx)dx\int_a^b f'(x) \left(\int g(x)\,dx\right) dx simpler than the original integral, we choose the First Function f(x)f(x) (the one we differentiate) according to the ILATE priority order:

  1. I — Inverse Trigonometric functions (sin⁡−1x,tan⁡−1x,…\sin^{-1} x, \tan^{-1} x, \dots)
  2. L — Logarithmic functions (ln⁡x,log⁡ax,…\ln x, \log_a x, \dots)
  3. A — Algebraic functions (x,x2,3x+1,…x, x^2, 3x + 1, \dots)
  4. T — Trigonometric functions (sin⁡x,cos⁡x,sec⁡2x,…\sin x, \cos x, \sec^2 x, \dots)
  5. E — Exponential functions (ex,ax,…e^x, a^x, \dots)

[!TIP] Why Boundary Terms Often Vanish in Definite Integrals: In definite integration by parts, Always evaluate the boundary term [u(x) v(x)]ab=u(b)v(b)−u(a)v(a)\big[u(x) \, v(x)\big]_a^b = u(b)v(b) - u(a)v(a) right away! Very often, at x=0x = 0, x=1x = 1, or x=π2x = \frac{\pi}{2}, one or both of u(b)v(b)u(b)v(b) and u(a)v(a)u(a)v(a) equal 00, simplifying the algebra dramatically.


2. Core Examples Across All Standard Patterns§


Example 1: Product of Algebraic and Exponential Functions§

Evaluate:

∫01xex dx\int_0^1 x e^x \, dx

Solution:

Following ILATE, we choose the algebraic factor f(x)=xf(x) = x as the first function and the exponential factor g(x)=exg(x) = e^x as the second function:

  • f(x)=x  ⟹  f′(x)=1f(x) = x \implies f'(x) = 1
  • g(x)=ex  ⟹  ∫g(x) dx=exg(x) = e^x \implies \int g(x) \, dx = e^x

Applying the integration by parts formula on [0,1][0, 1]:

∫01xex dx=[xex]01−∫01(1)⋅ex dx\int_0^1 x e^x \, dx = \Big[ x e^x \Big]_0^1 - \int_0^1 (1) \cdot e^x \, dx

Evaluating the boundary term [xex]01=1⋅e1−0⋅e0=e\big[x e^x\big]_0^1 = 1\cdot e^1 - 0\cdot e^0 = e and the remaining integral:

∫01xex dx=(e−0)−[ex]01=e−(e1−e0)=e−(e−1)=1\int_0^1 x e^x \, dx = (e - 0) - \Big[ e^x \Big]_0^1 = e - (e^1 - e^0) = e - (e - 1) = 1

Example 2: Logarithmic Function Alone (Taking Unity as the Second Function)§

Evaluate:

∫1eln⁡x dx\int_1^e \ln x \, dx

Solution:

When integrating a single logarithmic or inverse trigonometric function, we write the integrand as ln⁡x⋅1\ln x \cdot 1, choosing f(x)=ln⁡xf(x) = \ln x as the first function and g(x)=1g(x) = 1 as the second function:

  • f(x)=ln⁡x  ⟹  f′(x)=1xf(x) = \ln x \implies f'(x) = \frac{1}{x}
  • g(x)=1  ⟹  ∫g(x) dx=xg(x) = 1 \implies \int g(x) \, dx = x

Applying integration by parts on [1,e][1, e]:

∫1eln⁡x dx=[xln⁡x]1e−∫1e(1x)⋅x dx\int_1^e \ln x \, dx = \Big[ x \ln x \Big]_1^e - \int_1^e \left(\frac{1}{x}\right) \cdot x \, dx

Evaluating the boundary term and simplifying 1x⋅x=1\frac{1}{x} \cdot x = 1:

∫1eln⁡x dx=(eln⁡e−1ln⁡1)−∫1e1 dx=(e⋅1−0)−[x]1e\int_1^e \ln x \, dx = \big( e \ln e - 1 \ln 1 \big) - \int_1^e 1 \, dx = (e \cdot 1 - 0) - \Big[ x \Big]_1^e =e−(e−1)=1= e - (e - 1) = 1

Example 3: Repeated Integration by Parts§

Evaluate:

∫0π/2x2sin⁡x dx\int_0^{\pi/2} x^2 \sin x \, dx

Solution:

We choose f(x)=x2f(x) = x^2 (algebraic) as the first function and g(x)=sin⁡xg(x) = \sin x (trigonometric) as the second function. Since ∫sin⁡x dx=−cos⁡x\int \sin x \, dx = -\cos x:

∫0π/2x2sin⁡x dx=[−x2cos⁡x]0π/2−∫0π/2(2x)(−cos⁡x) dx\int_0^{\pi/2} x^2 \sin x \, dx = \Big[ -x^2 \cos x \Big]_0^{\pi/2} - \int_0^{\pi/2} (2x)(-\cos x) \, dx

Look at the boundary term [−x2cos⁡x]0π/2\big[-x^2 \cos x\big]_0^{\pi/2}: at x=π2x = \frac{\pi}{2}, cos⁡π2=0\cos\frac{\pi}{2} = 0, and at x=0x = 0, x2=0x^2 = 0! Thus, the first boundary term vanishes completely:

∫0π/2x2sin⁡x dx=(0−0)+2∫0π/2xcos⁡x dx\int_0^{\pi/2} x^2 \sin x \, dx = (0 - 0) + 2 \int_0^{\pi/2} x \cos x \, dx

Now we apply integration by parts a second time to ∫0π/2xcos⁡x dx\int_0^{\pi/2} x \cos x \, dx with u=xu = x and dv=cos⁡x dxdv = \cos x \, dx (v=sin⁡xv = \sin x):

∫0π/2xcos⁡x dx=[xsin⁡x]0π/2−∫0π/2(1)⋅sin⁡x dx\int_0^{\pi/2} x \cos x \, dx = \Big[ x \sin x \Big]_0^{\pi/2} - \int_0^{\pi/2} (1) \cdot \sin x \, dx =(π2⋅1−0)−[−cos⁡x]0π/2=π2−(0−(−1))=π2−1= \left( \frac{\pi}{2} \cdot 1 - 0 \right) - \Big[ -\cos x \Big]_0^{\pi/2} = \frac{\pi}{2} - (0 - (-1)) = \frac{\pi}{2} - 1

Multiplying by 22 gives the final result:

∫0π/2x2sin⁡x dx=2(π2−1)=π−2\int_0^{\pi/2} x^2 \sin x \, dx = 2\left( \frac{\pi}{2} - 1 \right) = \pi - 2

Example 4: Inverse Trigonometric Function§

Evaluate:

∫01tan⁡−1x dx\int_0^1 \tan^{-1} x \, dx

Solution:

Writing the integrand as tan⁡−1x⋅1\tan^{-1} x \cdot 1, we choose f(x)=tan⁡−1xf(x) = \tan^{-1} x as the first function and g(x)=1g(x) = 1 as the second function:

  • f(x)=tan⁡−1x  ⟹  f′(x)=11+x2f(x) = \tan^{-1} x \implies f'(x) = \frac{1}{1 + x^2}
  • g(x)=1  ⟹  ∫g(x) dx=xg(x) = 1 \implies \int g(x) \, dx = x

Applying integration by parts on [0,1][0, 1]:

∫01tan⁡−1x dx=[xtan⁡−1x]01−∫01x1+x2 dx\int_0^1 \tan^{-1} x \, dx = \Big[ x \tan^{-1} x \Big]_0^1 - \int_0^1 \frac{x}{1 + x^2} \, dx

Boundary Term:

[xtan⁡−1x]01=1⋅tan⁡−1(1)−0⋅tan⁡−1(0)=π4\Big[ x \tan^{-1} x \Big]_0^1 = 1 \cdot \tan^{-1}(1) - 0 \cdot \tan^{-1}(0) = \frac{\pi}{4}

Remaining Integral: Notice that the numerator xx is half the derivative of the denominator 1+x21 + x^2:

∫01x1+x2 dx=12∫012x1+x2 dx=[12ln⁡(1+x2)]01=12ln⁡2−0=12ln⁡2\int_0^1 \frac{x}{1 + x^2} \, dx = \frac{1}{2} \int_0^1 \frac{2x}{1 + x^2} \, dx = \left[ \frac{1}{2} \ln(1 + x^2) \right]_0^1 = \frac{1}{2}\ln 2 - 0 = \frac{1}{2}\ln 2

Combining both parts gives:

∫01tan⁡−1x dx=π4−12ln⁡2\int_0^1 \tan^{-1} x \, dx = \frac{\pi}{4} - \frac{1}{2}\ln 2

Example 5: The Classic Exponential Cancellation Pattern§

Recall from indefinite integration that when we apply integration by parts to ∫exf(x) dx\int e^x f(x) \, dx (keeping f(x)f(x) as the first function and exe^x as the second function), we obtain:

∫abexf(x) dx=[exf(x)]ab−∫abexf′(x) dx\int_a^b e^x f(x) \, dx = \Big[ e^x f(x) \Big]_a^b - \int_a^b e^x f'(x) \, dx

Adding ∫abexf′(x) dx\int_a^b e^x f'(x) \, dx to both sides yields the famous identity:

∫abex[f(x)+f′(x)] dx=[exf(x)]ab=ebf(b)−eaf(a)\int_a^b e^x \big[ f(x) + f'(x) \big] \, dx = \Big[ e^x f(x) \Big]_a^b = e^b f(b) - e^a f(a)

Evaluate:

∫0π/2ex(1+sin⁡x1+cos⁡x)dx\int_0^{\pi/2} e^x \left( \frac{1 + \sin x}{1 + \cos x} \right) dx

Solution:

Using the half-angle identities 1+cos⁡x=2cos⁡2(x2)1 + \cos x = 2\cos^2\left(\frac{x}{2}\right) and sin⁡x=2sin⁡(x2)cos⁡(x2)\sin x = 2\sin\left(\frac{x}{2}\right)\cos\left(\frac{x}{2}\right), we split the fraction inside the parentheses:

1+sin⁡x1+cos⁡x=1+2sin⁡(x2)cos⁡(x2)2cos⁡2(x2)=12sec⁡2(x2)+tan⁡(x2)\frac{1 + \sin x}{1 + \cos x} = \frac{1 + 2\sin\left(\frac{x}{2}\right)\cos\left(\frac{x}{2}\right)}{2\cos^2\left(\frac{x}{2}\right)} = \frac{1}{2}\sec^2\left(\frac{x}{2}\right) + \tan\left(\frac{x}{2}\right)

Notice that if f(x)=tan⁡(x2)f(x) = \tan\left(\frac{x}{2}\right), its derivative is f′(x)=12sec⁡2(x2)f'(x) = \frac{1}{2}\sec^2\left(\frac{x}{2}\right), which is continuous on [0,π2]\left[0, \frac{\pi}{2}\right]!

Let us verify the cancellation directly by integrating ∫0π/2extan⁡(x2)dx\int_0^{\pi/2} e^x \tan\left(\frac{x}{2}\right) dx by parts (with first function tan⁡(x2)\tan\left(\frac{x}{2}\right) and second function exe^x):

∫0π/2extan⁡(x2)dx=[extan⁡(x2)]0π/2−∫0π/2ex⋅12sec⁡2(x2)dx\int_0^{\pi/2} e^x \tan\left(\frac{x}{2}\right) dx = \left[ e^x \tan\left(\frac{x}{2}\right) \right]_0^{\pi/2} - \int_0^{\pi/2} e^x \cdot \frac{1}{2}\sec^2\left(\frac{x}{2}\right) dx

Substituting this into our original integral cancels the 12sec⁡2(x2)\frac{1}{2}\sec^2\left(\frac{x}{2}\right) integral completely:

∫0π/2ex(tan⁡(x2)+12sec⁡2(x2))dx=[extan⁡(x2)]0π/2\int_0^{\pi/2} e^x \left( \tan\left(\frac{x}{2}\right) + \frac{1}{2}\sec^2\left(\frac{x}{2}\right) \right) dx = \left[ e^x \tan\left(\frac{x}{2}\right) \right]_0^{\pi/2} =eπ/2tan⁡(π4)−e0tan⁡(0)=eπ/2(1)−1(0)=eπ/2= e^{\pi/2} \tan\left(\frac{\pi}{4}\right) - e^0 \tan(0) = e^{\pi/2}(1) - 1(0) = e^{\pi/2}

Miscellaneous Examples§


Example 1§

Evaluate:

∫01x2e−x dx\int_0^1 x^2 e^{-x} \, dx

Solution:

Choosing f(x)=x2f(x) = x^2 as the first function and g(x)=e−xg(x) = e^{-x} as the second function (with ∫e−x dx=−e−x\int e^{-x} \, dx = -e^{-x}):

∫01x2e−x dx=[−x2e−x]01−∫01(2x)(−e−x) dx=−e−1+2∫01xe−x dx\int_0^1 x^2 e^{-x} \, dx = \Big[ -x^2 e^{-x} \Big]_0^1 - \int_0^1 (2x)(-e^{-x}) \, dx = -e^{-1} + 2 \int_0^1 x e^{-x} \, dx

Applying integration by parts a second time to ∫01xe−x dx\int_0^1 x e^{-x} \, dx:

∫01xe−x dx=[−xe−x]01−∫01(1)(−e−x) dx=−e−1+∫01e−x dx\int_0^1 x e^{-x} \, dx = \Big[ -x e^{-x} \Big]_0^1 - \int_0^1 (1)(-e^{-x}) \, dx = -e^{-1} + \int_0^1 e^{-x} \, dx =−e−1+[−e−x]01=−e−1+(−e−1+1)=1−2e= -e^{-1} + \Big[ -e^{-x} \Big]_0^1 = -e^{-1} + (-e^{-1} + 1) = 1 - \frac{2}{e}

Substituting this back into our first equation gives:

∫01x2e−x dx=−1e+2(1−2e)=2−5e\int_0^1 x^2 e^{-x} \, dx = -\frac{1}{e} + 2\left( 1 - \frac{2}{e} \right) = 2 - \frac{5}{e}

Example 2§

Evaluate:

∫01xtan⁡−1x dx\int_0^1 x \tan^{-1} x \, dx

Solution:

By the ILATE priority order, we choose the inverse trigonometric function f(x)=tan⁡−1xf(x) = \tan^{-1} x as the first function and the algebraic function g(x)=xg(x) = x as the second function:

  • f(x)=tan⁡−1x  ⟹  f′(x)=11+x2f(x) = \tan^{-1} x \implies f'(x) = \frac{1}{1 + x^2}
  • g(x)=x  ⟹  ∫g(x) dx=x22g(x) = x \implies \int g(x) \, dx = \frac{x^2}{2}

Applying integration by parts on [0,1][0, 1]:

∫01xtan⁡−1x dx=[x22tan⁡−1x]01−∫01x22(1+x2) dx\int_0^1 x \tan^{-1} x \, dx = \left[ \frac{x^2}{2} \tan^{-1} x \right]_0^1 - \int_0^1 \frac{x^2}{2(1 + x^2)} \, dx

Boundary Term:

[x22tan⁡−1x]01=12tan⁡−1(1)−0=π8\left[ \frac{x^2}{2} \tan^{-1} x \right]_0^1 = \frac{1}{2}\tan^{-1}(1) - 0 = \frac{\pi}{8}

Remaining Integral: We rewrite x2=(1+x2)−1x^2 = (1 + x^2) - 1:

12∫01(1+x2)−11+x2 dx=12∫01(1−11+x2)dx=12[x−tan⁡−1x]01=12(1−π4)=12−π8\frac{1}{2} \int_0^1 \frac{(1 + x^2) - 1}{1 + x^2} \, dx = \frac{1}{2} \int_0^1 \left( 1 - \frac{1}{1 + x^2} \right) dx = \frac{1}{2} \Big[ x - \tan^{-1} x \Big]_0^1 = \frac{1}{2}\left( 1 - \frac{\pi}{4} \right) = \frac{1}{2} - \frac{\pi}{8}

Subtracting the second part from the boundary term:

∫01xtan⁡−1x dx=π8−(12−π8)=π4−12\int_0^1 x \tan^{-1} x \, dx = \frac{\pi}{8} - \left( \frac{1}{2} - \frac{\pi}{8} \right) = \frac{\pi}{4} - \frac{1}{2}

Example 3§

Evaluate:

∫01/2xsin⁡−1x1−x2 dx\int_0^{1/2} \frac{x \sin^{-1} x}{\sqrt{1 - x^2}} \, dx

Solution:

Notice that x1−x2\frac{x}{\sqrt{1 - x^2}} is easy to integrate directly because ddx(−1−x2)=x1−x2\frac{d}{dx}\left(-\sqrt{1 - x^2}\right) = \frac{x}{\sqrt{1 - x^2}}!

We therefore choose f(x)=sin⁡−1xf(x) = \sin^{-1} x as the first function and g(x)=x1−x2g(x) = \frac{x}{\sqrt{1 - x^2}} as the second function:

  • f(x)=sin⁡−1x  ⟹  f′(x)=11−x2f(x) = \sin^{-1} x \implies f'(x) = \frac{1}{\sqrt{1 - x^2}}
  • g(x)=x1−x2  ⟹  ∫g(x) dx=−1−x2g(x) = \frac{x}{\sqrt{1 - x^2}} \implies \int g(x) \, dx = -\sqrt{1 - x^2}

Applying integration by parts on [0,12]\left[0, \frac{1}{2}\right]:

∫01/2xsin⁡−1x1−x2 dx=[−1−x2sin⁡−1x]01/2−∫01/2(11−x2)(−1−x2)dx\int_0^{1/2} \frac{x \sin^{-1} x}{\sqrt{1 - x^2}} \, dx = \Big[ -\sqrt{1 - x^2} \sin^{-1} x \Big]_0^{1/2} - \int_0^{1/2} \left( \frac{1}{\sqrt{1 - x^2}} \right) \left( -\sqrt{1 - x^2} \right) dx

Look how cleanly 1−x2\sqrt{1 - x^2} cancels in the remaining integral!

=(−1−14sin⁡−1(12)−0)+∫01/21 dx= \left( -\sqrt{1 - \frac{1}{4}} \sin^{-1}\left(\frac{1}{2}\right) - 0 \right) + \int_0^{1/2} 1 \, dx =−32⋅π6+[x]01/2=12−3π12= -\frac{\sqrt{3}}{2} \cdot \frac{\pi}{6} + \Big[ x \Big]_0^{1/2} = \frac{1}{2} - \frac{\sqrt{3}\pi}{12}

Example 4§

Evaluate:

∫0π/2exsin⁡x dx\int_0^{\pi/2} e^x \sin x \, dx

Solution:

Let I=∫0π/2exsin⁡x dxI = \int_0^{\pi/2} e^x \sin x \, dx. When an exponential function multiplies a sine or cosine function, two applications of integration by parts bring us back to the original integral II.

First Integration by Parts: Choose f(x)=sin⁡xf(x) = \sin x and g(x)=exg(x) = e^x:

I=[exsin⁡x]0π/2−∫0π/2excos⁡x dx=(eπ/2⋅1−e0⋅0)−∫0π/2excos⁡x dxI = \Big[ e^x \sin x \Big]_0^{\pi/2} - \int_0^{\pi/2} e^x \cos x \, dx = \big( e^{\pi/2} \cdot 1 - e^0 \cdot 0 \big) - \int_0^{\pi/2} e^x \cos x \, dx I=eπ/2−∫0π/2excos⁡x dxI = e^{\pi/2} - \int_0^{\pi/2} e^x \cos x \, dx

Second Integration by Parts: In ∫0π/2excos⁡x dx\int_0^{\pi/2} e^x \cos x \, dx, choose u=cos⁡xu = \cos x and dv=ex dxdv = e^x \, dx:

∫0π/2excos⁡x dx=[excos⁡x]0π/2−∫0π/2ex(−sin⁡x) dx=(eπ/2⋅0−e0⋅1)+∫0π/2exsin⁡x dx\int_0^{\pi/2} e^x \cos x \, dx = \Big[ e^x \cos x \Big]_0^{\pi/2} - \int_0^{\pi/2} e^x (-\sin x) \, dx = \big( e^{\pi/2} \cdot 0 - e^0 \cdot 1 \big) + \int_0^{\pi/2} e^x \sin x \, dx =−1+I= -1 + I

Substituting this back into our expression for II:

I=eπ/2−(−1+I)=eπ/2+1−II = e^{\pi/2} - (-1 + I) = e^{\pi/2} + 1 - I

Adding II to both sides gives 2I=eπ/2+12I = e^{\pi/2} + 1, so:

∫0π/2exsin⁡x dx=eπ/2+12\int_0^{\pi/2} e^x \sin x \, dx = \frac{e^{\pi/2} + 1}{2}

Example 5§

Evaluate:

∫1e(ln⁡x)2 dx\int_1^e (\ln x)^2 \, dx

Solution:

Choosing f(x)=(ln⁡x)2f(x) = (\ln x)^2 as the first function and g(x)=1g(x) = 1 as the second function:

  • f(x)=(ln⁡x)2  ⟹  f′(x)=2ln⁡x⋅1xf(x) = (\ln x)^2 \implies f'(x) = 2\ln x \cdot \frac{1}{x}
  • g(x)=1  ⟹  ∫g(x) dx=xg(x) = 1 \implies \int g(x) \, dx = x

Applying integration by parts on [1,e][1, e]:

∫1e(ln⁡x)2 dx=[x(ln⁡x)2]1e−∫1e(2ln⁡xx)x dx\int_1^e (\ln x)^2 \, dx = \Big[ x (\ln x)^2 \Big]_1^e - \int_1^e \left( \frac{2\ln x}{x} \right) x \, dx =(e⋅12−1⋅02)−2∫1eln⁡x dx=e−2∫1eln⁡x dx= \big( e \cdot 1^2 - 1 \cdot 0^2 \big) - 2 \int_1^e \ln x \, dx = e - 2 \int_1^e \ln x \, dx

From Example 2 earlier, we already found that ∫1eln⁡x dx=1\int_1^e \ln x \, dx = 1. Therefore:

∫1e(ln⁡x)2 dx=e−2(1)=e−2\int_1^e (\ln x)^2 \, dx = e - 2(1) = e - 2

Example 6§

Evaluate:

∫12ex(x−1)x2 dx\int_1^2 \frac{e^x (x - 1)}{x^2} \, dx

Solution:

Splitting the fraction x−1x2\frac{x - 1}{x^2} into two terms reveals a familiar pattern:

x−1x2=1x−1x2\frac{x - 1}{x^2} = \frac{1}{x} - \frac{1}{x^2}

Notice that if f(x)=1xf(x) = \frac{1}{x}, then f′(x)=−1x2f'(x) = -\frac{1}{x^2}, which is continuous on [1,2][1, 2]! Thus, the integrand has the exact form ex[f(x)+f′(x)]e^x \big[ f(x) + f'(x) \big]:

∫12ex(1x−1x2)dx=[exx]12\int_1^2 e^x \left( \frac{1}{x} - \frac{1}{x^2} \right) dx = \left[ \frac{e^x}{x} \right]_1^2

Evaluating at x=2x = 2 and x=1x = 1:

=e22−e11=e2−2e2= \frac{e^2}{2} - \frac{e^1}{1} = \frac{e^2 - 2e}{2}

Example 7§

Evaluate:

∫0π/4xsec⁡2x dx\int_0^{\pi/4} x \sec^2 x \, dx

Solution:

Following ILATE, we choose f(x)=xf(x) = x (algebraic) as the first function and g(x)=sec⁡2xg(x) = \sec^2 x (trigonometric) as the second function, since ∫sec⁡2x dx=tan⁡x\int \sec^2 x \, dx = \tan x:

  • f(x)=x  ⟹  f′(x)=1f(x) = x \implies f'(x) = 1
  • g(x)=sec⁡2x  ⟹  ∫g(x) dx=tan⁡xg(x) = \sec^2 x \implies \int g(x) \, dx = \tan x

Applying integration by parts on [0,π4]\left[0, \frac{\pi}{4}\right]:

∫0π/4xsec⁡2x dx=[xtan⁡x]0π/4−∫0π/4(1)⋅tan⁡x dx\int_0^{\pi/4} x \sec^2 x \, dx = \Big[ x \tan x \Big]_0^{\pi/4} - \int_0^{\pi/4} (1) \cdot \tan x \, dx

Evaluating the boundary term and using ∫tan⁡x dx=ln⁡∣sec⁡x∣\int \tan x \, dx = \ln|\sec x|:

=(π4tan⁡π4−0)−[ln⁡(sec⁡x)]0π/4=π4−(ln⁡2−ln⁡1)=π4−12ln⁡2= \left( \frac{\pi}{4} \tan\frac{\pi}{4} - 0 \right) - \Big[ \ln(\sec x) \Big]_0^{\pi/4} = \frac{\pi}{4} - \big( \ln\sqrt{2} - \ln 1 \big) = \frac{\pi}{4} - \frac{1}{2}\ln 2

Example 8§

Evaluate:

∫01ln⁡(1+x)(1+x)2 dx\int_0^1 \frac{\ln(1 + x)}{(1 + x)^2} \, dx

Solution:

Here we have a product of ln⁡(1+x)\ln(1 + x) and (1+x)−2(1 + x)^{-2}. By ILATE, we choose the logarithmic factor f(x)=ln⁡(1+x)f(x) = \ln(1 + x) as the first function and g(x)=(1+x)−2g(x) = (1 + x)^{-2} as the second function:

  • f(x)=ln⁡(1+x)  ⟹  f′(x)=11+xf(x) = \ln(1 + x) \implies f'(x) = \frac{1}{1 + x}
  • g(x)=1(1+x)2  ⟹  ∫g(x) dx=−11+xg(x) = \frac{1}{(1 + x)^2} \implies \int g(x) \, dx = -\frac{1}{1 + x}

Applying integration by parts on [0,1][0, 1]:

∫01ln⁡(1+x)(1+x)2 dx=[−ln⁡(1+x)1+x]01−∫01(11+x)(−11+x)dx\int_0^1 \frac{\ln(1 + x)}{(1 + x)^2} \, dx = \left[ -\frac{\ln(1 + x)}{1 + x} \right]_0^1 - \int_0^1 \left( \frac{1}{1 + x} \right) \left( -\frac{1}{1 + x} \right) dx =(−ln⁡22−0)+∫011(1+x)2 dx= \left( -\frac{\ln 2}{2} - 0 \right) + \int_0^1 \frac{1}{(1 + x)^2} \, dx

Evaluating the remaining integral ∫01(1+x)−2 dx=[−11+x]01\int_0^1 (1 + x)^{-2} \, dx = \left[ -\frac{1}{1 + x} \right]_0^1:

=−12ln⁡2+(−12−(−1))=12−12ln⁡2= -\frac{1}{2}\ln 2 + \left( -\frac{1}{2} - (-1) \right) = \frac{1}{2} - \frac{1}{2}\ln 2

Summary§

Concept Formula / Rule Key Insight
Definite Integration by Parts ∫abf(x)g(x) dx=[f(x)∫g(x) dx]ab−∫ab(f′(x)∫g(x) dx)dx\int_a^b f(x) g(x) \, dx = \left[ f(x) \int g(x) \, dx \right]_a^b - \int_a^b \left( f'(x) \int g(x) \, dx \right) dx Evaluate the first product term at the limits aa and bb immediately instead of waiting until the end.
Compact Differential Form ∫abu dv=[u v]ab−∫abv du\int_a^b u \, dv = [u \, v]_a^b - \int_a^b v \, du Reverses the Product Rule d(uv)=u dv+v dud(uv) = u\,dv + v\,du over [a,b][a, b].
ILATE Selection Order Inverse Trig →\to Logarithmic →\to Algebraic →\to Trigonometric →\to Exponential Choose f(x)f(x) earlier in ILATE so differentiating f(x)f(x) simplifies the remaining integral.
Exponential Cancellation ∫abex[f(x)+f′(x)] dx=[exf(x)]ab\int_a^b e^x \big[ f(x) + f'(x) \big] \, dx = \big[ e^x f(x) \big]_a^b Holds whenever f(x)f(x) and f′(x)f'(x) are continuous across the entire interval [a,b][a, b].
Section 6 of 15 · Definite Integration

Mark this section complete when you have worked through its proofs.