Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Integration Techniques: Substitution and Parts, Lecture notes of Calculus

Differential EquationsIntegrationCalculus I

Solutions to various integration problems using the techniques of substitution and parts. It covers both indefinite and definite integrals, and includes step-by-step calculations and explanations.

What you will learn

  • What is the formula for integration by parts?
  • How to find the antiderivative of sin(x) using integration by parts?
  • How to evaluate definite integrals using substitution?
  • What is the tabular method for integration by parts?
  • How to use substitution to solve an integral?

Typology: Lecture notes

2021/2022

Uploaded on 09/27/2022

kyran
kyran 🇬🇧

4.3

(7)

220 documents

1 / 11

Toggle sidebar

Related documents


Partial preview of the text

Download Integration Techniques: Substitution and Parts and more Lecture notes Calculus in PDF only on Docsity!

1 Integration By Substitution (Change of Variables)

We can think of integration by substitution as the counterpart of the chain rule for differentiation. Suppose that g(x) is a differentiable function and f is continuous on the range of g. Integration by substitution is given by the following formulas:

Indefinite Integral Version: ∫ f (g(x))g′(x) dx =

f (u) du where u = g(x).

Definite Integral Version:

∫ (^) b

a

f (g(x))g′(x) dx =

∫ (^) g(b)

g(a)

f (u) du where u = g(x).

1.1 Example Problems

Strategy: The idea is to make the integral easier to compute by doing a change of variables.

  1. Start by guessing what the appropriate change of variable u = g(x) should be. Usually you choose u to be the function that is “inside” the function.
  2. Differentiate both sides of u = g(x) to conclude du = g′(x)dx. If we have a definite integral, use the fact that x = a → u = g(a) and x = b → u = g(b) to also change the bounds of integration.
  3. Rewrite the integral by replacing all instances of x with the new variable and compute the integral or definite integral.
  4. If you computed the indefinite integral, then make sure to write your final answer back in terms of the original variables.

Problem 1. (?) Find (^) ∫

tan(x) dx.

Solution 1.

Step 1: We will use the change of variables u = cos(x),

du dx = − sin(x) ⇒ du = − sin(x) dx.

Step 2: We can now evaluate the integral under this change of variables, ∫ tan(x) dx =

sin(x) cos(x) dx = −

u du = − ln |u| + C = − ln | cos(x)| + C.

Problem 2. (?) Find (^) ∫ 1 0

xe−^ x 22 dx.

Solution 2.

Step 1: We will use the change of variables u = − x 2 2 , du dx = −x ⇒ du = −x dx, x = 0 → u = 0, x = 1 → u = −

.

Step 2: We can now evaluate the integral under this change of variables,

∫ xe

− 2 x 2 dx = −

∫ − 12

0

eu^ du = −eu

∣∣

u=− (^12) u= = −e−^ (^12)

Remark: Instead of changing the bounds of integration, we can first find the indefinite integral, ∫ xe−^ x 22 dx = −e−^ x 22 ,

then use the fundamental theorem of calculus to conclude ∫ (^1)

0

xe−^ x 22 dx = −e−^ x 22 ∣∣ ∣

x= x= = −e−^ (^12)

Problem 3. (?) Find (^) ∫

tanh(x) dx =

ex^ − e−x ex^ + e−x^ dx.

Solution 3.

Step 1: We will use the change of variables u = ex^ + e−x,

du dx = ex^ − e−x^ ⇒ du = (ex^ − e−x) dx.

Step 2: We can now evaluate the integral under this change of variables, ∫ ex^ − e−x ex^ + e−x^ dx =

du u = ln |u| + C = ln |ex^ + e−x| + C. u = ex^ + e−x

Since ex^ + e−x^ > 0, we can remove the absolute values if we wish giving the final answer ∫ tanh(x) dx = ln(ex^ + e−x) + C.

Remark: We can use the fact ex^ + e−x^ = 2 cosh(x) to conclude that

