MatheramaMatherama
← Indefinite Integration
Indefinite Integration·Section 6·9 min read

Integration by Parts

In differential calculus, the product rule provides a formula for the derivative of a product of two differentiable functions u(x)u(x) and v(x)v(x):

ddx[u(x)v(x)]=u(x)v′(x)+u′(x)v(x)\frac{d}{dx}[u(x)v(x)] = u(x)v'(x) + u'(x)v(x)

Integration by parts is simply the integral counterpart of this product rule.

Integrating both sides with respect to xx:

u(x)v(x)=∫u(x)v′(x) dx+∫u′(x)v(x) dxu(x)v(x) = \int u(x)v'(x)\,dx + \int u'(x)v(x)\,dx

Rearranging the terms yields:

∫u(x)v′(x) dx=u(x)v(x)−∫u′(x)v(x) dx\int u(x)v'(x)\,dx = u(x)v(x) - \int u'(x)v(x)\,dx

The Product Formula for Two Functions§

Suppose we are given an integrand that is a product of two functions, f(x)g(x)f(x)g(x).

If we identify u(x)=f(x)u(x) = f(x) and v′(x)=g(x)v'(x) = g(x) (so that v(x)=∫g(x) dxv(x) = \int g(x)\,dx), the formula takes the practical form:

∫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

Because multiplication of real functions is commutative, f(x)g(x)=g(x)f(x)f(x)g(x) = g(x)f(x). We could equally well assign the roles in reverse:

