97
Integral Calculus Dr. M. Alghamdi Department of Mathematics January 2, 2019 Dr. M. Alghamdi MATH 106 January 2, 2019 1 / 47

Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Integral Calculus

Dr. M. Alghamdi

Department of Mathematics

January 2, 2019

Dr. M. Alghamdi MATH 106 January 2, 2019 1 / 47

Page 2: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Chapter 5: Techniques of Integration

Main Contents

1 Integration by parts.

2 Trigonometric functions.

3 Trigonometric substitutions.

4 Integrals of rational functions.

5 Integrals of quadratic forms.

6 Miscellaneous substitutions.

Dr. M. Alghamdi MATH 106 January 2, 2019 2 / 47

Page 3: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Integration by PartsIntegration by parts is a method to transfer the original integral to an easier one thatcan be evaluated. Practically, the integration by parts divides the original integral intotwo parts u and dv , then we find the du by deriving u and v by integrating dv .

Theorem

If u = f (x) and v = g(x) such that f ā€² and g ā€² are continuous, thenāˆ«u dv = uv āˆ’

āˆ«v du.

Proof: We know that ddx

(f (x)g(x)

)= f (x)g ā€²(x) + f ā€²(x)g(x). Thus,

f (x)g ā€²(x) = ddx

(f (x)g(x)

)āˆ’ f ā€²(x)g(x).

By integrating both sides, we obtaināˆ«f (x)g ā€²(x) dx =

āˆ«d

dx

(f (x)g(x)

)dx āˆ’

āˆ«f ā€²(x)g(x) dx

= f (x)g(x)āˆ’āˆ«

f ā€²(x)g(x) dx .

Since u = f (x) and v = g(x), then du = f ā€²(x) dx and dv = g ā€²(x) dx . Therefore,āˆ«u dv = uv āˆ’

āˆ«v du. ļæ½

Dr. M. Alghamdi MATH 106 January 2, 2019 3 / 47

Page 4: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Integration by PartsIntegration by parts is a method to transfer the original integral to an easier one thatcan be evaluated. Practically, the integration by parts divides the original integral intotwo parts u and dv , then we find the du by deriving u and v by integrating dv .

Theorem

If u = f (x) and v = g(x) such that f ā€² and g ā€² are continuous, thenāˆ«u dv = uv āˆ’

āˆ«v du.

Proof: We know that ddx

(f (x)g(x)

)= f (x)g ā€²(x) + f ā€²(x)g(x). Thus,

f (x)g ā€²(x) = ddx

(f (x)g(x)

)āˆ’ f ā€²(x)g(x).

By integrating both sides, we obtaināˆ«f (x)g ā€²(x) dx =

āˆ«d

dx

(f (x)g(x)

)dx āˆ’

āˆ«f ā€²(x)g(x) dx

= f (x)g(x)āˆ’āˆ«

f ā€²(x)g(x) dx .

Since u = f (x) and v = g(x), then du = f ā€²(x) dx and dv = g ā€²(x) dx . Therefore,āˆ«u dv = uv āˆ’

āˆ«v du. ļæ½

Dr. M. Alghamdi MATH 106 January 2, 2019 3 / 47

Page 5: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x cos x dx .

Solution:

Let I =

āˆ«x cos x dx . Let u = x and dv = cos x dx . Hence,

u = x ā‡’ du = dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

From the theorem, we have

I = x sin x āˆ’āˆ«

sin x dx = x sin x + cos x + c.

Try to chooseu = cos x and dv = x dx

Do you have the same result?

Dr. M. Alghamdi MATH 106 January 2, 2019 4 / 47

Page 6: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x cos x dx .

Solution:

Let I =

āˆ«x cos x dx . Let u = x and dv = cos x dx . Hence,

u = x ā‡’ du = dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

From the theorem, we have

I = x sin x āˆ’āˆ«

sin x dx = x sin x + cos x + c.

Try to chooseu = cos x and dv = x dx

Do you have the same result?

Dr. M. Alghamdi MATH 106 January 2, 2019 4 / 47

Page 7: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x cos x dx .

Solution:

Let I =

āˆ«x cos x dx . Let u = x and dv = cos x dx . Hence,

u = x ā‡’ du = dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

From the theorem, we have

I = x sin x āˆ’āˆ«

sin x dx = x sin x + cos x + c.

Try to chooseu = cos x and dv = x dx

Do you have the same result?

Dr. M. Alghamdi MATH 106 January 2, 2019 4 / 47

Page 8: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x cos x dx .

Solution:

Let I =

āˆ«x cos x dx . Let u = x and dv = cos x dx . Hence,

u = x ā‡’ du = dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

From the theorem, we have

I = x sin x āˆ’āˆ«

sin x dx = x sin x + cos x + c.

Try to chooseu = cos x and dv = x dx

Do you have the same result?

Dr. M. Alghamdi MATH 106 January 2, 2019 4 / 47

Page 9: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x cos x dx .

Solution:

Let I =

āˆ«x cos x dx . Let u = x and dv = cos x dx . Hence,

u = x ā‡’ du = dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

From the theorem, we have

I = x sin x āˆ’āˆ«

sin x dx = x sin x + cos x + c.

Try to chooseu = cos x and dv = x dx

Do you have the same result?

Dr. M. Alghamdi MATH 106 January 2, 2019 4 / 47

Page 10: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x ex dx .

Solution:

Let I =

āˆ«x ex dx . Let u = x and dv = ex dx . Hence,

u = x ā‡’ du = dx ,

dv = ex dx ā‡’ v =

āˆ«ex dx = ex .

From Theorem .1, we have

I = x ex āˆ’āˆ«

ex dx = x ex āˆ’ ex + c.

Try to choose

u = ex and dv = x dx

We will obtain

I =x2

2ex āˆ’

āˆ«x2

2ex dx .

However, the integral

āˆ«x2

2ex dx is

more difficult than the original oneāˆ«xex dx .

Dr. M. Alghamdi MATH 106 January 2, 2019 5 / 47

Page 11: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x ex dx .

Solution:

Let I =

āˆ«x ex dx . Let u = x and dv = ex dx . Hence,

u = x ā‡’ du = dx ,

dv = ex dx ā‡’ v =

āˆ«ex dx = ex .

From Theorem .1, we have

I = x ex āˆ’āˆ«

ex dx = x ex āˆ’ ex + c.

Try to choose

u = ex and dv = x dx

We will obtain

I =x2

2ex āˆ’

āˆ«x2

2ex dx .

However, the integral

āˆ«x2

2ex dx is

more difficult than the original oneāˆ«xex dx .

Dr. M. Alghamdi MATH 106 January 2, 2019 5 / 47

Page 12: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x ex dx .

Solution:

Let I =

āˆ«x ex dx . Let u = x and dv = ex dx . Hence,

u = x ā‡’ du = dx ,

dv = ex dx ā‡’ v =

āˆ«ex dx = ex .

From Theorem .1, we have

I = x ex āˆ’āˆ«

ex dx = x ex āˆ’ ex + c.

Try to choose

u = ex and dv = x dx

We will obtain

I =x2

2ex āˆ’

āˆ«x2

2ex dx .

However, the integral

āˆ«x2

2ex dx is

more difficult than the original oneāˆ«xex dx .

Dr. M. Alghamdi MATH 106 January 2, 2019 5 / 47

Page 13: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x ex dx .

Solution:

Let I =

āˆ«x ex dx . Let u = x and dv = ex dx . Hence,

u = x ā‡’ du = dx ,

dv = ex dx ā‡’ v =

āˆ«ex dx = ex .

From Theorem .1, we have

I = x ex āˆ’āˆ«

ex dx = x ex āˆ’ ex + c.

Try to choose

u = ex and dv = x dx

We will obtain

I =x2

2ex āˆ’

āˆ«x2

2ex dx .

However, the integral

āˆ«x2

2ex dx is

more difficult than the original oneāˆ«xex dx .

Dr. M. Alghamdi MATH 106 January 2, 2019 5 / 47

Page 14: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x ex dx .

Solution:

Let I =

āˆ«x ex dx . Let u = x and dv = ex dx . Hence,

u = x ā‡’ du = dx ,

dv = ex dx ā‡’ v =

āˆ«ex dx = ex .

From Theorem .1, we have

I = x ex āˆ’āˆ«

ex dx = x ex āˆ’ ex + c.

Try to choose

u = ex and dv = x dx

We will obtain

I =x2

2ex āˆ’

āˆ«x2

2ex dx .

However, the integral

āˆ«x2

2ex dx is

more difficult than the original oneāˆ«xex dx .

Dr. M. Alghamdi MATH 106 January 2, 2019 5 / 47

Page 15: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Remark

1 Remember that when we consider the integration by parts, we want to obtain an easierintegral. As we saw in the previous example, if we choose u = ex and dv = x dx , we haveāˆ«

x2

2ex dx which is more difficult than the original one.

2 When considering the integration by parts, we have to choose dv a function that can beintegrated.

3 Sometimes we need to use the integration by parts twice as in the upcoming examples.

Example

Evaluate the integral

āˆ«ln x dx .

Solution: Let I =

āˆ«ln x dx . Let u = ln x and dv = dx . Hence,

u = ln x ā‡’ du =1

xdx ,

dv = dx ā‡’ v =

āˆ«1 dx = x .

From Theorem .1, we obtain I = x ln x āˆ’āˆ«

x1

xdx = x ln x āˆ’

āˆ«1 dx = x ln x āˆ’ x + c .

Dr. M. Alghamdi MATH 106 January 2, 2019 6 / 47

Page 16: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Remark

1 Remember that when we consider the integration by parts, we want to obtain an easierintegral. As we saw in the previous example, if we choose u = ex and dv = x dx , we haveāˆ«

x2

2ex dx which is more difficult than the original one.

2 When considering the integration by parts, we have to choose dv a function that can beintegrated.

3 Sometimes we need to use the integration by parts twice as in the upcoming examples.

Example

Evaluate the integral

āˆ«ln x dx .

Solution: Let I =

āˆ«ln x dx . Let u = ln x and dv = dx . Hence,

u = ln x ā‡’ du =1

xdx ,

dv = dx ā‡’ v =

āˆ«1 dx = x .

From Theorem .1, we obtain I = x ln x āˆ’āˆ«

x1

xdx = x ln x āˆ’

āˆ«1 dx = x ln x āˆ’ x + c .

Dr. M. Alghamdi MATH 106 January 2, 2019 6 / 47

Page 17: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Remark

1 Remember that when we consider the integration by parts, we want to obtain an easierintegral. As we saw in the previous example, if we choose u = ex and dv = x dx , we haveāˆ«

x2

2ex dx which is more difficult than the original one.

2 When considering the integration by parts, we have to choose dv a function that can beintegrated.

3 Sometimes we need to use the integration by parts twice as in the upcoming examples.

Example

Evaluate the integral

āˆ«ln x dx .

Solution: Let I =

āˆ«ln x dx . Let u = ln x and dv = dx . Hence,

u = ln x ā‡’ du =1

xdx ,

dv = dx ā‡’ v =

āˆ«1 dx = x .

From Theorem .1, we obtain I = x ln x āˆ’āˆ«

x1

xdx = x ln x āˆ’

āˆ«1 dx = x ln x āˆ’ x + c .