ln(ex^ + e−x) + C = ln(2 cosh(x)) + C = ln(cosh(x)) + ln(2) + ︸ ︷︷ C︸ D

= ln(cosh(x)) + D.

This form of the indefinite integral may be easier to remember since it mirrors the fact that ∫ tan(x) dx = − ln | cos(x)| + C.

Problem 4. (?) Evaluate (^) ∫ 1 0

x

1 − x^2 dx.

Solution 4.

Step 1: We will use the change of variables u = 1 − x^2 ,

du dx = − 2 x ⇒ du = − 2 x dx ⇒ − 1 2 du = xdx, x = 0 → u = 1, x = 1 → u = 0.

Step 2: We can now evaluate the integral under this change of variables, ∫ (^1)

0

x

1 − x^2 dx = −

∫ 0

1

u du = −

·

u

32 ∣∣

u= u=

=

.

Remark: Instead of changing the bounds of integration, we can first find the indefinite integral, ∫ x

1 − x^2 dx = −

2 (1^ −^ x

2 ) 32 ,

then use the fundamental theorem of calculus to conclude ∫ (^1)

0

x

1 − x^2 dx = −

(1 − x^2 )

32 ∣∣

x= x=

=

.

Problem 5. (??) Find (^) ∫ 1 1 +

x dx.

Solution 5.

Step 1: We will use the change of variables u =

x, du dx

=

x

⇒ 2

xdu = dx ⇒ 2 u du = dx.

Step 2: We can now evaluate the integral under this change of variables, ∫ 1 1 +

x dx^ =

2 u 1 + u du.

This integral is a bit tricky to compute, so we have to use algebra to simplify it first. Using long division to first simplify the integrand, we get ∫ 2 u 1 + u du = 2

u 1 + u du = 2

1 − 1

1 + u du = 2u − 2 ln |1 + u| + C = 2

x − 2 ln |1 +

x| + C. u =

x.

Alternative Solution: We can also do a change of variables by writing x as a function of u.

Step 1: We can also do the change of variables x = u^2 ,

dx du = 2u ⇒ dx = 2u du.

Step 2: We can now evaluate the integral under this change of variables, ∫ 1 1 +

x dx =

2 u 1 +

u^2

du =

2 u 1 + u du.

The computation is now identical to the case above.

Problem 6. (??) Find (^) ∫

sec(x) dx.

Solution 6. We first do a trick by multiplying the numerator and denominator by sec(x) + tan(x), ∫ sec(x) dx =

sec(x)(sec(x) + tan(x)) sec(x) + tan(x) dx =

sec^2 (x) + sec(x) tan(x) sec(x) + tan(x) dx.

Step 1: We will use the change of variables u = sec(x) + tan(x),

du dx = sec(x) tan(x) + sec^2 (x) ⇒ du = (sec(x) tan(x) + sec^2 (x)) dx.

Step 2: We can now evaluate the integral under this change of variables, ∫ sec(x) dx =

sec^2 (x) + sec(x) tan(x)) sec(x) + tan(x) dx =

u du

= ln |u| + C = ln | sec(x) + tan(x)| + C. u = sec(x) + tan(x)

Problem 7. (??) Find (^) ∫

sech(x) dx =

ex^ + e−x^ dx.

Solution 7.

Step 1: We will use the change of variables u = ex,

du dx = ex^ ⇒ dx =

ex^ du ⇒ dx =

u du.

Step 2: We can now evaluate the integral under this change of variables, ∫ sech(x) dx =

∫ 2

ex^ + e−x^ dx =

∫ 2

u(u + u−^1 ) du

=

u^2 + 1 du = 2 tan−^1 (u) + C = 2 tan−^1 (ex) + C. u = ex

Alternative Solution: We first do a trick by multiplying the numerator and denominator by ex, ∫ sech(x) dx =

ex^ + e−x^ dx =