∫f(x)g(x) dx=g(x)∫f(x) dx−∫(g′(x)∫f(x) dx)dx\int f(x)g(x)\,dx = g(x)\int f(x)\,dx - \int \left( g'(x) \int f(x)\,dx \right) dx

At first glance, this identity appears complicated: it replaces one unsolved integral with another integral.

However, the power of integration by parts lies in the fact that differentiation often simplifies a function (for example, lowering the power of a polynomial or converting an inverse trigonometric function into an algebraic fraction). If chosen strategically, the new integral on the right-hand side is substantially easier to evaluate than the original one.


Choosing Function I and Function II§

To apply the formula systematically, we adopt a standard naming convention:

  • Function I (First Function): The function chosen to be differentiated.
  • Function II (Second Function): The function chosen to be integrated.

In words, the formula reads:

∫(I⋅II) dx=I∫II dx−∫(ddx(I)⋅∫II dx)dx\int (\text{I} \cdot \text{II})\,dx = \text{I} \int \text{II}\,dx - \int \left( \frac{d}{dx}(\text{I}) \cdot \int \text{II}\,dx \right) dx Integral of Product=(First Function)×(Integral of Second)−∫[(Derivative of First)×(Integral of Second)] dx\text{Integral of Product} = (\text{First Function}) \times (\text{Integral of Second}) - \int [(\text{Derivative of First}) \times (\text{Integral of Second})]\,dx

The Logic Behind the Choice§

The success of integration by parts hinges entirely on three practical conditions:

  1. The derivative of Function I must be simpler than Function I itself. For example, algebraic powers xnx^n reduce to nxn−1n x^{n-1}, while functions like ln⁡x\ln x and tan⁡−1x\tan^{-1} x lose their transcendental character and become simple rational functions.
  2. Function II must be integrable using known standard integration formulas. If we cannot integrate Function II in closed form, the formula cannot even get started.
  3. The resulting product (ddx(I)⋅∫II dx)\left( \frac{d}{dx}(\text{I}) \cdot \int \text{II}\,dx \right) must be easier to integrate than the original integrand I⋅II\text{I} \cdot \text{II}.

A Direct Comparison of Choices§

Consider the integral:

I=∫xex dxI = \int x e^x\,dx

Here we have two factors: the algebraic factor xx and the exponential factor exe^x.

Strategic Choice: Let I=x\text{I} = x and II=ex\text{II} = e^x.

Differentiating I\text{I} gives ddx(x)=1\frac{d}{dx}(x) = 1.

Integrating II\text{II} gives ∫ex dx=ex\int e^x\,dx = e^x.

Applying the formula:

I=xex−∫(1⋅ex) dx=xex−ex+CI = x e^x - \int (1 \cdot e^x)\,dx = x e^x - e^x + C

The derivative of xx eliminated the algebraic term entirely, reducing the problem to a standard elementary integral.

Unfavorable Choice: What if we had chosen I=ex\text{I} = e^x and II=x\text{II} = x?

Differentiating I\text{I} gives ddx(ex)=ex\frac{d}{dx}(e^x) = e^x.

Integrating II\text{II} gives ∫x dx=x22\int x\,dx = \frac{x^2}{2}.

Applying the formula:

I=ex⋅x22−∫x22ex dxI = e^x \cdot \frac{x^2}{2} - \int \frac{x^2}{2} e^x\,dx

Instead of simplifying the problem, this choice replaced ∫xex dx\int x e^x\,dx with 12∫x2ex dx\frac{1}{2}\int x^2 e^x\,dx—an integral of strictly higher degree!

This contrast demonstrates why the choice of First and Second function cannot be arbitrary.


Example 1§

Evaluate:

I=∫xcos⁡x dxI = \int x \cos x\,dx

Solution:

Identify the two factors:

I=x  ⟹  ddx(x)=1\text{I} = x \implies \frac{d}{dx}(x) = 1 II=cos⁡x  ⟹  ∫cos⁡x dx=sin⁡x\text{II} = \cos x \implies \int \cos x\,dx = \sin x

Applying the product formula:

I=x∫cos⁡x dx−∫(ddx(x)⋅∫cos⁡x dx)dxI = x \int \cos x\,dx - \int \left( \frac{d}{dx}(x) \cdot \int \cos x\,dx \right) dx I=xsin⁡x−∫(1⋅sin⁡x) dxI = x \sin x - \int (1 \cdot \sin x)\,dx I=xsin⁡x−(−cos⁡x)+CI = x \sin x - (-\cos x) + C I=xsin⁡x+cos⁡x+CI = x \sin x + \cos x + C

Example 2§

Evaluate:

I=∫x2ex dxI = \int x^2 e^x\,dx

Solution:

Here the algebraic factor is quadratic, x2x^2. One differentiation will reduce it to linear (2x2x), and a second differentiation will reduce it to a constant. Thus, we apply integration by parts twice.

First Application:

Let:

I=x2  ⟹  ddx(x2)=2x\text{I} = x^2 \implies \frac{d}{dx}(x^2) = 2x II=ex  ⟹  ∫ex dx=ex\text{II} = e^x \implies \int e^x\,dx = e^x

Applying the formula:

I=x2∫ex dx−∫(ddx(x2)⋅∫ex dx)dxI = x^2 \int e^x\,dx - \int \left( \frac{d}{dx}(x^2) \cdot \int e^x\,dx \right) dx I=x2ex−∫2xex dx=x2ex−2∫xex dxI = x^2 e^x - \int 2x e^x\,dx = x^2 e^x - 2 \int x e^x\,dx

Second Application:

For the remaining integral ∫xex dx\int x e^x\,dx, let:

I=x  ⟹  ddx(x)=1\text{I} = x \implies \frac{d}{dx}(x) = 1 II=ex  ⟹  ∫ex dx=ex\text{II} = e^x \implies \int e^x\,dx = e^x

Evaluating this integral:

∫xex dx=xex−∫(1⋅ex) dx=xex−ex\int x e^x\,dx = x e^x - \int (1 \cdot e^x)\,dx = x e^x - e^x

Substitute this back into II:

I=x2ex−2(xex−ex)+CI = x^2 e^x - 2(x e^x - e^x) + C I=(x2−2x+2)ex+CI = (x^2 - 2x + 2)e^x + C

The ILATE Preference Rule§

To help select which function should serve as Function I (the function to differentiate), mathematicians use the mnemonic ILATE.

The letters represent five common families of functions, arranged in order of decreasing priority for being chosen as Function I:

Letter Function Family Representative Examples
I Inverse trigonometric sin⁡−1x,cos⁡−1x,tan⁡−1x,sec⁡−1x\sin^{-1} x, \cos^{-1} x, \tan^{-1} x, \sec^{-1} x
L Logarithmic ln⁡x,log⁡10x,log⁡a(x+1)\ln x, \log_{10} x, \log_a(x + 1)
A Algebraic xn,x,ax+b,x2+1x^n, \sqrt{x}, ax + b, x^2 + 1
T Trigonometric sin⁡x,cos⁡x,sec⁡2x,csc⁡xcot⁡x\sin x, \cos x, \sec^2 x, \csc x\cot x
E Exponential ex,ax,23xe^x, a^x, 2^{3x}

Whichever factor appears earlier in the word ILATE is generally selected as Function I, while the remaining factor becomes Function II.

ILATE is a Rule of Thumb, Not a Law§

It is essential to understand that ILATE is only a heuristic guide, not an absolute mathematical theorem. In several situations, strictly following ILATE is either impossible or counterproductive:

  1. Both factors belong to the same family: Consider ∫sec⁡3x dx=∫sec⁡x⋅sec⁡2x dx\int \sec^3 x\,dx = \int \sec x \cdot \sec^2 x\,dx. Both sec⁡x\sec x and sec⁡2x\sec^2 x are trigonometric (T). ILATE offers no preference between them. Here, the choice is governed purely by integrability: sec⁡2x\sec^2 x has an immediate standard antiderivative (tan⁡x\tan x), so sec⁡2x\sec^2 x must be Function II, leaving sec⁡x\sec x as Function I.

  2. Algebraic grouping inside composite expressions: In an integral such as ∫x3ex2 dx\int x^3 e^{x^2}\,dx, ILATE would suggest setting Function I as x3x^3 and Function II as ex2e^{x^2}. But ex2e^{x^2} has no elementary antiderivative! Instead, we decompose x3x^3 as x2⋅xx^2 \cdot x and group xx with ex2e^{x^2}, choosing I=x2\text{I} = x^2 and II=xex2\text{II} = x e^{x^2} (which integrates cleanly to 12ex2\frac{1}{2}e^{x^2}).

  3. Denominators containing squares of linear terms: In ∫xex(x+1)2 dx\int \frac{x e^x}{(x + 1)^2}\,dx, the factor 1(x+1)2\frac{1}{(x + 1)^2} is algebraic, yet it must be selected as Function II because its integral −1x+1-\frac{1}{x + 1} simplifies the subsequent step.


Integrating Single Functions via a Dummy Factor of 1§

A striking application of integration by parts occurs when the integrand consists of a single function whose derivative is known, but whose antiderivative is not elementary—such as ln⁡x\ln x, sin⁡−1x\sin^{-1} x, or tan⁡−1x\tan^{-1} x.

In such cases, we introduce the constant 11 as an algebraic factor:

∫f(x) dx=∫f(x)⋅1 dx\int f(x)\,dx = \int f(x) \cdot 1\,dx

According to ILATE, we set:

  • Function I: f(x)f(x) (Inverse trigonometric or Logarithmic)
  • Function II: 11 (Algebraic, since 1=x01 = x^0)

Integrating Function II gives ∫1 dx=x\int 1\,dx = x.


Example 3§

Evaluate:

I=∫ln⁡x dxI = \int \ln x\,dx

Solution:

Write the integrand as ln⁡x⋅1\ln x \cdot 1:

I=ln⁡x  ⟹  ddx(ln⁡x)=1x\text{I} = \ln x \implies \frac{d}{dx}(\ln x) = \frac{1}{x} II=1  ⟹  ∫1 dx=x\text{II} = 1 \implies \int 1\,dx = x

Applying the formula:

I=(ln⁡x)(x)−∫(1x⋅x)dxI = (\ln x)(x) - \int \left( \frac{1}{x} \cdot x \right) dx I=xln⁡x−∫1 dxI = x \ln x - \int 1\,dx I=xln⁡x−x+CI = x \ln x - x + C

Example 4§

Evaluate:

I=∫sin⁡−1x dxI = \int \sin^{-1} x\,dx

Solution:

Write the integral as ∫(sin⁡−1x⋅1) dx\int (\sin^{-1} x \cdot 1)\,dx:

I=sin⁡−1x  ⟹  ddx(sin⁡−1x)=11−x2\text{I} = \sin^{-1} x \implies \frac{d}{dx}(\sin^{-1} x) = \frac{1}{\sqrt{1 - x^2}} II=1  ⟹  ∫1 dx=x\text{II} = 1 \implies \int 1\,dx = x

Applying integration by parts:

I=xsin⁡−1x−∫x1−x2 dxI = x \sin^{-1} x - \int \frac{x}{\sqrt{1 - x^2}}\,dx

For the remaining integral, notice that the derivative of 1−x21 - x^2 is −2x-2x.

Rewrite the numerator:

−∫x1−x2 dx=12∫(1−x2)−1/2(−2x dx)=12⋅(1−x2)1/21/2=1−x2-\int \frac{x}{\sqrt{1 - x^2}}\,dx = \frac{1}{2}\int (1 - x^2)^{-1/2}(-2x\,dx) = \frac{1}{2} \cdot \frac{(1 - x^2)^{1/2}}{1/2} = \sqrt{1 - x^2}

Therefore:

I=xsin⁡−1x+1−x2+CI = x \sin^{-1} x + \sqrt{1 - x^2} + C

Example 5§

Evaluate:

I=∫tan⁡−1x dxI = \int \tan^{-1} x\,dx

Solution:

Write the integral as ∫(tan⁡−1x⋅1) dx\int (\tan^{-1} x \cdot 1)\,dx:

I=tan⁡−1x  ⟹  ddx(tan⁡−1x)=11+x2\text{I} = \tan^{-1} x \implies \frac{d}{dx}(\tan^{-1} x) = \frac{1}{1 + x^2} II=1  ⟹  ∫1 dx=x\text{II} = 1 \implies \int 1\,dx = x

Applying integration by parts:

I=xtan⁡−1x−∫x1+x2 dxI = x \tan^{-1} x - \int \frac{x}{1 + x^2}\,dx

Multiply and divide by 22 to complete the derivative of the denominator:

∫x1+x2 dx=12∫2x1+x2 dx=12ln⁡(1+x2)\int \frac{x}{1 + x^2}\,dx = \frac{1}{2}\int \frac{2x}{1 + x^2}\,dx = \frac{1}{2}\ln(1 + x^2)

Therefore:

I=xtan⁡−1x−12ln⁡(1+x2)+CI = x \tan^{-1} x - \frac{1}{2}\ln(1 + x^2) + C

Example 6§

Evaluate:

I=∫ln⁡(x+1+x2)dxI = \int \ln\left(x + \sqrt{1 + x^2}\right) dx

Solution:

Write the integrand as ln⁡(x+1+x2)⋅1\ln\left(x + \sqrt{1 + x^2}\right) \cdot 1:

I=ln⁡(x+1+x2)\text{I} = \ln\left(x + \sqrt{1 + x^2}\right) II=1  ⟹  ∫1 dx=x\text{II} = 1 \implies \int 1\,dx = x

Compute the derivative of Function I using the chain rule:

ddx[ln⁡(x+1+x2)]=1x+1+x2⋅(1+2x21+x2)\frac{d}{dx}\left[\ln\left(x + \sqrt{1 + x^2}\right)\right] = \frac{1}{x + \sqrt{1 + x^2}} \cdot \left(1 + \frac{2x}{2\sqrt{1 + x^2}}\right) ddx[ln⁡(x+1+x2)]=1x+1+x2⋅(1+x2+x1+x2)=11+x2\frac{d}{dx}\left[\ln\left(x + \sqrt{1 + x^2}\right)\right] = \frac{1}{x + \sqrt{1 + x^2}} \cdot \left(\frac{\sqrt{1 + x^2} + x}{\sqrt{1 + x^2}}\right) = \frac{1}{\sqrt{1 + x^2}}

Applying integration by parts:

I=xln⁡(x+1+x2)−∫x1+x2 dxI = x \ln\left(x + \sqrt{1 + x^2}\right) - \int \frac{x}{\sqrt{1 + x^2}}\,dx

Since ddx[1+x2]=x1+x2\frac{d}{dx}\left[\sqrt{1 + x^2}\right] = \frac{x}{\sqrt{1 + x^2}}, the remaining integral evaluates directly:

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

Therefore:

I=xln⁡(x+1+x2)−1+x2+CI = x \ln\left(x + \sqrt{1 + x^2}\right) - \sqrt{1 + x^2} + C

Cyclic Integrals§

In certain problems, applying integration by parts repeatedly does not terminate in an elementary polynomial integral. Instead, the original integral II reappears on the right-hand side with a sign or coefficient that allows it to be solved algebraically.


Example 7§

Evaluate:

I=∫exsin⁡x dxI = \int e^x \sin x\,dx

Solution:

According to ILATE, let:

I=sin⁡x  ⟹  ddx(sin⁡x)=cos⁡x\text{I} = \sin x \implies \frac{d}{dx}(\sin x) = \cos x II=ex  ⟹  ∫ex dx=ex\text{II} = e^x \implies \int e^x\,dx = e^x

First Application:

I=sin⁡x∫ex dx−∫(ddx(sin⁡x)⋅∫ex dx)dxI = \sin x \int e^x\,dx - \int \left( \frac{d}{dx}(\sin x) \cdot \int e^x\,dx \right) dx I=exsin⁡x−∫excos⁡x dxI = e^x \sin x - \int e^x \cos x\,dx

Second Application:

For the integral ∫excos⁡x dx\int e^x \cos x\,dx, again choose:

I=cos⁡x  ⟹  ddx(cos⁡x)=−sin⁡x\text{I} = \cos x \implies \frac{d}{dx}(\cos x) = -\sin x II=ex  ⟹  ∫ex dx=ex\text{II} = e^x \implies \int e^x\,dx = e^x

Evaluating:

∫excos⁡x dx=cos⁡x(ex)−∫(−sin⁡x)(ex) dx=excos⁡x+∫exsin⁡x dx\int e^x \cos x\,dx = \cos x(e^x) - \int (-\sin x)(e^x)\,dx = e^x \cos x + \int e^x \sin x\,dx

Notice that the remaining integral is our original integral II:

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

Substitute this back into the equation for II:

I=exsin⁡x−(excos⁡x+I)I = e^x \sin x - (e^x \cos x + I) I=exsin⁡x−excos⁡x−II = e^x \sin x - e^x \cos x - I

Add II to both sides:

2I=ex(sin⁡x−cos⁡x)2I = e^x(\sin x - \cos x) I=ex2(sin⁡x−cos⁡x)+CI = \frac{e^x}{2}(\sin x - \cos x) + C

Example 8§

Evaluate:

I=∫sec⁡3x dxI = \int \sec^3 x\,dx

Solution:

Rewrite the integrand as:

I=∫sec⁡x⋅sec⁡2x dxI = \int \sec x \cdot \sec^2 x\,dx

Both factors are trigonometric, so ILATE does not decide between them. However, sec⁡2x\sec^2 x has the immediate integral tan⁡x\tan x, whereas integrating sec⁡x\sec x produces a logarithm.

Therefore:

I=sec⁡x  ⟹  ddx(sec⁡x)=sec⁡xtan⁡x\text{I} = \sec x \implies \frac{d}{dx}(\sec x) = \sec x \tan x II=sec⁡2x  ⟹  ∫sec⁡2x dx=tan⁡x\text{II} = \sec^2 x \implies \int \sec^2 x\,dx = \tan x

Applying integration by parts:

I=sec⁡xtan⁡x−∫(sec⁡xtan⁡x)(tan⁡x) dxI = \sec x \tan x - \int (\sec x \tan x)(\tan x)\,dx I=sec⁡xtan⁡x−∫sec⁡xtan⁡2x dxI = \sec x \tan x - \int \sec x \tan^2 x\,dx

Use the Pythagorean identity tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1:

∫sec⁡xtan⁡2x dx=∫sec⁡x(sec⁡2x−1) dx=∫sec⁡3x dx−∫sec⁡x dx\int \sec x \tan^2 x\,dx = \int \sec x(\sec^2 x - 1)\,dx = \int \sec^3 x\,dx - \int \sec x\,dx

Recognizing the first term as II:

∫sec⁡xtan⁡2x dx=I−ln⁡∣sec⁡x+tan⁡x∣\int \sec x \tan^2 x\,dx = I - \ln|\sec x + \tan x|

Substitute this back into our expression for II:

I=sec⁡xtan⁡x−(I−ln⁡∣sec⁡x+tan⁡x∣)I = \sec x \tan x - (I - \ln|\sec x + \tan x|) I=sec⁡xtan⁡x−I+ln⁡∣sec⁡x+tan⁡x∣I = \sec x \tan x - I + \ln|\sec x + \tan x|

Add II to both sides:

2I=sec⁡xtan⁡x+ln⁡∣sec⁡x+tan⁡x∣2I = \sec x \tan x + \ln|\sec x + \tan x| I=12sec⁡xtan⁡x+12ln⁡∣sec⁡x+tan⁡x∣+CI = \frac{1}{2}\sec x \tan x + \frac{1}{2}\ln|\sec x + \tan x| + C

Further Techniques and Transformations§


Example 9§

Evaluate:

I=∫xtan⁡−1x dxI = \int x \tan^{-1} x\,dx

Solution:

Following ILATE, set:

I=tan⁡−1x  ⟹  ddx(tan⁡−1x)=11+x2\text{I} = \tan^{-1} x \implies \frac{d}{dx}(\tan^{-1} x) = \frac{1}{1 + x^2} II=x  ⟹  ∫x dx=x22\text{II} = x \implies \int x\,dx = \frac{x^2}{2}

Applying the formula:

I=x22tan⁡−1x−∫(11+x2⋅x22)dxI = \frac{x^2}{2}\tan^{-1} x - \int \left( \frac{1}{1 + x^2} \cdot \frac{x^2}{2} \right) dx I=x22tan⁡−1x−12∫x21+x2 dxI = \frac{x^2}{2}\tan^{-1} x - \frac{1}{2}\int \frac{x^2}{1 + x^2}\,dx

Rewrite the fraction by adding and subtracting 11:

x21+x2=(x2+1)−11+x2=1−11+x2\frac{x^2}{1 + x^2} = \frac{(x^2 + 1) - 1}{1 + x^2} = 1 - \frac{1}{1 + x^2}

Integrating this expression:

∫(1−11+x2)dx=x−tan⁡−1x\int \left(1 - \frac{1}{1 + x^2}\right) dx = x - \tan^{-1} x

Substitute back:

I=x22tan⁡−1x−12(x−tan⁡−1x)+CI = \frac{x^2}{2}\tan^{-1} x - \frac{1}{2}(x - \tan^{-1} x) + C

Grouping the tan⁡−1x\tan^{-1} x terms:

I=x2+12tan⁡−1x−x2+CI = \frac{x^2 + 1}{2}\tan^{-1} x - \frac{x}{2} + C

Example 10§

Evaluate:

I=∫xsin⁡−1x1−x2 dxI = \int \frac{x \sin^{-1} x}{\sqrt{1 - x^2}}\,dx

Solution:

Notice that the factor x1−x2\frac{x}{\sqrt{1 - x^2}} is easily integrable:

∫x1−x2 dx=−12∫(1−x2)−1/2(−2x dx)=−1−x2\int \frac{x}{\sqrt{1 - x^2}}\,dx = -\frac{1}{2}\int (1 - x^2)^{-1/2}(-2x\,dx) = -\sqrt{1 - x^2}

Choose:

I=sin⁡−1x  ⟹  ddx(sin⁡−1x)=11−x2\text{I} = \sin^{-1} x \implies \frac{d}{dx}(\sin^{-1} x) = \frac{1}{\sqrt{1 - x^2}} II=x1−x2  ⟹  ∫II dx=−1−x2\text{II} = \frac{x}{\sqrt{1 - x^2}} \implies \int \text{II}\,dx = -\sqrt{1 - x^2}

Applying integration by parts:

I=(sin⁡−1x)(−1−x2)−∫(11−x2⋅(−1−x2))dxI = (\sin^{-1} x)(-\sqrt{1 - x^2}) - \int \left( \frac{1}{\sqrt{1 - x^2}} \cdot (-\sqrt{1 - x^2}) \right) dx

The radicals cancel cleanly:

I=−1−x2sin⁡−1x−∫(−1) dxI = -\sqrt{1 - x^2}\sin^{-1} x - \int (-1)\,dx I=−1−x2sin⁡−1x+x+CI = -\sqrt{1 - x^2}\sin^{-1} x + x + C

Example 11§

Evaluate:

I=∫xex(x+1)2 dxI = \int \frac{x e^x}{(x + 1)^2}\,dx

Solution:

Rewrite the algebraic part by adjusting the numerator:

x(x+1)2=(x+1)−1(x+1)2=1x+1−1(x+1)2\frac{x}{(x + 1)^2} = \frac{(x + 1) - 1}{(x + 1)^2} = \frac{1}{x + 1} - \frac{1}{(x + 1)^2}

The integral becomes:

I=∫ex[1x+1−1(x+1)2]dx=∫exx+1 dx−∫ex(x+1)2 dxI = \int e^x \left[ \frac{1}{x + 1} - \frac{1}{(x + 1)^2} \right] dx = \int \frac{e^x}{x + 1}\,dx - \int \frac{e^x}{(x + 1)^2}\,dx

Apply integration by parts to the first integral ∫exx+1 dx\int \frac{e^x}{x + 1}\,dx:

Choose:

I=1x+1  ⟹  ddx(1x+1)=−1(x+1)2\text{I} = \frac{1}{x + 1} \implies \frac{d}{dx}\left(\frac{1}{x + 1}\right) = -\frac{1}{(x + 1)^2} II=ex  ⟹  ∫ex dx=ex\text{II} = e^x \implies \int e^x\,dx = e^x

Integrating by parts:

∫exx+1 dx=exx+1−∫(−1(x+1)2⋅ex)dx=exx+1+∫ex(x+1)2 dx\int \frac{e^x}{x + 1}\,dx = \frac{e^x}{x + 1} - \int \left( -\frac{1}{(x + 1)^2} \cdot e^x \right) dx = \frac{e^x}{x + 1} + \int \frac{e^x}{(x + 1)^2}\,dx

Substitute this result back into II:

I=(exx+1+∫ex(x+1)2 dx)−∫ex(x+1)2 dxI = \left( \frac{e^x}{x + 1} + \int \frac{e^x}{(x + 1)^2}\,dx \right) - \int \frac{e^x}{(x + 1)^2}\,dx

The remaining integrals cancel out completely:

I=exx+1+CI = \frac{e^x}{x + 1} + C

(Note: This illustrates the general theorem ∫ex[f(x)+f′(x)] dx=exf(x)+C\int e^x [f(x) + f'(x)]\,dx = e^x f(x) + C, which is a direct consequence of integration by parts.)


Example 12§

Evaluate:

I=∫a2−x2 dx(a>0)I = \int \sqrt{a^2 - x^2}\,dx \qquad (a > 0)

Solution:

We can establish this fundamental formula using integration by parts by introducing the dummy factor 11:

I=∫a2−x2⋅1 dxI = \int \sqrt{a^2 - x^2} \cdot 1\,dx

Let:

I=a2−x2  ⟹  ddx(a2−x2)=−xa2−x2\text{I} = \sqrt{a^2 - x^2} \implies \frac{d}{dx}\left(\sqrt{a^2 - x^2}\right) = \frac{-x}{\sqrt{a^2 - x^2}} II=1  ⟹  ∫1 dx=x\text{II} = 1 \implies \int 1\,dx = x

Applying integration by parts:

I=xa2−x2−∫−x2a2−x2 dx=xa2−x2+∫x2a2−x2 dxI = x\sqrt{a^2 - x^2} - \int \frac{-x^2}{\sqrt{a^2 - x^2}}\,dx = x\sqrt{a^2 - x^2} + \int \frac{x^2}{\sqrt{a^2 - x^2}}\,dx

Rewrite x2x^2 in the numerator as a2−(a2−x2)a^2 - (a^2 - x^2):

x2a2−x2=a2−(a2−x2)a2−x2=a2a2−x2−a2−x2\frac{x^2}{\sqrt{a^2 - x^2}} = \frac{a^2 - (a^2 - x^2)}{\sqrt{a^2 - x^2}} = \frac{a^2}{\sqrt{a^2 - x^2}} - \sqrt{a^2 - x^2}

Substitute this decomposition into the integral:

I=xa2−x2+∫a2a2−x2 dx−∫a2−x2 dxI = x\sqrt{a^2 - x^2} + \int \frac{a^2}{\sqrt{a^2 - x^2}}\,dx - \int \sqrt{a^2 - x^2}\,dx

Notice that the last integral is II:

I=xa2−x2+a2∫dxa2−x2−II = x\sqrt{a^2 - x^2} + a^2\int \frac{dx}{\sqrt{a^2 - x^2}} - I

Using the standard formula ∫dxa2−x2=sin⁡−1(xa)\int \frac{dx}{\sqrt{a^2 - x^2}} = \sin^{-1}\left(\frac{x}{a}\right):

I=xa2−x2+a2sin⁡−1(xa)−II = x\sqrt{a^2 - x^2} + a^2\sin^{-1}\left(\frac{x}{a}\right) - I

Add II to both sides:

2I=xa2−x2+a2sin⁡−1(xa)2I = x\sqrt{a^2 - x^2} + a^2\sin^{-1}\left(\frac{x}{a}\right)

Dividing by 22:

I=x2a2−x2+a22sin⁡−1(xa)+CI = \frac{x}{2}\sqrt{a^2 - x^2} + \frac{a^2}{2}\sin^{-1}\left(\frac{x}{a}\right) + C
Section 6 of 10 · Indefinite Integration

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