Dr. M. Alghamdi MATH 106 January 2, 2019 6 / 47

Page 18: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Remark

1 Remember that when we consider the integration by parts, we want to obtain an easierintegral. As we saw in the previous example, if we choose u = ex and dv = x dx , we haveāˆ«

x2

2ex dx which is more difficult than the original one.

2 When considering the integration by parts, we have to choose dv a function that can beintegrated.

3 Sometimes we need to use the integration by parts twice as in the upcoming examples.

Example

Evaluate the integral

āˆ«ln x dx .

Solution: Let I =

āˆ«ln x dx . Let u = ln x and dv = dx . Hence,

u = ln x ā‡’ du =1

xdx ,

dv = dx ā‡’ v =

āˆ«1 dx = x .

From Theorem .1, we obtain I = x ln x āˆ’āˆ«

x1

xdx = x ln x āˆ’

āˆ«1 dx = x ln x āˆ’ x + c .

Dr. M. Alghamdi MATH 106 January 2, 2019 6 / 47

Page 19: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«ex cos x dx .

Solution: Let I =

āˆ«ex cos x dx . Let u = ex and dv = cos x dx .

u = ex ā‡’ du = ex dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

Hence, I = ex sin x āˆ’āˆ«

ex sin x dx .

The integral

āˆ«ex sin x dx cannot be evaluated. Therefore, we use the integration by parts

again where we assume J =

āˆ«ex sin x dx . Let u = ex and dv = sin x dx . Hence,

u = ex ā‡’ du = ex dx ,

dv = sin x dx ā‡’ v =

āˆ«sin x dx = āˆ’ cos x .

Hence, J = āˆ’ex cos x +

āˆ«ex cos x dx . By substituting the result of J into I , we have

I = ex sin x āˆ’ J = ex sin x + ex cos x āˆ’āˆ«

ex cos x dx ā‡’ I = ex sin x + ex cos x āˆ’ I .

This implies 2I = ex sin x + ex cos x ā‡’ I = 12

(ex sin x + ex cos x) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 7 / 47

Page 20: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«ex cos x dx .

Solution: Let I =

āˆ«ex cos x dx . Let u = ex and dv = cos x dx .

u = ex ā‡’ du = ex dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

Hence, I = ex sin x āˆ’āˆ«

ex sin x dx .

The integral

āˆ«ex sin x dx cannot be evaluated. Therefore, we use the integration by parts

again where we assume J =

āˆ«ex sin x dx . Let u = ex and dv = sin x dx . Hence,

u = ex ā‡’ du = ex dx ,

dv = sin x dx ā‡’ v =

āˆ«sin x dx = āˆ’ cos x .

Hence, J = āˆ’ex cos x +

āˆ«ex cos x dx . By substituting the result of J into I , we have

I = ex sin x āˆ’ J = ex sin x + ex cos x āˆ’āˆ«

ex cos x dx ā‡’ I = ex sin x + ex cos x āˆ’ I .

This implies 2I = ex sin x + ex cos x ā‡’ I = 12

(ex sin x + ex cos x) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 7 / 47

Page 21: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«ex cos x dx .

Solution: Let I =

āˆ«ex cos x dx . Let u = ex and dv = cos x dx .

u = ex ā‡’ du = ex dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

Hence, I = ex sin x āˆ’āˆ«

ex sin x dx .

The integral

āˆ«ex sin x dx cannot be evaluated. Therefore, we use the integration by parts

again where we assume J =

āˆ«ex sin x dx . Let u = ex and dv = sin x dx . Hence,

u = ex ā‡’ du = ex dx ,

dv = sin x dx ā‡’ v =

āˆ«sin x dx = āˆ’ cos x .

Hence, J = āˆ’ex cos x +

āˆ«ex cos x dx . By substituting the result of J into I , we have

I = ex sin x āˆ’ J = ex sin x + ex cos x āˆ’āˆ«

ex cos x dx ā‡’ I = ex sin x + ex cos x āˆ’ I .

This implies 2I = ex sin x + ex cos x ā‡’ I = 12

(ex sin x + ex cos x) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 7 / 47

Page 22: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«ex cos x dx .

Solution: Let I =

āˆ«ex cos x dx . Let u = ex and dv = cos x dx .

u = ex ā‡’ du = ex dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

Hence, I = ex sin x āˆ’āˆ«

ex sin x dx .

The integral

āˆ«ex sin x dx cannot be evaluated. Therefore, we use the integration by parts

again where we assume J =

āˆ«ex sin x dx . Let u = ex and dv = sin x dx . Hence,

u = ex ā‡’ du = ex dx ,

dv = sin x dx ā‡’ v =

āˆ«sin x dx = āˆ’ cos x .

Hence, J = āˆ’ex cos x +

āˆ«ex cos x dx . By substituting the result of J into I , we have

I = ex sin x āˆ’ J = ex sin x + ex cos x āˆ’āˆ«

ex cos x dx ā‡’ I = ex sin x + ex cos x āˆ’ I .

This implies 2I = ex sin x + ex cos x ā‡’ I = 12

(ex sin x + ex cos x) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 7 / 47

Page 23: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«ex cos x dx .

Solution: Let I =

āˆ«ex cos x dx . Let u = ex and dv = cos x dx .

u = ex ā‡’ du = ex dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

Hence, I = ex sin x āˆ’āˆ«

ex sin x dx .

The integral

āˆ«ex sin x dx cannot be evaluated. Therefore, we use the integration by parts

again where we assume J =

āˆ«ex sin x dx . Let u = ex and dv = sin x dx . Hence,

u = ex ā‡’ du = ex dx ,

dv = sin x dx ā‡’ v =

āˆ«sin x dx = āˆ’ cos x .

Hence, J = āˆ’ex cos x +

āˆ«ex cos x dx . By substituting the result of J into I , we have

I = ex sin x āˆ’ J = ex sin x + ex cos x āˆ’āˆ«

ex cos x dx ā‡’ I = ex sin x + ex cos x āˆ’ I .

This implies 2I = ex sin x + ex cos x ā‡’ I = 12

(ex sin x + ex cos x) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 7 / 47

Page 24: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«ex cos x dx .

Solution: Let I =

āˆ«ex cos x dx . Let u = ex and dv = cos x dx .

u = ex ā‡’ du = ex dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

Hence, I = ex sin x āˆ’āˆ«

ex sin x dx .

The integral

āˆ«ex sin x dx cannot be evaluated. Therefore, we use the integration by parts

again where we assume J =

āˆ«ex sin x dx . Let u = ex and dv = sin x dx . Hence,

u = ex ā‡’ du = ex dx ,

dv = sin x dx ā‡’ v =

āˆ«sin x dx = āˆ’ cos x .

Hence, J = āˆ’ex cos x +

āˆ«ex cos x dx . By substituting the result of J into I , we have

I = ex sin x āˆ’ J = ex sin x + ex cos x āˆ’āˆ«

ex cos x dx ā‡’ I = ex sin x + ex cos x āˆ’ I .

This implies 2I = ex sin x + ex cos x ā‡’ I = 12

(ex sin x + ex cos x) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 7 / 47

Page 25: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«ex cos x dx .

Solution: Let I =

āˆ«ex cos x dx . Let u = ex and dv = cos x dx .

u = ex ā‡’ du = ex dx ,

dv = cos x dx ā‡’ v =

āˆ«cos x dx = sin x .

Hence, I = ex sin x āˆ’āˆ«

ex sin x dx .

The integral

āˆ«ex sin x dx cannot be evaluated. Therefore, we use the integration by parts

again where we assume J =

āˆ«ex sin x dx . Let u = ex and dv = sin x dx . Hence,

u = ex ā‡’ du = ex dx ,

dv = sin x dx ā‡’ v =

āˆ«sin x dx = āˆ’ cos x .

Hence, J = āˆ’ex cos x +

āˆ«ex cos x dx . By substituting the result of J into I , we have

I = ex sin x āˆ’ J = ex sin x + ex cos x āˆ’āˆ«

ex cos x dx ā‡’ I = ex sin x + ex cos x āˆ’ I .

This implies 2I = ex sin x + ex cos x ā‡’ I = 12

(ex sin x + ex cos x) + c.Dr. M. Alghamdi MATH 106 January 2, 2019 7 / 47

Page 26: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x2ex dx .

Solution: Let I =

āˆ«x2ex dx . Let u = x2 and dv = ex dx . Hence,

u = x2 ā‡’ du = 2x dx ,

dv = exdx ā‡’ v =

āˆ«ex dx = ex .

This implies, I = x2ex āˆ’ 2

āˆ«xex dx .

We use the integration by parts again for the integral

āˆ«xex dx . Let J =

āˆ«xex dx .

Let u = x and dv = ex dx . Hence,

u = x ā‡’ du = dx ,

dv = exdx ā‡’ v =

āˆ«ex dx = ex .

Therefore, J = xex āˆ’āˆ«

ex dx = xex āˆ’ ex + c. By substituting the result into I , we have

I = x2ex āˆ’ 2(xex āˆ’ ex ) + c = ex (x2 āˆ’ 2x + 2) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 8 / 47

Page 27: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x2ex dx .

Solution: Let I =

āˆ«x2ex dx . Let u = x2 and dv = ex dx . Hence,

u = x2 ā‡’ du = 2x dx ,

dv = exdx ā‡’ v =

āˆ«ex dx = ex .

This implies, I = x2ex āˆ’ 2

āˆ«xex dx .

We use the integration by parts again for the integral

āˆ«xex dx . Let J =

āˆ«xex dx .

Let u = x and dv = ex dx . Hence,

u = x ā‡’ du = dx ,

dv = exdx ā‡’ v =

āˆ«ex dx = ex .

Therefore, J = xex āˆ’āˆ«

ex dx = xex āˆ’ ex + c. By substituting the result into I , we have

I = x2ex āˆ’ 2(xex āˆ’ ex ) + c = ex (x2 āˆ’ 2x + 2) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 8 / 47

Page 28: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x2ex dx .

Solution: Let I =

āˆ«x2ex dx . Let u = x2 and dv = ex dx . Hence,

u = x2 ā‡’ du = 2x dx ,

dv = exdx ā‡’ v =

āˆ«ex dx = ex .

This implies, I = x2ex āˆ’ 2

āˆ«xex dx .

We use the integration by parts again for the integral

āˆ«xex dx . Let J =

āˆ«xex dx .

Let u = x and dv = ex dx . Hence,

u = x ā‡’ du = dx ,

dv = exdx ā‡’ v =

āˆ«ex dx = ex .

Therefore, J = xex āˆ’āˆ«

ex dx = xex āˆ’ ex + c. By substituting the result into I , we have

I = x2ex āˆ’ 2(xex āˆ’ ex ) + c = ex (x2 āˆ’ 2x + 2) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 8 / 47

Page 29: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ« 1

0

tanāˆ’1 x dx .

Solution:

Let I =

āˆ«tanāˆ’1 x dx . Let u = tanāˆ’1 x and dv = dx . Hence,

u = tanāˆ’1 x ā‡’ du =1

x2 + 1dx ,

dv = dx ā‡’ v =

āˆ«1 dx = x .

By applying the theorem, we obtain

I = x tanāˆ’1 x āˆ’āˆ«