2 ex e^2 x^ + 1 dx.

Step 1: We will use the change of variables u = ex,

du dx =^ e

x (^) ⇒ du = ex (^) dx.

Step 2: We can now evaluate the integral under this change of variables, ∫ sech(x) dx =

2 ex e^2 x^ + 1 dx^ =

u^2 + 1 du = 2 tan−^1 (u) + C = 2 tan−^1 (ex) + C. u = ex

1.1.1 Proofs of the Symmetry Properties of Integration

Problem 1. (?? ?) Suppose that f (−x) = f (x). Prove that ∫ (^) a

−a

f (x) dx = 2

∫ (^) a

0

f (x) dx.

Solution 1. By the properties of definite integrals, we have ∫ (^) a

−a

f (x) dx =

∫ 0

−a

f (x) dx +

∫ (^) a

0

f (x) dx = −

∫ (^) −a

0

f (x) dx +

∫ (^) a

0

f (x) dx.

Using the change of variables u = −x on the first integral, for even function f , ∫ (^) −a

0

f (x) dx = −

∫ (^) a

0

f (−u) du u = −x, du = −dx, x = 0 → u = 0, x = −a → u = a

= −

∫ (^) a

0

f (u) du f (−x) = f (x)

= −

∫ (^) a

0

f (x) dx.

This computation implies ∫ (^) a

−a

f (x) dx = −

∫ (^) −a

0

f (x) dx +

∫ (^) a

0

f (x) dx =

∫ (^) a

0

f (x) dx +

∫ (^) a

0

f (x) dx = 2

∫ (^) a

0

f (x) dx.

Problem 2. (?? ?) Suppose that f (−x) = −f (x). Prove that ∫ (^) a

−a

f (x) dx = 0.

Solution 2. By the properties of definite integrals, we have ∫ (^) a

−a

f (x) dx =

∫ 0

−a

f (x) dx +

∫ (^) a

0

f (x) dx = −

∫ (^) −a

0

f (x) dx +

∫ (^) a

0

f (x) dx.

Using the change of variables u = −x on the first integral, for odd functions f , ∫ (^) −a

0

f (x) dx = −

∫ (^) a

0

f (−u) du u = −x, du = −dx, x = 0 → u = 0, x = −a → u = a

=

∫ (^) a

0

f (u) du f (−x) = −f (x)

=

∫ (^) a

0

f (x) dx.

This computation implies ∫ (^) a

−a

f (x) dx = −

∫ (^) −a

0

f (x) dx +

∫ (^) a

0

f (x) dx = −

∫ (^) a

0

f (x) dx +

∫ (^) a

0

f (x) dx = 0.

Problem 3. (??) Suppose f (x) is even (f (−x) = f (x)). Show that the function

F (x) =

∫ (^) x

0

f (t) dt

is an odd function.

Solution 3. It suffices to show F (−x) = −F (x). Using the change of variables u = −t,

du = −dt, t = 0 → u = 0, t = −x → u = x

we have

F (−x) =

∫ (^) −x

0

f (t) dt = −

∫ (^) x

0

f (−u) du

= −

∫ (^) x

0

f (u) du f (−u) = f (u) = −F (x).

Problem 4. (??) Suppose f (x) is odd (f (−x) = −f (x)). Show that the function

F (x) =

∫ (^) x

a

f (t) dt

is an even function.

Solution 4. It suffices to show F (−x) = F (x). Using the change of variables u = −t,

du = −dt, t = a → u = −a, t = −x → u = x

we have

F (−x) =

∫ (^) −x

a

f (t) dt = −

∫ (^) x

−a

f (−u) du =

∫ (^) x

−a

f (u) du. f (−u) = −f (u)

It may appear that the last term is not of the same form as the term F (x) because the lower bounds of integration are different. However, we can split the region of integration and use a change of variables to conclude that ∫ (^) x

−a

f (u) du =

∫ 0