x

x2 + 1dx = x tanāˆ’1 x āˆ’ 1

2ln(x2 + 1) + c.

Therefore,āˆ« 1

0

tanāˆ’1 x dx =[x tanāˆ’1 xāˆ’1

2ln(x2+1)

]1

0= (tanāˆ’1(1)āˆ’1

2ln 2)āˆ’(0āˆ’1

2ln 1) =

Ļ€

4āˆ’lnāˆš

2.

Dr. M. Alghamdi MATH 106 January 2, 2019 9 / 47

Page 30: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ« 1

0

tanāˆ’1 x dx .

Solution:

Let I =

āˆ«tanāˆ’1 x dx . Let u = tanāˆ’1 x and dv = dx . Hence,

u = tanāˆ’1 x ā‡’ du =1

x2 + 1dx ,

dv = dx ā‡’ v =

āˆ«1 dx = x .

By applying the theorem, we obtain

I = x tanāˆ’1 x āˆ’āˆ«

x

x2 + 1dx = x tanāˆ’1 x āˆ’ 1

2ln(x2 + 1) + c.

Therefore,āˆ« 1

0

tanāˆ’1 x dx =[x tanāˆ’1 xāˆ’1

2ln(x2+1)

]1

0= (tanāˆ’1(1)āˆ’1

2ln 2)āˆ’(0āˆ’1

2ln 1) =

Ļ€

4āˆ’lnāˆš

2.

Dr. M. Alghamdi MATH 106 January 2, 2019 9 / 47

Page 31: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Trigonometric Functions(A) Integration of Powers of Trigonometric Functions

In this section, we evaluate integrals of forms

āˆ«sinn x cosm x dx ,āˆ«

tann x secm x dx and

āˆ«cotn x cscm x dx .

Form 1:

āˆ«sinn x cosm x dx .

This form is treated as follows:

1 If n is an odd integer, write

sinn x cosm x = sinnāˆ’1 x cosm x sin x

Then, use the identity sin2 x = 1āˆ’ cos2 x and the substitution u = cos x .

2 If m is an odd integer, write

sinn x cosm x = sinn x cosmāˆ’1 x cos x

Then, use the identity cos2 x = 1āˆ’ sin2 x and the substitution u = sin x .

3 If m and n are even, use the identities cos2 x = 1+cos 2x2

andsin2 x = 1āˆ’cos 2x

2.

Dr. M. Alghamdi MATH 106 January 2, 2019 10 / 47

Page 32: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Trigonometric Functions(A) Integration of Powers of Trigonometric Functions

In this section, we evaluate integrals of forms

āˆ«sinn x cosm x dx ,āˆ«

tann x secm x dx and

āˆ«cotn x cscm x dx .

Form 1:

āˆ«sinn x cosm x dx .

This form is treated as follows:

1 If n is an odd integer, write

sinn x cosm x = sinnāˆ’1 x cosm x sin x

Then, use the identity sin2 x = 1āˆ’ cos2 x and the substitution u = cos x .

2 If m is an odd integer, write

sinn x cosm x = sinn x cosmāˆ’1 x cos x

Then, use the identity cos2 x = 1āˆ’ sin2 x and the substitution u = sin x .

3 If m and n are even, use the identities cos2 x = 1+cos 2x2

andsin2 x = 1āˆ’cos 2x

2.

Dr. M. Alghamdi MATH 106 January 2, 2019 10 / 47

Page 33: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

ExampleEvaluate the integral.

1

āˆ«sin3 x dx

2

āˆ«cos4 x dx

3

āˆ«sin5 x cos4 x dx

4

āˆ«sin2 x cos2 x dx

Solution:1) Write sin3 x = sin2 x sin x = (1āˆ’ cos2 x) sin x . Hence,āˆ«

sin3 x dx =

āˆ«(1āˆ’ cos2 x) sin x dx .

Let u = cos x , then du = āˆ’ sin x dx . By substitution, we have

āˆ’āˆ«

(1āˆ’ u2) du = āˆ’u +u3

3+ c.

This implies āˆ«sin3 x dx = āˆ’ cos x +

1

3cos3 x + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 11 / 47

Page 34: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

ExampleEvaluate the integral.

1

āˆ«sin3 x dx

2

āˆ«cos4 x dx

3

āˆ«sin5 x cos4 x dx

4

āˆ«sin2 x cos2 x dx

Solution:1) Write sin3 x = sin2 x sin x = (1āˆ’ cos2 x) sin x . Hence,āˆ«

sin3 x dx =

āˆ«(1āˆ’ cos2 x) sin x dx .

Let u = cos x , then du = āˆ’ sin x dx . By substitution, we have

āˆ’āˆ«

(1āˆ’ u2) du = āˆ’u +u3

3+ c.

This implies āˆ«sin3 x dx = āˆ’ cos x +

1

3cos3 x + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 11 / 47

Page 35: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

2) Write cos4 x = (cos2 x)2 = ( 1+cos 2x2

)2. Hence,āˆ«cos4 x dx =

āˆ« (1 + cos 2x

2

)2

dx

=1

4

āˆ«(1 + 2 cos 2x + cos2 2x) dx

=1

4

(āˆ«1 dx +

āˆ«2 cos 2x dx +

āˆ«cos2 2x dx

)=

1

4

(x + sin 2x +

1

2

āˆ«(1 + cos 4x) dx

)=

1

4

(x + sin 2x +

1

2

(x +

sin 4x

4

))+ c.

3) Write sin5 x cos4 x = sin4 x cos4 x sin x = (1āˆ’ cos2 x)2 cos4 x sin x .Let u = cos x , then du = āˆ’ sin x dx . Thus, the integral becomes

āˆ’āˆ«

(1āˆ’ u2)2u4 du = āˆ’āˆ«

(u4 āˆ’ 2u6 + u8) du = āˆ’(u5

5āˆ’ 2u7

7+

u9

9

)+ c.

This implies

āˆ«sin5 x cos4 x dx = āˆ’ cos5 x

5+ 2 cos7 x

7āˆ’ cos9 x

9+ c.

Dr. M. Alghamdi MATH 106 January 2, 2019 12 / 47

Page 36: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

2) Write cos4 x = (cos2 x)2 = ( 1+cos 2x2

)2. Hence,āˆ«cos4 x dx =

āˆ« (1 + cos 2x

2

)2

dx

=1

4

āˆ«(1 + 2 cos 2x + cos2 2x) dx

=1

4

(āˆ«1 dx +

āˆ«2 cos 2x dx +

āˆ«cos2 2x dx

)=

1

4

(x + sin 2x +

1

2

āˆ«(1 + cos 4x) dx

)=

1

4

(x + sin 2x +

1

2

(x +

sin 4x

4

))+ c.

3) Write sin5 x cos4 x = sin4 x cos4 x sin x = (1āˆ’ cos2 x)2 cos4 x sin x .Let u = cos x , then du = āˆ’ sin x dx . Thus, the integral becomes

āˆ’āˆ«

(1āˆ’ u2)2u4 du = āˆ’āˆ«

(u4 āˆ’ 2u6 + u8) du = āˆ’(u5

5āˆ’ 2u7

7+

u9

9

)+ c.

This implies

āˆ«sin5 x cos4 x dx = āˆ’ cos5 x

5+ 2 cos7 x

7āˆ’ cos9 x

9+ c.

Dr. M. Alghamdi MATH 106 January 2, 2019 12 / 47

Page 37: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

4) The integrand

sin2 x cos2 x = ( 1āˆ’cos 2x2

)( 1+cos 2x2

) = 1āˆ’cos2 2x4

= sin2 2x4

= 14( 1āˆ’cos 4x

2). Hence,āˆ«

sin2 x cos2 x dx =1

8

āˆ«(1āˆ’ cos 4x) dx =

1

8

(x āˆ’ sin 4x

4

)+ c.

Dr. M. Alghamdi MATH 106 January 2, 2019 13 / 47

Page 38: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Form 2:

āˆ«tann x secm x dx .

This form is treated as follows:

1 If n = 0, write secm x = secmāˆ’2 x sec2 x .

1 If m > 1 is odd, use the integration by parts.2 If m is even, use the identity sec2 x = 1 + tan2 x and the

substitution u = tan x .

2 If m = 0 and n is odd or even, write tann x = tannāˆ’2 x tan2 x . Then, use theidentity tan2 x = sec2 x āˆ’ 1 and the substitution u = tan x .

3 If n is even and m is odd, use the identity tan2 x = sec2 x āˆ’ 1 to reduce thepower m and then use the integration by parts.

4 If m ā‰„ 2 is even, write tann x secm x = tann x secmāˆ’2 x sec2 x . Then, usethe identity sec2 x = 1 + tan2 x and the substitution u = tan x . Alternatively,write

tann x secm x = tannāˆ’1 x secmāˆ’1 x tan x sec x

Then, use the identity tan2 x = sec2 x āˆ’ 1 and the substitution u = sec x .

5 If n is odd and m ā‰„ 1, write tann x secm x = tannāˆ’1 x secmāˆ’1 x tan x sec x .Then, use the identity tan2 x = sec2 x āˆ’ 1 and the substitution u = sec x .

Dr. M. Alghamdi MATH 106 January 2, 2019 14 / 47

Page 39: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral.

1

āˆ«tan5 x dx

2

āˆ«tan6 x dx

3

āˆ«sec3 x dx

4

āˆ«tan5 x sec4 x dx

5

āˆ«tan4 x sec4 x dx

Solution:1) Write tan5 x = tan3 x tan2 x = tan3 x (sec2 x āˆ’ 1). Thus,āˆ«

tan5 x dx =

āˆ«tan3 x (sec2 x āˆ’ 1) dx

=

āˆ«tan3 x sec2 x dx āˆ’

āˆ«tan3 x dx

=tan4 x

4āˆ’āˆ«

tan x (sec2 x āˆ’ 1) dx

=tan4 x

4āˆ’āˆ«

tan x sec2 x dx +

āˆ«tan x dx

=tan4 x

4āˆ’ tan2 x

2+ ln | sec x | +c.

Dr. M. Alghamdi MATH 106 January 2, 2019 15 / 47

Page 40: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral.

1

āˆ«tan5 x dx

2

āˆ«tan6 x dx

3

āˆ«sec3 x dx

4

āˆ«tan5 x sec4 x dx

5

āˆ«tan4 x sec4 x dx

Solution:1) Write tan5 x = tan3 x tan2 x = tan3 x (sec2 x āˆ’ 1). Thus,āˆ«

tan5 x dx =

āˆ«tan3 x (sec2 x āˆ’ 1) dx

=

āˆ«tan3 x sec2 x dx āˆ’

āˆ«tan3 x dx

=tan4 x

4āˆ’āˆ«

tan x (sec2 x āˆ’ 1) dx

=tan4 x

4āˆ’āˆ«

tan x sec2 x dx +

āˆ«tan x dx

=tan4 x

4āˆ’ tan2 x

2+ ln | sec x | +c.

Dr. M. Alghamdi MATH 106 January 2, 2019 15 / 47

Page 41: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

2) Write tan6 x = tan4 x tan2 x = tan4 x (sec2 x āˆ’ 1). The integral becomesāˆ«tan6 x dx =

āˆ«tan4 x (sec2 x āˆ’ 1) dx

=

āˆ«tan4 x sec2 x dx āˆ’

āˆ«tan4 x dx

=tan5 x

5āˆ’āˆ«

tan2 x (sec2 x āˆ’ 1) dx

=tan5 x

5āˆ’āˆ«

tan2 x sec2 x dx +

āˆ«tan2 x dx

=tan5 x

5āˆ’ tan3 x

3+

āˆ«(sec2 x āˆ’ 1) dx

=tan5 x

5āˆ’ tan3 x

3+ tan x āˆ’ x + c.

3) Write sec3 x = sec x sec2 x and let I =

āˆ«sec x sec2 x dx .

We use the integration by parts to evaluate the integral as follows:

u = sec x ā‡’ du = sec x tan x dx ,

dv = sec2 x dx ā‡’ v =

āˆ«sec2 x dx = tan x .

Dr. M. Alghamdi MATH 106 January 2, 2019 16 / 47

Page 42: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

2) Write tan6 x = tan4 x tan2 x = tan4 x (sec2 x āˆ’ 1). The integral becomesāˆ«tan6 x dx =

āˆ«tan4 x (sec2 x āˆ’ 1) dx

=

āˆ«tan4 x sec2 x dx āˆ’

āˆ«tan4 x dx

=tan5 x

5āˆ’āˆ«

tan2 x (sec2 x āˆ’ 1) dx

=tan5 x

5āˆ’āˆ«

tan2 x sec2 x dx +

āˆ«tan2 x dx

=tan5 x

5āˆ’ tan3 x

3+

āˆ«(sec2 x āˆ’ 1) dx

=tan5 x

5āˆ’ tan3 x

3+ tan x āˆ’ x + c.

3) Write sec3 x = sec x sec2 x and let I =

āˆ«sec x sec2 x dx .

We use the integration by parts to evaluate the integral as follows:

u = sec x ā‡’ du = sec x tan x dx ,

dv = sec2 x dx ā‡’ v =

āˆ«sec2 x dx = tan x .

Dr. M. Alghamdi MATH 106 January 2, 2019 16 / 47

Page 43: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Hence,

I = sec x tan x āˆ’āˆ«

sec x tan2 x dx

= sec x tan x āˆ’āˆ«

(sec3 x āˆ’ sec x) dx

= sec x tan x āˆ’ I + ln | sec x + tan x |

I =1

2(sec x tan x + ln | sec x + tan x |) + c.

4) Express the integrand tan5 x sec4 x as follows

tan5 x sec4 x = tan5 x sec2 x sec2 x = tan5 x (tan2 x + 1) sec2 x .

This implies āˆ«tan5 x sec4 x dx =

āˆ«tan5 x (tan2 x + 1) sec2 x dx

=

āˆ«(tan7 x + tan5 x) sec2 x dx

=tan8 x

8+

tan6 x

6+ c.

Dr. M. Alghamdi MATH 106 January 2, 2019 17 / 47

Page 44: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Hence,

I = sec x tan x āˆ’āˆ«

sec x tan2 x dx

= sec x tan x āˆ’āˆ«

(sec3 x āˆ’ sec x) dx

= sec x tan x āˆ’ I + ln | sec x + tan x |

I =1

2(sec x tan x + ln | sec x + tan x |) + c.

4) Express the integrand tan5 x sec4 x as follows

tan5 x sec4 x = tan5 x sec2 x sec2 x = tan5 x (tan2 x + 1) sec2 x .

This implies āˆ«tan5 x sec4 x dx =

āˆ«tan5 x (tan2 x + 1) sec2 x dx

=

āˆ«(tan7 x + tan5 x) sec2 x dx

=tan8 x

8+

tan6 x

6+ c.

Dr. M. Alghamdi MATH 106 January 2, 2019 17 / 47

Page 45: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

5) Write tan4 x sec4 x = tan4 x (tan2 x + 1) sec2 x . The integral becomesāˆ«tan4 x sec4 x dx =

āˆ«tan4 x (tan2 x + 1) sec2 x dx

=

āˆ«(tan6 x + tan4 x) sec2 x dx

=tan7 x

7+

tan5 x

5+ c.

Form 3:

āˆ«cotn x cscm x dx .

The treatment of this form is similar to the integral

āˆ«tann x secm x dx , except we use

the identitycot2 x + 1 = csc2 x .

ExampleEvaluate the integral.

1

āˆ«cot3 x dx

2

āˆ«cot4 x dx

3

āˆ«cot5 x csc4 x dx

Dr. M. Alghamdi MATH 106 January 2, 2019 18 / 47

Page 46: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Solution:1) Write cot3 x = cot x (csc2 x āˆ’ 1). Then,āˆ«

cot3 x dx =

āˆ«cot x (csc2 x āˆ’ 1) dx

=

āˆ«(cot x csc2 x āˆ’ cot x) dx

=

āˆ«cot x csc2 x dx āˆ’

āˆ«cot x dx

= āˆ’1

2cot2 x āˆ’ ln | sin x | +c.

2) The integrand can be expressed as cot4 x = cot2 x (csc2 x āˆ’ 1). Thus,āˆ«cot4 x dx =

āˆ«cot2 x (csc2 x āˆ’ 1) dx

=

āˆ«cot2 x csc2 x dx āˆ’

āˆ«cot2 x dx

= āˆ’cot3 x

3āˆ’āˆ«

(csc2 x āˆ’ 1) dx

= āˆ’cot3 x

3+ cot x + x + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 19 / 47

Page 47: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

3) Write cot5 x csc4 x = csc3 x cot4 x csc x cot x . This impliesāˆ«cot5 x csc4 x dx =

āˆ«csc3 x cot4 x csc x cot x dx

=

āˆ«csc3 x (csc2 x āˆ’ 1)2 csc x cot x dx

=

āˆ«(csc7 x āˆ’ 2 csc5 x + csc3 x) csc x cot x dx

= āˆ’csc8 x

8+

csc6 x

3āˆ’ csc4 x

4+ c.

Dr. M. Alghamdi MATH 106 January 2, 2019 20 / 47

Page 48: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

(B) Integration of Forms sin ux cos vx, sin ux sin vx and cos ux cos vxWe deal with these integrals by using the following formulas:

sin ux cos vx =1

2

(sin (u āˆ’ v) x + sin (u + v) x

)sin ux sin vx =

1

2

(cos (u āˆ’ v) x āˆ’ cos (u + v) x

)cos ux cos vx =

1

2

(cos (u āˆ’ v) x + cos (u + v) x

)

ExampleEvaluate the integral.

1

āˆ«sin 5x sin 3x dx

2

āˆ«sin 7x cos 2x dx

3

āˆ«cos 5x sin 2x dx

4

āˆ«cos 6x cos 4x dx

Dr. M. Alghamdi MATH 106 January 2, 2019 21 / 47

Page 49: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

(B) Integration of Forms sin ux cos vx, sin ux sin vx and cos ux cos vxWe deal with these integrals by using the following formulas:

sin ux cos vx =1

2

(sin (u āˆ’ v) x + sin (u + v) x

)sin ux sin vx =

1

2

(cos (u āˆ’ v) x āˆ’ cos (u + v) x

)cos ux cos vx =

1

2

(cos (u āˆ’ v) x + cos (u + v) x

)

ExampleEvaluate the integral.

1

āˆ«sin 5x sin 3x dx

2

āˆ«sin 7x cos 2x dx

3

āˆ«cos 5x sin 2x dx

4

āˆ«cos 6x cos 4x dx

Dr. M. Alghamdi MATH 106 January 2, 2019 21 / 47

Page 50: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Solution:1) From the previous formulas, we have sin 5x sin 3x = 1

2

(cos 2x āˆ’ cos 8x

). Hence,āˆ«

sin 5x sin 3x dx =1

2

āˆ«(cos 2x āˆ’ cos 8x) dx

=1

4sin 2x āˆ’ 1

16sin 8x + c.

2) Since sin 7x cos 2x = 12

(sin 5x + sin 9x

), thenāˆ«

sin 7x cos 2x dx =1

2

āˆ«(sin 5x + sin 9x) dx

= āˆ’ 1

10cos 5x āˆ’ 1

18cos 9x + c.

3) Since cos 5x sin 2x = 12

(sin 3x + sin 7x

), thenāˆ«

cos 5x sin 2x dx =1

2

āˆ«(sin 3x + sin 7x) dx

= āˆ’1

6cos 3x āˆ’ 1

14cos 7x + c.

4) Since cos 6x cos 4x = 12

(cos 2x + cos 10x

), thenāˆ«

cos 6x cos 4x dx =1

2

āˆ«(cos 2x + cos 10x) dx

=1

4sin 2x +

1

20sin 10x + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 22 / 47

Page 51: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Trigonometric SubstitutionsIn this section, we are going to study integrals containing the following expressionsāˆša2 āˆ’ x2,

āˆša2 + x2 and

āˆšx2 āˆ’ a2 where a > 0.

āˆša2 āˆ’ x2 = a cos Īø if x =

a sin Īø.If x = a sin Īø where Īø āˆˆ[āˆ’Ļ€/2, Ļ€/2], thenāˆš

a2 āˆ’ x2 =āˆš

a2 āˆ’ a2 sin2 Īø

=āˆš

a2(1āˆ’ sin2 Īø)

=āˆša2 cos2 Īø

= a cos Īø.

āˆša2 āˆ’ x2

xa

Īø

If the expressionāˆša2 āˆ’ x2 is in a denominator, then we assume āˆ’Ļ€

2< Īø < Ļ€

2.

Dr. M. Alghamdi MATH 106 January 2, 2019 23 / 47

Page 52: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

āˆša2 + x2 = a sec Īø if x =

a tan Īø.If x = a tan Īø where Īø āˆˆ(āˆ’Ļ€/2, Ļ€/2), thenāˆš

a2 + x2 =āˆš

a2 + a2 tan2 Īø

=āˆš

a2(1 + tan2 Īø)

=āˆša2 sec2 Īø

= a sec Īø.

a

x

āˆša2 + x2

Īø

Dr. M. Alghamdi MATH 106 January 2, 2019 24 / 47

Page 53: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

āˆšx2 āˆ’ a2 = a tan Īø if x =

a sec Īø.If x = a sec Īø where Īø āˆˆ [0, Ļ€/2)āˆŖ[Ļ€, 3Ļ€/2), thenāˆš

x2 āˆ’ a2 =āˆš

a2 sec2 Īø āˆ’ a2

=āˆš

a2(sec2 Īø āˆ’ 1)

=āˆša2 tan2 Īø

= a tan Īø.

a

āˆšx2 āˆ’ a2

x

Īø

Dr. M. Alghamdi MATH 106 January 2, 2019 25 / 47

Page 54: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

ExampleEvaluate the integral.

1

āˆ«x2

āˆš1āˆ’ x2

dx 2

āˆ« 6

5

āˆšx2 āˆ’ 25

x4dx

3

āˆ« āˆšx2 + 9 dx

Solution:1) Let x = sin Īø where Īø āˆˆ (āˆ’Ļ€/2, Ļ€/2), thus dx = cos Īø dĪø. By substitution, we haveāˆ«

x2

āˆš1āˆ’ x2

dx =