−a

f (u) du +

∫ (^) x

0

f (u) du

= −

∫ 0

a

f (−˜u) du˜ +

∫ (^) x

0

f (u) du u˜ = −u, d˜u = −du,

∫ 0

−a

du →

∫ 0

a

du˜

=

∫ 0

a

f (˜u) du˜ +

∫ (^) x

0

f (u) du f (−u) = −f (u)

=

∫ (^) x

a

f (t) dt = F (x).

Remark: If we use the result from Problem 2 on Page 5, then we have the shorter proof,

F (−x) =

∫ (^) −x

a

f (t) dt = −

∫ (^) x

−a

f (−u) du =

∫ (^) x

−a

f (u) du =

∫ (^) a

−a

f (u) du ︸ ︷︷ ︸ =

+

∫ (^) x

a

f (u) du = F (x).

2 Integration By Parts

We can think of integration by substitution as the counterpart of the product rule for differentiation. Suppose that u(x) and v(x) are continuously differentiable functions. Integration by parts is given by the following formulas:

Indefinite Integral Version: ∫ u(x)v′(x) dx = u(x)v(x) −

u′(x)v(x) dx.

Definite Integral Version: ∫ (^) b

a

u(x)v′(x) dx = u(x)v(x)

∣∣

x=b x=a

∫ (^) b

a

u′(x)v(x) dx.

2.1 Tabular Method

We will introduce a method to bookkeep multiple integration by parts steps simultaneously. This is called the tabular method for integration by parts. You pick a term to differentiate and a term to integrate then repeat the operation until the product of the terms in the last entry of the table is easy to integrate.

The integral can be recovered by multiplying diagonally across the rows of the table adding up all terms with alternating signs. The last term in the table is integrated across.

For example, the formula to integrate

u(x)v′′′(x) dx by parts can be encoded by the table

± D I

  • u v′′′

− u′^ v′′

  • u′′^ v′

u′′′^ v

− ∫

which gives us the formula ∫ u(x)v′′′(x) dx = u(x)v′′(x) − u′(x)v′(x) + u′′(x)v(x) −

u′′′(x)v(x) dx.

2.2 Example Problems

Problem 1. (?) Find (^) ∫

xex^ dx.

Solution 1.

Step 1: Draw the table

± D I

  • x ex − 1 ex

0 ex

Step 2: From the table, we have (^) ∫

xex^ dx = xex^ − ex^ + C.

Problem 2. (??) Find (^) ∫

x^6 ex^ dx.

Solution 2.

Step 1: Draw the table

± D I

  • x^6 ex − 6 x^5 ex
  • 30 x^4 ex − 120 x^3 ex
  • 360 x^2 ex − 720 x ex
  • 720 ex −

0 ex

Step 2: From the table, we have ∫ x^6 ex^ dx = x^6 ex^ − 6 x^5 ex^ + 30x^4 ex^ − 120 x^2 ex^ − 720 xex^ + 720ex^ + C.

Problem 3. (??) Find (^) ∫

x^4 sin x dx.

Solution 3.

Step 1: Draw the table

± D I

  • x^4 sin x − 4 x^3 − cos x
  • 12 x^2 − sin x − 24 x cos x
  • 24 sin x −

0 − cos x

Step 2: From the table, we have ∫ x^4 sin x dx = −x^4 cos x + 4x^3 sin x + 12x^2 cos x − 24 x sin x − 24 cos x + C.

Problem 4. (??) Find (^) ∫

ex^ sin x dx.

Solution 4.

Step 1: Draw the table

± D I

  • sin x ex − cos x ex

− sin x ex

Step 2: From the table, we have ∫ ex^ sin x dx = ex^ sin x − ex^ cos x −

ex^ sin x dx + D.

Moving all the

ex^ sin x dx to one side and simplifying, we can conclude

2

ex^ sin x dx = ex^ sin x − ex^ cos x + D =⇒