āˆ«sin2 Īø dĪø

=1

2

āˆ«(1āˆ’ cos 2Īø) dĪø

=1

2

(Īø āˆ’

1

2sin 2Īø

)+ c

=1

2

(Īø āˆ’ sin Īø cos Īø

)+ c.

āˆš1āˆ’ x2

x1

Īø

Now, we must return to the original variable x :āˆ«x2

āˆš1āˆ’ x2

dx =1

2(sināˆ’1 x āˆ’ x

āˆš1āˆ’ x2) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 26 / 47

Page 55: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

ExampleEvaluate the integral.

1

āˆ«x2

āˆš1āˆ’ x2

dx 2

āˆ« 6

5

āˆšx2 āˆ’ 25

x4dx

3

āˆ« āˆšx2 + 9 dx

Solution:1) Let x = sin Īø where Īø āˆˆ (āˆ’Ļ€/2, Ļ€/2), thus dx = cos Īø dĪø. By substitution, we haveāˆ«

x2

āˆš1āˆ’ x2

dx =

āˆ«sin2 Īø dĪø

=1

2

āˆ«(1āˆ’ cos 2Īø) dĪø

=1

2

(Īø āˆ’

1

2sin 2Īø

)+ c

=1

2

(Īø āˆ’ sin Īø cos Īø

)+ c.

āˆš1āˆ’ x2

x1

Īø

Now, we must return to the original variable x :āˆ«x2

āˆš1āˆ’ x2

dx =1

2(sināˆ’1 x āˆ’ x

āˆš1āˆ’ x2) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 26 / 47

Page 56: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

2) Let x = 5 sec Īø where Īø āˆˆ [0, Ļ€/2) āˆŖ [Ļ€, 3Ļ€/2), thus dx = 5 sec Īø tan Īø dĪø. Aftersubstitution, the integral becomes

āˆ« āˆš25 sec2 Īø āˆ’ 25

625 sec4 Īø5 sec Īø tan Īø dĪø =

1

25

āˆ«tan2 Īø

sec3 ĪødĪø

=1

25

āˆ«sin2 Īø cos Īø dĪø

=1

75sin3 Īø + c.

5

āˆšx2 āˆ’ 25

x

Īø

We must return to the original variable x :āˆ« āˆšx2 āˆ’ 25

x4dx =

(x2 āˆ’ 25)3/2

75x3

Hence, āˆ« 6

5

āˆšx2 āˆ’ 25

x4dx =

1

75

[ (x2 āˆ’ 25)3/2

x3

]6

5=

1

600.

Dr. M. Alghamdi MATH 106 January 2, 2019 27 / 47

Page 57: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

3) Let x = 3 tan Īø where Īø āˆˆ (āˆ’Ļ€/2, Ļ€/2). This implies dx = 3 sec2 Īø dĪø. By substitution, wehave

āˆ« āˆšx2 + 9 dx =

āˆ« āˆš9 tan2 Īø + 9 (3 sec2 Īø) dĪø

= 9

āˆ«sec3 Īø dĪø

=9

2

(sec Īø tan Īø + ln

āˆ£āˆ£ sec Īø + tan Īøāˆ£āˆ£).

This impliesāˆ« āˆšx2 + 9 dx =

9

2

( xāˆšx2 + 9

9+ ln

āˆ£āˆ£āˆ£āˆšx2 + 9 + x

3

āˆ£āˆ£āˆ£)+ c.

3

x

āˆšx2 + 9

Īø

Dr. M. Alghamdi MATH 106 January 2, 2019 28 / 47

Page 58: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Integrals of Rational FunctionsIn this section, we study rational functions of form q(x) = f (x)

g(x)where f (x) and g(x) are

polynomials.Step 1: If the degree of g(x) is less than the degree of f (x), we do polynomiallong-division; otherwise we move to step 2.

From the long division shown on theright side, we have

q(x) =f (x)

g(x)= h(x) +

r(x)

g(x),

where h(x) is the quotient and r(x)is the remainder.

h(x)g(x)

)f(x)

- ......

r(x)

Dr. M. Alghamdi MATH 106 January 2, 2019 29 / 47

Page 59: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Step 2: Factor the denominator g(x) into irreducible polynomials where the factors areeither linear or irreducible quadratic polynomials.Step 3: Find the partial fraction decomposition. This step depends on the result of step2 where the fraction f (x)

g(x)or r(x)

g(x)can be written as a sum of partial fractions:

q(x) = P1(x) + P2(x) + P3(x) + ...+ Pn(x) ,

each Pk(x) = Ak(ax+b)n

, n āˆˆ N or Pk(x) = Ak x+Bk(ax2+bx+c)n

if b2 āˆ’ 4ac < 0. The constants Ak

and Bk are real numbers and computed later.Step 4: Integrate the result of step 3.

Dr. M. Alghamdi MATH 106 January 2, 2019 30 / 47

Page 60: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x + 1

x2 āˆ’ 2x āˆ’ 8dx .

Solution:Step 1: This step can be skipped since the degree of f (x) = x + 1 is less than thedegree of g(x) = x2 āˆ’ 2x āˆ’ 8.Step 2: Factor the denominator g(x) into irreducible polynomials

g(x) = x2 āˆ’ 2x āˆ’ 8 = (x + 2)(x āˆ’ 4).

Step 3: Find the partial fraction decomposition.

x + 1

x2 āˆ’ 2x āˆ’ 8=

A

x + 2+

B

x āˆ’ 4=

Ax āˆ’ 4A + Bx + 2B

(x + 2)(x āˆ’ 4).

We need to find the constants A and B.

Coefficients of the numerators:

A + B = 1ā†’ 1

āˆ’4A + 2B = 1ā†’ 2

By doing some calculation, we obtain A = 16

and B = 56.

Illustration

Multiply equation 1 by 4and add theresult to equation 2

4A + 4B = 4

āˆ’4A + 2B = 1

āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’6B = 5

Dr. M. Alghamdi MATH 106 January 2, 2019 31 / 47

Page 61: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x + 1

x2 āˆ’ 2x āˆ’ 8dx .

Solution:Step 1: This step can be skipped since the degree of f (x) = x + 1 is less than thedegree of g(x) = x2 āˆ’ 2x āˆ’ 8.

Step 2: Factor the denominator g(x) into irreducible polynomials

g(x) = x2 āˆ’ 2x āˆ’ 8 = (x + 2)(x āˆ’ 4).

Step 3: Find the partial fraction decomposition.

x + 1

x2 āˆ’ 2x āˆ’ 8=

A

x + 2+

B

x āˆ’ 4=

Ax āˆ’ 4A + Bx + 2B

(x + 2)(x āˆ’ 4).

We need to find the constants A and B.

Coefficients of the numerators:

A + B = 1ā†’ 1

āˆ’4A + 2B = 1ā†’ 2

By doing some calculation, we obtain A = 16

and B = 56.

Illustration

Multiply equation 1 by 4and add theresult to equation 2

4A + 4B = 4

āˆ’4A + 2B = 1

āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’6B = 5

Dr. M. Alghamdi MATH 106 January 2, 2019 31 / 47

Page 62: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x + 1

x2 āˆ’ 2x āˆ’ 8dx .

Solution:Step 1: This step can be skipped since the degree of f (x) = x + 1 is less than thedegree of g(x) = x2 āˆ’ 2x āˆ’ 8.Step 2: Factor the denominator g(x) into irreducible polynomials

g(x) = x2 āˆ’ 2x āˆ’ 8 = (x + 2)(x āˆ’ 4).

Step 3: Find the partial fraction decomposition.

x + 1

x2 āˆ’ 2x āˆ’ 8=

A

x + 2+

B

x āˆ’ 4=

Ax āˆ’ 4A + Bx + 2B

(x + 2)(x āˆ’ 4).

We need to find the constants A and B.

Coefficients of the numerators:

A + B = 1ā†’ 1

āˆ’4A + 2B = 1ā†’ 2

By doing some calculation, we obtain A = 16

and B = 56.

Illustration

Multiply equation 1 by 4and add theresult to equation 2

4A + 4B = 4

āˆ’4A + 2B = 1

āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’6B = 5

Dr. M. Alghamdi MATH 106 January 2, 2019 31 / 47

Page 63: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x + 1

x2 āˆ’ 2x āˆ’ 8dx .

Solution:Step 1: This step can be skipped since the degree of f (x) = x + 1 is less than thedegree of g(x) = x2 āˆ’ 2x āˆ’ 8.Step 2: Factor the denominator g(x) into irreducible polynomials

g(x) = x2 āˆ’ 2x āˆ’ 8 = (x + 2)(x āˆ’ 4).

Step 3: Find the partial fraction decomposition.

x + 1

x2 āˆ’ 2x āˆ’ 8=

A

x + 2+

B

x āˆ’ 4=

Ax āˆ’ 4A + Bx + 2B

(x + 2)(x āˆ’ 4).

We need to find the constants A and B.

Coefficients of the numerators:

A + B = 1ā†’ 1

āˆ’4A + 2B = 1ā†’ 2

By doing some calculation, we obtain A = 16

and B = 56.

Illustration

Multiply equation 1 by 4and add theresult to equation 2

4A + 4B = 4

āˆ’4A + 2B = 1

āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’6B = 5Dr. M. Alghamdi MATH 106 January 2, 2019 31 / 47

Page 64: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Step 4: Integrate the result of step 3.āˆ«x + 1

x2 āˆ’ 2x āˆ’ 8dx =

āˆ«1/6

x + 2dx +

āˆ«5/6

x āˆ’ 4dx =

1

6ln | x + 2 | +

5

6ln | x āˆ’ 4 | +c.

Example

Evaluate the integral

āˆ«2x3 āˆ’ 4x2 āˆ’ 15x + 5

x2 + 3x + 2dx .

Solution:Step 1: Do the polynomial long-division.Since the degree of the denominator g(x) is less than the degree of the numerator f (x),we do the polynomial long-division given on the right side. Then, we have

q(x) = (2x āˆ’ 10) +11x + 25

x2 + 3x + 2.

2x āˆ’10x2 + 3x + 2

)2x3 āˆ’4x2 āˆ’15x +5āˆ’(2x3 +6x2 +4x)

āˆ’10x2 āˆ’19x +5āˆ’(āˆ’10x2 āˆ’30x āˆ’20)

11x +25

Dr. M. Alghamdi MATH 106 January 2, 2019 32 / 47

Page 65: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Step 4: Integrate the result of step 3.āˆ«x + 1

x2 āˆ’ 2x āˆ’ 8dx =

āˆ«1/6

x + 2dx +

āˆ«5/6

x āˆ’ 4dx =

1

6ln | x + 2 | +

5

6ln | x āˆ’ 4 | +c.

Example

Evaluate the integral

āˆ«2x3 āˆ’ 4x2 āˆ’ 15x + 5

x2 + 3x + 2dx .

Solution:Step 1: Do the polynomial long-division.Since the degree of the denominator g(x) is less than the degree of the numerator f (x),we do the polynomial long-division given on the right side. Then, we have

q(x) = (2x āˆ’ 10) +11x + 25

x2 + 3x + 2.

2x āˆ’10x2 + 3x + 2

)2x3 āˆ’4x2 āˆ’15x +5āˆ’(2x3 +6x2 +4x)

āˆ’10x2 āˆ’19x +5āˆ’(āˆ’10x2 āˆ’30x āˆ’20)

11x +25

Dr. M. Alghamdi MATH 106 January 2, 2019 32 / 47

Page 66: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Step 4: Integrate the result of step 3.āˆ«x + 1

x2 āˆ’ 2x āˆ’ 8dx =

āˆ«1/6

x + 2dx +

āˆ«5/6

x āˆ’ 4dx =

1

6ln | x + 2 | +

5

6ln | x āˆ’ 4 | +c.

Example

Evaluate the integral

āˆ«2x3 āˆ’ 4x2 āˆ’ 15x + 5

x2 + 3x + 2dx .

Solution:Step 1: Do the polynomial long-division.Since the degree of the denominator g(x) is less than the degree of the numerator f (x),we do the polynomial long-division given on the right side. Then, we have

q(x) = (2x āˆ’ 10) +11x + 25

x2 + 3x + 2.

2x āˆ’10x2 + 3x + 2

)2x3 āˆ’4x2 āˆ’15x +5āˆ’(2x3 +6x2 +4x)

āˆ’10x2 āˆ’19x +5āˆ’(āˆ’10x2 āˆ’30x āˆ’20)

11x +25

Dr. M. Alghamdi MATH 106 January 2, 2019 32 / 47

Page 67: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Step 2: Factor the denominator g(x) into irreducible polynomials

g(x) = x2 + 3x + 2 = (x + 1)(x + 2).

Step 3: Find the partial fraction decomposition.

q(x) = (2xāˆ’10)+11x + 25

x2 + 3x + 2= (2xāˆ’10)+

A

x + 1+

B

x + 2= (2xāˆ’10)+

Ax + 2A + Bx + B

(x + 1)(x + 2).

We need to find the constants A and B.Coefficients of the numerators:

A + B = 11ā†’ 1

2A + B = 25ā†’ 2

By doing some calculation, we have A = 14 andB = āˆ’3.

Illustration

āˆ’2Ɨ 1 + 2

āˆ’2Aāˆ’ 2B = āˆ’22

2A + B = 25

āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’B = 3

Step 4: Integrate the result of step 3.āˆ«q(x) dx =

āˆ«(2x āˆ’ 10) dx +

āˆ«14

x + 1dx +

āˆ«āˆ’3

x + 2dx

= x2 āˆ’ 10x + 14 ln | x + 1 | āˆ’3 ln | x + 2 | +c.

Dr. M. Alghamdi MATH 106 January 2, 2019 33 / 47

Page 68: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Step 2: Factor the denominator g(x) into irreducible polynomials

g(x) = x2 + 3x + 2 = (x + 1)(x + 2).

Step 3: Find the partial fraction decomposition.

q(x) = (2xāˆ’10)+11x + 25

x2 + 3x + 2= (2xāˆ’10)+

A

x + 1+

B

x + 2= (2xāˆ’10)+

Ax + 2A + Bx + B

(x + 1)(x + 2).

We need to find the constants A and B.Coefficients of the numerators:

A + B = 11ā†’ 1

2A + B = 25ā†’ 2

By doing some calculation, we have A = 14 andB = āˆ’3.

Illustration

āˆ’2Ɨ 1 + 2

āˆ’2Aāˆ’ 2B = āˆ’22

2A + B = 25

āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’B = 3

Step 4: Integrate the result of step 3.āˆ«q(x) dx =

āˆ«(2x āˆ’ 10) dx +

āˆ«14

x + 1dx +

āˆ«āˆ’3

x + 2dx

= x2 āˆ’ 10x + 14 ln | x + 1 | āˆ’3 ln | x + 2 | +c.

Dr. M. Alghamdi MATH 106 January 2, 2019 33 / 47

Page 69: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Step 2: Factor the denominator g(x) into irreducible polynomials

g(x) = x2 + 3x + 2 = (x + 1)(x + 2).

Step 3: Find the partial fraction decomposition.

q(x) = (2xāˆ’10)+11x + 25

x2 + 3x + 2= (2xāˆ’10)+

A

x + 1+

B

x + 2= (2xāˆ’10)+

Ax + 2A + Bx + B

(x + 1)(x + 2).

We need to find the constants A and B.Coefficients of the numerators:

A + B = 11ā†’ 1

2A + B = 25ā†’ 2

By doing some calculation, we have A = 14 andB = āˆ’3.

Illustration

āˆ’2Ɨ 1 + 2

āˆ’2Aāˆ’ 2B = āˆ’22

2A + B = 25

āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’āˆ’B = 3

Step 4: Integrate the result of step 3.āˆ«q(x) dx =

āˆ«(2x āˆ’ 10) dx +

āˆ«14

x + 1dx +

āˆ«āˆ’3

x + 2dx

= x2 āˆ’ 10x + 14 ln | x + 1 | āˆ’3 ln | x + 2 | +c.

Dr. M. Alghamdi MATH 106 January 2, 2019 33 / 47

Page 70: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Remark

1 The number of constants A,B,C , etc. is equal to the degree of the denominatorg(x). Therefore, in the case of repeated factors of the denominator, we have tocheck the number of the constants and the degree of g(x).

2 If the denominator g(x) contains irreducible quadratic factors, the numerators ofthe partial fractions should be polynomials of degree one (see step 3 on page 59).

Example

Evaluate the integral

āˆ«2x2 āˆ’ 25x āˆ’ 33

(x + 1)2(x āˆ’ 5)dx .

Solution:Steps 1 and 2 can be skipped in this example.Step 3: Find the partial fraction decomposition.Since the denominator g(x) has repeated factors, then

2x2 āˆ’ 25x āˆ’ 33

(x + 1)2(x āˆ’ 5)=

A

x + 1+

B

(x + 1)2+

C

x āˆ’ 5=

A(x2 āˆ’ 4x āˆ’ 5) + B(x āˆ’ 5) + C(x2 + 2x + 1)

(x + 1)2(x āˆ’ 5).

Dr. M. Alghamdi MATH 106 January 2, 2019 34 / 47

Page 71: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Remark

1 The number of constants A,B,C , etc. is equal to the degree of the denominatorg(x). Therefore, in the case of repeated factors of the denominator, we have tocheck the number of the constants and the degree of g(x).

2 If the denominator g(x) contains irreducible quadratic factors, the numerators ofthe partial fractions should be polynomials of degree one (see step 3 on page 59).

Example

Evaluate the integral

āˆ«2x2 āˆ’ 25x āˆ’ 33

(x + 1)2(x āˆ’ 5)dx .

Solution:Steps 1 and 2 can be skipped in this example.Step 3: Find the partial fraction decomposition.Since the denominator g(x) has repeated factors, then

2x2 āˆ’ 25x āˆ’ 33

(x + 1)2(x āˆ’ 5)=

A

x + 1+

B

(x + 1)2+

C

x āˆ’ 5=

A(x2 āˆ’ 4x āˆ’ 5) + B(x āˆ’ 5) + C(x2 + 2x + 1)

(x + 1)2(x āˆ’ 5).

Dr. M. Alghamdi MATH 106 January 2, 2019 34 / 47

Page 72: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Remark

1 The number of constants A,B,C , etc. is equal to the degree of the denominatorg(x). Therefore, in the case of repeated factors of the denominator, we have tocheck the number of the constants and the degree of g(x).

2 If the denominator g(x) contains irreducible quadratic factors, the numerators ofthe partial fractions should be polynomials of degree one (see step 3 on page 59).

Example

Evaluate the integral

āˆ«2x2 āˆ’ 25x āˆ’ 33

(x + 1)2(x āˆ’ 5)dx .

Solution:Steps 1 and 2 can be skipped in this example.

Step 3: Find the partial fraction decomposition.Since the denominator g(x) has repeated factors, then

2x2 āˆ’ 25x āˆ’ 33

(x + 1)2(x āˆ’ 5)=

A

x + 1+

B

(x + 1)2+

C

x āˆ’ 5=

A(x2 āˆ’ 4x āˆ’ 5) + B(x āˆ’ 5) + C(x2 + 2x + 1)

(x + 1)2(x āˆ’ 5).

Dr. M. Alghamdi MATH 106 January 2, 2019 34 / 47

Page 73: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Remark

1 The number of constants A,B,C , etc. is equal to the degree of the denominatorg(x). Therefore, in the case of repeated factors of the denominator, we have tocheck the number of the constants and the degree of g(x).

2 If the denominator g(x) contains irreducible quadratic factors, the numerators ofthe partial fractions should be polynomials of degree one (see step 3 on page 59).

Example

Evaluate the integral

āˆ«2x2 āˆ’ 25x āˆ’ 33

(x + 1)2(x āˆ’ 5)dx .

Solution:Steps 1 and 2 can be skipped in this example.Step 3: Find the partial fraction decomposition.Since the denominator g(x) has repeated factors, then

2x2 āˆ’ 25x āˆ’ 33

(x + 1)2(x āˆ’ 5)=

A

x + 1+

B

(x + 1)2+

C

x āˆ’ 5=

A(x2 āˆ’ 4x āˆ’ 5) + B(x āˆ’ 5) + C(x2 + 2x + 1)

(x + 1)2(x āˆ’ 5).

Dr. M. Alghamdi MATH 106 January 2, 2019 34 / 47

Page 74: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Coefficients of the numerators:

A + C = 2ā†’ 1

āˆ’4A + B + 2C = āˆ’25ā†’ 2

āˆ’5Aāˆ’ 5B + C = āˆ’33ā†’ 3

Illustration

5Ɨ 2 + 3 =āˆ’25A + 11C = āˆ’158 ā†’ 425Ɨ 1 + 4 =36C = āˆ’108ā‡’ C = āˆ’3

By solving the system of equations, we have A = 5, B = 1 and C = āˆ’3.Step 4: Integrate the result of step 3.

āˆ«2x2 āˆ’ 25x āˆ’ 33

(x + 1)2(x āˆ’ 5)dx =

āˆ«5

x + 1dx +

āˆ«1

(x + 1)2dx +

āˆ«āˆ’3

x āˆ’ 5dx

= 5 ln | x + 1 | +

āˆ«(x + 1)āˆ’2 dx āˆ’ 3 ln | x āˆ’ 5 |

= 5 ln | x + 1 | āˆ’ 1

(x + 1)āˆ’ 3 ln | x āˆ’ 5 | +c.

Dr. M. Alghamdi MATH 106 January 2, 2019 35 / 47

Page 75: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x + 1

x(x2 + 1)dx .

Solution:Steps 1 and 2 can be skipped in this example.Step 3: Find the partial fraction decomposition.

x + 1

x(x2 + 1)=

A

x+

Bx + C

x2 + 1=

Ax2 + A + Bx2 + Cx

x(x2 + 1).

Coefficients of the numerators:A + B = 0ā†’ 1

C = 1ā†’ 2

A = 1ā†’ 3

We have A = 1, B = āˆ’1 and C = 1.Step 4: Integrate the result of step 3.āˆ«

x + 1

x(x2 + 1)dx =

āˆ«1

xdx +

āˆ«āˆ’x + 1

x2 + 1dx

= ln | x | āˆ’āˆ«

x

x2 + 1dx +