ex^ sin x dx =

ex^ sin x −

ex^ cos x + C.

Problem 5. (?? ?) Find (^) ∫

xex^ cos(x) dx.

Solution 5.

Step 1: Draw the table

± D I

  • x cos x ex − cos x − x sin x ex

−2 sin x − x cos x ex

Step 2: From the table, we have ∫ xex^ cos x dx = xex^ cos x − ex^ cos x + xex^ sin x − 2

ex^ sin x dx −

xex^ cos x dx.

Moving all the

xex^ cos x dx to one side and simplifying, we can conclude

2

xex^ cos x dx = xex^ cos x − ex^ cos x + xex^ sin x − 2

ex^ sin x dx = xex^ cos x − ex^ cos x + xex^ sin x − ex^ sin x + ex^ cos x + C. Problem 4

Dividing both sides by 2, we can conclude ∫ xex^ cos x dx =

(

xex^ cos x + xex^ sin x − ex^ sin x

)

+ C.

Problem 6. (?) Find (^) ∫

ln(x) dx.

Solution 6.

Step 1: Draw the table

± D I

  • ln(x) 1 −

∫ 1

x x

Step 2: From the table, we have ∫ ln(x) dx = x ln(x) −

1 dx = x ln(x) − x + C.

Problem 7. (??) Evaluate (^) ∫ 2 1

x^3 ln x dx.

Solution 7.

Step 1: Draw the table

± D I

  • ln x x^3 −

∫ 1

x 1 4 x 4

Step 2: From the table, we have ∫ x^3 ln x dx =

x^4 ln x −

x^3 dx =

x^4 ln x −

x^4 + C.

Step 3: We can now use the fundamental theorem of calculus to compute the definite integral, ∫ (^2)

1

x^3 ln x dx =

x^4 ln x −

x^4

∣∣

x= x= = 4 ln 2 − 1 +

= 4 ln 2 −

.

Problem 8. (?? ?) Derive the reduction formula ∫ sinn(x) dx = −

n sinn−^1 (x) cos(x) + n − 1 n

sinn−^2 (x) dx.

Solution 8.

Step 1: Draw the table

± D I

  • sinn−^1 (x) sin(x) −

(n − 1) cos(x) sinn−^2 (x) − cos(x)

Step 2: From the table, we have ∫ sinn(x) dx = − sinn−^1 (x) cos(x) + (n − 1)

cos^2 (x) sinn−^2 (x)

= − sinn−^1 (x) cos(x) + (n − 1)

(1 − sin^2 (x)) sinn−^2 (x) sin^2 (x) + cos^2 (x) = 1

= − sinn−^1 (x) cos(x) + (n − 1)

sinn−^2 (x) dx − (n − 1)

sinn(x) dx

Moving all the the

sinn(x) dx terms to one side, we can conclude

n

sinn(x) dx = − sinn−^1 (x) cos(x) + (n − 1)

sinn−^2 (x) dx

sinn(x) dx = −

n sinn−^1 (x) cos(x) + n − 1 n

sinn−^2 (x) dx.

Problem 9. (??) For x ∈ R, the error function is defined by

erf(x) =

π

∫ (^) x

0

e−t 2 dt.

Find (^) ∫ erf(x) dx.

Solution 9. We can integrate by parts,

± D I

  • erf(x) 1 −

∫ (^) d dx erf(x)^ x

Since (^) dxd erf(x) = √^2 π e−x 2 by the fundamental theorem, we have ∫ erf(x) dx = xerf(x) −

√^2 x π e

−x^2 dx.

The second integral can be solved using the substitution u = −x^2 , du = − 2 xdx which gives us ∫ erf(x) dx = xerf(x) +

√^1

π eu^ du = xerf(x) + √^1 π · e−x 2

  • C.

Remark: It is easy to check that the xerf(x) + e √−x^2 π +^ C^ is an antiderivative by simply differentiating.