āˆ«1

x2 + 1dx

= ln | x | āˆ’1

2ln(x2 + 1) + tanāˆ’1 x + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 36 / 47

Page 76: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x + 1

x(x2 + 1)dx .

Solution:Steps 1 and 2 can be skipped in this example.

Step 3: Find the partial fraction decomposition.

x + 1

x(x2 + 1)=

A

x+

Bx + C

x2 + 1=

Ax2 + A + Bx2 + Cx

x(x2 + 1).

Coefficients of the numerators:A + B = 0ā†’ 1

C = 1ā†’ 2

A = 1ā†’ 3

We have A = 1, B = āˆ’1 and C = 1.Step 4: Integrate the result of step 3.āˆ«

x + 1

x(x2 + 1)dx =

āˆ«1

xdx +

āˆ«āˆ’x + 1

x2 + 1dx

= ln | x | āˆ’āˆ«

x

x2 + 1dx +

āˆ«1

x2 + 1dx

= ln | x | āˆ’1

2ln(x2 + 1) + tanāˆ’1 x + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 36 / 47

Page 77: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x + 1

x(x2 + 1)dx .

Solution:Steps 1 and 2 can be skipped in this example.Step 3: Find the partial fraction decomposition.

x + 1

x(x2 + 1)=

A

x+

Bx + C

x2 + 1=

Ax2 + A + Bx2 + Cx

x(x2 + 1).

Coefficients of the numerators:A + B = 0ā†’ 1

C = 1ā†’ 2

A = 1ā†’ 3

We have A = 1, B = āˆ’1 and C = 1.

Step 4: Integrate the result of step 3.āˆ«x + 1

x(x2 + 1)dx =

āˆ«1

xdx +

āˆ«āˆ’x + 1

x2 + 1dx

= ln | x | āˆ’āˆ«

x

x2 + 1dx +

āˆ«1

x2 + 1dx

= ln | x | āˆ’1

2ln(x2 + 1) + tanāˆ’1 x + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 36 / 47

Page 78: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«x + 1

x(x2 + 1)dx .

Solution:Steps 1 and 2 can be skipped in this example.Step 3: Find the partial fraction decomposition.

x + 1

x(x2 + 1)=

A

x+

Bx + C

x2 + 1=

Ax2 + A + Bx2 + Cx

x(x2 + 1).

Coefficients of the numerators:A + B = 0ā†’ 1

C = 1ā†’ 2

A = 1ā†’ 3

We have A = 1, B = āˆ’1 and C = 1.Step 4: Integrate the result of step 3.āˆ«

x + 1

x(x2 + 1)dx =

āˆ«1

xdx +

āˆ«āˆ’x + 1

x2 + 1dx

= ln | x | āˆ’āˆ«

x

x2 + 1dx +

āˆ«1

x2 + 1dx

= ln | x | āˆ’1

2ln(x2 + 1) + tanāˆ’1 x + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 36 / 47

Page 79: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Integrals Involving Quadratic FormsIn this section, we provide a new technique for integrals that contain irreduciblequadratic expressions ax2 + bx + c where b 6= 0. This technique is completing squaremethod: a2 Ā± 2ab + b2 = (aĀ± b)2.

Notes:If a quadratic polynomial has real roots, it is called reducible; otherwise it is called

irreducible.For the expression ax2 + bx + c, if b2 āˆ’ 4ac < 0, then the quadratic expression isirreducible.

To complete the square, we need to find(

b2a

)2, then add and subtract it.

Example

For the quadratic expression x2 āˆ’ 6x + 13, we have a = 1, b = āˆ’6 and c = 13. Sinceb2 āˆ’ 4ac = āˆ’16 < 0, then the quadratic expression is irreducible. To complete thesquare, we find ( b

2a)2 = 9, then we add and substrate it as follows:

x2 āˆ’ 6x + 13 = x2 āˆ’ 6x + 9ļøø ļø·ļø· ļøø=(xāˆ’3)2

āˆ’ 9 + 13ļøø ļø·ļø· ļøø=4

Hence, x2 āˆ’ 6x + 13 = (x āˆ’ 3)2 + 4.

Dr. M. Alghamdi MATH 106 January 2, 2019 37 / 47

Page 80: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«1

x2 āˆ’ 6x + 13dx .

Solution:The quadratic expression x2 āˆ’ 6x + 13 is irreducible. By completing the square, we havefrom the previous exampleāˆ«

1

x2 āˆ’ 6x + 13dx =

āˆ«1

(x āˆ’ 3)2 + 4dx .

Let u = x āˆ’ 3, then du = dx . By substitution,āˆ«1

u2 + 4du =

1

2tanāˆ’1 u

2+ c =

1

2tanāˆ’1 (x āˆ’ 3

2

)+ c.

Example

Evaluate the integral

āˆ«x

x2 āˆ’ 4x + 8dx .

Solution:For the quadratic expression x2 āˆ’ 4x + 8, we have b2 āˆ’ 4ac < 0. Therefore, thequadratic expression x2 āˆ’ 4x + 8 is irreducible. By completing the square, we obtain

Dr. M. Alghamdi MATH 106 January 2, 2019 38 / 47

Page 81: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«1

x2 āˆ’ 6x + 13dx .

Solution:The quadratic expression x2 āˆ’ 6x + 13 is irreducible. By completing the square, we havefrom the previous exampleāˆ«

1

x2 āˆ’ 6x + 13dx =

āˆ«1

(x āˆ’ 3)2 + 4dx .

Let u = x āˆ’ 3, then du = dx . By substitution,āˆ«1

u2 + 4du =

1

2tanāˆ’1 u

2+ c =

1

2tanāˆ’1 (x āˆ’ 3

2

)+ c.

Example

Evaluate the integral

āˆ«x

x2 āˆ’ 4x + 8dx .

Solution:For the quadratic expression x2 āˆ’ 4x + 8, we have b2 āˆ’ 4ac < 0. Therefore, thequadratic expression x2 āˆ’ 4x + 8 is irreducible. By completing the square, we obtain

Dr. M. Alghamdi MATH 106 January 2, 2019 38 / 47

Page 82: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Example

Evaluate the integral

āˆ«1

x2 āˆ’ 6x + 13dx .

Solution:The quadratic expression x2 āˆ’ 6x + 13 is irreducible. By completing the square, we havefrom the previous exampleāˆ«

1

x2 āˆ’ 6x + 13dx =

āˆ«1

(x āˆ’ 3)2 + 4dx .

Let u = x āˆ’ 3, then du = dx . By substitution,āˆ«1

u2 + 4du =

1

2tanāˆ’1 u

2+ c =

1

2tanāˆ’1 (x āˆ’ 3

2

)+ c.

Example

Evaluate the integral

āˆ«x

x2 āˆ’ 4x + 8dx .

Solution:For the quadratic expression x2 āˆ’ 4x + 8, we have b2 āˆ’ 4ac < 0. Therefore, thequadratic expression x2 āˆ’ 4x + 8 is irreducible. By completing the square, we obtain

Dr. M. Alghamdi MATH 106 January 2, 2019 38 / 47

Page 83: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

x2 āˆ’ 4x + 8 = (x2 āˆ’ 4x + 4) + 8āˆ’ 4

= (x āˆ’ 2)2 + 4.

Hence āˆ«x

x2 āˆ’ 4x + 8dx =

āˆ«x

(x āˆ’ 2)2 + 4dx .

Let u = x āˆ’ 2, then du = dx . By substitution,āˆ«u + 2

u2 + 4du =

āˆ«u

u2 + 4du +

āˆ«2

u2 + 4du

=1

2ln | u2 + 4 | + tanāˆ’1 u

2

=1

2ln((x āˆ’ 2)2 + 4

)+ tanāˆ’1 (x āˆ’ 2

2

)+ c

=1

2ln(x2 āˆ’ 4x + 8

)+ tanāˆ’1 (x āˆ’ 2

2

)+ c.

Example

Evaluate the integral

āˆ«1āˆš

2x āˆ’ x2dx .

Dr. M. Alghamdi MATH 106 January 2, 2019 39 / 47

Page 84: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Solution:By completing the square, we have2x āˆ’ x2 = āˆ’(x2 āˆ’ 2x) = āˆ’(x2 āˆ’ 2x + 1āˆ’ 1) = 1āˆ’ (x āˆ’ 1)2. Henceāˆ«

1āˆš2x āˆ’ x2

dx =

āˆ«1āˆš

1āˆ’ (x āˆ’ 1)2dx .

Let u = x āˆ’ 1, then du = dx . By substitution, the integral becomesāˆ«1āˆš

1āˆ’ u2du = sināˆ’1 u + c = sināˆ’1 (x āˆ’ 1) + c.

Example

Evaluate the integral

āˆ« āˆšx2 + 2x āˆ’ 1 dx .

Solution:By completing the square, we have x2 + 2x āˆ’ 1 = (x2 + 2x + 1)āˆ’ 1āˆ’ 1 = (x + 1)2 āˆ’ 2.Hence, āˆ« āˆš

x2 + 2x āˆ’ 1 dx =

āˆ« āˆš(x + 1)2 āˆ’ 2 dx .

Let u = x + 1, then du = dx . The integral becomes

āˆ« āˆšu2 āˆ’ 2 du.

Dr. M. Alghamdi MATH 106 January 2, 2019 40 / 47

Page 85: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Solution:By completing the square, we have2x āˆ’ x2 = āˆ’(x2 āˆ’ 2x) = āˆ’(x2 āˆ’ 2x + 1āˆ’ 1) = 1āˆ’ (x āˆ’ 1)2. Henceāˆ«

1āˆš2x āˆ’ x2

dx =

āˆ«1āˆš

1āˆ’ (x āˆ’ 1)2dx .

Let u = x āˆ’ 1, then du = dx . By substitution, the integral becomesāˆ«1āˆš

1āˆ’ u2du = sināˆ’1 u + c = sināˆ’1 (x āˆ’ 1) + c.

Example

Evaluate the integral

āˆ« āˆšx2 + 2x āˆ’ 1 dx .

Solution:By completing the square, we have x2 + 2x āˆ’ 1 = (x2 + 2x + 1)āˆ’ 1āˆ’ 1 = (x + 1)2 āˆ’ 2.Hence, āˆ« āˆš

x2 + 2x āˆ’ 1 dx =

āˆ« āˆš(x + 1)2 āˆ’ 2 dx .

Let u = x + 1, then du = dx . The integral becomes

āˆ« āˆšu2 āˆ’ 2 du.

Dr. M. Alghamdi MATH 106 January 2, 2019 40 / 47

Page 86: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Solution:By completing the square, we have2x āˆ’ x2 = āˆ’(x2 āˆ’ 2x) = āˆ’(x2 āˆ’ 2x + 1āˆ’ 1) = 1āˆ’ (x āˆ’ 1)2. Henceāˆ«

1āˆš2x āˆ’ x2

dx =

āˆ«1āˆš

1āˆ’ (x āˆ’ 1)2dx .

Let u = x āˆ’ 1, then du = dx . By substitution, the integral becomesāˆ«1āˆš

1āˆ’ u2du = sināˆ’1 u + c = sināˆ’1 (x āˆ’ 1) + c.

Example

Evaluate the integral

āˆ« āˆšx2 + 2x āˆ’ 1 dx .

Solution:By completing the square, we have x2 + 2x āˆ’ 1 = (x2 + 2x + 1)āˆ’ 1āˆ’ 1 = (x + 1)2 āˆ’ 2.Hence, āˆ« āˆš

x2 + 2x āˆ’ 1 dx =

āˆ« āˆš(x + 1)2 āˆ’ 2 dx .

Let u = x + 1, then du = dx . The integral becomes

āˆ« āˆšu2 āˆ’ 2 du.

Dr. M. Alghamdi MATH 106 January 2, 2019 40 / 47

Page 87: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Use the trigonometric substitutions, in par-ticular let

u =āˆš

2 sec Īø ā‡’ du =āˆš

2 sec Īø tan Īø dĪø

where Īø āˆˆ [0, Ļ€/2) āˆŖ [Ļ€, 3Ļ€/2). By substitu-tion, we have

2

āˆ«tan2 Īø sec Īø dĪø = 2

āˆ«(sec3 Īø āˆ’ sec Īø) dĪø.

āˆš2

āˆšu2 āˆ’ 2

u

Īø

From Example 8, we have

2

āˆ«(sec3 Īø āˆ’ sec Īø) dĪø = sec Īø tan Īø āˆ’ ln

āˆ£āˆ£ sec Īø + tan Īøāˆ£āˆ£+ c.

By returning to the variable u and then to x ,āˆ« āˆšu2 āˆ’ 2 du =

uāˆšu2 āˆ’ 2

2āˆ’ln

āˆ£āˆ£āˆ£u +āˆšu2 āˆ’ 2āˆš2

āˆ£āˆ£āˆ£+c =(x + 1)

āˆš(x + 1)2 āˆ’ 2

2āˆ’ln

āˆ£āˆ£āˆ£x + 1 +āˆš

(x + 1)2 āˆ’ 2āˆš2

āˆ£āˆ£āˆ£+c.

Dr. M. Alghamdi MATH 106 January 2, 2019 41 / 47

Page 88: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Miscellaneous Substitutions(A) Fractional Functions in sin x and cos xThe integrals that consist of rational expressions in sin x and cos x are treated by using the

substitution u = tan (x/2), āˆ’Ļ€ < x < Ļ€. This implies that du = sec2 (x/2)2

dx and since

sec2 x = tan2 x + 1, then du = u2+12

dx . Also,

sin x = sin 2(x

2)

= 2 sinx

2cos

x

2

= 2sin x

2

cos x2

cosx

2cos

x

2

= 2 tanx

2cos2 x

2

=2 tan x

2

sec2 x2

=2u

u2 + 1.

(multiply and divide bycos x

2)

(cos x = 1sec x

)

For cos x , we have cos x = cos 2( x2

) = cos2 x2āˆ’ sin2 x

2.

We can find that cos x2

= 1āˆšu2+1

and sin x2

=

uāˆšu2+1

.(use the identitiessec2 x

2= tan2 x

2+ 1

and cos2 x2

+ sin2 x2

= 1)

This implies cos x = 1āˆ’u2

1+u2 .Dr. M. Alghamdi MATH 106 January 2, 2019 42 / 47

Page 89: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

TheoremFor an integral that contains a rational expression in sin x and cos x , we assume

sin x =2u

1 + u2, and cos x =

1āˆ’ u2

1 + u2.

to produce a rational expression in u where u = tan (x/2), and du = 1+u2

2dx .

ExampleEvaluate the integral.

1

āˆ«1

1 + sin xdx 2

āˆ«1

2 + cos xdx

3 āˆ«1

1 + sin x + cos xdx

Solution:1) Let u = tan x

2, then du = 1+u2

2dx and sin x = 2u

1+u2 . By substituting that into the integral,

we haveāˆ«1

1 + 2u1+u2

.2

1 + u2du = 2

āˆ«1

u2 + 2u + 1du = 2

āˆ«(u + 1)āˆ’2 du =

āˆ’2

u + 1+ c

=āˆ’2

tan x/2 + 1+ c.

Dr. M. Alghamdi MATH 106 January 2, 2019 43 / 47

Page 90: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

TheoremFor an integral that contains a rational expression in sin x and cos x , we assume

sin x =2u

1 + u2, and cos x =

1āˆ’ u2

1 + u2.

to produce a rational expression in u where u = tan (x/2), and du = 1+u2

2dx .

ExampleEvaluate the integral.

1

āˆ«1

1 + sin xdx 2

āˆ«1

2 + cos xdx

3 āˆ«1

1 + sin x + cos xdx

Solution:1) Let u = tan x

2, then du = 1+u2

2dx and sin x = 2u

1+u2 . By substituting that into the integral,

we haveāˆ«1

1 + 2u1+u2

.2

1 + u2du = 2

āˆ«1

u2 + 2u + 1du = 2

āˆ«(u + 1)āˆ’2 du =

āˆ’2

u + 1+ c

=āˆ’2

tan x/2 + 1+ c.

Dr. M. Alghamdi MATH 106 January 2, 2019 43 / 47

Page 91: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

2) Let u = tan x2

, then du = 1+u2

2dx and cos x = 1āˆ’u2

1+u2 . By substitution, we haveāˆ«1

2 + 1āˆ’u2

1+u2

.2

1 + u2du = 2

āˆ«1

u2 + 3du

=2āˆš

3tanāˆ’1 u

āˆš3

+ c

=2āˆš

3tanāˆ’1

( tan x/2āˆš

3

)+ c.

3) Let u = tan x2

, this implies du = 1+u2

2dx , sin x = 2u

1+u2 and cos x = 1āˆ’u2

1+u2 . By substitution,

we have āˆ«1

1 + 2u1+u2 + 1āˆ’u2

1+u2

.2

1 + u2du =

āˆ«2

2 + 2udu

=

āˆ«1

1 + udu

= ln | 1 + u | +c

= lnāˆ£āˆ£āˆ£1 + tan

x

2

āˆ£āˆ£āˆ£+ c.

Dr. M. Alghamdi MATH 106 January 2, 2019 44 / 47

Page 92: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

2) Let u = tan x2

, then du = 1+u2

2dx and cos x = 1āˆ’u2

1+u2 . By substitution, we haveāˆ«1

2 + 1āˆ’u2

1+u2

.2

1 + u2du = 2

āˆ«1

u2 + 3du

=2āˆš

3tanāˆ’1 u

āˆš3

+ c

=2āˆš

3tanāˆ’1

( tan x/2āˆš

3

)+ c.

3) Let u = tan x2

, this implies du = 1+u2

2dx , sin x = 2u

1+u2 and cos x = 1āˆ’u2

1+u2 . By substitution,

we have āˆ«1

1 + 2u1+u2 + 1āˆ’u2

1+u2

.2

1 + u2du =

āˆ«2

2 + 2udu

=

āˆ«1

1 + udu

= ln | 1 + u | +c

= lnāˆ£āˆ£āˆ£1 + tan

x

2

āˆ£āˆ£āˆ£+ c.

Dr. M. Alghamdi MATH 106 January 2, 2019 44 / 47

Page 93: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Integrals of Fractional PowersIn the case of an integrand that consists of fractional powers, it is better to use the

substitution u = x1n where n is the least common multiple of the denominators of the

powers. In the following, we provide an example.

Example

Evaluate the integral

āˆ«1āˆš

x + 4āˆšx

dx .

Solution:Let u = x

14 , we find x = u4 and dx = 4u3du. Therefore, x

12 = (x

14 )2 = u2.

By substitution, we haveāˆ«1

u2 + u4u3 du = 4

āˆ«u2

u + 1du

= 4

āˆ«(u āˆ’ 1) du + 4

āˆ«1

1 + udu

= 2u2 āˆ’ 4u + 4 ln | u + 1 | +c

= 2āˆšx āˆ’ 4 4

āˆšx + 4 ln | 4

āˆšx + 1 | +c.

Dr. M. Alghamdi MATH 106 January 2, 2019 45 / 47

Page 94: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Integrals of Fractional PowersIn the case of an integrand that consists of fractional powers, it is better to use the

substitution u = x1n where n is the least common multiple of the denominators of the

powers. In the following, we provide an example.

Example

Evaluate the integral

āˆ«1āˆš

x + 4āˆšx

dx .

Solution:Let u = x

14 , we find x = u4 and dx = 4u3du. Therefore, x

12 = (x

14 )2 = u2.

By substitution, we haveāˆ«1

u2 + u4u3 du = 4

āˆ«u2

u + 1du

= 4

āˆ«(u āˆ’ 1) du + 4

āˆ«1

1 + udu

= 2u2 āˆ’ 4u + 4 ln | u + 1 | +c

= 2āˆšx āˆ’ 4 4

āˆšx + 4 ln | 4

āˆšx + 1 | +c.

Dr. M. Alghamdi MATH 106 January 2, 2019 45 / 47

Page 95: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Integrals of Form nāˆš

f (x)

If the integrand is of from nāˆš

f (x), it is useful to assume u = nāˆš

f (x). This case differs

from that given in the substitution method in Chapter ?? i.e., nāˆš

f (x) f ā€²(x) and thedifference lies on the existence of the derivative of f (x).

Example

Evaluate the integral

āˆ« āˆšex + 1 dx .

Solution:Let u =

āˆšex + 1, we obtain du = ex

2āˆš

ex+1dx and u2 = ex + 1. By substitution, we haveāˆ«

2u2

u2 āˆ’ 1du =

āˆ«2 du + 2

āˆ«1

u2 āˆ’ 1du

= 2u +

āˆ«1

u āˆ’ 1du +

āˆ«1

u + 1du

= 2u + ln | u āˆ’ 1 | āˆ’ ln | u + 1 | +c

= 2āˆšex + 1 + ln(

āˆšex + 1āˆ’ 1)āˆ’ ln(

āˆšex + 1 + 1) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 46 / 47

Page 96: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Integrals of Form nāˆš

f (x)

If the integrand is of from nāˆš

f (x), it is useful to assume u = nāˆš

f (x). This case differs

from that given in the substitution method in Chapter ?? i.e., nāˆš

f (x) f ā€²(x) and thedifference lies on the existence of the derivative of f (x).

Example

Evaluate the integral

āˆ« āˆšex + 1 dx .

Solution:Let u =

āˆšex + 1, we obtain du = ex

2āˆšex+1

dx and u2 = ex + 1. By substitution, we haveāˆ«2u2

u2 āˆ’ 1du =

āˆ«2 du + 2

āˆ«1

u2 āˆ’ 1du

= 2u +

āˆ«1

u āˆ’ 1du +

āˆ«1

u + 1du

= 2u + ln | u āˆ’ 1 | āˆ’ ln | u + 1 | +c

= 2āˆšex + 1 + ln(

āˆšex + 1āˆ’ 1)āˆ’ ln(

āˆšex + 1 + 1) + c.

Dr. M. Alghamdi MATH 106 January 2, 2019 46 / 47

Page 97: Integral Calculus - KSUfac.ksu.edu.sa/sites/default/files/lectures_ch5.pdfintegral. As we saw in the previous example, if we choose u = ex and dv = x dx, we have R x2 2 e dx which

Dr. M. Alghamdi MATH 106 January 2, 2019 47 / 47