ii - gimmenotes

185

Upload: others

Post on 01-Apr-2022

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ii - gimmenotes
Page 2: ii - gimmenotes
Page 3: ii - gimmenotes

ii

Page 4: ii - gimmenotes

Contents

1 Introduction 11.1 How to Use the Study Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.2 Keys to Success in Studying Mathematics . . . . . . . . . . . . . . . . . . . . . . . 31.3 Preparing for the Examination . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

2 Functions and Models 42.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42.2 Learning Outcomes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42.3 Principles of Problem Solving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.5 The Way Forward . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

3 Limits and Derivatives 73.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.2 Learning Outcomes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73.3 Prescribed Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83.4 Limit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

3.4.1 Introduction to the Limit Concept . . . . . . . . . . . . . . . . . . . . . . . 83.4.2 Definition of a Limit: Left- and Right-hand Limits . . . . . . . . . . . . . . 10

3.5 Worked Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103.5.1 Limits as x→ c (c ∈ R) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123.5.2 Limits as x→ ±∞ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153.5.3 Limits Involving Absolute Values . . . . . . . . . . . . . . . . . . . . . . . 183.5.4 Left-hand and Right-hand Limits . . . . . . . . . . . . . . . . . . . . . . . 213.5.5 Limits Involving Trigonometric Functions . . . . . . . . . . . . . . . . . . . 243.5.6 The Squeeze Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283.5.7 The ε-δ Definition of a Limit (Read only for other modules eg MAT2615) . 333.5.8 Continuity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

4 Differentiation Rules 464.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464.2 Learning Outcomes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464.3 Prescribed Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474.4 The Derivative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

4.4.1 Introducing the Derivative . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474.4.2 Definition of the Derivative . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

4.5 Worked Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504.5.1 Differentiation from First Principles (derivative as a Function) . . . . . . . 514.5.2 Basic Differentiation Formulas . . . . . . . . . . . . . . . . . . . . . . . . . 544.5.3 Derivatives of Trigonometric Functions and Inverse Trigonometric Functions 61

MAT1512 iii

Page 5: ii - gimmenotes

4.5.4 Derivatives of Exponential and Logarithmic Functions . . . . . . . . . . . . 664.5.5 Logarithmic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 724.5.6 Implicit Differentiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 774.5.7 Tangents and Normal Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . 804.5.8 The Mean Value Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

5 Integrals 935.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 935.2 Learning Outcomes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 935.3 Prescribed Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 945.4 Worked Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

5.4.1 Antiderivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 955.4.2 The Definite Integral and the Fundamental Theorem of Calculus – Part II . 985.4.3 The Definite Integral and the Area Between the Curve and the x-axis . . . 995.4.4 The Definite Integral and Area Under the Curve . . . . . . . . . . . . . . . 102

5.5 The Mean Value Theorem for Definite Integrals . . . . . . . . . . . . . . . . . . . . 1075.6 The Fundamental Theorem of Calculus – Part I . . . . . . . . . . . . . . . . . . . . 1095.7 Integration in General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1135.8 Indefinite Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1145.9 The Substitution Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1155.10 Integration of Exponential and Logarithmic Functions . . . . . . . . . . . . . . . . 1245.11 Review of Formulas and Techniques of Integration . . . . . . . . . . . . . . . . . . 125

6 Differential Equation, Growth and Decay and Partial Derivatives/Chain Rule1326.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1326.2 Learning Outcomes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1326.3 Prescribed Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1336.4 Worked Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

6.4.1 Differential Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1336.4.2 Growth and Decay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1436.4.3 Partial Derivatives/Chain Rule . . . . . . . . . . . . . . . . . . . . . . . . . 153

A Sequence and Summation Notation 169

B Mathematical Induction 174

iv

Page 6: ii - gimmenotes

Contents

MAT1512 v

Page 7: ii - gimmenotes

Study Unit 1

Introduction

Calculus is a set of formal rules and procedures. It gives you the tools you need tomeasure changes both qualitatively and quantitatively. Wikipedia (www.wikipedia.org) defines calculus as a branch of mathematics that includes the study of limits, deriva-tives, integrals, and infinite series, which constitute a major part of modern universityeducation. Calculus has widespread applications in science and engineering and is usedto solve complex and expansive problems for which algebra alone is insufficient. It buildson analytical geometry and mathematical analysis and includes two major branches –differential calculus and integral calculus – which are related through the FundamentalTheorem of Calculus. Differential calculus explores and analyses rates of change quanti-tatively and qualitatively. Integral calculus deals with the analysis (quantitatively and/orqualitatively) of how quantities or measures of values accumulate or diminish over time.The two processes – differentiation and integration – are reciprocal.

The purpose of this module is to equip you, the student, with those basic skills in differentialand integral calculus that are essential for the physical, life and economic sciences. Mostof the time you will be dealing with functions. Basically, a function is a generalised input-output process that defines the mapping of a set of input values to a set of output values.It is often defined as a rule for obtaining a numerical value from another given numericalvalue. You are also going to have to develop a very large repertoire of methods for depictingfunctions graphically/geometrically.

This course is built around your prescribed book. The purpose of this study guide is toguide you through those parts of the prescribed book that you must study for this module,and to provide you with many additional worked examples. The prescribed book is:

James Stewart CalculusMetric Version 8 EditionEarly TranscendentalsCengage LearningISBN 13:978-1-305-27237-8

MAT1512 1

Page 8: ii - gimmenotes

1.1 How to Use the Study Guide

From now on we will refer to the prescribed book as “Stewart”. The study guide mustalways be used in conjunction with the prescribed textbook, because it is not a complete setof notes on the book. Chapters 1 to 4 of this study guide contain many additional workedproblems, taken from past examination papers and assignments. Before going throughthem, study the relevant parts in Stewart, and do the examples and some of the exercisesin Stewart. Also, before going through our solution to a problem in the study guide, trysolving it yourself. Remember that reading maths often means reading the samething over and over again.

We have included numerous worked examples for you. These are designed to stimulateyour thinking in such a way that you will come to appreciate and master the delicatebeauty and intricacies of the subject. All you have to do is keep going! Follow all theinstructions given. Try to write down all the answers to the activities in full. This isextremely important, as a major part of learning mathematics is thinking and writingdown what you think. By writing everything down, you will develop the essential skillof communicating mathematics effectively. The other reason for writing down youranswers, is to prevent you from losing your train of thought about a concept or mathemat-ical idea. If this happens, it takes a while to get your reasoning back to the same point.If you have everything written down, you can also go back the next day and check yourreasoning. Learning mathematics is an activity, and you will only learn by doing. Becauseyou will be thinking about the problems, you will, in most cases, be able to determine byyourself whether your reasoning is right, or not.

Your assignments are included in Tutorial Letter 101. Attempt these once you have com-pleted all the related activities in your study guide. Spend a part of your time each daydoing some of the questions, and a part studying new material. Being able to do an as-signment is proof that you have mastered the work of that particular section. In TutorialLetter 101 we have indicated which assignments you should submit for evaluation.

Also remember that statements, theorems and definitions are the building blocks of yourmathematical language – you cannot learn anything without knowing the basic facts. Beginby reading the preface of your prescribed book. This should give you a good idea of theimportance of the subject you are about to study.

2

Page 9: ii - gimmenotes

Study Unit 1: Functions and Models

1.2 Keys to Success in Studying Mathematics

Plan Plan each week according to what will happening in your lifethat week. Decide how many study hours you need, and whereyou are going to fit those hours in. Write down what you planto do in each session. This way you can look forward to thework you have set for yourself and measure your success.

Evaluate Evaluate each study session. Did you enjoy your studies? Ifnot, why not? What can you change to make things better?Did you achieve what you set out to achieve? Did you use yourtime constructively? What can you do to improve your timemanagement?

Understand Understand the way you learn. One can only learn mathsthrough repetition and practice. DO IT, even if you think youknow the answer. Understanding comes through repetition,and this understanding eventually brings the JOY of master-ing mathematics.

Structure Structure each study session for best results. A suggestion isto divide your time into four parts: (1) Do five to ten min-utes’ revision and read through the important points: (2) Gothrough all the questions of the previous activities. (3) Studynew material by following the instructions in the study guide.(4) Attempt the questions in your assignments about the sec-tions you have completed.

Get or-ganised

(1) Make notes of the facts you have to remember. (2) Writedown the answers to all your activities. (3) Complete all theASSIGNMENTS!

Pace your-self

Work out how fast you will have to work. Some sections willtake longer than others, but assign about one month for eachchapter. This will give you two to four days for each section ineach chapter. Bear in mind that this is not the only moduleyou have registered for.

1.3 Preparing for the Examination

You are studying to improve yourself and NOT only to pass the examination. The exam-ination is there to REWARD you for what you have done and to CONFIRM that youhave done your work properly. If you have followed all the instructions above, you willalready be prepared for the examination and have nothing to worry about. Many studentsspend their time thinking that they cannot master mathematics. This is not true. If youput your mind to it and work hard, you will eventually master this subject.

GOOD LUCK!

MAT1512 3

Page 10: ii - gimmenotes

Study Unit 2

Functions and Models

2.1 Background

This chapter of the study guide deals with Chapter 1 in Stewart. It forms a link betweenschool mathematics and calculus. Topics in algebra, trigonometry, analytic geometry andfunctions which are needed for calculus, are reviewed. Graphs of functions are studied,since they enable us to see and understand the behaviour of functions. In studying thischapter, you should brush up on and revise your school mathematics – especially thoseparts that are needed for an effective study of calculus. This chapter contains backgroundmaterial. At the same time, some topics which are important to understand calculus areintroduced. Therefore, the chapter will contain a few topics which you may have touchedon only briefly, or not at all, at school.

2.2 Learning Outcomes

At the end of this chapter, you should be able to

• algebraically manipulate real numbers, solve equations and work comfortably withmathematical concepts such as variables, inequalities and absolute values

• recognize, demonstrate your knowledge of and work with the different types of func-tions (polynomial, rational, trigonometric, exponential and logarithmic), their prop-erties and their representations

In calculus, the basic mathematical tool at the root of all we do is the function. Thatis why, in this functions and models chapter, you have to familiarize yourself with math-ematical ideas related to functions, such as the different types of functions, their graphsand representations of how they behave. First read the functions and models as given onpage 9 in Stewart. You should study the whole chapter. Remember that problem solvingplays a crucial role in the process of studying calculus.

4

Page 11: ii - gimmenotes

Study Unit 2: Functions and Models

Note: The way to master calculus is to solve lots of calculus problems!

2.3 Principles of Problem Solving

There are no exact rules for solving problems. However, it is possible to outline somegeneral steps, or to give some hints or principles that may be useful in solving certainproblems.

The following steps and principles, which have been adapted from George Polya’s bookHow to solve it, are in fact just common sense made explicit.

Step 1: Understand the problem. Read the problem and make sure that youunderstand what it is about. Ask yourself the following questions: What is the unknown?What are the given quantities? What conditions are given? In many cases it is useful todraw a “given” diagram and identify the given quantities in the diagram. It is usuallynecessary to introduce suitable notation. In choosing symbols for the unknown quantities,we use letters such as a, b, c . . . x and y, and it also helps to use abbreviations or symbolssuch as V (volume) and t (time).

Step 2: Think of a plan. Try to find the connection between the data and theunknown. You may have to relate a problem to others you have seen before. Have you seenthe same problem in a slightly different form? Do you know a similar/related problem? Doyou know a theorem, rule, method or result that could be useful? Could you reformulatethe problem? Could you re-state it differently? Go back to your definitions.

If you cannot solve the proposed problem, try to solve some related problem first. Some-times you will be able to find a similar problem, while in other instances you may haveto use components, sections, and methods of other problems to solve a new one. Everyproblem you encounter becomes a potential method for solving other problems.

Step 3: Carry out the plan. In order to carry out your plan, you have to checkeach step. Can you see clearly that the step is correct? Can you prove that it is correct?

Step 4: Look back. Examine the solution you have obtained. Can you check theresult? Can you check the argument? Can you derive the solution differently? Can yousee it at a glance? Can you use result of, or the method to use for, some other problem?

MAT1512 5

Page 12: ii - gimmenotes

2.4 Summary

Table 2.1 shows a summary of the mathematical ideas you need to master, with referencesto the relevant examples in your textbook. Try to do as many review exercises as you can.

Topic(s) Sections in Stewart Examples inStewart

I. Four ways to represent a function Section 1.1 1–11

II. Mathematical models Section 1.2 1–6

III. New function from old function Section 1.3 1–9

IV. Exponential functions Section 1.4 1–4

V. Inverse functions and logarithms Section 1.5 1–13

Table 2.1: Sections in Stewart.

Note: Each section (in Stewart) contains examples numbered from 1.

2.5 The Way Forward

The topics in the rest of the study guide are:

Chapter 2: Limits and Derivatives

Chapter 3: Differentiation Rules

Chapter 4: Integrals

Chapter 5: Differential Equations, Growth and Decay, and Partial Derivatives/ChainsRule

6

Page 13: ii - gimmenotes

Study Unit 3

Limits and Derivatives

3.1 Background

The idea of a limit underlies the various branches of calculus. In fact, without limits,calculus simply would not exist. Every single notion of calculus is a limit in one sense oranother and the idea of a limit plays a fundamental role in concepts such as instantaneousvelocity, the slope of a curve, the length of a curve, the sum of infinite series, etc. Therole played by limits in both differential and integral calculus is crucial. In this chapter,three main ideas will be introduced. They are: (a) the basic rules (definitions) of limitsand their applications in evaluating limits of algebraic and trigonometric functions; (b) theapplication of limits to the continuity of functions; and (c) the use of the Squeeze Theoremin determining certain limits. Begin by reading through the preview of this chapter onpage 77 in Stewart. You will notice that a mathematical model is used to predict how afunction will behave. Graphs are also used to represent function behaviour and will laterbe used to solve problems.

3.2 Learning Outcomes

At the end of this chapter, you should be able to

• demonstrate an understanding of the concepts relating to limits and how these areapplied in evaluating limits of the form lim

x→cf (x), lim

x→c+f (x), lim

x→c−f (x), lim

x→+∞f (x)

and limx→−∞

f (x), where c is a real number and f is an algebraic or trigonometric

function

• use the limit definition of continuity

• solve problems based on the Squeeze Theorem

MAT1512 7

Page 14: ii - gimmenotes

3.3 Prescribed Reading

The prescribed reading in Stewart is Chapter 2, Sections 2.1, 2.2, 2.3, 2.4 and 2.5. Alsosee Appendix F: A39 (Limit laws) and A42 (The Squeeze Theorem).

Note: The way to master calculus is to solve a lot of calculus problems!

3.4 Limit

3.4.1 Introduction to the Limit Concept

Read carefully through Section 2.1 in Stewart. You will notice that we have two problems– one dealing with finding the slope of a curve at a specific point and the other dealingwith finding the length of a curve. In the first problem, the closer the second point getsto a certain point, the closer the computed value gets to the actual value we are lookingfor. This calculus problem involves a process called the limit. You can estimate the slopeof the curve using a sequence of approximations. The limit allows you to compute theslope exactly. Similarly, in the second problem – in trying to compute the distance along acurved path – you would have to go through better approximations successively until youreach the actual value. The actual arc length is obtained by using the limit. The limitvalue is the height or the y-value of a function.

A left-hand limit is the y-value you obtain by approaching x from the left side.

A right-hand limit is the y-value you obtain by approaching x from the right side.

Let us use two functions to explore the limit concept. The first function, f (x) =x2 − 4

x− 2,

is undefined at x = 2, but its behaviour can be examined in the area close to x = 2. Fromthe value in the tables, you can see that the limit of f (x) as x approaches 2 from the leftor right is 4.

x f (x) =x2 − 4

x− 21.9 3.91.99 3.991.999 3.9991.9999 3.9999

x f (x) =x2 − 4

x− 22.1 4.12.01 4.012.001 4.0012.0001 4.0001

limx→2−

f (x) = 4

8

Page 15: ii - gimmenotes

Study Unit 3: Limits and Derivatives

Figure 3.1: Graph of f (x) =x2 − 4

x− 2

limx→2+

f (x) = 4

This can be written mathematically as follows:

limx→2

f (x) = 4.

Consider another function g (x) =x2 − 5

x− 2or y =

x2 − 5

x− 2.

x g (x) =x2 − 5

x− 21.9 13.91.99 103.991.999 1003.9991.9999 10,003.9999

x y =x2 − 5

x− 22.1 -5.12.01 -95.992.001 -995.9992.0001 -9,995.9999

MAT1512 9

Page 16: ii - gimmenotes

Figure 3.2: Graph of f (x) =x2 − 5

x− 2

Note: As x approaches 2 (from the left or from the right), the value of g(x) gets biggerin absolute value but with opposite signs on opposite sides of 2. The limit of g(x) as xapproaches 2 from the left, and the limit of g(x) as x approaches 2 from the right are notequal. Mathematically, this can be written as follows: lim

x→2−g (x) 6= lim

x→2+g (x) and this

statement means thatlimx→2

g (x) does not exist.

3.4.2 Definition of a Limit: Left- and Right-hand Limits

We say a limit exists if and only if the corresponding one-sided limits are equal. That is, if

limx→a−

f(x) = limx→a+

f(x). In general, limx→a

f (x) = L for some number L if, and only if,

limx→a−

f (x) = limx→a+

f (x) = L.

Let us now consider some worked examples.

3.5 Worked Examples

Our collection of worked examples of the work covered in this study guide can be dividedinto eight sets (with some overlap), namely:

I. Limits as x→ c, c ∈ R (cancellations)

II. Limits as x→ ±∞

10

Page 17: ii - gimmenotes

Study Unit 3: Limits and Derivatives

III. Limits involving absolute values

IV. Left-hand and right-hand limits

V. Limits involving trigonometric functions

VI. The Squeeze Theorem

VII. The ε− δ definition of a limit

VIII. Continuity

Table 3.1 shows which sections of Stewart, and which worked examples in the study guideyou must consult.

Topic(s) Sections in Stewart Examples instudy guide

I. Limits as x→ c, c ∈ R Sections 2.1, 2.2 & 2.3 1–12

II. Limits as x→ ±∞ Section 2.6 (examples 1–5 & 10–11) 13–27

III. Limits involving absolute values Section 2.3 (examples 7–9) 22–27

IV. Left-hand and right-hand limits Section 2.2 (examples 6, 7 & 9) 28–40

V. Limits involving trigonometric Section 2.2 (examples 3–5 & 10) 41–52functions

VI. The Squeeze Theorem Section 2.3 page 101 (example 11 ) 53–57

VII. The ε-δ definition of a limit Section 2.4 (read only) 58–63

VIII. Continuity Section 2.5 (examples 1–9) 64–70

Table 3.1: Sections in Stewart.

In the following sections, we present a number of worked examples based on the mathemat-ical concepts and ideas in each section of this chapter, together with appropriate teachingtexts and references to Stewart. The solutions to the problems appear immediately aftereach set of examples. Unlike the exercises in Stewart, the examples in the study guide arenot arranged in order of difficulty. Only attempt them once you have studied the relevantparts and done some of the exercises in Stewart.

MAT1512 11

Page 18: ii - gimmenotes

3.5.1 Limits as x→ c (c ∈ R)

Determine the following limits:

1. limx→−1

x3 + 1

−x2 + x+ 22. lim

x→−3

x+ 3

x2 + 4x+ 3

3. limx→1

x2 − 2x+ 1

x3 − 2x2 + x4. lim

x→0

5x3 + 8x2

3x4 − 16x2

5. limx→−1

x2 − 2x− 3

x2 − 16. lim

x→3

x2 − 9

x3 − 27

7. limx→−1

x4 − 1

x+ 18. lim

x→3

x3 − 27

x2 − 3x

9. limx→1

x− 1√x2 + 24− 5

10. limh→0

√(x+ h)2 + 1−

√x2 + 1

h

11. limx→−2

(x2 − 2x

) 13 − 2

x2 − 2x− 812. lim

x→10

(x− 2)13 − 2

x− 10

12

Page 19: ii - gimmenotes

Study Unit 3: Limits and Derivatives

Solutions:

1. limx→−1

x3 + 1

−x2 + x+ 22. lim

x→−3

x+ 3

x2 + 4x+ 3

= limx→−1

(x+ 1)(x2 − x+ 1

)(x+ 1) (2− x)

= limx→−3

x+ 3

(x+ 3) (x+ 1)

= limx→−1

x2 − x+ 1

2− x= lim

x→−3

1

x+ 1

= 33 = 1. =

1

−3 + 1= −1

2 .

3. = limx→1

x2 − 2x+ 1

x3 − 2x2 + x4. lim

x→0

5x3 + 8x2

3x4 − 16x2

= limx→1

(x− 1)2

x (x− 1)2= lim

x→0

x2 (5x+ 8)

x2 (3x2 − 16)

= limx→1

1

x= 1. = lim

x→0

5x+ 8

3x2 − 16

= = − 816 = −1

2 .

5. limx→−1

x2 − 2x− 3

x2 − 16. lim

x→3

x2 − 9

x3 − 27

= limx→−1

(x+ 1) (x− 3)

(x+ 1) (x− 1)= lim

x→3

(x− 3) (x+ 3)

(x− 3) (x2 + 3x+ 9)

= limx→−1

x− 3

x− 1= lim

x→3

x+ 3

x2 + 3x+ 9

=−4

−2= 2. = 6

27 = 29 .

7. limx→−1

x4 − 1

x+ 18. = lim

x→3

x3 − 27

x2 − 3x

= limx→−1

(x2 − 1

) (x2 + 1

)x+ 1

= limx→3

(x− 3)(x2 + 3x+ 9

)x (x− 3)

= limx→−1

(x− 1) (x+ 1)(x2 + 1

)x+ 1

= limx→3

x2 + 3x+ 9

x= lim

x→−1(x− 1)

(x2 + 1

)= 9.

= (−1− 1)[(−1)2 + 1

]= −4.

In the following two solutions we make use of (i) the identity and (ii) rationalising:

(i) A2 −B2 = (A−B) (A+B)

(ii) Rationalising the denominator, eg

1√x

=1√x·√x√x

=

√x

x

(A−B)(A+B) = A2 −B2.

MAT1512 13

Page 20: ii - gimmenotes

9.

limx→1

x− 1√x2 + 24− 5

= limx→1

(x− 1√

x2 + 24− 5·√x2 + 24 + 5√x2 + 24 + 5

)

= limx→1

(x− 1)(√

x2 + 24 + 5)

x2 + 24− 25

= limx→1

(x− 1)(√

x2 + 24 + 5)

x2 − 1

= limx→1

(x− 1)(√

x2 + 24 + 5)

(x− 1) (x+ 1)

= limx→1

√x2 + 24 + 5

x+ 1= 5.

10.

limh→0

√(x+ h)2 + 1−

√x2 + 1

h

= limh→0

(√(x+ h)2 + 1−

√x2 + 1

)(√(x+ h)2 + 1 +

√x2 + 1

)h

(√(x+ h)2 + 1 +

√x2 + 1

)= lim

h→0

(x+ h)2 + 1−(x2 + 1

)h

(√(x+ h)2 + 1 +

√x2 + 1

)= lim

h→0

x2 + 2xh+ h2 + 1− x2 − 1

h

(√(x+ h)2 + 1 +

√x2 + 1

)= lim

h→0

2x+ h√(x+ h)2 + 1 +

√x2 + 1

=x√

x2 + 1.

In the following two solutions we make use of the identity

(A−B)(A2 +AB +B2) = A3 −B3.

11.

limx→−2

(x2 − 2x

) 13 − 2

x2 − 2x− 8= lim

x→−2

(x2 − 2x) 1

3 − 2

x2 − 2x− 8·(x2 − 2x

) 23 + 2

(x2 − 2x

) 13 + 4

(x2 − 2x)23 + 2 (x2 − 2x)

13 + 4

= lim

x→−2

x2 − 2x− 8

(x2 − 2x− 8)[(x2 − 2x)

23 + 2 (x2 − 2x)

13 + 4

]= lim

x→−2

1

(x2 − 2x)23 + 2 (x2 − 2x)

13 + 4

=1

4 + 4 + 4=

1

12.

14

Page 21: ii - gimmenotes

Study Unit 3: Limits and Derivatives

(Here we put A = (x2 − 2x)13 and B = 2, and multiplied both numerator and

denominator by A2 +AB +B2.)

12.

limx→10

(x− 2)13 − 2

x− 10

= limx→10

((x− 2)

13 − 2

x− 10· (x− 2)

23 + 2 (x− 2)

13 + 4

(x− 2)23 + 2 (x− 2)

13 + 4

)

= limx→10

(x− 2)− 8

(x− 10)(

(x− 2)23 + 2 (x− 2)

13 + 4

)= lim

x→10

1

(x− 2)23 + 2 (x− 2)

13 + 4

=1

4 + 4 + 4=

1

12.

3.5.2 Limits as x→ ±∞

In this case, if you are required to find the limit of a function which is a polynomialdivided by another polynomial, find the highest power of the variable in the denominatorand divide each term in both numerator and denominator by that power.

Note:

limx→±∞

1x = 0.

Example:

Find the following limit: limx→∞

6x2 − 1

2x2 + 7x

Solution:

limx→∞

6x2 − 1

2x2 + 7x= lim

x→∞

6x2

x2− 1

x2

2x2

x2+ 7x

x2

Notice that the highest power in the denominator is x2,divide each term in both numerator and denominatorby x2.

= limx→∞

6− 1x2

2 + 7x2

=6− 0

2 + 0

=6

2= 3.

Now determine the following limits:

MAT1512 15

Page 22: ii - gimmenotes

13. limx→∞

x4 + x3

12x3 + 12814. lim

x→∞

7x3 + 1

x2 + x

15. limx→−∞

7x3 + 1

x2 + x16. lim

x→∞

9x4 + x

2x4 + 5x2 − x+ 6

17. limx→−∞

√x2 + 4x− 2x

2x18. lim

x→−∞

4x+ 8√x2 + 7x− 2x

19. limx→−∞

(√x2 + 2x+ x

)20. lim

x→−∞

1√x2 + 5x+ x

21. limx→∞

[(x3 + x2

) 13 − x

]

Solutions:

13.

limx→∞

x4 + x3

12x3 + 128

= limx→∞

x+ 1

12 + (128/x3)= ∞.

14.

limx→∞

7x3 + 1

x2 + x

= limx→∞

7x+ 1/x2

1 + 1/x= ∞.

15.

limx→−∞

7x3 + 1

x2 + x

= limx→−∞

7x+ 1x2

1 + 1x

= −∞.

16.

limx→∞

9x4 + x

2x4 + 5x2 − x+ 6

= limx→∞

9 +(1/x3

)2 + (5/x2)− (1/x3) + (6/x4)

=9 + 0

2 + 0− 0 + 0

=9

2.

16

Page 23: ii - gimmenotes

Study Unit 3: Limits and Derivatives

17.

limx→−∞

√x2 + 4x− 2x

2x

= limx→−∞

√x2 (1 + 4/x)− 2x

2x

= limx→−∞

|x|√

1 + 4/x− 2x

2x

= limx→−∞

−x√

1 + 4/x− 2x

2x(|x| = −x since x < 0)

= limx→−∞

−x(√

1 + 4/x+ 2)

2x

= limx→−∞

−(√

1 + 4/x+ 2)

2= −3

2.

18.

limx→−∞

4x+ 8√x2 + 7x− 2x

= limx→−∞

4x+ 8√x2 (1 + (7/x))− 2x

= limx→−∞

4x+ 8

|x|√

1 + (7/x)− 2x(√x2 = |x|)

= limx→−∞

4x+ 8

−x√

1 + (7/x)− 2x(|x| = −x since x < 0)

= limx→−∞

4 + (8/x)

−√

1 + (7/x)− 2

=4 + 0

−√

1 + 0− 2= −4

3.

19.

limx→−∞

(√x2 + 2x+ x

)= lim

x→−∞

(√x2 + 2x+ x

)(√x2 + 2x− x

)√x2 + 2x− x

= limx→−∞

x2 + 2x− x2√x2 + 2x− x

= limx→−∞

2x

|x|√

1 + 2/x− x

= limx→−∞

2x

−x√

1 + 2/x− x(|x| = −x since x < 0)

= limx→−∞

2

−√

1 + 2/x− 1= −1.

MAT1512 17

Page 24: ii - gimmenotes

20.

limx→−∞

1√x2 + 5x+ x

= limx→−∞

(1√

x2 + 5x+ x·√x2 + 5x− x√x2 + 5x− x

)

= limx→−∞

√x2 + 5x− x

5x

= limx→−∞

√x2 (1 + 5/x)− x

5x

= limx→−∞

|x|√

1 + 5/x− x5x

(√x2 = |x|

)= lim

x→−∞

−x√

1 + 5/x− x5x

(|x| = −x since x < 0)

= limx→−∞

−√

1 + 5/x− 1

5

=−√

1 + 0− 1

5= −2

5.

21.

limx→∞

[(x3 + x2

) 13 − x

]= lim

x→∞

[(x3 + x2

) 13 − x

] [(x3 + x2

) 23 + x

(x3 + x2

) 13 + x2

](x3 + x2)

23 + x (x3 + x2)

13 + x2

= limx→∞

x3 + x2 − x3

(x3 + x2)23 + x (x3 + x2)

13 + x2

= limx→∞

x2

x2 (1 + 1/x)23 + x2 (1 + 1/x)

13 + x2

= limx→∞

1

(1 + 1/x)23 + (1 + 1/x)

13 + 1

=1

3.

3.5.3 Limits Involving Absolute Values

Remember from high school that

|x| ={

x if x ≥ 0−x if x < 0

The definition of absolute value gives a function in two sections (parts) with correspondingintervals,

ie if y = |x| then

y =

{x if x ≥ 0−x if x < 0

Another example:

18

Page 25: ii - gimmenotes

Study Unit 3: Limits and Derivatives

If f(x) = |3− 2x|, then we can write

f (x) =

{3− 2x if 3− 2x ≥ 0

− (3− 2x) if 3− 2x < 0

But 3− 2x ≥ 0⇔ 3 ≥ 2x⇔ 32 ≥ x⇔ x ≥ 3

2Similarly, 3− 2x < 0⇔ 3 < 2x⇔ 3

2 < x⇔ x > 32

Thus,

f (x) =

3− 2x if x ≤ 3

2

−3 + 2x if x > 32

Let us look at one example:

Find the following limit:

limx→∞

x− 5

|3− 2x|

Solution:

limx→∞

x− 5

|3− 2x|= lim

x→∞

x− 5

−3 + 2x= lim

x→∞

xx −

5x

−3x + 2x

x

(|3− 2x| = − (3− 2x) since x >

3

2

)= lim

x→∞

1− 5x

−3x + 2

=1− 0

−0 + 2

=1

2.

Note: Since we have x → ∞, x > 32 and this is why we have |3− 2x| = −3 + 2x in our

example above.

Now determine the rest of the limits below.

22. limx→∞

3x+ 1

|2− x|23. lim

x→−∞

|x||x|+ 1

24. limx→−∞

x

|x|25. lim

x→−∞

|x+ 1|x+ 1

26. limx→−∞

|x+ 1|2x+ 3

27. limx→−∞

2 + |2x+ 1|2x+ 1

MAT1512 19

Page 26: ii - gimmenotes

Solutions:

22.

|2− x| =

{2− x if 2− x ≥ 0− (2− x) if 2− x < 0

=

{2− x if x ≤ 2x− 2 if x > 2

Hence

limx→∞

3x+ 1

|2− x|

= limx→∞

3x+ 1

x− 2( |2− x| = x− 2 since x > 2)

= limx→∞

3 + 1/x

1− 2/x

=3 + 0

1− 0= 3.

23.

limx→−∞

|x||x|+ 1

= limx→−∞

−x−x+ 1

(|x| = −x since x < 0)

= limx→−∞

−1

−1 + 1x

= 1.

24.

limx→−∞

x

|x|

= limx→−∞

x

−x(|x| = −x since x < 0)

= limx→−∞

(−1) = −1.

25.

limx→−∞

|x+ 1|x+ 1

= limx→−∞

− (x+ 1)

x+ 1(|x+ 1| = − (x+ 1) since x < −1)

= limx→−∞

(−1) = −1.

26.

limx→−∞

|x+ 1|2x+ 3

= limx→−∞

− (x+ 1)

2x+ 3(since x < −1)

= limx→−∞

−1− 1/x

2 + 3/x= −1

2.

20

Page 27: ii - gimmenotes

Study Unit 3: Limits and Derivatives

27.

limx→−∞

2 + |2x+ 1|2x+ 1

= limx→−∞

2− (2x+ 1)

2x+ 1(|2x+ 1| = − (2x+ 1) since x < −1

2)

= limx→−∞

1− 2x

2x+ 1

= limx→−∞

1x − 2

2 + 1x

= −1.

3.5.4 Left-hand and Right-hand Limits

A left-hand limit is the y-value you obtain by approaching x from the left side.

A right-hand limit is the y-value you obtain by approaching x from the right side.

Let us try out one example:

Suppose

h (x) =

x if x < 0x2 if 0 < x ≤ 2

8− x if x > 2.

Evaluate the following limits:

28. limx→0−

h (x)

29. limx→0+

h (x)

30. limx→2−

h (x)

31. limx→2+

h (x)

32. limx→2

h (x)

Solutions:

28. limx→0−

h (x) = limx→0−

x = 0.

29. limx→0+

h (x) = limx→0+

x2 = 02 = 0.

30. limx→2−

h (x) = limx→2−

x2 = 22 = 4.

MAT1512 21

Page 28: ii - gimmenotes

31. limx→2+

h (x) = limx→2+

(8− x) = 8− 2 = 6.

32. limx→2

h (x) does not exist, since limx→2−

h (x) 6= limx→2+

h (x) .

Now determine the following limits:

33. limx→2−

1

x− 2

34. limx→2−

f(x), where

f(x) =

x+ 2 if x > 2x2 if x < 20 if x = 2

35. limx→0−

1

|x|

36. limx→0−

x

|x|

37. Let

f(x) =

{2 if x > 1

1− x2 if x < 1

(a) Draw the graph of f.

(b) Determine limx→1−

f(x) and limx→1+

f(x).

(c) Does limx→1

f(x) exist? Give a reason for your answer.

38. Let

f(x) =

x2 + 1 if x > 2

0 if x = 2 or x = 01x if x < 2 and x 6= 0

Determine limx→2+

f (x) , limx→2−

f (x) , limx→2

f (x), limx→∞

f (x) and limx→−∞

f(x), if these

limits exist.

39. Let

f(x) =

3− x if x < 2

2 if x = 2x2 if x > 2

Find limx→2+

f(x) and limx→2−

f(x). Does limx→2

f(x) exist? If so, what is it?

Solutions:

22

Page 29: ii - gimmenotes

Study Unit 3: Limits and Derivatives

33. limx→2−

1

x− 2(because x− 2→ 0 and 1

x−2 < 0)

= −∞.

34. limx→2−

f(x) = limx→2−

x2 (since x < 2)

= 4.

35. limx→0−

1

|x|

= limx→0−

1

−x(|x| = −x since x < 0)

=∞ .

36. If x tends to 0−, then x is negative. According to the definition of the absolute value,we then have that |x| = −x.

Consequently,

limx→0−

x

|x|

= limx→0−

x

−x= lim

x→0−(−1) = −1.

37. (a)

Figure 3.3: Graph of f(x)

(b) limx→1−

f(x) = limx→1−

(1− x2) = 1− 1 = 0.

limx→1+

f(x) = limx→1+

(2) = 2.

MAT1512 23

Page 30: ii - gimmenotes

(c) limx→1

f(x) does not exist, because

limx→1+

f(x) 6= limx→1−

f(x).

38. limx→2+

f(x) = limx→2+

(x2 + 1) = 5.

limx→2−

f(x) = limx→2−

(1

x

)=

1

2.

limx→2

f(x) does not exist, since limx→2+

f(x) 6= limx→2−

f(x).

limx→∞

f(x) = limx→∞

(x2 + 1) =∞.

limx→−∞

f(x) = limx→−∞

(1

x

)= 0.

39. limx→2+

f(x) = limx→2+

x

2=

2

2= 1

while

limx→2−

f(x) = limx→2−

(3− x) = 3− 2 = 1.

limx→2

f(x) exists, since limx→2+

f(x) = limx→2−

f(x).

We have limx→2

f(x) = 1.

3.5.5 Limits Involving Trigonometric Functions

In order to compute the derivatives of the trigonometric functions (for example, by usingthe first principle of differentiation), we first have to know how to evaluate the limits oftrigonometric functions.

Below are some of the theorems you need to know:

(i) limx→0

sinx = 0,

(ii) limx→0

cosx = 1,

(iii) limx→0

sinx

x= lim

x→0

x

sinx= 1,

24

Page 31: ii - gimmenotes

Study Unit 3: Limits and Derivatives

(iv) limx→0

cosx− 1

x= lim

x→0

1− cosx

x= 0.

Examples:

Find the following limit:

limθ→0

sin (5θ)

Solution:

In order to apply theorem (iii) above, we first have to re-write the function as follows:

sin 5θ

3θ=

sin 5θ

3θ.5

5=

5 sin 5θ

3.5θ=

5

3

(sin 5θ

)

Notice that as θ → 0 we have 5θ → 0. So by theorem (iii) above, with x = 5θ,

we have limθ→0

sin 5θ

5θ= lim

5θ→0

sin (5θ)

5θ= 1.

Therefore,

limθ→0

sin 5θ

3θ= lim

θ→0

5

3

(sin (5θ)

)=

5

3limθ→0

sin 5θ

=5

3.1

=5

3.

Also find the following limitlimx→0

x cotx.

MAT1512 25

Page 32: ii - gimmenotes

Solution:

limx→0

x cotx = limx→0

xcosx

sinx

= limx→0

cosxsinxx

=limx→0

cosx

limx→0

sinxx

=1

1= 1.

Also, determine the following limits:

40. limx→0−

x

tanx

41. limθ→0

θ2

tan θ42. lim

θ→0

sin (5θ)

43. limx→0

x+ sinx

x44. lim

t→0

tan (2t)

t

45. limθ→0

sin (5θ)

sin (2θ)46. lim

x→0(tan (2x) · csc (4x))

47. limθ→5

sin (2θ − 10)

sin (θ − 5)48. lim

θ→0

1− cos θ

θ

49. limx→−∞

(x sin 1

x

)50. lim

x→∞

(x sin 1

x

)51. lim

x→−∞

(x2 sin 1

x

)52. lim

θ→0

1− cos θ

1− cos (3θ)

Solutions:

40. limx→0−

xtanx = lim

x→0−

(x

sinx · cosx)

= limx→0−

xsinx · lim

x→0−cosx

= 1limx→0−

sin xx

· limx→0−

cosx

= 11 · 1 = 1.

26

Page 33: ii - gimmenotes

Study Unit 3: Limits and Derivatives

41. limθ→0

θ2

tan θ= lim

θ→0

θ2 cos θsin θ 42. lim

θ→0

sin (5θ)

= limθ→0

sin θθ cos θ

)= lim

θ→0

5 sin (5θ)

2.5θ

= limθ→0

θ

sin θ· limθ→0

(θ cos θ) =5

2× 1 = 5

2 .

= limθ→0

θsin θ · limθ→0

θ · limθ→0

cos θ

= 1× 0× 1 = 0.

43. limx→0

x+ sinx

x44. lim

t→0

tan (2t)

t

= limx→0

(1 +

sinx

x

)= lim

t→0

sin (2t)

t · cos (2t)

= limx→0

1 + limx→0

sinx

x= lim

t→0

(sin (2t)

2t· 2

cos (2t)

)= 1 + 1 = 2. = 1× 2

1= 2.

45. limθ→0

sin (5θ)

sin (2θ)46. lim

x→0(tan (2x) · csc (4x))

= limθ→0

(sin (5θ)

5θ· 5θ

2θ· 2θ

sin (2θ)

)= lim

x→0

sin (2x)

cos (2x) · sin (4x)

= limθ→0

sin (5θ)

5θ× 5

2× limθ→0

sin (2θ)= lim

x→0

(sin (2x)

cos (2x)· 1

2 sin (2x) cos (2x)

)= 1× 5

2× 1 =

5

2. = lim

x→0

(1

2· 1

cos2 (2x)

)=

1

2.

47. Put x = θ − 5. Then 2θ − 10 = 2x and x→ 0⇔ θ → 5. Now,

limθ→5

sin (2θ − 10)

sin (θ − 5)= lim

x→0

sin (2x)

sinx

= limx→0

(sin (2x)

2x· 2x

x· x

sinx

)= 1× 2× 1 = 2.

48.

limθ→0

1− cos θ

θ= lim

θ→0

(1− cos θ) (1 + cos θ)

θ (1 + cos θ)

= limθ→0

1− cos2 θ

θ (1 + cos θ)

= limθ→0

sin2 θ

θ (1 + cos θ)

= limθ→0

sin θ

θ· limθ→0

sin θ

1 + cos θ= 1.0 = 0.

We have used property (iv) on page 28.

MAT1512 27

Page 34: ii - gimmenotes

49. Put θ =1

x. Then x =

1

θand x→ −∞⇔ θ → 0−. Hence,

limx→−∞

(x sin

1

x

)= lim

θ→0−

(sin θ

θ

)= 1.

50.

limx→∞

(x sin

1

x

)= lim

θ→0+

(sin θ

θ

)(where θ =

1

x)

= 1.

51. Put θ = 1x . Then x→ −∞⇔ θ → 0−. Thus,

limx→−∞

(x2 sin

1

x

)= lim

θ→0−

(sin θ

θ· 1

θ

)= −∞.

52.

limθ→0

1− cos θ

1− cos (3θ)

= limθ→0

[1− cos θ

1− cos (3θ)· 1 + cos θ

1 + cos θ· 1 + cos (3θ)

1 + cos (3θ)

]= lim

θ→0

[(1− cos2 θ

)(1 + cos (3θ))

(1− cos2 (3θ)) (1 + cos θ)

]

= limθ→0

sin2 θ · (1 + cos (3θ))

sin2 (3θ) · (1 + cos θ)

= limθ→0

[(sin θ

θ

)2

· θ2

9θ2·(

sin (3θ)

)2

· 1 + cos (3θ)

1 + cos θ

]= 12 · 1

9· 12 · 2

2=

1

9.

3.5.6 The Squeeze Theorem

Note: The Squeeze Theorem is also known as the Sandwich Theorem or Pinching Theorem.

The Squeeze Theorem is used to evaluate the limit values of a complicated function, or thelimit values of an unknown function. The Squeeze Theorem is stated as follows:

28

Page 35: ii - gimmenotes

Study Unit 3: Limits and Derivatives

If f (x) ≤ g (x) ≤ h (x) for all x in an open interval that contains a (except possibly at a)

and limx→a

f (x) = limx→a

h (x) = L, then limx→a

g (x) = L.

The Sandwich Theorem is illustrated by the sketches below.

Imagine you have a sandwich as shown in Figure 3.4:

Figure 3.4: Illustrating Squeeze Theorem

The theorem says that if g(x) is squeezed or pinched between f(x) and h(x) near a, andif f and h have the same limit value L at a, then g is forced to have the same limit valueL at a.

Suppose you have to find the following limit:

limx→0

x2 sin1

x

This is a complicated function, in other words, it is difficult to determine the limit of thefunction. In such a case we can use the Squeeze (Sandwich) Theorem.

Squeeze Theorem

A:Functions only eg polynomialsIf we have f (x) ≤ g (x) ≤ h (x)and for some value L,

limx→c

f (x) = L and limx→c

h (x) = L,

then, by the Sandwich (Squeeze) Theorem

limx→c

g (x) = L

Squeeze TheoremB:Trigonometric functions onlyWe apply−1 ≤ sinx ≤ 1

OR−1 ≤ cosx ≤ 1f (x) ≤ g (x) ≤ h (x)and for some value L,limx→c

f (x) = L and limx→c

h (x) = L,

then, by the Sandwich (Squeeze) Theoremlimx→c

g (x) = L

Now let us find the limit of

MAT1512 29

Page 36: ii - gimmenotes

limx→0

x2 sin 1x . (This is an example of a complicated function.)

Solution:

To use the Squeeze Theorem, we first have to find functions f and h such that

f (x) ≤ x2 sin1

x≤ h (x)

wherelimx→0

f (x) = limx→0

h(x).

Recall that

−1 ≤ sin

(1

x

)≤ 1 for all x 6= 0.

Now we multiply by x2 (note that for x 6= 0, x2 > 0).

This means that the inequality signs will not change in direction, and we get

x2 (−1) ≤ x2. sin(1x

)≤ x2.1, which means that −x2 ≤ x2. sin

(1x

)≤ x2 for all x 6= 0.

Then limx→0−x2 = 0 and lim

x→0x2 = 0.

So from the Sandwich Theorem, it follows that limx→0

x2. sin(1x

)= 0.

Go through the given worked examples below.

53. Find limx→∞

f(x) if

2x2

x2 + 1< f(x) <

2x2 + 5

x2

54. Suppose that

1− x2

6<

x sinx

2− 2 cosx< 1

for x close to zero. Determine

limx→0

x sinx

2− 2 cosx

55. Use the Squeeze Theorem to determine

limx→−∞

sinx

x

30

Page 37: ii - gimmenotes

Study Unit 3: Limits and Derivatives

56. Use the Squeeze Theorem to determine

limx→∞

(bxc /x) and limx→−∞

(bxc /x)

57. Use the Squeeze Theorem to determine

limx→∞

1− cosx2

1 + x3

Solutions:

53. limx→∞

2x2

x2 + 1= lim

x→∞

2

1 + 1/x2= 2 and

limx→∞

2x2 + 5

x2= lim

x→∞

2 + 5/x2

1= 2.

By the Squeeze Theorem, it follows that limx→∞

f(x) = 2.

54. limx→0

(1− x2

6

)= 1− 0

6= 1,

whilelimx→0

1 = 1,

so, by the Squeeze Theorem

limx→0

x sinx

2− 2 cosx= 1.

55. For all x it holds that−1 ≤ sin x ≤ 1.

If x < 0, we can divide by x to obtain

1

x≥ sinx

x≥ −1

x⇒ −1

x≤ sinx

x≤ 1

x

Now limx→−∞

1

x= 0, and lim

x→−∞

(−1

x

)= − lim

x→−∞

1

x= 0. It follows by the Squeeze

Theorem that

limx→−∞

sinx

x= 0.

MAT1512 31

Page 38: ii - gimmenotes

56. For all x it holds thatx− 1 < bxc ≤ x. (3.1)

Where bxc is known as the floor function. If x > 0 then

x− 1

x< bxc /x ≤ 1.

Now

limx→∞

x− 1

x= lim

x→∞

1− 1x

1= 1,

while limx→∞

1 = 1. From the Squeeze Theorem it follows that

limx→∞

(bxc /x) = 1.

If x < 0, then we can divide (3.1) by x to obtain

x− 1

x> bxc /x ≥ 1.

Similarly, as above, it follows that

limx→−∞

(bxc /x) = 1.

57. For all x it holds that−1 ≤ − cosx2 ≤ 1

Add 1:0 ≤ 1− cosx2 ≤ 2

For x > 0 (because x→∞), we divide by 1 + x3 > 0 to obtain

0

1 + x3≤ 1− cosx2

1 + x3≤ 2

1 + x3.

Now limx→∞

0 = 0 and limx→∞

2

1 + x3= 0. It follows by the Squeeze Theorem that

limx→∞

1− cosx2

1 + x3= 0.

32

Page 39: ii - gimmenotes

Study Unit 3: Limits and Derivatives

3.5.7 The ε-δ Definition of a Limit (Read only for other modules eg MAT2615)

This section is not for examination purposes, therefore you should not spend too muchtime on it. However, those of you who intend to continue with pure mathematics shouldbe familiar with the contents of this section.

58. Determine δ > 0 so that

0 <

∣∣∣∣x− 1

4

∣∣∣∣ < δ ⇒∣∣∣∣ 1

4x− 1

∣∣∣∣ < 1

20.

59. Prove from the ε-δ definition that limx→2

(7x− 1) = 13.

60. Prove from the ε-δ definition that limx→−1

f(x) = 10, where f(x) = −3x+ 7.

61. Prove from the ε-δ definition that limx→2

x2 − 4

x− 2= 4.

62. Prove from the ε-δ definition that limx→1

x2 − 1

x− 1= 2.

63. Prove from the ε-δ definition that limx→−3

x2 − 9

x+ 3= −6.

Solutions:

58.

∣∣∣∣ 1

4x− 1

∣∣∣∣ < 1

20

⇔ − 1

20<

1

4x− 1 <

1

20

⇔ 1− 1

20<

1

4x− 1 + 1 <

1

20+ 1

⇔ 19

20<

1

4x<

21

20

⇔ 20

19> 4x >

20

21

⇔ 5

21< x <

5

19

⇔ 5

21− 1

4< x− 1

4<

5

19− 1

4

⇔ − 1

84< x− 1

4<

1

76.

MAT1512 33

Page 40: ii - gimmenotes

If we choose δ =1

84, we should have that

0 <

∣∣∣∣x− 1

4

∣∣∣∣ < δ ⇒∣∣∣∣ 1

4x− 1

∣∣∣∣ < 1

20.

59. According to the definition of a limit, let f(x) = 7x− 1, xo = 2 and L = 13. Givenε > 0, we need to find δ > 0 so that for all x

0 < |x− 2| < δ ⇒ |f(x)− 13| < ε.

Now

|f(x)− 13| = |7x− 1− 13|= |7x− 14|= 7 |x− 2|

So let δ =ε

7. Then

0 < |x− 2| < δ ⇒ |f(x)− 13| = 7 |x− 2| (from above)

< 7δ

= 7 · ε7

= ε.

60. We have that

|f(x)− 10| = |−3x+ 7− 10| = |−3x− 3| = |−3(x+ 1)|= 3|x+ 1|= 3 |x− (−1)| .

If ε > 0 is given, put δ =ε

3. Then

0 < |x− (−1)| < δ ⇒ |f(x)− 10| = 3 |x− (−1)|

< 3δ = 3 · ε3

= ε.

This shows thatlimx→−1

f(x) = 10.

61. Let ε > 0 be given. We have that ∣∣∣∣x2 − 4

x− 2− 4

∣∣∣∣=

∣∣∣∣(x+ 2) (x− 2)

x− 2− 4

∣∣∣∣= |x+ 2− 4| (if x 6= 2)

= |x− 2|.

34

Page 41: ii - gimmenotes

Study Unit 3: Limits and Derivatives

Put δ = ε. Then, if 0 < |x− 2| < δ, it follows that x 6= 2, and so∣∣∣∣x2 − 4

x− 2− 4

∣∣∣∣ = |x− 2| < δ = ε.

62. Let ε > 0 be given. Then∣∣∣∣x2 − 1

x− 1− 2

∣∣∣∣ =

∣∣∣∣(x− 1) (x+ 1)

x− 1− 2

∣∣∣∣= |x+ 1− 2| (if x 6= 1)

= |x− 1|.

Put δ = ε. Then

0 < |x− 1| < δ ⇒∣∣∣∣x2 − 1

x− 1− 2

∣∣∣∣ < ε.

Hence,

limx→1

x2 − 1

x− 1= 2.

63. In the definition of a limit, we put f(x) = (x2 − 9)/(x + 3), xo = −3 and L = −6.Let ε > 0 be given. Then∣∣∣∣x2 − 9

x+ 3− (−6)

∣∣∣∣ =

∣∣∣∣(x+ 3) (x− 3)

x+ 3+ 6

∣∣∣∣= |x− 3 + 6| (if x 6= −3)

= |x+ 3|= |x− (−3)|.

Let δ = ε. If0 < |x− (−3)| < δ

then x 6= −3, and then it follows from the above that∣∣∣∣x2 − 9

x+ 3− (−6)

∣∣∣∣ = |x− (−3)| < ε.

Hence,

limx→−3

x2 − 9

x+ 3= −6.

3.5.8 Continuity

In the previous topics, notice that the limit of a function as x approaches a can sometimesbe found by just calculating the value of the function (y) at x = a. The functions withthis property are said to be continuous at a. A continuous process is one that takesplace gradually, without interruption or abrupt changes.

MAT1512 35

Page 42: ii - gimmenotes

Definition 1

A function f is continuous at a number a if limx→a

f (x) = f(a).

Definition 2

A function f is continuous from the right at a number a if limx→a+

f (x) = f (a)

and f is continuous from the left at a number a if limx→a−

f (x) = f(a).

If f is not continuous at a, we say that f is discontinuous at a, or that f hasa discontinuity at a. When we consider the two definitions above, we noticethat three things (or conditions) are required for f to be continuous at a.

A function f is continuous at x = a when the following conditions are satisfied:

(i) if f(a) is defined (that is, a is in the domain of f)

(ii) if limx→a

f (x) exists [that is, f must be defined in an open interval that contains a] and

limx→a−

f (x) = limx→a+

f (x)

(iii) if limx→a

f (x) = f (a).

If one or more of the three conditions above are not satisfied, then f is said to be discon-tinuous at x = a. [Try to think of the process of finding a limit as making a prediction asto what the y-value will be when x finally gets to a.]

In figures (a), (b), (c) and (d) below, three main types of discontinuities – removable,jump and non-removable are shown. Are you able to explain why the function f isdiscontinuous at x = a in all four diagrams?

Let us now work through some examples.

Example 1:

(a) Determine whether the function f (x) =

{1− x, if x ≤ 2

x2 − 2x, if x > 2is continuous

or discontinuous at a = 2, and explain why.

(b) Sketch the graph of the function.

36

Page 43: ii - gimmenotes

Study Unit 3: Limits and Derivatives

(a) (b)

(c) (d)

Solution:

(a)

limx→2−

f (x) = limx→2−

(1− x) = 1− 2 = −1

limx→2+

f (x) = limx→2+

(x2 − 2x

)= (2)2 − 2 (2) = 4− 4 = 0

Sincelimx→2−

f (x) 6= limx→2+

f (x)

limx→2

f (x) does not exist [that is, condition (ii) has not been met].

Therefore the function is discontinuous at x = 2.

(b) The key points on the graph are:

(i) the vertical intercept(s) (where x = 0)

(ii) the horizontal intercept(s) (where f(x) = 0)

(iii) the turning points

f(x) = 1−x is a straight line with intercepts at (0, 1) and (1, 0) for the intervalwhere x ≤ 2.

f(x) = x2 − 2x is a curve with intercepts where x(x− 2) = 0 that is (0, 0) and(2, 0) are the x-intercepts, but they do not fall in the interval x > 2.

Example 2:

MAT1512 37

Page 44: ii - gimmenotes

Figure 3.5: Graph of f(x) = x2 − 2x and f(x) = 1− x

If

f (x) =

{x2−x−2x−2 if x 6= 2

1, if x = 2,

determine if the function f(x) is continuous at x = 2.

Solution:

For limx→2

f (x) to exist, we must first find limx→2−

f (x) and limx→2+

f (x) . Since

limx→2−

f (x) = limx→2+

f (x) = limx→2

x2 − x− 2

x− 2

= limx→2

(x− 2) (x+ 1)

x− 2= lim

x→2(x+ 1) = 3,

the limit exists.

But f(2) = 1 is also defined and limx→2

f(x) 6= f(2).

So f (x) is not continuous at x = 2 (this is the “removable” type of discontinuity).

Example 3:

Find the value of the constant c that would make the function f continuous at x = 3,where:

f (x) =

{cx+ 1, if x ≤ 3cx2 − 1, if x > 3.

38

Page 45: ii - gimmenotes

Study Unit 3: Limits and Derivatives

Solution:

We determine the left- and right-hand limits as follows:

limx→3−

f (x) = limx→3−

(cx+ 1) = 3c+ 1

andlimx→3+

f (x) = limx→3+

(cx2 − 1

)= 9c− 1.

The condition for f to be continuous at x = 3 is that limx→3−

f (x) = limx→3+

f (x) ,

that is3c+ 1 = 9c− 1

⇔ 9c− 3c = 1 + 1⇔ 6c = 2⇔ c = 1

3 .

Thus f (x) is continuous at x = 3, for

c =1

3.

You can now work through the last examples in this chapter.

64. Let

f(x) =

{x if x ≤ 1

(x− 1)2 if x > 1.

(a) Draw the graph of f (x) .

(b) Determine limx→1+

f(x) and limx→1−

f(x). Does limx→1

f(x) exist? Give a reason for

your answer.

(c) Is f (x) continuous at x = 1? Give a reason for your answer.

65. Let

f(x) =

{4− x2 if x > 1

3x2 if x < 1.

(a) Draw the graph of f(x).

(b) Calculate limx→1+

f(x) and limx→1−

f(x).

(c) What value, if any, must be assigned to f(1) to make f (x) continuous at x = 1?Give reasons for your answer.

MAT1512 39

Page 46: ii - gimmenotes

66. (a) At which points (if any) is the function

f(x) =x+ a

x2 + (a+ b)x+ ab

discontinuous? (a and b are constants.)

(b) At which points (if any) can

f(x) =x+ a

x2 + (a+ b)x+ ab

be made continuous by assigning a certain value to f(x), and what is the value?

67. Let

g(x) =

{x2+2x−15

x−3 if x 6= 3

k if x = 3.

What value (if any) must k be for g to be continuous at x = 3? Give reasons for youranswer.

68. Let

g(x) =

{bx2 if x ≥ 1

2x3 if x < 1

2 .

What value must b be for g to be continuous at x = 12? Give reasons for your answer.

69. Let

g(x) =

x3 + 4 if x ≤ 0b+ 1

x+ 2if x > 0.

What value must b be for g to be continuous at x = 0? Give reasons for your answer.

70. Let

g(x) =

{αx2 if x ≥ 2x+ 1 if x < 2.

What value must α be for g to be continuous at x = 2? Give reasons for your answer.

40

Page 47: ii - gimmenotes

Study Unit 3: Limits and Derivatives

Solutions:

64. (a)

Figure 3.6: Graph of f(x)

b(i) limx→1+

f(x) = limx→1+

(x− 1)2 = 0.

b(ii) limx→1−

f(x) = limx→1−

(x) = 1.

b(iii) limx→1

f(x) does not exist, because limx→1+

f(x) 6= limx→1−

f(x).

(c) The function f (x) is thus not continuous at x = 1, because limx→1

f(x) does not

exist.

65. (a)

Figure 3.7: Graph of f(x)

(b) limx→1+

f(x) = limx→1+

(4− x2) = 4− 1 = 3,

MAT1512 41

Page 48: ii - gimmenotes

limx→1−

f(x) = limx→1−

(3x2) = 3.

(c) Let f(1) = 3, since limx→1

f(x) = 3.

66. (a) f(x) =x+ a

x2 + (a+ b)x+ ab

=x+ a

(x+ a) (x+ b).

f(x) is discontinuous where

(x+ a)(x+ b) = 0

that is at x = −a and x = −b.

b(i) The case a 6= b

We calculate the limits of f(x) when x tends to −a and to −b.

limx→−b+

x+ a

(x+ a) (x+ b)

= limx→−b+

1

x+ b= ∞.

The discontinuity at x = −b cannot be removed. Now,

limx→−a

x+ a

(x+ a) (x+ b)

= limx→−a

1

x+ b

=1

b− a.

The discontinuity at x = −a can be removed. We can make f(x) continuous atx = −a by putting

f(−a) =1

b− a.

b(ii) The case a = b

In this case there is a non-removable discontinuity at x = −b. Note: Removablediscontinuity is when a discontinuity can be removed by redefining the function atthat point. In the case of a non-removable discontinuity, the limits do not exist, so

42

Page 49: ii - gimmenotes

Study Unit 3: Limits and Derivatives

there is no way to redefine the function at that point of discontinuity. See pages115–116 of Stewart.

67. limx→3

x2 + 2x− 15

x− 3

= limx→3

(x− 3) (x+ 5)

x− 3

= limx→3

(x+ 5)

= 8.

From the definition of continuity it follows that k must be equal to 8 to make gcontinuous at x = 3.

68. For g (x) to be continuous at x =1

2, limx→ 1

2

g(x) must exist (and be equal to g

(1

2

)).

For this limit to exist, limx→ 1

2

+g(x) and lim

x→ 12

−g(x) must exist and be equal. Now

limx→ 1

2

+g(x) = lim

x→ 12

+(bx2) =

b

4

and

limx→ 1

2

−g(x) = lim

x→ 12

−(x3) =

1

8.

Thus we must have thatb

4=

1

8

or

b =1

2.

69. The function g (x) will be continuous at x = 0 if

g (0) = limx→0

g(x).

Also, limx→0

g(x) will exist provided that limx→0−

g(x) and limx→0+

g(x) exist and are equal.

Hence we must determine the latter two limits, set them equal, and solve for b. Now

limx→0−

g(x) = limx→0−

(x3 + 4) = 0 + 4 = 4,

while

limx→0+

g(x) = limx→0+

(b+ 1

x+ 2

)=b+ 1

0 + 2=b+ 1

2.

MAT1512 43

Page 50: ii - gimmenotes

Letb+ 1

2= 4.

Thenb = 7.

Hence if b = 7, then g (x) is continuous at x = 0.

70. If g (x) is to be continuous at x = 2, then it must hold that

g(2) = limx→2

g(x),

that is

4α = limx→2+

g(x). (3.2)

Now limx→2

g(x) will exist provided limx→2+

g(x) and limx→2−

g(x) exist, and

limx→2+

g(x) = limx→2−

g(x). (3.3)

We have thatlimx→2+

g(x) = limx→2+

(αx2) = 4α,

whilelimx→2−

g(x) = limx→2−

(x+ 1) = 3.

Hence both (3.2) and (3.3) will be satisfied if 4α = 3. Thus if α = 34 , then g (x) is

continuous at x = 2.

Key points

You should now be comfortable with the notion of the limit of a function and its use. Thisincludes one-sided limits, infinite limits (limits resulting in infinity) and limits at infinity(limits of functions as x approaches infinity).

At this stage you should be able to

• evaluate limits of the form limx→c

f (x), limx→c−

f (x) , limx→c+

f (x) and limx→±∞

f (x) , where

c is a real number and f (x) is an algebraic or trigonometric function

• provide a formal definition of the limit, using the correct mathematical notation

44

Page 51: ii - gimmenotes

Study Unit 3: Differentiation Rules

• apply the laws governing limits

• determine and evaluate the limits of sums, products, quotients and compositions offunctions

• evaluate the limits of functions analytically, graphically and numerically

• use the limit definition of continuity to determine whether a function is continuousor discontinuous at a point

• use the Squeeze Theorem to determine certain limits

Continue practising solving problems until you have mastered the basic techniques! Gothrough the section “For your review”at the end of each chapter to consolidate what youhave learnt and also use other calculus textbooks.

MAT1512 45

Page 52: ii - gimmenotes

Study Unit 4

Differentiation Rules

4.1 Background

Differentiation is widely applied in engineering, chemistry, physics, biology and many otherdisciplines in science and technology. It is basically a concept that deals with rates ofchange. Among other things, it is used to define the slopes of curves, to calculate thevelocities and accelerations of moving objects, to find the firing angle that gives a cannon itsgreatest range, and to predict the times when planets will be closest to each other or farthestapart. In this chapter we begin the study of differential calculus. The central conceptof differential calculus is the derivative. After learning how to calculate derivatives, youwill use them to solve problems involving rates of change. This chapter is devoted to (a)the definition of the derivative, or differentiation from first principles; (b) the rules used tofind derivatives of algebraic and trigonometric functions; (c) problems involving tangentand normal lines; (d) techniques such as logarithmic and implicit differentiation; and (e)the application of the Mean Value Theorem and Rolle’s Theorem.

4.2 Learning Outcomes

At the end of this chapter, you should be able to

• demonstrate an understanding of the first principles of differentiation

• apply basic differential formulas such as the power rule, product rule, quotient rule,chain rule, and combinations of these rules to differentiate between a variety ofalgebraic and trigonometric functions

• compute the derivatives of trigonometric functions and inverse trigonometric func-tions, and of exponential and logarithmic functions

• use the methods of logarithmic and implicit differentiation to find derivatives

• solve problems involving tangent and normal lines and the Mean Value Theorem

46

Page 53: ii - gimmenotes

Study Unit 4: Differentiation Rules

Note: The way to master calculus is to solve lots of calculus problems!

4.3 Prescribed Reading

The prescribed readings in Stewart are:

• Chapter 2 sections 2.1–2.3 and 2.5–2.7.

• Chapter 3 sections 3.1–3.7 and

• Chapter 4 section 4.2 only.

4.4 The Derivative

4.4.1 Introducing the Derivative

The definition of the derivative can be approached in two different ways. One is geomet-rical (as the slope of a curve) and the other is physical (as a rate of change). Both ofthese definitions can be used, but the emphasis should be on using the derivative as atool for solving calculus problems.

Remember, in high school you used the first principle of differentiation to find the slopeof a tangent line at a particular point.

Definition: The slope mtan of the tangent line y = f (x) at x = a is:

mtan = limh→0

f (a+ h)− f (a)

h

Example:

Find the slope of the tangent line to the curve y = x2 + 1 at x = 1.

MAT1512 47

Page 54: ii - gimmenotes

Solution:

Figure 4.1: Graph of y = x2 + 1 and x = 1

mtan = limh→0

f (1 + h)− f (1)

h

= limh→0

[(1 + h)2 + 1

]− (1 + 1)

h

= limh→0

1 + 2h+ h2 + 1− 2

h

= limh→0

2h+ h2

h= lim

h→0

h (2 + h)

h

= limh→0

(2 + h) = 2

Thus at x = 1, mtan = 2.

You should also be familiar with the approach used in mechanics when dealing with prob-lems involving average and instantaneous velocity (rate of change).

Average velocity:

vave =total distance

total time

Instantaneous velocity:

v = limh→0

f (t+ h)− f (t)

h

Example:

48

Page 55: ii - gimmenotes

Study Unit 4: Differentiation Rules

Consider an object that is dropped from a height of 64 m. Its position is given as f (t) =64− 16t2. Find its average velocity between

(a) t = 1 and t = 2

(b) t = 1.5 and t = 2

(c) t = 1.9 and t = 2

(d) Also find its instantaneous velocity at t = 2.

Solution:

(a) vave =f (2)− f (1)

2− 1=

64− 16 (2)2 −[64− 16(1)2

]1

= −48 m/s.

(b) vave =f (2)− f (1.5)

2− 1.5=

64− 16 (2)2 −[64− 16(1.5)2

]0.5

= −56 m/s.

(c) vave =f (2)− f (1.9)

2− 1.9=

64− 16 (2)2 −[64− 16(1.9)2

]0.1

= −62.4 m/s.

(d) The instantaneous velocity is given by:

vinstantaneous = limh→0

f (2 + h)− f (2)

(2 + h)− 2

= limh→0

[64− 16 (2 + h)2

]−[64−−16 (2)2

]h

= limh→0

[64− 16

(4 + 4h+ h2

)]−[64−−16 (2)2

]h

= limh→0

−64h− 16h2

h= lim

h→0

−16h (h+ 4)

h= lim

h→0−16 (h+ 4) = −64 m/s.

4.4.2 Definition of the Derivative

The derivative of the function f(x) (at a particular point where x = a) is defined as

f ′ (a) = limh→0

f (a+ h)− f (a)

h,

provided that the limit exists. We say that f is differentiable at x = a when the abovelimit exists.

MAT1512 49

Page 56: ii - gimmenotes

In general, the derivative of f (x) is the function f ′ (x) given by

f ′(x) = limh→0

f (x+ h)− f (x)

h

provided that this limit exists. Finding the first derivative by using the above method iscalled the First Principle of Differentiation.

Note: If we write x = a + h, then h = x − a and h will approach 0 if and only if xapproaches a. Therefore another way of defining the derivative is as follows:

f ′ (a) = limx→a

f (x)− f (a)

x− a.

Let us try an example:

Use the definition of the derivative to find g′ (x) if g (x) = x4.

g′ (x) = limh→0

g (x+ h)− g (x)

h= lim

h→0

(x+ h)4 − x4

h

= limh→0

[(x+ h)2 − x2

] [(x+ h)2 + x2

]h

= limh→0

h [2x+ h][(x+ h)2 + x2

]h

= limh→0

[2x+ h][(x+ h)2 + x2

]= (2x)

(x2 + x2

)= 4x3.

4.5 Worked Examples

In some instances, we do compute derivatives directly from the definition. However, suchcomputations are tedious and very time-consuming. Fortunately, several differential rulesor basic differentiation formulas have been developed to find derivatives without using thedefinition directly. In order to introduce you to the basic differentiation techniques, theserules are presented together with worked examples. You should go and read about theserules in Stewart and work through the examples, following each rule. You will find therules on the following pages in Stewart:

Our collection of worked examples relating to Chapters 2, 3 and 4 of Stewart dividesnaturally into eight sets, with some overlap, namely:

I. Differentiation from first principles (derivative as a function)

50

Page 57: ii - gimmenotes

Study Unit 4: Differentiation Rules

Derivative of a constant p. 172

The power rule for positive integer powers of x p. 172The constant multiple rule p. 175The sum and difference rule p. 176The power rule for negative integer powers of x p. 174

The product rule p. 183

The quotient rule p. 185

The chain rule p. 197

Table 4.1: Pages in Stewart for different rules of differentiation.

II. Basic differentiation formulas (use of the power rule, product rule, quotient rule, chainrule, and combinations of these rules to differentiate between a variety of functions)

III. Derivatives of trigonometric functions and inverse trigonometric functions

IV. Derivatives of exponential and logarithmic functions

V. Logarithmic differentiation

VI. Implicit differentiation

VII. Tangent and normal lines

VIII. The Mean Value Theorem

Attempt the problems appearing immediately after each section, once you have studiedthe relevant parts of Stewart and done some of the exercises there.

Table 4.2 shows how these worked examples and their solutions are organised.

4.5.1 Differentiation from First Principles (derivative as a Function)

1. Find the derivative of 3x2 + 2x− 1 at x = 1.

2. If f (x) = 1x (x 6= 0) , find f ′(x).

3. If f (x) =√x for (x ≥ 0) , find f ′(x).

MAT1512 51

Page 58: ii - gimmenotes

Topic(s) Section(s) in Examplesin study

Stewart guide

I. Differentiation from first princi-ple

Section 2.8 (examples in 1–5

(derivative as a function) 2.1–2.7

II. Basic rules of differentiation 6–31Power rule Section 3.1Product rule Section 3.2Quotient rule Section 3.4Chain rule Section 3.2Combinations of rules Section 3.4(derivative of varieties of )functions)

III. Derivatives of trigonometric Section 3.3 page 190 32–49functions and inverse trigono-metric functions

50–52

IV. Derivatives of exponential Section 3.1 page 172 53–63functions

V. Derivative of logarithmic func-tions

Section 3.6 page 218 64–74

VI. Implicit differentiation Section 3.5: page 208 75–82

VII. Tangent and normal lines Sections 3.1 page 172 and 2.7page 140

83–92

VIII. The Mean Value Theorem Section 4.2 page 287 93–95

Table 4.2: Sections in Stewart.

Solutions:

1.

f ′ (x) = limh→0

f (x+ h)− f (x)

h

= limh→0

3 (x+ h)2 + 2 (x+ h)− 1−(3x2 + 2x− 1

)h

= limh→0

3x2 + 6xh+ h2 + 2x+ 2h− 1− 3x2 − 2x+ 1

h

= limh→0

6xh+ h2 + 2h

h

= limh→0

h (6x+ h+ 2)

h

= limh→0

6x+ h+ 2 = 6x+ 2.

At x = 1, f ′ (1) = 6 (1) + 2 = 8.

52

Page 59: ii - gimmenotes

Study Unit 4: Differentiation Rules

2.

f ′ (x) = limh→0

f (x+ h)− f (x)

h

= limh→0

(1

x+h

)− 1

x

h= lim

h→0

x− (x+ h)

x (x+ h)· 1

h

= limh→0

−hx2 + xh

· 1

h= lim

h→0

−1

x2 + xh= − 1

x2.

3.

f ′ (x) = limh→0

f (x+ h)− f (x)

h

= limh→0

√x+ h−

√x

h

= limh→0

√x+ h−

√x

h·√x+ h+

√x√

x+ h+√x

= limh→0

x+ h− xh(√x+ h+

√x)

= limh→0

h

h(√x+ h+

√x)

= limh→0

1√x+ h+

√x

=1

2√x.

4. Use the definition of the derivative to prove that g′ (0) = 0 if g (x) = x2|x|.

Solution:

By definition,

g′ (0) = limh→0

g (0 + h)− g (0)

h,

provided this limit exists. Now

limh→0

g (0 + h)− h (0)

h

= limh→0

h2 |h| − 0

h= lim

h→0(h |h|)

= 0.

5. Use the definition of the derivative to show that f ′ (2) does not exist when f (x) =|x− 2|.

MAT1512 53

Page 60: ii - gimmenotes

(a)

limh→0+

f (2 + h)− f (2)

h= lim

h→0+

|(2 + h)− 2| − |2− 2|h

= limh→0+

|h|h

= limh→0+

h

h(|h| = h since h > 0)

= 1,

(b) while similarly

limh→0−

f (2 + h)− f (2)

h= lim

h→0−

|h|h

= limh→0

−hh

(|h| = −h since h < 0)

= −1.

Since the left-hand and right-hand limits are not equal, it follows that

limh→0

f (2 + h)− f (2)

h

does not exist, that is, f is not differentiable at 2.

4.5.2 Basic Differentiation Formulas

(a) The Power Rule

If y = xn, then

d

dx(xn) = nxn−1

i.e.dy

dx= nxn−1 for n ∈ R

Examples:

Find the derivatives of the following:

6. f (x) = x8 7.d

dx3√x2 8. m (x) = x

12 + 3x−

12

54

Page 61: ii - gimmenotes

Study Unit 4: Differentiation Rules

Solutions:

6. f ′ (x) = 8x8−1 = 8x7. 7.d

dx3√x2 =

d

dxx

23 =

2

3x

23−1 =

2

3x−

13 =

2

3x13

.

8. m (x) = x12 + 3x−

12 ⇒ m′ (x) =

1

2x12

− 3

2x32

.

Examples involving absolute values:

Find the derivatives of the following:

9. k (a) =1

|a|10. k (s) = |s|

Solutions:

9. k(a) =1

|a|

=

1

aif a > 0

−1

aif a < 0.

Hence,

k′(a) =

− 1

a2if a > 0

1

a2if a < 0.

In fact, k′ (a) can be written as a single expression, namely k′ (a) = − 1

a |a|.

10.

k (s) = |s|

⇒ k′ (s) =

{1 if s > 0−1 if s < 0.

Note: k (s) = |s| is not differentiable at s = 0.

MAT1512 55

Page 62: ii - gimmenotes

(b) The Product Rule

If y = f.g, then y′ = f ′.g + f.g′ ord

dx[f (x) g (x)] = f ′ (x) g (x) + f (x) g′ (x)

Examples:

11. Find f ′ (x) if f (x) =(2x4 − 3x+ 5

)(x2 −

√x+

2

x

)

Solution:

f ′ (x) =d

dx

[2x4 − 3x+ 5

](x2 −

√x+

2

x

)+(2x4 − 3x+ 5

) d

dx

(x2 −

√x+

2

x

)=

(8x3 − 3

)(x2 −

√x+

2

x

)+(2x4 − 3x+ 5

)(2x− 1

2√x− 2

x2).

12. Differentiate the following function:

y = (x+ 1)10 (2x+ 3)11 (4− x)12

Solution:

y = (x+ 1)10(2x+ 3)11(4− x)12

⇒ dy

dx= (x+ 1)10(2x+ 3)11

d

dx(4− x)12 + (x+ 1)10(4− x)12

d

dx(2x+ 3)11

+ (2x+ 3)11(4− x)12d

dx(x+ 1)10

= (x+ 1)10(2x+ 3)11 · 12(4− x)11d

dx(4− x) +

+(x+ 1)10(4− x)12 · 11(2x+ 3)10 · ddx

(2x+ 3)

+ (2x+ 3)11(4− x)12.10(x+ 1)9

= −12(x+ 1)10(2x+ 3)11(4− x)11 + 22(x+ 1)10(2x+ 3)10(4− x)12

+ 10(x+ 1)9(2x+ 3)11(4− x)12.

(c) The Quotient Rule:

If y =f

g, then

f ′.g − f.g′

g2= y′

ord

dx

[f (x)

g (x)

]=f ′ (x) g (x)− f (x) g′ (x)

[g (x)]2

56

Page 63: ii - gimmenotes

Study Unit 4: Differentiation Rules

13. Compute the derivative ofx2 − 2

x2 + 1.

Solution:

f ′ (x) =

[ddx

(x2 − 2

)] (x2 + 1

)−(x2 − 2

) [ddx

(x2 + 1

)](x2 + 1)2

=2x(x2 + 1

)−(x2 − 2

)(2x)

(x2 + 1)2

=6x

(x2 + 1)2.

More examples:

Differentiate the following functions:

14. g (t) =

√2t+ 1√

2t+ 1 + 115. g (x) =

x+ 1

(x+ 2)1016.

y =2x+ 5

3x− 2

Solutions:

14.

g(t) =

√2t+ 1√

2t+ 1 + 1=

(2t+ 1)12

(2t+ 1)12 + 1

⇒ g′(t) =

[1

2(2t+ 1)−

12 · 2 ·

((2t+ 1)

12 + 1

)−

(2t+ 1)12 · 1

2(2t+ 1)−

12 · 2

]/(

(2t+ 1)12 + 1

)2=

1√

2t+ 1(√

2t+ 1 + 1)2 .

15.

g (x) =x+ 1

(x+ 2)10

⇒ g′ (x) =1. (x+ 2)10 − (x+ 1) (x+ 2)9 .10.1

(x+ 2)20=−9x− 8

(x+ 2)11.

16.

y =2x+ 5

3x− 2

⇒ dy

dx=

(3x− 2) 2− (2x+ 5) 3

(3x− 2)2=

−19

(3x− 2)2.

MAT1512 57

Page 64: ii - gimmenotes

(d) The Chain Rule

If y = f ◦ g, then y′ = f ′ (g) .g′

ord

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

Examples:

17. Differentiate y =(x3 + x+ 1

)518. Find

d

dt

(√100 + 8t

)

19. Finddy

dxif y = (4− 3x)9

Solutions:

17. Let u = x3 + x+ 1, then y = u5, and

dy

dx=

dy

du

du

dx=

d

du

(u5) dudx

= 5u4d

dx

(x3 + x+ 1

)= 5

(x3 + x+ 1

)4(3x2 + 1).

18. Let u = 100 + 8t, then√

100 + 8t = (100 + 8t)12 = u

12 , and

d

du(u)

12 =

1

2u−

12du

dt=

1

2√

100 + 8t

d

dt(100 + 8t) =

4√100 + 8t

.

19. y = (4− 3x)9 ⇒ dy

dx= 9 (4− 3x)8 (−3).

(e) Combinations of rules

In the following worked examples, combinations of rules are used to determine the requiredderivatives.

Find the first derivatives of the following. Do not simplify.

58

Page 65: ii - gimmenotes

Study Unit 4: Differentiation Rules

20. f(x) = (5x+ 11)20(4− x)30 21. f(w) = (3w2 + 2)23 (9w − 1)−

13

22. f(x) =

√1− x1 + x2

23. f(x) =

(√x+

1√x

)100

24. θ(y) =1

3(2y2 + 5y)

32 25. f(x) = (2x3 + 3)10(3x2 + 2)20

26. h(θ) = (θ13 + 7)100(2θ−

13 + 7)200 27. y =

(x

5+

1

5x

)5

28. y = (1− 6x)23

Solutions:

20. f(x) = (5x+ 11)20(4− x)30

⇒ f ′(x) = 20(5x+ 11)195(4− x)30 + (5x+ 11)2030(4− x)29(−1).

21. f(w) = (3w2 + 2)23 (9w − 1)−

13

⇒ f ′(w) = 23(3w2 + 2)−

13 (6w)(9w − 1)−

13 + (3w2 + 2)

23

(−1

3

)(9w − 1)−

43 9.

22. f(x) =

√1− x1 + x2

=

(1− x1 + x2

) 12

⇒ f ′(x) =1

2

(1− x1 + x2

)− 12

·(−1)

(1 + x2

)− (1− x) · 2x

(1 + x2)2.

23. f(x) =

(√x+

1√x

)100

⇒ f ′(x) = 100

(√x+

1√x

)99

·(

1

2√x− 1

2x32

).

24. θ(y) =1

3(2y2 + 5y)

32

⇒ θ′(y) =1

3· 3

2(2y2 + 5y)

12 (4y + 5).

25. f(x) = (2x3 + 3)10(3x2 + 2)20

⇒ f ′(x) = 10(2x3 + 3)9 · 6x2 · (3x2 + 2)20 + 20(3x2 + 2)19 · 6x · (2x3 + 3)10.

MAT1512 59

Page 66: ii - gimmenotes

26. h(θ) = (θ13 + 7)100(2θ−

13 + 7)200

⇒ h′(θ) = 100(θ13 +7)99 · 1

3θ−

23 ·(2θ−

13 +7)200+(θ

13 +7)100 ·200(2θ−

13 +7)199 ·(−2

3θ−

43 ).

27. y =

(x

5+

1

5x

)5

⇒ dy

dx= 5

(x

5+

1

5x

)4(1

5− 1

5x−2

).

28. y = (1− 6x)23

⇒ dy

dx=

2

3

1

(1− 6x)13

(−6).

Also do the following exercises:

29. Show that y′ = 2 |x| if y = x|x|.

30. Let g (x) , h (x) and k (x) be differentiable functions such that

f (x) = g (x)h (x) k (x)

for all x. Use the product rule for the derivative of the product of two functions towrite down the derivative of f in terms of g (x) , h (x) and k (x) and their derivatives.

31. Use the chain rule and product rule to derive the quotient rule for derivatives.

Solutions:

29. Case I Suppose x > 0. Then |x| = x, so

y = x2

andy′ = 2x = 2|x|.

Case II Suppose x < 0. Then |x| = −x, so

y = −x2

andy′ = −2x = 2 (−x) = 2|x|.

60

Page 67: ii - gimmenotes

Study Unit 4: Differentiation Rules

Case III Suppose x = 0. If f(x) = x|x|, then

limh→0

f (0 + h)− f (0)

h= lim

h→0

h |h| − 0

h= lim

h→0|h|

= 0 = 2|0|.

Hence, for all values of x we have that

y′ = 2|x|.

30. Letf(x) = `(x)k(x),

where`(x) = g(x)h(x).

Then

f ′(x) = `′(x)k(x) + `(x)k′(x)

= (g′(x)h(x) + g(x)h′(x))k(x) + `(x)k′(x)

= g′(x)h(x)k(x) + g(x)h′(x)k(x) + g(x)h(x)k′(x).

31. Let f(x) =g (x)

h (x), where g and h are differentiable functions. Now

f(x) = g(x) · (h(x))−1

so

f ′(x) = g′(x) · (h(x))−1 + g(x) ·(− 1

(h (x))2· h′ (x)

)(by the product and chain rules)

=g′ (x)

h (x)− g (x) · h′ (x)

(h (x))2

=h (x) g′ (x)− g (x)h′ (x)

(h (x))2.

4.5.3 Derivatives of Trigonometric Functions and Inverse Trigonometric Functions

(a) Derivatives of trigonometric functions

Below are limits which will help you find some of the trigonometric derivatives.

MAT1512 61

Page 68: ii - gimmenotes

limθ→0

cos θ = 1, limθ→0

1− cos θ

θ= lim

θ→0

cos θ − 1

θ= 0

limθ→0

sin θ = 0, limθ→0

sin θ

θ= lim

θ→0

θ

sin θ= 1

A very important table

You should know these derivative formulae by heart!

Note: These derivative formulae can also be derived from first principles.

d

dx(sinx) = cosx

d

dx(cotx) = − csc2 x

d

dx(cosx) = − sinx

d

dx(secx) = secx tanx

d

dx(tanx) = sec2 x

d

dx(cscx) = − cscx cotx

Here is an example worked out from first principles:

Prove thatd

dxsinx = cosx.

Solution:

If f (x) = sinx, then

f ′ (x) = limh→0

f (x+ h)− f (x)

h

= limh→0

sin (x+ h)− sin (x)

h

= limh→0

sinx cos h+ cosx sin h− sinx

h

= limh→0

[sinx

(cos h− 1

h

)+ cosx

(sin h

h

)]= lim

h→0sinx. lim

h→0

cos h− 1

h+ limh→0

cosx. limh→0

sin h

h= sinx.0 + cosx.1

= cosx.

Now determine the derivatives of the following functions:

32. f (x) = x5 cosx 33. f (x) = sin

(2x

x+ 1

)62

Page 69: ii - gimmenotes

Study Unit 4: Differentiation Rules

Solutions:

32.

f ′ (x) =d

dx

(x5 cosx

)=

[d

dx

(x5)]

cosx+ x5d

dx(cosx) {product rule}

= 5x4 cosx− x5 sinx.

33. The derivative of f (x) = sin

(2x

x+ 1

)is

f ′ (x) = cos

(2x

x+ 1

)d

dx

(2x

x+ 1

){chain rule}

= cos

(2x

x+ 1

)2 (x+ 1)− 2x (1)

(x+ 1)2{quotient rule}

= cos

(2x

x+ 1

)2

(x+ 1)2.

Now go through the rest of the worked examples. Find the first derivative. Do not simplify.

34. h(t) = sec t+ tan t 35. y = x csc x

36. g (θ) =sin θ

θ37. h(t) =

sin t

tan t+ 1

38. f(t) =

√3t+ cos t

t+ 339. y =

cosx

1 + sinx

40. h (w) = sin3 (cotw) 41. k (x) = cot2 (3x)

42. g(x) =√

cos cx+ cos cα, where α is a constant

43. g(θ) = sec32 (1− θ) 44. g(x) = tan4(tan x)

45. h(t) = (t−13 + 1). tan t 46. y =

2x+ 5

3x− 2

47. y = cos(3πx/2) 48. y = cos3 x

49. y = [sin(x+ 5)]54

Solutions:

34. h(t) = sec t+ tan t

⇒ h′(t) = (sec t)(tan t) + sec2 t.

MAT1512 63

Page 70: ii - gimmenotes

35. y = x cscx

⇒ y′ = x.(− cscx cot x) + (cscx).1.

36. g(θ) =sin θ

θ

⇒ g′(θ) =θ cos θ − (sin θ) (1)

θ2.

37. h(t) =sin t

tan t+ 1

⇒ h′(t) =cos t (tan t+ 1)− sin t

(sec2 t

)(tan t+ 1)2

.

38. f(t) =

√3t+ cos t

t+ 3

⇒ f ′(t) =

12√3t+cos t

(3− sin t) (t+ 3)−√

3t+ cos t · 1

(t+ 3)2.

39. y =cosx

1 + sinx

⇒ y′ =(1 + sinx) (− sinx)− cosx (0 + cosx)

(1 + sinx)2.

40. h(w) = sin3(cot w)

⇒ h′(w) = 3 sin2(cot w). cos(cot w).(− csc2w).

41. k(x) = cot2(3x)

⇒ k′(x) = 2 cot(3x).(− csc2(3x)).3.

42. g(x) =√

cos cx+ cos cα where α is a constant

⇒ g′(x) =1

2√

cscx+ cscα· (− cscx. cotx).

43. g(θ) = sec32 (1− θ)

⇒ g′(θ) =3

2sec

12 (1− θ) · sec(1− θ) · tan(1− θ) · (−1).

64

Page 71: ii - gimmenotes

Study Unit 4: Differentiation Rules

44. g(x) = tan4(tan x)

⇒ g′(x) = 4 tan3(tan x). sec2(tan x). sec2 x.

45. h(t) = (t−13 + 1) · tan t

⇒ h′(t) = −1

3t−

43 · tan t+ (t−

13 + 1) · sec2 t.

46. g(θ) = cos2(θ2)

⇒ g′(θ) = 2 cos(θ2) · (− sin(θ2)) · 2θ.

47. y = cos(3πx/2)

⇒ dy

dx= − sin(3πx/2)

d

dx(3πx/2)

= −(3π/2) sin(3πx/2).

48. y = cos3 x

⇒ dy

dx= 3(cos2 x)(− sin x).

49. y = [sin(x+ 5)]54

⇒ dy

dx=

5

4[sin(x+ 5)]

14 [cos(x+ 5)].

(b) Derivatives of inverse trigonometric functions

These are useful in applications and are essential for solving problems. The rules or defi-nitions are as follows:

MAT1512 65

Page 72: ii - gimmenotes

d

dxsin−1 x =

1√1− x2

, for −1 < x < 1

d

dxcos−1 x =

−1√1− x2

, for −1 < x < 1

d

dxtan−1 x =

1

1 + x2

d

dxcot−1 x =

−1

1 + x2

d

dxsec−1 x =

1

|x|√x2 − 1

, for |x| > 1

d

dxcsc−1 x =

−1

|x|√x2 − 1

, for |x| > 1

Examples:

Compute the derivatives of the following functions:

50. cos−1(3x2)

51.(sec−1 x

)252. tan−1

(x3)

Solutions:

50.d

dxcos−1

(3x2)

=−1√

1− (3x2)2

d

dx

(3x2)

=−6x√1− 9x4

.

51.d

dx

(sec−1 x

)2= 2

(sec−1 x

) d

dxsec−1 x = 2

(sec−1 x

) 1

|x|√x2 − 1

.

52.d

dxtan−1

(x3)

=1

1 + (x3)2d

dxx3 =

3x2

1 + x6.

4.5.4 Derivatives of Exponential and Logarithmic Functions

(a) The exponential function

Definition:

The inverse function of the function lnx is known as the expo–nential function and is indicated by exp x (or ex).

66

Page 73: ii - gimmenotes

Study Unit 4: Differentiation Rules

Properties of the exponential function

(i) The graph of ex is the mirror image of the graph of lnx in the line y = x. Thereforethe graph looks like this: Figure 4.2

Figure 4.2: Graph of y = ex and y = lnx

(ii) exp x is defined for all x ∈ R, in other words

Dom (expx) = R.

(iii) Im (expx) = {y|y > 0}.

(iv)d

dx(ex) = ex.

(v) ex+y = ex · ey.

(vi) ex−y = ex/ey.

(vii) erx = (ex)r.

(viii) If x→∞, then ex →∞.

(ix) If x→ −∞, then ex → 0.

(b) The logarithmic function

Definition:

The natural logarithmic function y = lnx is the inversefunction of the exponential function.

MAT1512 67

Page 74: ii - gimmenotes

Properties of the ln function

(i) The graph of lnx looks like this:

Figure 4.3: Graph of y = x and y = lnx

(ii) lnx is defined for all x > 0, in other words

Dom (lnx) = {x|x > 0} .

(iii) Im (lnx) = R.

(iv) lnx < 0 if 0 < x < 1,

ln 1 = 0,

lnx > 0 if x > 1.

(v)d

dx(lnx) =

1

x.

(vi) ln(xy) = lnx+ ln y, if x, y > 0.

(vii) lnx

y= lnx− ln y, if x, y > 0.

(viii) lnxr = r lnx, if x > 0, r rational

(ix) logb a =logc a

logc b

(x) If x→∞, then lnx→∞.

(xi) If x→ 0+, then lnx→ −∞.

Remark:

68

Page 75: ii - gimmenotes

Study Unit 4: Differentiation Rules

The following mistake is often made when applying rule (h):

ln (xr) = r lnx (this is correct)

but(lnx)r 6= r lnx (incorrect).

The index r must be an index of x, but not of lnx.

The inverse of the exponential function ex is called the natural logarithmic function y =lnx. In this section, we study the natural logarithm both as a differentiable function andas a device for simplifying calculations.

(c) Examples of the exponential function

Find the derivatives of the following:

53. f (x) = e√x

54. y = ex cosx

55. y = tan(e3x−2

)56. y =

e3x

1 + ex

57. y = ex+ex

Solutions:

53. f (x) = e√x

f ′ (x) = e√x · 12x

− 12 =

e√x

2√x.

54. y = ex cosx

y′ = ex cosx (1. cosx+ x (− sinx)) = ex cosx (cosx− x sinx) .

55. y = tan(e3x−2

)y′ = sec2

(e3x−2

) (e3x−2.3

)= 3e3x−2 sec2

(e3x−2

).

MAT1512 69

Page 76: ii - gimmenotes

56. y =e3x

1 + ex

y′ = (e3x

1 + ex)′ =

(1 + ex)(e3x.3

)− e3x (0 + ex (1))

(1 + ex)2=

3e3x + 3e4x − e4x

(1 + ex)2=

3e3x + 2e4x

(1 + ex)2.

57. y = ex+ex

y′ = ex+ex

(1 + ex (1)) = ex+ex

(1 + ex) .

(d) Examples of the logarithmic function

Find the derivatives of the following:

58. f (x) = x2 ln(1− x2

)59. f (x) = log3

(x2 − 4

)60. f (x) = log10

(x

x− 1

)

61. y = ln(x√

1− x2 sinx)

62. y = xsinx

63. y = (sinx)x

Solutions:

58. f (x) = x2 ln(1− x2

)f ′ (x) = 2x ln

(1− x2

)+ x2 · 1

1− x2(0− 2x) = 2x ln

(1− x2

)− 2x3

1− x2.

59. f (x) = log3(x2 − 4

)Note that (or recall that) loga x =

lnx

ln a,

so f (x) = log3(x2 − 4

)=

ln(x2 − 4

)ln 3

∴ f ′ (x) =1

ln 3

[1

x2 − 4(2x− 0)

]=

1

ln 3

[2x

x2 − 4

]=

2x

(x2 − 4) ln 3.

70

Page 77: ii - gimmenotes

Study Unit 4: Differentiation Rules

60. f (x) = log10

(x

x− 1

)

Recall: loga x =lnx

ln a,

so f (x) = log10

(x

x− 1

)=

ln

(x

x− 1

)ln 10

=1

ln 10

[ln

(x

x− 1

)]=

1

ln 10[lnx− ln (x− 1)]

∴ f ′ (x) =1

ln 10

[1 (x− 1)− 1.x

x (x− 1)

]=

1

ln 10

[x− 1− xx (x− 1)

]=

−1

x (x− 1) ln 10

61. y = ln(x√

1− x2 sinx)

y = lnx+1

2ln(1− x2

)+ ln sinx

so y′ =1

x+

1

2

[1

1− x2(0− 2x)

]+

1

sinx(cosx (1))

that is y′ =1

x+

1

2

(−2x

1− x2

)+

cosx

sinx

=1

x+−x

1− x2+ cotx.

62. y = xsinx

You should take natural logs on both sides first and get:

ln y = lnxsinx

ln y = sinx lnx

Now take the derivatives of both sides:

1

yy′ = cosx. lnx+ sinx.

1

x

y′ = y

[cosx lnx+

sinx

x

]= xsinx

[cosx. lnx+

sinx

x

].

63. y = (sinx)x

Take logs on both sides and get:

ln y = x ln (sinx)

MAT1512 71

Page 78: ii - gimmenotes

and1

yy′ = 1. ln (sinx) + x(

1

sinx. cosx),

so y′ = y[ln (sinx) + x.

cosx

sinx

]= (sinx)x [ln (sinx) + x. cotx] .

4.5.5 Logarithmic Functions

(a) The simplification of functions

As a result of its properties, a function involving the logarithmic function can be simplifiedbefore it is differentiated, as becomes clear in the following example:

Example:

Determine f ′(x) if f(x) = ln(

3

√x−1x2

).

Solution:

Now using properties (f), (g) and (h) of logarithmic functions described earlier on

f(x) = ln

(x− 1

x2

)1/3

=1

3

(ln (x− 1)− ln x2

)=

1

3ln(x− 1)− 2

3ln x.

Therefore

f ′(x) =1

3

(1

(x− 1)

)− 2

3

(1

x

)=

−x+ 2

3x (x− 1).

Even if the logarithmic function itself does not occur in the expression, it can be used forthe simplification of functions. We apply the logarithmic function to both sides of theequation and then differentiate (see below).

72

Page 79: ii - gimmenotes

Study Unit 4: Differentiation Rules

Remark:

Always remember that when applying the chain rule to ddx (ln f (x)) , it becomes

d

dx(ln f (x)) =

1

f (x)f ′ (x) .

For example:

d

dx(ln sinx)

=1

sinx· cosx.

Examples:

64. Determine y′ if y = x2e2x cos x3.

65. Determine f ′(x) if f(x) =x(1−x2)

2

√1+x2

.

66. Determine f ′(x) if f(x) = log3√x2+4

(x−1)32.

Solutions:

64. We have thaty = x2e2x cos x3

By applying the logarithmic function on both sides, we find that

ln y = ln(x2e2x cosx3

)= 2 ln x+ 2x+ ln cosx3.

By differentiating we obtain

1

y· y′ = 2

x+ 2 +

1

cosx3·(− sinx3

)· 3x2.

Therefore

y′ = y

(2

x+ 2− 3x2 tanx3

)= x2e2x cosx3

(2

x+ 2− 3x2 tanx3

).

65.

f(x) =x(1− x2

)2√

1 + x2

MAT1512 73

Page 80: ii - gimmenotes

Once again we apply the logarithmic function on both sides and thus obtain

ln f(x) = lnx(1− x2

)2√

1 + x2

= ln x+ 2 ln(1− x2)− 1

2ln(1 + x2).

By differentiation we therefore obtain that

1

f (x)· f ′(x) =

1

x+−4x

1− x2− x

1 + x2.

Therefore

f ′ (x) =x(1− x2

)2√

1 + x2

(1

x− 4x

1− x2− x

1 + x2

)=

(1− x2

)2√

1 + x2−

4x2(1− x2

)√

1 + x2−x2(1− x2

)2(1 + x2)

32

=

(1− x2

)2 (1 + x2

)− 4x2

(1− x2

) (1 + x2

)− x2

(1− x2

)2(1 + x2)

32

=

(1− x2

) [(1− x2

) (1 + x2

)− 4x2

(1 + x2

)− x2

(1− x2

)](1 + x2)

32

=

(1− 5x2 − 4x4

) (1− x2

)(1 + x2)

32

.

66.

f(x) = log3

√x2 + 4

(x− 1)32

=1

2log3(x

2 + 4)− 3

2log3(x− 1)

Now using the fact that

loga x =logb x

logb a[Formula 10 on page 62 in Stewart]

we find that

f (x) =1

2

loge(x2 + 4

)loge 3

− 3

2

loge (x− 1)

loge 3

=1

2

ln(x2 + 4

)ln 3

− 3

2

ln (x− 1)

ln 3.

If we keep in mind that ln 3 is a constant, it follows that

f ′ (x) =1

2 ln 3· 1

x2 + 4· 2x− 3

2 ln 3· 1

x− 1

=x

(x2 + 4) ln 3− 3

2 (x− 1) ln 3.

74

Page 81: ii - gimmenotes

Study Unit 4: Differentiation Rules

(b) Functions of the form f(x) = g(x)h(x)

We employ logarithmic differentiation to differentiate functions of the form

f(x) = g(x)h(x)

Just as in (a), we do this by applying the logarithmic function on both sides and thenmaking use of the properties of the logarithmic function.

Thenln f(x) = ln g(x)h(x).

Thereforeln f(x) = h(x). ln g(x).

Example:

Determine f ′(x) if f(x) =√x√x.

Solution:

By applying the logarithmic function on both sides, we obtain

ln f (x) = ln√x√x

=√x · ln

√x

By differentiating, we obtain from the chain rule and the product rule that

1

f (x)f ′ (x) =

√x · 1√

x· 1

2x−

12 + ln

√x · 1

2x−

12

=1

2√x

+1

2√x

ln√x.

Therefore

f ′(x) = f(x)

(1

2√x

+1

2√x

ln√x

)=√x√x(

1

2√x

(1 + ln

√x))

=

√x√x

2√x

(1 + ln√x).

MAT1512 75

Page 82: ii - gimmenotes

[See the remark earlier on under (a) The simplification of functions]. Now attempt the fol-lowing yourself. (The answers are given at the end, so that you can make sure that youunderstand this important section well.)

Determine f ′(x) below:

67. f(x) = ln(x+√x2 + 1

)(be careful with this exercise!)

68. f(x) = (ln x)√x

69. f(x) = ln3

√x2 − 1

x2 + 1

70. f(x) = xln x + 7x23

71. f(x) =x (x− 1)

13

(x+ 1)23

72. f(x) = a3x2

73. f(x) = xe−x2

74. f(x) = log10(log10 x)

Solutions:

67.1√

x2 + 1. (Use the chain rule on the right-hand side and simplify.)

68.(ln x)

√x

√x

(1

ln x+

ln ln x

2

).

69.4x

3 (x4 − 1).

70.2 ln x

x× xln x +

2 ln 7

3x13

× 7x23 .

76

Page 83: ii - gimmenotes

Study Unit 4: Differentiation Rules

71.2x2 + 3x− 3

3 (x− 1)23 (x+ 1)

53

.

72. 6x a3x2

ln a.

73. xe−x2 · e−x2( 1x − 2x ln x).

74.1

x ln x ln 10.

4.5.6 Implicit Differentiation

This technique is used when the function contains variables that cannot be separated fromeach other. This process of differentiating both sides of the equation with respect to x andthen solving for y′(x) is called implicit differentiation.

Example:

Find y′ (x) for x2 + y3− 2y = 3. Then find the slope of the tangent line at the point (2, 1).

Solutions:

Differentiate both sidesd

dx

(x2 + y3 − 2y

)=

d

dx(3)

with respect to x : 2x+ 3y2y′ (x)− 2y′ (x) = 0

3y2y′ (x)− 2y′ (x) = −2xSolve for y′(x) :

y′ (x) =−2x

3y2 − 2

Find the slope of the

tangent line at (2, 1) : y′ (2) =−4

3− 2= −4

Therefore the equation of the tangent line is

y − 1 = −4(x− 2).

MAT1512 77

Page 84: ii - gimmenotes

Now try the following exercises:

75. Find y′ (x) for x2y2 − 2x = 4− 4y. Then find the slope of the tangent line at thepoint (2,−2) .

76. Determine the derivative of tan−1 x.

77. Van der Waal’s equation for a specific gas is

(P +

5

V 2

)(V − 0.03) = 9.7.

Using the volume V as a function of pressure, use implicit differentiation to find the

derivativedV

dPat the point (2,−2).

78. Finddy

dxif tan

(xy2)

+ 3y = 2xy.

79. Finddy

dxif y2x2 + y + cos (xy) = 0.

80. Finddy

dxif sin (x+ y) = y2 cosx.

Solutions:

75.d

dx

(x2y2 − 2x

)=

d

dx(4− 4y)

⇒ 2xy2 + x2(

2ydy

dx

)− 2 = 0− 4

dy

dx

⇒(2x2y + 4

) dydx

= 2− 2xy2

⇒ dy

dx=

2− 2xy2

2x2y + 4

∴dy

dx

∣∣∣∣(2,−2)

= mt =2− 2 (2) (−2)2

2 (−2) (2)2 + 4=−14

−12=

7

6

where mt represents slope of the tangent line.

The equation of the tangent line is

y − (−2) =7

6(x− 2)

that is y + 2 =7

6x− 14

6

that is y =7

6x− 14

6− 2

=7

6x− 14

6− 12

6

=7

6x− 26

6

=7

6x− 13

3.

76. The derivative of tan−1 x:

78

Page 85: ii - gimmenotes

Study Unit 4: Differentiation Rules

Note: Since tanx is differentiable, tan−1 x is also differentiable. To find itsderivative, let y = tan−1 x. Thentan y = tan

(tan−1 x

)⇒ tan y = x.

Differentiate this equation implicitly with respect to x to get:

sec2 ydy

dx= 1.

Thendy

dx=

1

sec2 y=

1

1 + tan2 y=

1

1 + x2.

Therefored

dx

(tan−1 x

)=

1

1 + x2.

77. (P + 5

V 2

)(V − 0.03) = 9.7

⇒ PV − 0.03P + 5V −

0.15

V 2= 9.7

⇒ d

dP

(PV − 0.03P + 5V −1 − 0.15V −2

)= 0

⇒(

1V + PdV

dP

)− 0.03 + 5 (−1)V −2

dV

dP+ 2 · (0.15)V −3

dV

dP= 0

⇒(P − 5

V 2+

0.3

V 3

)dV

dP= 0.03− V

⇒ dV

dP=

0.03− V

P − 5

V 2+

0.3

V 3

∴dV

dP

∣∣∣∣(2,−2)

=0.03− (−2)

2− 5

(−2)2+

0.3

(−2)3

=0.03 + 2

2− 5

4− 0.3

8

=203/100

57/80=

812

150.

78. tan(xy2)

+ 3y = 2xy

Differentiate on both sides:

sec2(xy2)[y2 + 2xydy

dx] + 3

dy

dx= 2y + 2x dydx

⇒[2xy sec2(xy2)− 2x+ 3

]dydx

= 2y − y2 sec2(xy2)

⇒ dy

dx=

2y − y2 sec2(xy2)

2xy sec2(xy2)− 2x+ 3.

MAT1512 79

Page 86: ii - gimmenotes

79. y2x2 + y + cos (xy) = 0

Differentiate on both sides:

2ydy

dxx2 + 2xy2 +

dy

dx− sin(xy)

[y + x

dy

dx

]= 0

⇒[2yx2 + 1− x sin(xy)

]dydx

= −2xy2 + y sin(xy)

⇒ dy

dx=

y sin(xy)− 2xy2

2x2y + 1− x sin(xy).

80. sin (x+ y) = y2 cosx

Differentiate on both sides:

cos(x+ y) ·(1 +

dy

dx

)= 2y dydx cosx+ y2(− sinx)

⇒ cos(x+ y) + cos(x+ y)dy

dx= 2y dydx cosx− y2 sinx

⇒ dy

dx

[cos(x+ y)− 2y cosx

]= −y2 sinx− cos(x+ y)

⇒ dy

dx=−y2 sinx− cos(x+ y)

cos(x+ y)− 2y cosx.

4.5.7 Tangents and Normal Lines

From your high-school mathematics, you should know that differentiating the equa-tion of a curve gives you a formula for the gradient (m) of the curve. The gradient ofa curve at a point is equal to the gradient of the tangent at that point. For example,in order to find the equation of the tangent to the curve y = x3 at the point (2, 8),you first have to determine the derivative: m = y′ = 3x2.

The gradient of the tangent at the point (2, 8) when x = 2 is 3 (2)2 = 12

The equation for the tangent line is: y = 12x− 16 since

{∆y

∆x=

8− y2− x

= 12

}.

The normal to the curve is the line which is perpendicular (at right angles) to thetangent to the curve at that point. If two lines are perpendicular, then the productof their gradients is −1. So if the gradient of the tangent at the point (2, 8) of the

curve y = x3 is 12, then the gradient of the normal is − 1

12, since − 1

12× 12 = −1.

Now try to work through the following problems involving tangents and normal lines.Note, we have used the fact that mtmn = −1 where mt and mn are theslopes of tangent and normal lines respectively.

Examples:

80

Page 87: ii - gimmenotes

Study Unit 4: Differentiation Rules

81. Two curves are said to be orthogonal at a point where the curves intersect iftheir tangents are perpendicular to each other at the point of intersection. Showthat the curves y = sin(2x) and y = − sin(x2 ) are orthogonal at the origin.

82. Find the x- and y-intercepts of the line that is tangent to the curve y = x3 atthe point (−2,−8).

83. Does the graph of the function

y = 2x+ sin x

have any horizontal tangents in the interval 0 ≤ x ≤ 2π? If so, where? If not,why not?

84. Find equations for the lines that are tangent and normal to the curve f(x) =1 + cosx at the point (π/2, 1).

85. (a) Find the equation for the tangent to the graph of

h(x) =4

(1 + x)2

which makes an angle of 45◦ with the x-axis.

[NB: Assume that the scales along the x- and y-axes are the same. Anglesare measured counterclockwise from the positive x-axis.]

(b) What is the equation of the normal to the curve of h at the point of tangencyfor the tangent considered in (a) above?

86. Find the points on the curve y = 2x3 − 3x2 − 12x + 20 where the tangent isparallel to the x-axis. What are the equations for these tangents?

87. Determine the equation for the normal to the curve of

f(x) =1

x2 + 1

at the point x = 1.

88. Determine the equations for the tangents to the curve of y = x3− 6x+ 2 whichare parallel to the line y = 6x− 2.

89. The line normal to the curve y = x2 + 2x − 3 at (1, 0) intersects the curve atwhat other point?

90. What are the equations for the tangents to the curve f(x) = x2 + 5x+ 9 whichpasses through the origin?

91. Find the equations of the tangent and the normal lines to the curve of

2xy + π sin y = 2π at the point(

1,π

2

).

MAT1512 81

Page 88: ii - gimmenotes

92. Find the equations for the tangent and the normal lines to the curve of

x sin (2y) = y cos (2x)

at the point(π4 ,

π2

).

Solutions:

81.

y = sin(2x)

⇒ dy

dx= (cos(2x))

d

dx(2x)

= 2 cos(2x),

sody

dx

∣∣∣∣x=0

= 2× 1 = 2.

Also,

y = − sin(x

2)

⇒ dy

dx= − cos(

x

2)d

dx

(x2

)= −1

2cos(

x

2).

sody

dx

∣∣∣∣x=0

= −1

2× 1 = −1

2.

Since

(−1

2

)(2) = −1, the given curves are orthogonal at the origin.

82. Letf(x) = x3.

Thenf ′ (x) = 3x2,

so the gradient at the point (−2,−8) is f ′ (−2) , that is 12. The equation of thetangent at the point (−2,−8) is therefore given by

y − (−8) = 12(x− (−2))

or

y = 12x+ 16

= 4(3x+ 4).

The x-intercept of this tangent is −4

3and its y-intercept is 16.

82

Page 89: ii - gimmenotes

Study Unit 4: Differentiation Rules

83. Letf(x) = 2x+ sin x.

Thenf ′ (x) = 2 + cosx.

Now the gradient of a horizontal line is 0, so if the graph of f is to have a horizontaltangent at the point (x, f(x)), then the value of f ′(x) must be 0. We must thereforesolve the equation

f ′ (x) = 0

for all values of x occurring in the interval 0 ≤ x ≤ 2π. But if

2 + cos x = 0

thencos x = −2,

which is impossible. Hence the graph of f has no horizontal tangents.

84.

f(x) = 1 + cosx

⇒ f ′(x) = − sin x

mt = −1

Hence the gradient at the point(π

2, 1)

is f ′(π

2

)that is −1. The equation of the

tangent at the point(π

2, 1)

is therefore

y − y1 = mt (x− x1)

y − 1 = −1(x− π

2

)y = −x+

π

2+ 1.

Since mtmn = −1 ⇒ mn = −1mt

= −1−1 = 1. The gradient of the normal at the point(π

2, 1)

is 1. The equation for the normal at the point(π

2, 1)

is therefore

y − y1 = mn (x− x1)

y − 1 = 1(x− π

2

)y = x− π

2+ 1.

85. (a) The tangent which makes an angle of 45◦ with the x-axis has a gradient of 1. Tofind the x-coordinate of the corresponding point of tangency, we let m = tan θbe the slope

h′ (x) = 1

MAT1512 83

Page 90: ii - gimmenotes

and solve for x. Now

h(x) = 4(1 + x)−2

⇒ h′(x) = −8(1 + x)−3,

and

− 8

(1 + x)3= 1

⇔ x = −3.

We have that

h(−3) =4

(1− 3)2= 1.

The tangent thus passes through the point (−3, 1) and has a gradient of 1. Itsequation is

y = 1.(x+ 3) + 1

that isy = x+ 4.

(b) We obtain the equation for the required normal:

y = −1.(x+ 3) + 1

that isy = −x− 2.

86.

y = 2x3 − 3x2 − 12x+ 20

⇒ y′ = 6x2 − 6x− 12.

Now

6x2 − 6x− 12 = 0

⇒ 6(x2 − x− 2) = 0

⇒ 6(x− 2)(x+ 1) = 0

⇒ x = 2 or x = −1.

If x = 2 then y = 2× 8− 3× 4− 24 + 20 = 0.

If x = −1 then y = −2− 3 + 12 + 20 = 27.

The required points are (2, 0) and (−1, 27). The equations for the tangents are y = 0and y = 27 respectively.

84

Page 91: ii - gimmenotes

Study Unit 4: Differentiation Rules

87.

f(x) =1

x2 + 1=(x2 + 1

)−1⇒ f ′(x) = −(x2 + 1)−2 · 2x

∴ f ′(1) = −1

2,

so the gradient of the normal at x = 1 is 2. Now

f(1) =1

2,

so the equation for the normal at x = 1 is

y − 1

2= 2(x− 1).

88. The slope of the tangent to the curve of y = x3 − 6x+ 2 is given by y′ =dy

dx. Now

y′ = 3x2 − 6.

Since the tangent must be parallel to y = 6x − 2, we must have that y′ is equal tothe slope of y = 6x− 2, that is

y′ = 6⇔ 3x2 − 6 = 6⇔ 3x2 − 12 = 0⇔ x2 − 4 = 0⇔ x = ±2.

The corresponding y-values are

y = (−2)3 − 6(−2) + 2

= −8 + 12 + 2 = 6

for x = −2, and

y = (2)3 − 6(2) + 2

= 8− 12 + 2 = −2

for x = 2.

Therefore the tangent points are (−2, 6) and (2,−2).

The equation for a line with slope m which passes through (xo, yo) is given by

y − yo = m(x− xo).

MAT1512 85

Page 92: ii - gimmenotes

The tangent through (−2, 6) therefore has the equation

y − 6 = 6(x− (−2))

= 6x+ 12

that isy = 6x+ 18.

The tangent through (2,−2) has the equation

y − (−2) = 6(x− 2)

that isy + 2 = 6x− 12

that isy = 6x− 14.

89. The normal to the curve y = x2 + 2x − 3 at the point (1, 0) is perpendicular to thetangent at that point. Hence, if we know the gradient of the tangent we can calculatethe gradient of the normal. Now if

f(x) = x2 + 2x− 3

thenf ′ (x) = 2x+ 2.

Thusf ′ (1) = 4,

which is the gradient of the tangent. Hence the gradient of the normal is −1

4. Since

the normal passes through the point (1, 0), its equation is

y − 0 = −1

4(x− 1)

that is

y = −1

4x+

1

4.

To find the points of intersection of the curve y = x2+2x−3 and the line y = −1

4x+

1

4,

let

x2 + 2x− 3 = −1

4x+

1

4.

Then4x2 + 8x− 12 = −x+ 1

86

Page 93: ii - gimmenotes

Study Unit 4: Differentiation Rules

so4x2 + 9x− 13 = 0,

that is(x− 1)(4x+ 13) = 0.

Hence x = 1 or x = −13

4. If x = −13

4then

−1

4x+

1

4=

13

16+

1

4=

17

16.

The other point of intersection of the normal and the curve is therefore

(−13

4,17

16

).

90. The equation of the tangent at a point (α, f(α)) is

y − f(α) = f ′(α)(x− α),

that isy = f ′(α) · x− α · f ′(α) + f(α).

The tangent will pass through the origin only if the y-intercept is 0, that is

f(α)− α · f ′(α) = 0,

and then the equation of the tangent becomes

y = f ′(α) · x. (4.1)

Hence the solutions of the equation

f(x)− x · f ′(x) = 0

will give the x-coordinates α of the points of contact between the tangents and thecurve, and then the equations of the corresponding tangents can be determined from(∗).

Now

f(x) = x2 + 5x+ 9

⇒ f ′ (x) = 2x+ 5,

and

f(x)− x · f ′(x) = 0

⇒ x2 + 5x+ 9− x(2x+ 5) = 9− x2 = 0

⇒ x = 3 or x = −3.

MAT1512 87

Page 94: ii - gimmenotes

We have that f ′(3) = 11 and f ′(−3) = −1. Hence the required tangents have theformulae y = 11x and y = −x.

91. 2xy + π sin y = 2π

Differentiate both sides:

2y + 2x dydx + π cos ydy

dx= 0

⇒ (2x+ π cos y)dy

dx= −2y

⇒ dy

dx=

−2y

2x+ π cos y.

At (1, π2 ):dy

dx=

−2 · π22 + π cos π2

= −π2.

Equation of the tangent line:

y − π2 = −π

2 (x− 1)⇒ y = −π2x+ π.

Equation of the normal line:

y − π2 = 2

π (x− 1)⇒ y = 2πx−

2π + π

2 .

92. x sin (2y) = y cos (2x)

Differentiate both sides:

sin 2y + x cos 2ydy

dx=

dy

dxcos 2x− 2y sin 2x

⇒ dy

dx

[2x cos 2y − cos 2x

]= −2y sin 2x− sin 2y

⇒ dy

dx=

2y sin 2x+ sin 2y

cos 2x− 2x cos 2y.

At the point (π4 ,π2 ) the slope is:

dy

dx=

π sin(π2 ) + sinπ

cos(π2 )− 2π4 cosπ

=π2π4

= 2.

Therefore the equation of the tangent at the point (π4 ,π2 ) is:

y − π

2= 2(x− π

4)

⇒ y = 2x,

88

Page 95: ii - gimmenotes

Study Unit 4: Differentiation Rules

and the equation of the normal line is:

y = −1

2x+

8.

4.5.8 The Mean Value Theorem

In this section we discuss the Mean Value Theorem. Please read carefully through Sections4.2 of Chapter 4 in Stewart. We would advise you to work through the examples in orderto become familiar with how the Mean Value Theorem is applied. In section 4.2 you haveto understand theorems 1 and 3. You have to be able to apply these theorems. Pleasework through examples 3 to 5 in this section.

The Mean Value Theorem is one of the most important tools in calculus. It states that iff(x) is defined and continuous on the interval [a, b] and differentiable on (a, b), then thereis at least one number c in the interval (a, b) (that is a < c < b) such that

f ′ (c) =f (b)− f (a)

b− a.

The special case when f(a) = f(b) is known as Rolle’s Theorem. In that case, we havef ′(c) = 0. In other words, there exists a point in the interval (a, b) which has a horizontaltangent. In fact, the Mean Value Theorem can be stated in terms of slopes.

The numberf (b)− f (a)

b− a

is the slope of the line passing through (a, f(a)) and (b, f(b)), see Figure 4.4.

Example:

Let f (x) =1

x, a = −1 and b = 1. We have

f (b)− f (a)

b− a= 1−(−1)

1−(−1) =2

2= 1.

On the other hand, for any c ∈ [−1, 1] , not equal to 0, we have f ′ (c) = − 1

c26= 1.

So the equation f ′ (c) =f (b)− f (a)

b− adoes not have a solution for c. This does not

contradict the Mean Value Theorem, since f(x) is not continuous on [−1, 1].

Note: The derivative of a constant function is 0. You may wonder whether a functionwith a derivative of zero is constant – the answer is yes. To show this, we let f(x) be a

MAT1512 89

Page 96: ii - gimmenotes

Figure 4.4: Illustration of the Mean Value Theorem

differentiable function on an interval I, with f ′ (x) = 0, for every x ∈ I. Then for a and b

in I, the Mean Value Theorem implies thatf (b)− f (a)

b− a= f ′ (c) for some point c between

a and b. So our assumption implies that f (b) − f (a) = 0. (b− a). Thus f (b) = f (a) forany a and b in I, which means that f(x) is a constant function.

Worked Examples:

For the following functions, find a value of c which complies with the Mean Value Theorem.

93. f (x) = x2 + 1, on the interval [−2, 2].

94. f (x) = x3 + x2, on the interval [0, 1].

95. f (x) = sinx, on the interval [0, π2 ].

Solutions:

93. Since f (x) = x2 + 1 is a polynomial, f(x) is continuous on [−2, 2] and differentiableon (−2, 2). According to the Mean Value Theorem, this means that there is a numberc in (−2, 2) for which

f ′ (c) =f (2)− f (−2)

2− (−2)=

(22 + 1

)−(

(−2)2)

+ 1

4=

5− 5

4=

0

4= 0.

90

Page 97: ii - gimmenotes

Study Unit 4: Differentiation Rules

To find this number c, we obtain f ′(c) and then set f ′ (c) = 0.

f ′ (c) = 2c and 2c = 0, so c = 0

Notice that c = 0 ∈ (−2, 2) ∴ c = 0.

94. f (x) = x3 + x2 is a polynomial, continuous on [0, 1] and differentiable on (0, 1).According to the Mean Value Theorem, there is a number c in (0, 1) for which

f ′ (c) =f (1)− f (0)

1− (0)=

2− 0

1= 2.

But f ′ (c) = 3c2 + 2c.

So, f ′ (c) = 3c2 + 2c = 2⇒ 3c2 + 2c− 2 = 0.

Using the quadratic formula we get

c =−2±

√22 − 4 (3) (−2)

2 (3)=−2±

√28

6=−2± 2

√7

6

c =−1±

√7

3⇒ c =

−1−√

7

3or c =

−1 +√

7

3⇒ c ≈ −1.22 or c ≈ 0.55.

But since c ≈ −1.22 /∈ [0, 1] , we only accept the alternative c ≈ 0.55 that is

c =−1 +

√7

3.

95. f (x) = sinx, on the interval[0, π2

].

As f (x) = sinx is a trigonometric function, it means that f(x) is continuous on[0, π2

]and differentiable on

(0, π2

). The conditions for the Mean Value Theorem hold, and

so there exists c ∈(0, π2

)such that

f ′ (c) =f(π2

)− f (0)

π2 − 0

=sin(π2

)sin (0)π2

=1− 0π2

=1π2

=2

π.

But f ′ (x) = cosx, f ′ (c) = cos c and c has to be in the first quadrant. Thus

c = cos−1(

2

π

)≈ 0.88, and so c = 0.88 ∈

(0,π

2

). Therefore the number c we are

looking for is c = cos−1(

2

π

)≈ 0.88.

MAT1512 91

Page 98: ii - gimmenotes

Key points

You should by now have an understanding of the notion of differentiability and should alsobe able to compute the derivatives of different functions using basic differential formulassuch as the power, product, quotient and chain rules. Think of differentiation as a pro-cess during which a function is “processed” to produce another function - the derivative.This process (differentiation) is carried out using different formulas and rules. We haveintroduced the basic ones in this chapter. We have also demonstrated some techniquesyou can use to compute the derivatives of different algebraic and trigonometric functions.In addition to this, we have demonstrated how some theorems, such as the Mean ValueTheorem, can be applied.

At this stage you should be able to

• compute the derivative of a function from first principles (using the definition of thederivative)

• distinguish between the continuity and differentiability of a function

• use the basic differentiation formulas to compute derivatives of algebraic and trigono-metric functions

• compute the derivatives of trigonometric functions and inverse trigonometric func-tions, as well as exponential and logarithmic functions

• use the methods of logarithmic differentiation and implicit differentiation to findderivatives

• solve problems involving tangents and normal lines and apply the Mean Value The-orem

Continue practising solving problems until you have mastered the basic techniques! Gothrough the section “For your review”at the end of each chapter to consolidate what youhave learnt and also use other calculus textbooks.

92

Page 99: ii - gimmenotes

Study Unit 5

Integrals

5.1 Background

In principle, calculus deals with two geometric problems: the one is to find the tangentline to a curve and the other is to find the area of a region under a curve. Both theseproblems are limiting processes. The first is called differentiation and the second processis integration. In this chapter we turn to the latter process.

To find the area of the region under the graph of a positive continuous function f definedon an interval [a, b] we subdivide the interval [a, b] into a finite number of subintervals,say n, the k-th subinterval having length ∆xk, and then we consider the sum of the form∑n

k=1 f(tk)∆xk, where tk is some point in the k-th subinterval. This sum is an approxi-mation of the area that is arrived at by adding up n rectangles. Making the subdivisionsfiner and finer, this sum will tend to a limit as we let n→∞ and, roughly speaking, thislimit is the definition of the definite integral

∫ ba f(x)dx (Riemann’s definition).

The two concepts, “derivative” and “integral”, arise in entirely different ways and it is aremarkable fact indeed that the two are intimately connected. We will show that differen-tiation and integration are, in a sense, inverse operations.

There is a connection between differential calculus and integral calculus. This connectionis called the Fundamental Theorem of Calculus and we shall see in this chapter that itgreatly simplifies the solving of many problems.

5.2 Learning Outcomes

At the end of this chapter, you should be able to

• show that you understand the notion of the antiderivative by finding the antideriva-tive of basic algebraic, trigonometric, exponential and logarithmic functions

MAT1512 93

Page 100: ii - gimmenotes

• use the Fundamental Theorem of Calculus to find the derivatives of functions of theform F (x) =

∫ g(x)a f (t) dt

• evaluate definite integrals and use them to determine the area between a curve andthe x-axis, and the area between curves

• use substitution or term-by-term integration techniques to integrate basic algebraic,trigonometric, exponential and logarithmic functions

• solve problems involving the Mean Value Theorem for definite integrals

Note: The way to master calculus is to solve lots of calculus problems!

5.3 Prescribed Reading

The prescribed sections of Stewart are 4.9, 5.1, 5.2, 5.3, 5.4, 5.5 and in Chapter 6 onlySection 6.1.

5.4 Worked Examples

Our collection of worked examples pertains to the work covered in Section 4.9, Chapter 5and Section 6.1 of Chapter 6 of Stewart. It can be divided into 11 sets (with some overlap),namely:

I. Antiderivative

II. The definite integral and the Fundamental Theorem of Calculus – Part II

III. The definite integral and the area between the curve and the x-axis

IV. The definite integral and the area under the curve

V. The Mean Value Theorem for definite integrals

VI. The Fundamental Theorem of Calculus – Part I

VII. Integration in general

VIII. Indefinite integrals

IX. The substitution rule

X. Integration of exponential and logarithmic functions

94

Page 101: ii - gimmenotes

Study Unit 5: Integrals

XI. Review of formulas and techniques of integration

Attempt the problems appearing immediately after each set once you have studied therelevant parts of Stewart and done some of the exercises there.

Table 5.1 shows how these worked examples and their solutions are organised.

Topic(s) Sections in Study guideStewart examples

I. Antiderivatives Section 4.9 1–10

II. The definite integral and the Section 5.3 11–14Fundamental Theorem of pages 396–399Calculus – Part II

III. The definite integral and the area Sections 5.2 and 6.1 15–17between the curve and the x-axis

IV. The definite integral and the Section 6.1 18–21area under the curve

V. The Mean Value Theorem for Section 6.5 22 & 23definite integrals page 461–462

VI. The Fundamental Theorem of Section 5.3 24–30Calculus – Part I pages 394–398

VII. Integration in general Chapters 5 & 6, Section 4.9 11–52

VIII. Indefinite integrals Section 5.4 pages 402–405 31–34

IX. The substitution rule Section 5.5 pages 412–418 35–37

X. Integration of exponential and Appendix G 38–39, 43, 45 and 51logarithmic functions A50–A53

XI. Review of formulas and 40–50techniques of integration page 471

Table 5.1: Sections in Stewart.

5.4.1 Antiderivatives

If we have been given a function, we can find its derivative. But many mathematicalproblems and their applications require us to solve the inverse (the reverse) of the derivativeproblem. This means that, given a function f , you may be required to find a function Fof which the derivative is f . If such a function F exists, it is called an antiderivative of f .

The process of undoing differentiation (in other words, the reverse of differentiation) isknown as integration. The antiderivative is known as an integral.

MAT1512 95

Page 102: ii - gimmenotes

Find the general antiderivative of the following functions:

1. x−3 + x2

2. 12 6√x

3. x23 + 2x−

13

4. θ + sec θ tan θ

5. −3

2csc2

(3θ

2

)6. cos πx2 + π cosx

Find the function f if f ′ is given as follows:

7. f ′ (x) = sinx− 5√x2

8. f ′ (x) = 3 cosx+ 5 sinx

9. f ′ (t) = sin 4t− 2√t

10. f ′ (t) =7√t4 + t−6

Solutions:

1. x−3 + x2

General antiderivative:

−1

2x−2 +

x3

3+ c

by the power rule (see Stewart pages 173, 175, 200 and 221).

2. 12 6√x = 1

2x− 1

6

General antiderivative:

1

2· 6

5x

56 + c (power rule)

=3

5x

56 + c.

3. x23 + 2x−

13

General antiderivative:

3

5x

53 + 2.

3

2x

23 + c (power rule)

=3

5x

53 + 3x

23 + c.

96

Page 103: ii - gimmenotes

Study Unit 5: Integrals

4. θ + sec θ tan θ

General antiderivative:1

2θ2 + sec θ + c.

5. −3

2csc2

3

General antiderivative:

cot3

2θ + c.

6. cos π2x+ π cosx

General antiderivative:2

πsin

π

2x+ π sinx+ c.

7.

f ′ (x) = sinx− 5√x2

= sinx− x25

⇒ f (x) = − cosx− 5

7x

75 + c.

8.

f ′ (x) = 3 cosx+ 5 sinx

⇒ f (x) = 3 sinx− 5 cosx+ c.

9.

f ′ (t) = sin 4t− 2√t = sin 4t− 2t

12

⇒ f (t) = −1

4cos 4t− 2 · 2

3t32 + c

= −1

4cos 4t− 4

3t32 + c.

10.

f ′ (t) =7√t4 + t−6 = t

47 + t−6

⇒ f (t) =7

11t117 − 1

5t−5 + c.

MAT1512 97

Page 104: ii - gimmenotes

5.4.2 The Definite Integral and the Fundamental Theorem of Calculus – Part II

The Fundamental Theorem of Calculus, Part II is stated as follows:

If f is continuous on [a, b] and F (x) is any antiderivative of f (x) , then∫ ba f (x) dx = F (b)− F (a)

Examples:

Compute the following integrals using the Fundamental Theorem of Calculus:

11. ∫ 2

0

(x2 − 2x

)dx =

(1

3x3 − x2

)∣∣∣∣20

=

(8

3− 4

)= −4

3.

12. ∫ 4

1

(√x− 1

x2

)dx =

∫ 4

1x

12 − x−2dx

=

(2

3x

32 + x−1

)∣∣∣∣41

=

[2

3(4)

32 + 4−1

]−(

2

3+ 1−1

)=

16

3+

1

4− 2

3− 1 =

47

12.

13. ∫ 4

0e−2xdx

=

(−1

2e−2x

)∣∣∣∣40

= −1

2e8 −

(−1

2e0)

= −1

2e−8 +

1

2.

Note that in the example above, the integral of an exponential function is just theexponential function with its index divided by the derivative of its index.

14. ∫ −1−3

2

xdx

= 2 ln |x|−1−3 = 2 (ln |−1| − ln |−3|)= 2 (ln 1− ln 3) = −2 ln 3.

98

Page 105: ii - gimmenotes

Study Unit 5: Integrals

5.4.3 The Definite Integral and the Area Between the Curve and the x-axis

It is important to understand that the definite integral of a continuous function f evaluatesthe area between the graph of this function f and the x-axis. See the following examples.

Examples:

15. Find the area under the curve of f (x) = sinx on the interval [0, π] , always true forx ∈ [0, π] .

Solution:

Area =

∫ π

0sinxdx = (− cosπ) + (cos 0) = (1)− (−1) = 2.

16. [The connection between area and calculus]

Calculate the value of∫ 52 (2x− 4) dx geometrically by using a suitable sketch. Then

test your answer with the aid of integration.

MAT1512 99

Page 106: ii - gimmenotes

Solution:

(a) Geometrically:

The graph of y = 2x− 4 looks like this:

Figure 5.1: Graph of y = 2x− 4

Therefore ∫ 5

2(2x− 4)dx = area of triangle A

= 1/2× base × height

= 1/2× 3× 6

= 9.

(b) Test with the aid of integration:

F (x) = x2 − 4x is an antiderivative of y = 2x− 4 and hence∫ 5

2(2x− 4)dx = F (5)− F (2)

= (25− 20)− (4− 8)

= 9,

which is the same as in (a) above.

100

Page 107: ii - gimmenotes

Study Unit 5: Integrals

17. Find the area of the region between the x-axis and the graph of f(x) = 2x + x2 −x3, −1 ≤ x ≤ 2.

Solution:

Figure 5.2: Graph of f(x) = 2x+ x2 − x3

First find the zeros of f . Since

f(x) = 2x+ x2 − x3 = −x(−2− x+ x2) = −x(x+ 1)(x− 2),

the zeros are x = 0,−1, and 2. It is clear that the zeros partition the interval [−1, 2] intotwo subintervals:[−1, 0] and [0, 2] with f (x) ≤ 0 for all x ∈ [−1, 0] and f (x) ≥ 0 for allx ∈ [0, 2]. We integrate over each subinterval and add the absolute values of the calculatedvalues.

Integral over [−1, 0]:∫ 0

−1(2x+ x2 − x3)dx =

[x2 +

x3

3− x4

4

]0−1

= 0−[(−1)2 +

(−1)3

3− (−1)4

4

]= − 5

12.

MAT1512 101

Page 108: ii - gimmenotes

Integral over [0, 2]: ∫ 2

0(2x+ x2 − x3)dx =

[x2 +

x3

3− x4

4

]20

=[(2)2 +

(2)3

3− (2)4

4

]− 0

= [4 +8

3− 4]

=8

3.

Enclosed area:

Total enclosed area =∣∣−512

∣∣+∣∣83

∣∣ = 3712 .

5.4.4 The Definite Integral and Area Under the Curve

If f and g are continuous functions with f (x) ≥ g (x) throughout [a, b], then the area ofthe region between the curves of f and g from a to b is the integral of [f − g] from a to b.The area bounded by the two curves y = f (x) and y = g (x) on the interval [a, b] where fand g are continuous, is written as follows:

A =

∫ b

a[f (x)− g (x)] dx.

This is shown in the sketch below:

Steps To Find The Area Under a Curve

(i) Sketch the graphs of the given functions.

(ii) Determine the boundaries of integration, which are the points of intersection of thegraphs by equating both functions.

102

Page 109: ii - gimmenotes

Study Unit 5: Integrals

(iii) Apply the formula for determining the area under a curve

A =

∫ b

a[f (x)− g (x)] dx.

where f(x) bounds or is above g(x), ie f (x) ≥ g (x) on [a, b], a and b are theboundaries of integration determined in (ii) above.

(iv) Then integrate to evaluate the area.

Examples:

18. Evaluate the area between the curves f (x) = 5− x2 and g (x) = |x+ 1|.

Solution:

Figure 5.3: Graph of f(x) = 5− x2 and g(x) = |x+ 1|

Points of intersection:

−(x+ 1) = 5− x2

⇒ x2 − x− 6 = 0

⇒ (x− 3)(x+ 2) = 0⇒ x = 3 or x = −2,

and

x+ 1 = 5− x2

⇒ x2 + x− 4 = 0

⇒ x =−1±

√17

2.

It is clear that the limits of integration are the x-values of the points of intersection of

the two curves: a = −2 and b = −1+√17

2 . Now we evaluate the area of the region byintegrating:

MAT1512 103

Page 110: ii - gimmenotes

A =

∫ −1+√17

2

−2[5− x2 − |x+ 1|]dx

=

∫ −1−2

[5− x2 − (−x− 1)]dx+

∫ −1+√17

2

−1[5− x2 − (x+ 1)]dx

=

∫ −1−2

[−x2 + x+ 6]dx+

∫ −1+√17

2

−1[−x2 − x+ 4]dx

=[− x3

3+x2

2+ 6x

]−1−2 +

[− x3

3− x2

2+ 4x

]−1+√17

2−1

=1

3+

1

2− 6−

[8

3+ 2− 12

]+−(−1 +

√17)3

24+−(−1 +

√17)2

8

+4

(−(−1 +

√17)

2

)−[

1

3− 1

2− 4

]=−8

3+ 9− (−1 +

√17)3

24− (−1 +

√17)2

8+ 2(−1 +

√17)

We would like to encourage you to leave your answers unsimplified, as you arenot allowed to use a calculator in your examinations!

19. Find the area bounded by the graphs of y = 3− x and y = x2 − 9.

Solution:

Find the points of intersection by equating the two functions:

3− x = x2 − 9

⇒ 0 = x2 + x− 12 = (x− 3) (x+ 4)

that is x = 3 or x = −4.

The two curves intersect at x = 3 and x = −4 (see Figure 5.4).

104

Page 111: ii - gimmenotes

Study Unit 5: Integrals

Figure 5.4: Graph of y = 3− x and y = x2 − 9

The height of the bounded area is h (x) = (3− x)−(x2 − 9

).

Therefore

A =

∫ 3

−4

[(3− x)−

(x2 − 9

)]dx

=

∫ 3

−4

(−x2 − x+ 12

)dx =

[−x

3

3− x2

2+ 12x

]3−4

=

[−33

3− 32

2+ 12 (3)

]−

[−(−4)3

3− (−4)2

2+ 12 (−4)

]=

343

6.

20. Find the area bounded by the graphs of y = x2 and y = 2− x2 for 0 ≤ x ≤ 2.

MAT1512 105

Page 112: ii - gimmenotes

Solution:

Figure 5.5: Graph of y = x2 and y = 2− x2

Since the curves intersect in the middle of the interval, you have to compute two integrals,namely for 2− x2 ≥ x2 and for x2 ≥ 2− x2.

To find the point of intersection, solve for x :

x2 = 2− x2 ⇒ 2x2 = 2⇒ x = ±1.

Note that only x = +1 is relevant since x = −1 is outside the given interval.

A =

∫ 1

0

[(2− x2

)− x2

]dx+

∫ 2

1

[x2 −

(2− x2

)]dx

=

∫ 1

0

(2− 2x2

)dx+

∫ 2

1

(2x2 − 2

)dx

=

[2x− 2x3

3

]10

+

[2x3

3− 2x

]21

=

(2− 2

3

)− (0− 0) +

(16

3− 4

)−(

2

3− 2

)=

4

3+

4

3+

4

3= 4.

21. Find the area bounded by the graphs of x = y2 and x = 2− y2.

106

Page 113: ii - gimmenotes

Study Unit 5: Integrals

Figure 5.6: Graph of x = y2 and x = 2− y2

Solution:

It is easier to compute this area by integrating with respect to y. Therefore we find thepoints of intersection by solving for y.

y2 = 2− y2 ⇒ y2 = 1⇒ y = ±1.

In the interval [−1, 1] ,

A =

∫ 1

−1

[(2− y2

)− y2

]dy =

∫ 1

−1

(2− 2y2

)dy

=

[2y − 2

3y3]1−1

=

(2− 2

3

)−(−2 +

2

3

)=

8

3.

5.5 The Mean Value Theorem for Definite Integrals

Now we state the Mean Value Theorem for definite integrals

If f is continuous on the interval [a, b] there is atleast one number c between a and b such that

the area under the curve between a and b =∫ ba f (x) dx = (b− a) f (c)

or f (c) = 1b−a

∫ ba f (x) dx.

22. [Finding c using the Mean Value Theorem for integrals]

MAT1512 107

Page 114: ii - gimmenotes

Find a value c guaranteed by the Mean Value Theorem for integrals for f (x) = x2 +2x+3on [0, 2].

Solution: ∫ 2

0x2 + 2x+ 3 dx =

1

3x3 + x2 + 3x

]20

=8

3+ 4 + 6

=8 + 12 + 18

3

=38

3.

The region bounded by the graph of f and the x-axis on [0, 2] is shaded in Figure 5.7.

Figure 5.7: Graph of f(x) = x2 + 2x+ 3 and x− axis on [0, 2]

The Mean Value Theorem for integrals asserts the existence of a number c on [0, 2] suchthat f (c) (b− a) = 38

3 . We solve this equation to find c:

f (c) (b− a) =38

3

⇒(c2 + 2c+ 3

)(2− 0) =

38

3

⇒ 2c2 + 4c+ 6 =38

3⇒ 6c2 + 12c− 20 = 0

∴ 3c2 + 6c− 10 = 0

108

Page 115: ii - gimmenotes

Study Unit 5: Integrals

∴ c =−6±

√36 + 4 (3) (10)

6

=−6±

√156

6

= −1±√

39

3.

Since only one of these points, that is c = −1 +√393 ≈ 1, 08, lies within the interval [0, 2],

this value of c satisfies the Mean Value Theorem for integrals.

The following is the definition of the average value of a function:

If f is integrable on [a, b] , then the average valueor mean value of f on [a, b] denoted by av (f) is

av (f) = 1b−a

∫ ba f (x) dx

23. [Finding the average value of a function on an interval]

Find the average value of f (x) = 2x on the interval [1, 5].

Solution:

The average value is

av (f) =1

5− 1

∫ 5

12xdx =

1

4

(x2)]5

1

=1

4(25− 1)

= 6.

Obviously this average value occurs when f (x) = 6 and when x = 3.

5.6 The Fundamental Theorem of Calculus – Part I

If f is continuous on [a, b] and F (x) =∫ xa f (t) dt, then F ′ (x) = f (x) on [a, b].

In other words, if F (x) =∫ xa f (t) dt where a is any real number, then

d

dx(F (x)) =

d

dx

∫ x

af (t) dt

that is F ′ (x) = f (x) ddx (x) = f (x) (1); therefore F ′ (x) = f(x).

MAT1512 109

Page 116: ii - gimmenotes

To apply Part I of the Fundamental Theorem of Calculus, just leave the function f(t) asit is, but replace the variable t with the variable x times the derivative of x.

Let us write down the two parts of the Fundamental Theorem of Calculus again:

Part II

If G(x) is any antiderivative of f(x) on [a, b] so that G′(x) = f(x), then∫ b

af (x) dx = G (b)−G(a).

Part I (The Fundamental Theorem of Calculus stated in another way)

Suppose that the function f is continuous on the interval [a, b].

Let the function F be defined on [a, b] by F (x) =∫ xa f (t) dt.

Then F is differentiable on [a, b] and F ′ (x) = f (x), which means that F is an antiderivativeof f on [a, b].

Expressed in symbols:d

dx

∫ x

af (t) dt = f (x) = F ′(x).

Remarks:

(1) You should remember that both conclusions of the Fundamental Theorem are useful.Part I concerns the derivative of an integral – it tells you how to differentiate a definiteintegral with respect to its upper limit. Part II concerns the integral of a derivative– it tells you how to evaluate a definite integral if you can find an antiderivative ofthe integrand.

(2) Remember that differentiation and integration are inverse operations and cancel eachother to a certain extent.

(3) Notice that the lower limit of the integral may be any constant in the interval [a, b]and it does not affect the answer after differentiation. Thus

d

dx

∫ x

0f(t)dt =

d

dx

∫ x

−10f(t)dt =

d

dx

∫ x

513f(t)dt

etc. This is so because the derivative of a constant is always zero.

110

Page 117: ii - gimmenotes

Study Unit 5: Integrals

(4) Note that the upper limit must be the same as the variable with respect to which we

differentiate, in other words, if we determined

dx(the integral) then the upper limit

must be x (or a function of x).

(5) The dt in the integral shows you that integration is done with respect to the variablet. Hence you must change all ts in the given function f(t) to xs to obtain f(x), ordF/dx.

(6) If the upper limit of the integral (which you must differentiate) does not consist ofthe variable of interest only, but is in fact a function, then you must remember touse the chain rule for differentiation. Thus:

d

dx

∫ g(x)

af(t)dt = f(g(x)).g′(x).

In this case you replace all ts by g(x) and then multiply by the derivative of g(x)(look at examples 25 and 26 below).

Keeping the above-mentioned in mind, consider the following examples:

Examples:

Determine the derivatives of F (x) in each of the following:

24. F (x) =∫ xa

1

1 + sin2 tdt

25. F (x) =∫ x3a

1

1 + sin2 tdt

26. F (x) =∫ cosxsinx t(5− t)dt

Solutions:

24. F (x) =∫ xa

1

1 + sin2 tdt

It follows from Fundamental Theorem of Calculus Part I that

F ′(x) =1

1 + sin2 x.

25. F (x) =∫ x3a

1

1 + sin2 tdt

MAT1512 111

Page 118: ii - gimmenotes

In this case we must apply the chain rule, because the upper limit is a function of x.Let f(t) = 1

1+sin2 tand g(x) = x3. Then

F ′ (x) = f (g (x)) · g′ (x)

= f(x3)· ddxx3

=1

1 + sin2 (x3)· 3x2.

(In other words, substitute t in the function f (t) = 11+sin2 t

with x3, but also remem-

ber to multiply the derivative of x3 with this answer.)

26. In this example see that both the upper and lower limit are functions of x, so that itfollows from remark 3 above that we may introduce any constant in this case. Wecall it a.

F (x) =

∫ cosx

sinxt(5− t)dt

=

∫ a

sinxt (5− t) dt+

∫ cosx

at(5− t)dt

= −∫ sinx

at (5− t) dt+

∫ cosx

at(5− t)dt.

By again applying the chain rule as in example 25, we obtain

F ′ (x) = − sinx (5− sinx) · ddx

sinx+ cosx (5− cosx) · ddx

cosx

= − sinx cosx (5− sinx)− cosx sinx(5− cosx).

Now attempt the following yourself.

Find the derivatives of F in each of the following cases:

27. F (x) =∫ 10x

(t+

1

t

)dt

28. F (x) =∫ x32x cos t dt

29. F (x) =∫ x33 sin3 t dt

30. F (x) =∫ sinx0

√1− t2dt

112

Page 119: ii - gimmenotes

Study Unit 5: Integrals

Solution:

27. −x− 1

x.

(This is plainly Part II of the Fundamental Theorem of Calculus with∫ 10x f (x) dx =

−∫ x10 f (x) dx.)

28. 3x2 cosx3 − 2 cos 2x.

(Again we must introduce constants for the lower limits, for example∫ 02x . . .+

∫ x30 . . . =

−∫ 2x0 . . .+

∫ x30 . . ..)

29. 3x2 sin3 x3.

(Use the chain rule, in other words first substitute t with x3 and then multiply theanswer with the derivative of x3.)

30. |cosx| cosx.

5.7 Integration in General

The process of computing an integral (integration) is written as follows:

If F ′ (x) = f (x) , then∫F ′ (x) dx =

∫f (x) dx,

that is F (x) =∫f (x) dx.

f (x) is the integrand and the term dx identifies x as the variable of integration.

Given a function f , find, if possible, a function F such that:

F ′ (x) = f (x)

A function F defined on an interval which has the property that F ′ (x) = f (x) is calledan indefinite integral or antiderivative of f on the same interval for all x, and we write:

F (x) =

∫f (x) dx (for indefinite integrals)

or F (x) =

∫ b

af (x) dx (for definite integrals)

The term “dx” is part of the notation. It represents the statement “We integrate withrespect to x”.

MAT1512 113

Page 120: ii - gimmenotes

5.8 Indefinite Integrals

For indefinite integrals, if F and G are both antiderivatives of f on the interval I, thenG (x) = F (x) + c for some constant c.

If F is any antiderivative of f , the indefinite integral of f(x) with respect to x is definedby∫f (x) dx = F (x) + c (where c is the constant of integration).

Example:

27. Evaluate∫t5dt.

Solution:

We know thatd

dtt6 = 6t5, so

d

dt

(1

6t6)

= t5. Therefore∫t5dt =

1

6t6 + c.

∫xndx =

xn+1

n+ 1+ c since

d

dx

[1

n+ 1xn+1 + c

]= xn.

However, we could also have∫xndx =

xn+1

n+ 1+ 5, because

d

dx

[xn+1

n+ 1+ 5

]= xn.

So, in general,∫xndx =

xn+1

n+ 1+ c, where c is the constant of integration.

Note: This rule does not work for n = −1 since it would produce a division by 0.

Examples of indefinite integrals:

31. ∫x17dx

=x17+1

17 + 1+ c =

x18

18+ c.

32. ∫13√xdx

=

∫x−

13dx =

x−13+1

−13 + 1

+ c

=x

23

23

+ c =3

2x

23 + c.

114

Page 121: ii - gimmenotes

Study Unit 5: Integrals

33. ∫ (3 cosx+ 4x8

)dx

= 3

∫cosxdx+ 4

∫x8dx

= 3 sinx+ 4x9

9+ c = 3 sinx+

4

9x9 + c.

34. ∫ (3ex − 2

1 + x2

)dx

= 3

∫exdx− 2

∫1

1 + x2dx

= 3ex − 2 tan−1 x+ c.

5.9 The Substitution Rule

(a) Indefinite integrals

The method we are going to discuss now is the principal method by which integrals areevaluated.

When the integrand is not in standard form, first of all determine whether the integranddoes not consist of two factors, one of which is the derivative of the other. The method ofsubstitution is the integration version of the chain rule.

Remember that, according to the chain rule, the derivative of(3x2 − 5x+ 2

)4is

d

dx

(3x2 − 5x+ 2

)4= 4

(3x2 − 5x+ 2

)3(6x− 5).

On the right-hand side we now have two expressions, namely(3x2 − 5x+ 2

)and 6x− 5, which are such that

d

dx

(3x2 − 5x+ 2

)= 6x− 5.

Since we know that differentiation and integration are inverse operations, we see that∫ [4(3x2 − 5x+ 2

)3 · (6x− 5)]dx =

(3x2 − 5x+ 2

)4+ c.

MAT1512 115

Page 122: ii - gimmenotes

Example:

Integration of an indefinite integral using substitution

Find ∫7(x2 + 3x+ 5

)6(2x+ 3) dx.

Solution:

Look at the problem and make the observation as shown in the boxes:

7

∫ (x2 + 3x+ 5

)6(2x+ 3) dx

The derivative of the function in the left-hand boxwhich is (2x+ 3) dx is sitting in the right-hand box.

So let u = x2 + 3x+ 5.

(NB: Note that the function u appears without the index 6.)

Thendu

dx= 2x+ 3, that is (2x+ 3) dx = du.

(This is the form in the right-hand box.)

Now substitute everything under the integral sign to express the integral in terms of u.We have

7

∫u6du = 7

(1

7u7)

+ c = u7 + c.

Then back-substitute to express u in terms of x:

7

∫u6du =

(x2 + 3x+ 5

)7+ c.

Remarks:

1. Sometimes the two functions under the integral sign are linked, but a constant mightbe missing.

If, however, you follow the procedure of substitution correctly, the end product willbe correct.

116

Page 123: ii - gimmenotes

Study Unit 5: Integrals

Example:

Find ∫ (x2 + 2x+ 5

)4(x+ 1) dx

Solution:

Letu = x2 + 2x+ 5.

Thendu

dx= 2x+ 2 = 2 (x+ 1) .

Thus (x+ 1) dx =du

2.

Substitution then gives ∫u4du

2=

1

2

∫u4du

=1

10u5 + c

=1

10

(x2 + 2x+ 5

)5+ c.

If you differentiate this using the chain rule, you will obtain the function under theintegral sign.

2. After you have done your substitution and simplified, there should be no left-overx-values in the integrand.

Example:

[Substitution with leftover x-values]

Find ∫x (3x− 5)3 dx

Solution:

In this case it is so that the derivative of the function with index 3, that is (3x− 5),is not linked to the other function in the ordinary way. However, we follow the samemethod.

MAT1512 117

Page 124: ii - gimmenotes

Let u = 3x− 5, so du = 3dx and dx = du3 .

Now substitute: ∫x (3x− 5)3 dx =

∫xu3

du

3=

1

3

∫xu3du

It is clear that there is a left-over x-value.

We now follow the next procedure to eliminate the left-over x-term:

Because u = 3x− 5, we can solve for x :

x =u+ 5

3,

so

1

3

∫xu3du =

1

3

∫ (u+ 5

3

)u3du

=1

9

∫ (u4 + 5u3

)du

=1

9

(u5

5+

5

4u4)

+ c

=1

45(3x− 5)5 +

5

36(3x− 5)4 + c.

Examples:

Determine the following integrals:

35.∫

3x√

1− 2x2 dx

36.∫

cos3 x sin5 x dx

37.∫ dx

x2(1 + 1

x

)3 .Solutions:

35. We see that x is the derivative (except for a constant factor) of 1 − 2x2. Thereforeset

u = 1− 2x2.

Thendu = −4x dx.

In other words

−1

4du = x dx.

118

Page 125: ii - gimmenotes

Study Unit 5: Integrals

Now ∫3x√

1− 2x2dx = 3

∫ √1− 2x2 x dx

= 3

∫ √u

(−1

4

)du

= −3

4

∫u

12 du

= −3

4

u32

3/2+ c

= −1

2u

32 + c

= −1

2

(1− 2x2

) 32 + c.

Note: You must not give your answer in terms of u. You must give your answer interms of x, since that was the original variable!

36. In this case we use trigonometric identities. We do this with two different methods.

Method 1 ∫cos3 x sin5 x dx

=∫

cosx cos2 x sin5 x dx.

The part in the block, without its power, has the derivative cosx.

Now we must also rewrite the other extra term in terms of sinx, that is cos2 x =1− sin2 x.

The integral then becomes∫cosx

(1− sin2 x

)sin5 x dx

=

∫cosx sin5 x dx−

∫cosx sin7 x dx.

Since cosx is the derivative of sinx we let u = sinx.

Thendu = cosx dx

and so it follows that∫cos3 x sin5 x dx =

∫ (u5 − u7

)du

=u6

6− u8

8+ c

=sin6 x

6− sin8 x

8+ c.

MAT1512 119

Page 126: ii - gimmenotes

Method 2 ∫cos3 x sin5 x dx

=∫

(cosx)3 sin4 x sinx dx.

The part in the block, without the power, has the derivative (− sinx) (thus theconstant (−1) is missing). Now rewrite sin4 x in terms of cosx:

sin4 x =(1− cos2 x

)2= 1− 2 cos2 x+ cos4 x.

Thus∫cos3 x sin5 x dx =

∫(cosx)3

(1− 2 cos2 x+ cos4 x

)sinx dx

=

∫cos3 x sinx dx− 2

∫cos5 x sinx dx+

∫cos7 x sinx dx.

Put u = cosx, so that du = (− sinx) dx.

Then ∫cos3 x sin5 x dx = −

∫u3du+ 2

∫u5du−

∫u7du

= −1

4u4 +

2

6u6 − 1

8u8 + c

= −1

4(cosx)4 +

1

3(cosx)6 − 1

8(cosx)8 + c.

37. In this case we see that − 1x2

is the derivative of 1 + 1x and hence we set

u = 1 +1

x,

and therefore

du = − 1

x2dx

and ∫dx

x2(1 + 1

x

)3 = −∫du

u3

= −u−2

−2+ c

=1

2

1(1 + 1

x

)2 + c

=1

2

(x

x+ 1

)2

+ c.

120

Page 127: ii - gimmenotes

Study Unit 5: Integrals

(b) Definite integrals

The section on changing the limits of integration on pages 416–418 in Stewart is veryimportant and students tend to have problems with this. We shall discuss it in detail andshow you three different methods you may use. Work thoroughly through all three andmake very sure that you understand each step.

Example:

Calculate ∫ 1

0

x3

(x2 + 1)32

dx.

Solution:

Method 1

When you have done substitution with the variable u, also change the limits of integrationin terms of the variable u, and do not change back to the variable x.∫ 1

0

x3

(x2 + 1)32

dx

Letu = (x2 + 1)

12 .

Thenu2 = x2 + 1

and2udu = 2xdx, that is u du = x dx.

Now we also change the limits of integration:

Ifx = 0 then u = (02 + 1)

12 = 1

and ifx = 1 then u = (12 + 1)

12 =√

2.

MAT1512 121

Page 128: ii - gimmenotes

Hence, ∫ 1

0

x3

(x2 + 1)32

dx =

∫ 1

0

x2x dx

(x2 + 1)32

=

∫ √21

(u2 − 1

)u3

u du

=

∫ √21

(1− 1

u2

)du

= u+1

u

]√21

.

Now substitute the values of the limits directly and do not change the variable back to x:∫ 1

0

x3

(x2 + 1)32

dx =√

2 +1√2− (1 + 1)

=√

2 +

√2

2− 2

=3

2

√2− 2.

Method 2

With this method we first determine the indefinite integral, change the answer back tothe variable x after substitution, and then put in the values of the limits of integration interms of the variable x.

We first determine ∫x3

(x2 + 1)32

dx.

As before, we let u = (x2 + 1)12 . Then u du = x dx and∫

x3

(x2 + 1)32

dx = u+1

u+ c

=(x2 + 1

) 12 +

1

(x2 + 1)12

+ c.

Now we calculate the definite integral in terms of x:∫ 1

0

x3

(x2 + 1)32

dx =(x2 + 1

) 12 +

1

(x2 + 1)12

]10

=√

2 +1√2− (1 + 1)

=3

2

√2− 2.

122

Page 129: ii - gimmenotes

Study Unit 5: Integrals

Method 3

With this method we do not change the limits when we make the substitution, but weshow clearly in terms of which variable the limits are given:∫ 1

0

x3

(x2 + 1)32

dx.

As before, we let u = (x2 + 1)12 . Then u du = x dx and∫ 1

0

x3

(x2 + 1)32

dx =

∫ x=1

x=0

(u2 − 1

)u3

u du

= u+1

u

]x=1

x=0

=(x2 + 1

) 12 +

1

(x2 + 1)12

]10

=3

2

√2− 2.

Remarks:

1. You must decide for yourself which of these three methods you want to use. Pleasenote the error of writing the following:∫ 1

0

x3

(x2 + 1)32

dx =

∫ 1

0

(1− 1

u2

)du

This is wrong, because the limits are not given in terms of the variable u.

The answer you obtain may be correct, but the method is totally wrong. In theexaminations or an assignment you will get no marks for an answer like this.

2. There are only two general methods of integration: integration by parts (which is notpart of this module) and integration by substitution. All other methods boil downto algebraic manipulation, followed by the application of one of the above-mentionedtwo methods. Keeping this in mind, you will realise the importance of this section.

(c) Steps for integration by substitution

1. Choose a new variable u (usually the innermost part of the integrand).

2. Computedu

dx.

3. Replace all terms in the original integrand with an expression involving u and du.

MAT1512 123

Page 130: ii - gimmenotes

4. Evaluate the resulting (u) integral. (You may have to try a different u if the first onedoes not work.)

5. Replace each occurrence of u in the antiderivative with the corresponding expressionin x.

5.10 Integration of Exponential and Logarithmic Functions

We state the following integration formulas again:

1.∫exdx = ex + c

2.∫axdx =

ax

ln a+ c

3.∫ 1

xdx = ln |x|+ c

which have the following forms when we work with functions f(x).

Following normal substitution, we have

1′∫ef(x)f ′ (x) dx = ef(x) + c

2′∫af(x)f ′ (x) dx =

af(x)

ln a+ c

3′∫ 1

f (x)f ′ (x) dx = ln |f (x)|+ c.

Now we shall do one more example of integration by substitution to show you how thelogarithmic function is used in this case:

Example:

Determine the following integral: ∫x2

1− 2x3dx.

Note that this is of the form (3′) above, where f (x) = 1 − 2x3 and f ′ (x) = −6x2.(Remember that the constant (−6) will only make a difference to the answer as seen inRemark 1 on page 124 of the study guide.)

124

Page 131: ii - gimmenotes

Study Unit 5: Integrals

Solution:

In this case we letu = 1− 2x3.

Thendu = −6x2dx.

In other words

−1

6du = x2dx.

Then ∫x2

1− 2x3dx = −1

6

∫du

u

= −1

6ln |u|+ c

= −1

6ln |1− 2x3|+ c.

Find the following integrals:

38.∫ sec2 x

tanxdx = ln |tanx|+ c.

39.∫ 2x

x2 + 1dx = ln

∣∣x2 + 1∣∣+ c. Note that:

{d

dx

(x2 + 1

)= 2x

}

5.11 Review of Formulas and Techniques of Integration

Go through the rest of the examples carefully. Evaluate:

40.∫

3 cos 4xdx

41.∫

sec 2x tan 2xdx

42.∫e3−2xdx

43.∫ 4

x13

(1 + x

23

)dx44.

∫ sin√x√

xdx

45.∫ π0 cosxesinxdx

MAT1512 125

Page 132: ii - gimmenotes

46.∫ 0−π

4

sinx

cos2 xdx

47.∫ 3

16 + x2dx

48.∫ x√

1− x4dx

49.∫ 1 + x

1 + x2dx

50. ∫ 2

0f(x)dx, where f(x) =

{x

x2+1if x ≤ 1

xx2+1

if x > 1

51.

f(x) =

{xex

2if x < 0

x2ex3

if x > 0

52.∫ 2 +

√x

3−√xdx

Solutions:

40.∫

3 cos 4xdx = 3 sin 4x1

4+ c =

3

4sin 4x+ c.

41.∫

sec 2x tan 2xdx = sec 2x1

2+ c =

1

2sec 2x+ c.

42.∫e3−2xdx = e3−2x

(−1

2

)+ c = −1

2e3−2x + c.

43.∫ 4

x13

(1 + x

23

)dx :

Let u = 1 + x23 then du =

2

3x−

13dx =

2

3x13

dx⇒ dx =3x

13

2du.

So∫ 4

x13

(1 + x

23

)dx = 4∫ 1

x13 .u

.3x

13

2du = 4

(3

2

)∫ 1

udu

= 6 ln |u|+ c = 6 ln∣∣∣1 + x

23

∣∣∣+ c.

44.∫ sin

√x√

xdx :

Let u =√x then du =

1

2√xdx⇒ 2

√xdu = 2udu = dx.

126

Page 133: ii - gimmenotes

Study Unit 5: Integrals

So∫ sin

√x√

xdx =

∫ sinu

u2udu = 2

∫sinudu

= 2 (− cosu) + c = −2 cos√x+ c.

45.∫ π0 cosxesinxdx :

Let u = sinx then du = cosxdx⇒ dx =du

cosx.

We have to change the limits, that is, if x = 0, u = sin 0 = 0 and if x = π,u = sinπ = 0.

Soπ∫0

cosxesinxdx =0∫0

cosxeu.du

cosx=

0∫0

eudu = [eu]00

= e0 − e0 = 1− 1 = 0.

46.∫ 0−π

4

sinx

cos2 xdx

=0∫−π

4

secx tanxdx = secx

]0−π

4

= sec (0)− sec(−π

4

)

=1

cos (0)− 1

cos(−π

4

) =1

1−

(11√2

)= 1−

√2.

47.∫ 3

16 + x2dx = 3

∫ 1

16 + x2dx :

Recall:∫ 1

a2 + x2dx =

1

atan−1

(xa

)+ c

∴ 3∫ 1

42 + x2dx = 3.

1

4tan−1

(x4

)+ c

=3

4tan−1

(x4

)+ c.

48.∫ x√

1− x4dx =

∫ x√1− (x2)2

dx :

Let u = x2 then du = 2xdx⇒ dx =du

2x.

So∫ x√

1− u2.du

2x=

1

2

∫ x√1− u2

du

x=

1

2

∫ du√1− u2

=1

2sin−1 (u) + c =

1

2sin−1

(x2)

+ c.

49.∫ 1 + x

1 + x2dx =

∫ 1

1 + x2dx+

∫ x

1 + x2dx

MAT1512 127

Page 134: ii - gimmenotes

=∫ 1

1 + x2dx+

∫ x

1 + x2.2

2dx

(Recall that

∫ f ′ (x)

f (x)dx = ln |f (x)|+ c

)

=∫ 1

1 + x2dx+

1

2

∫ 2x

1 + x2dx

= tan−1 x+1

2ln∣∣1 + x2

∣∣+ c.

50.∫ 20 f(x)dx, where f(x)dx =

{x

x2+1if x ≤ 1

x2

x2+1if x > 1

2∫0

f (x) dx =1∫0

x

x2 + 1dx+

2∫1

x2

x2 + 1dx.

Note: Rationalise the first integral by2

2and use long division on the second integral

to obtain:

1

2

1∫0

2x

x2 + 1dx+

2∫1

(1− 1

x2 + 1

)dx

=1

2

1∫0

2x

x2 + 1dx+

2∫1

1dx−2∫1

1

x2 + 1dx

=1

2ln(x2 + 1)

]10

+ x]21 − arctanx]21

=1

2ln 2 + 1 +

π

4− arctan 2.

51. f(x) =

{xex

2if x < 0

x2ex3

if x > 0.

2∫−2f (x) dx =

0∫−2xex

2dx+

2∫0

x2ex3dx.

For the first integral,∫ 0−2 xe

x2dx :

Let u1 = x2. Then

du1 = 2xdx and

dx =du12x

.

For the second integral,∫ 20 x

2ex3dx :

Let u2 = x3.

Then du2 = 3x2dx and

128

Page 135: ii - gimmenotes

Study Unit 5: Integrals

dx =du23x2

.

So we have∫xex

2dx+

∫x2ex

3dx

=∫xeu1 · du12x +

∫x2eu2 · du2

3x2=

1

2

∫eu1du1 +

1

3

∫eu2du2

=1

2eu1 + c1 +

1

3eu2 + c2.

When considering the given definite integral, we ignore the constants c1 and c2 andget:∫ 0−2 xe

x2dx+∫ 20 x

2ex3dx

=ex

3

2

∣∣∣∣∣0

−2

+ex

3

3

∣∣∣∣∣2

0

=1

2ex

2

∣∣∣∣0−2

+1

3ex

3

∣∣∣∣20

=1

2e0 − 1

2e(−2)

2

+1

3e(2)

3

− 1

3e(0)

3

=1

2(1)− 1

2e4 +

1

3e8 − 1

3e0 =

1

2− e4

2+e8

3− 1

3(1)

=1− e4

2+e8 − 1

3.

52.∫ 2 +

√x

3−√xdx

∫ 2 +√x

3−√xdx =

∫ √x+ 2

−√x+ 3

dx.

This expression is an improper fraction, so we apply long division first.−1

−√x+ 3

√x+ 2

+√x− 3

5

So∫ 2 +

√x

3−√xdx =

∫ (−1 +

5

−√x+ 3

)dx

=∫−1dx+ 5

∫ 1

−√x+ 3

dx

Now find∫ 1

−√x+ 3

dx :

MAT1512 129

Page 136: ii - gimmenotes

Let u = −√x+ 3⇒

√x = 3− u.

Thendu

dx= − 1

2√x

and

du = −12√xdx⇒ dx = −2

√xdu.

So dx = −2 (3− u) du,

that is dx = (−6 + 2u) du.

So∫ 1

−√x+ 3

dx =∫ 1

u(−6 + 2u) du

= −6∫ 1

udu+

∫ 2u

udu

= −6∫ 1

udu+

∫2du

= −6 ln |u|+ 2u+ c.

Therefore,

∫ √x+ 2

−√x+ 3

dx =∫−1dx+ 5

∫ 1

−√x+ 3

dx

= −x+ 5 (−6 ln |u|+ 2u+ c)

= −x− 30 ln |u|+ 10u+ 5c

= −x− 30 ln |(3−√x)|+ 10 (3−

√x) + k, where C = 5c = k

= x+ 10 (3−√x)− 30 ln |(3−

√x)|+ k.

Key points

You should by now have an understanding of the notion of integration as the reverse ofdifferentiation. You should particularly be able to link it to determining areas betweendifferent curves and the x-axis, and the area between curves. You should now be comfort-able with calculating the integrals of several basic algebraic, trigonometric, exponentialand logarithmic functions.

At this stage you should be able to

• show that you understand the notion of the antiderivative by finding the antideriva-tive of basic algebraic, trigonometric, exponential and logarithmic functions

• use the Fundamental Theorem of Calculus to find the derivatives of functions of the

form F (x) =g(x)∫af (t) dt

130

Page 137: ii - gimmenotes

Study Unit 5: Integrals

• evaluate definite integrals and use them to determine the areas between a curve andthe x-axis, and the area between curves

• use substitution or term-by-term integration techniques to integrate basic algebraic,trigonometric, exponential and logarithmic functions

• solve problems involving the Mean Value Theorem for integrals

Continue practising solving problems until you have mastered the basic techniques! Gothrough the section “For your review”at the end of each chapter to consolidate what youhave learnt and also use other calculus textbooks.

MAT1512 131

Page 138: ii - gimmenotes

Study Unit 6

Differential Equation, Growth and Decay andPartial Derivatives/Chain Rule

6.1 Background

In this chapter we start by looking at first-order differential equations and then we moveon to growth and decay problems, followed by partial derivatives. It has applications inchemistry, physics, biology, economics and engineering. In real life, physical quantitiesusually depend on two or more variables, so we shall also turn our attention to functionswith several variables and extend the basic ideas of differential calculus to these functions.

6.2 Learning Outcomes

At the end of this chapter, you should be able to

• solve first-order differential equations with initial values

• solve basic real-life problems involving exponential growth and decay

• determine the partial derivatives of functions with several variables

Note: The way to master calculus is to solve lots of calculus problems!

132

Page 139: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

6.3 Prescribed Reading

In Chapter 9 we cover Sections 9.1, 2.3, 9.4 and Chapter 14 Sections 14.3 and 14.5. Pleasealso study some Sections in Chapter 3 (Section 3.8).

6.4 Worked Examples

The greater part of the collection of worked examples is taken from Chapters 3, 9 and 14of the prescribed textbook by Stewart. They can be divided into three sets (with someoverlap), namely,

I. differential equations

II. growth and decay

III. partial derivatives/chain rule

Attempt the problems appearing immediately after each set, once you have studied therelevant parts of Stewart and done some of the exercises there. Table 6.1 shows how theseworked examples and their solutions are organised.

Topic(s) Sections in Study guideStewart examples

I. Differential equations 9.1 & 9.3 1–9

II. Growth and decay 3.8 & 9.4 10–20

III. Partial derivatives/chain rule 14.1, 14.3 & 14.5 21–40

Table 6.1: Sections in Stewart.

6.4.1 Differential Equations

An equation that contains an unknown function and some of its derivatives is called adifferential equation (DE). Differential equations are of the type:

dy

dx= f (x)

ordy

dx= y.

A first-order differential equation is an equation involving the first derivative.

MAT1512 133

Page 140: ii - gimmenotes

The general first-order differential equation is of the type:

dy

dx= g (x, y) ,

where g (x, y) is a function with two variables. We refer to “first-order” because of thepresence of the first derivative only. In general, a differential equation is one that containsan unknown function and one or more of its derivatives. The order of the differentialequation is the order of the highest derivative that occurs in the equation.

(a) The solution of differential equations

A function f is called a solution for a differential equation if the equation is satisfied wheny = f (x) and its derivatives are substituted into the equation. When solving a differentialequation, we are expected to find all possible solutions for the equation.

Example:

1. Solve the differential equation y′ =x2 + 7x+ 3

y2.

Solution:

(i) Separate the variables: y2y′ = x2 + 7x+ 3.

(ii) Integrate both sides with respect to x:∫y2y′ (x) dx =

∫ (x2 + 7x+ 3

)dx or∫

y2dy =

∫ (x2 + 7x+ 3

)dx.

Result of integration:y3

3=x3

3+ 7

x2

2+ 3x+ c.

(iii) Solve for y: y = 3

√x3 + 21

2 x2 + 9x+ 3c.

(b) Separable differential equations

A differential equation is separable if you are able to group the ys with dy and xs withdx. For example, y′ = xy2 − 2xy is a separable DE because you can rewrite it as y′ =

x(y2 − 2y

)or

dy

dx= x

(y2 − 2y

).

Divide both sides by(y2 − 2y

)and multiply both sides by dx and obtain:

1

y2 − 2ydy = xdx.

134

Page 141: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

On the other hand, an equation like y′ = xy2 − 2x2y is not separable.

A separable equation is a first-order differential equation in which the expression fordy

dxcan be factored as a function of x times a function of y. That is, it can be written in theform

dy

dx= g (x) f(y).

The term separable comes from the fact that the expression on the right side can be“separated” into a function of x and a function of y. If f (y) 6= 0, we could re-write theequation as

dy

dx=g (x)

h (y)=

g (x)

h (y (x))(6.1)

where h (y) =1

f (y).

To solve the equationdy

dx=g (x)

h (y), we rewrite it in the differential form as

h (y) dy = g (x) dx,

so that all ys are on one side of the equation with dy and all xs are on the other side ofthe equation with dx. Then we integrate both sides of the equation:∫

h (y) dy =

∫g (x) dx.

This equation defines y as a function of x. In some cases we may be able to solve for y interms of x.

Note: The justification for the equation above,∫h (y) dy =

∫g (x) dx, comes from the

substitution rule, as follows:

L.H.S. =

∫h (y) dy =

∫h (y (x))

dy

dxdx

=

∫h (y (x))

g (x)

h (y (x))dx (substituting (1))

=

∫g (x) dx = R.H.S.

In general, the first-order differential equation is

dy

dx= h(x, y).

We consider the special case in which h (x, y) = f (y) g(x), the product of a function of yalone and a function of x alone.

MAT1512 135

Page 142: ii - gimmenotes

Examples are:

dy

dx= x2y3,

dy

dx= ex cos y,

anddy

dx=

y√1 + x2

.

The examples below are not included in this special case:

dy

dx= x+ y :

dy

dx= sin (xy) ,

dy

dx=√

1 + x2 + y2

since in each of these equations the right-hand side is not of the form f (y) g (x).

We solvedy

dx= f (y) g (x) by first separating the variables, putting all the ys on one side

and all the xs on the other side.

Writedy

dx= f (y) g (x)

asdy

f (y)= g (x) dx.

Then integrate both sides (if you can) to get:

F (y) = G (x) + c,

where F (y) is an antiderivative of1

f (y)and G (x) is an antiderivative of g (x) .

If this equation can be solved for y in terms of x, the resulting function is a solution of thedifferential equation.

Note that in separating the variables, you must assume that f (y) 6= 0.

If f (y) = 0 for y = y0, it can be checked that the constant function y (x) = y0 is a solutionfor the equation.

Examples of general solutions:

136

Page 143: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

2. Solvedy

dx= xy.

Solution:

It can be noted that y (x) = 0 is a solution. Now assume y (x) 6= 0 and separate thevariables:

dy

y= x dx

⇒∫dy

y=

∫x dx

⇒ ln |y| =1

2x2 + c

⇒ eln|y| = ex2

2+c

⇒ |y| = ex2

2 · ec

or |y| = kex2

2 where k = ec is a positive constant.

If y ≥ 0, then |y| = y = kex2

2 .

If y < 0, then |y| = −y = +kex2

2 .

Therefore,

y =

{ke

x2

2 if y ≥ 0,

−kex2

2 if y < 0.

This is equivalent to:

y = aex2

2

where a is any constant.

Note that the solution y (x) = 0 is included.

To check if the answer obtained is the solution to the original differential equation,just differentiate this answer and you should obtain the original differential equation,namely:

y = aex2

2

⇒ dy

dx=

d

dx

(ae

x2

2

)= ae

x2

2 · 1

2· 2x

= axex2

2

= x · aex2

2

= xy (proved).

3. Solvedy

dx=

2x (y − 1)

x2 + 1.

MAT1512 137

Page 144: ii - gimmenotes

Solution:

Note that y (x) = 1 is a solution.

Now assume that y (x) 6= 1 and separate the variables:

dy

y − 1=

2x

x2 + 1dx

⇒∫

1

y − 1dy =

∫2x

x2 + 1dx

⇒ ln |y − 1| = ln(x2 + 1

)+ c

⇒ eln|y−1| = eln(x2+1)+c

⇒ |y − 1| =(x2 + 1

)ec = k

(x2 + 1

), where k = ec.

Thereforey − 1 = ±k

(x2 + 1

)where k is a positive constant.

The answer may be written as:

y = 1 + a(x2 + 1

)= 1 + ax2 + a = ax2 + (a+ 1)

where a is an arbitrary constant and a = ±k. This answer includes the specialsolution y (x) = 1.

Check:

dy

dx= 2ax+ 0

⇒ dy

dx= 2x

(y − 1

x2 + 1

)where a =

y − 1

x2 + 1since y = 1 + a(x2 + 1).

(c) Initial-value problems (IVPs)

In many physical (real-world) problems, we need to find the particular solution that satisfiesa condition of the form y (t0) = y0. This is called the initial condition. The problem offinding a solution for the differential equation that satisfies the initial condition is calledthe initial-value problem. In such problems, you are asked to find the solution y = y (x)or y = f (x) for the differential equation

dy

dx= g(x, y),

the graph of which passes through a given point (a, b), that is, which satisfies the initialcondition

y (a) = b.

138

Page 145: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

Steps For Solving IVPs

(i) Separate the given differential equation into its components.

(ii) Integrate both sides of (i) above.

(iii) Solve for c (integration constant) by substituting the initial conditions.

(iv) Re-write your final answer by substituting the value for c.

Examples:

4. Find a solution for the initial-value problemdy

dx= x2, with initial condition y (−3) =

+1.

Solution:

There are two steps to follow:

(i) Solve the differential equation by integrating both sides:

dy

dx= x2

⇒ dy = x2dx

⇒∫dy =

∫x2dx

⇒ y =1

3x3 + c

or y (x) =1

3x3 + c. This is the general solution for the DE.

(ii) We find the constant c by substituting the initial condition y(−3) = 1 :

1 =1

3(−3)3 + c

⇒ 1 = −9 + c

⇒ c = 10.

Therefore, the particular solution to the given initial-value problem is

y (x) =1

3x3 + 10.

5. Find a solution for the differential equationdy

dx= 8x3 + 1 with initial condition

y (1) = −1.

MAT1512 139

Page 146: ii - gimmenotes

Solution:

(i)

dy

dx= 8x3 + 1 (separate dx from dy and integrate)

⇒ dy =(8x3 + 1

)dx

⇒∫dy =

∫ (8x3 + 1

)dx

⇒ y =8x4

4+ x+ c

or y (x) = 2x4 + x+ c·

(ii) Evaluate the value of c:

y (x) = 2x4 + x+ c

⇒ −1 = 2 (1)4 + 1 + c (initial condition y (1) = −1)

⇒ −1 = 2 + 1 + c

⇒ c = −1− 2− 1

⇒ c = −4.

The particular solution to the given initial-value problem is

y = 2x4 + x− 4.

Other initial-value problems:

6. Solve the initial-value problem

dy

dx=

2x

3y − 1, y (1) = 0.

Solution: ∫(3y − 1) dy =

∫2x dx

⇒ 3

2y2 − y =

2x2

2+ c.

Now substitute the given initial values and obtain:

3

2(0)2 − 0 = (1)2 + c

⇒ 0 = 1 + c

∴ c = −1.

Thus3

2y2 − y = x2 − 1

or 3y2 − 2y = 2x2 − 2 is the particular solution.

140

Page 147: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

7. Solve the initial-value problem

dy

dx= x2y2, y (0) = b.

Solution:

Note that y (x) = 0 is the solution if b = 0.

Assume y 6= 0 and separate the variables:

dy

dx= x2y2, y (0) = b

⇒ dy

y2= x2dx

⇒ y−2dy = x2dx

⇒∫y−2dy =

∫x2dx

⇒ y−1

−1=

x3

3+ c

⇒ −1

y=

1

3x3 + c.

Substitute the initial values:

−1

y=

1

3x3 + c

⇒ −1

b=

1

3(0)3 + c

⇒ −1

b= 0 + c

∴ c = −1

b.

Therefore

−1

y=

x3

3− 1

b

⇒ −1

y=

bx3 − 3

3b

⇒ −1 (3b) = y(bx3 − 3

)⇒ 3b = −y

(bx3 − 3

)= y

(−bx3 + 3

)∴ y =

3b

3− bx3.

The solution includes y (x) = 0.

Note: In initial-value problems (IVPs), you are given initial conditions (in other words,the x and y values), and you use them in order to evaluate a particular value of a constantc.

MAT1512 141

Page 148: ii - gimmenotes

More examples:

8. Solving a logistic growth problem: Given a maximum sustainable population ofM = 1 000 and a growth rate of k = 0.007, find an expression for the popula-tion at any time t, given an initial population of y(0) = 350 and assuming logisticgrowth.

Solution:

Using the solution for a logistic equation, we have kM = 7 and

y =AMekMt

1 +AekMt, where

A = constantM = carrying capacityk = growth rate andt = time

From the initial conditions, we have 350 = y (0) =1 000A

1 +A

and solving for A, we obtain A =35

65

which gives the solution of the IVP as y =35 000e7t

65 + 35e7t.

9. Investment strategies for making a million: Money is invested at 8% interest, com-pounded continuously. If deposits are made at a rate of R2 000 per year, find thesize of the initial investment needed to reach R1 million in 20 years.

Solution:

It would be easier to recall the general solution (or the equation) first. The constant ofintegration c is obtained by setting t = 0 and taking A (0) = x,

that is 12.5 ln |0.08x+ 2000| = c

so that 12.5 ln |0.08A+ 2000| = t+ 12.5 ln |0.08x+ 2000| .

Now find the value of x such that A (20) = 1 000 000.

12.5 ln |0.08 (1 000 000) + 2000| = 20 + 12.5 ln |0.08x+ 2000|

or12.5 ln |82 000| − 20

12.5= ln |0.08x+ 2000|

Solve for x by taking the exponential of both sides:

142

Page 149: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

e(12.5 ln 82 000−20)/12.5 = 0.08x+ 2000

⇒ x =eln 82000−1.6 − 2000

0.08≈ 181, 943.93.

6.4.2 Growth and Decay

y (t) = Aekt is the general solution for the differential equation y′ (t) =dy

dt= ky(t).

For k > 0 the equation reflects an exponential growth law and for k < 0, the equationreflects an exponential decay law.

(a) (b)

Figure 6.1: (a) k > 0 is the growth curve (b) k < 0 is the decay curve

Exponential growth or decay means that:

y′ (t) =dy

dt= ky (t) (6.2)

Since equation ( 6.2) involves the derivative of an unknown function, we call it a differentialequation (DE). The aim is to solve this DE, that is, to find the function y(t).

Recall how to solve separable differential equations. We have

dy

dt= ky (t) (6.3)

This is a separable DE, that is

dy

y (t)= kdt. (6.4)

Integrating both sides of equation ( 6.4) with respect to t, we obtain∫1

y (t)dy =

∫kdt

MAT1512 143

Page 150: ii - gimmenotes

⇒ ln |y|+ c1 = kt+ c2

or ln |y| = kt+ C (where C = c2 − c1).

Since y (t) > 0, we have ln y (t) = kt+ C

and taking exponentials of both sides , we get eln y(t) = ekt+C ,

that is, y (t) = ekt.eC .

Therefore y (t) = Aekt (where A = eC).

Examples:

10. A bacterial culture contains 100 cells at a certain point in time. Sixty minutes later,there are 450 cells. Assuming exponential growth, determine the number of cellspresent at time t and find the doubling time.

Solution:

Exponential growth means that y′ (t) = ky (t) and after solving this equation, we havey (t) = Aekt.

At t = 0, y (0) = 100 (initial conditions), we have 100 = y (0) = Ae0 = A.

Then y (t) = 100ekt.

At t = 60 minutes, we have 450 = y (60) = 100e60k.

Solve for k by taking natural logarithms of both sides and obtain

ln 4.5 = ln e60k = 60k,

so that k =ln 4.5

60.

Therefore, at any time t we have y (t) = 100ekt = 100 exp

(ln 4.5

60t

).

At doubling time, y (t) = 2y (0) = 200,

so that 200 = y (t) = 100 exp

(ln 4.5

60t

).

Solve for it and get ln 2 =ln 4.5

60t.

11. A cup of coffee is 180◦F when poured. After 2 minutes in a room at 70◦F, the coffeehas cooled to 165◦F. Find the temperature at time t and find the time at which thecoffee will have cooled to 120◦F.

144

Page 151: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

Solution:

The differential equation is y′ (t) = k [y (t) + 70] .

Solving this differential equation, we obtain y (t) = Aekt + 70.

Initial conditions are : 180 = y (0) = Ae0 + 70 = A+ 70.

This gives y (0) = 180,

so that A = 110 and y (t) = 110ekt + 70.

We use the second measured temperature (165◦F) to solve for k :

165 = y (2) = 110e2k + 70.

Solve for k by subtracting 70 from both sides and dividing by 110 to obtain

e2k =165− 70

110=

95

110.

Taking natural logarithms of both sides, we get 2k = ln

(95

110

)and, therefore k =

12 ln

(95

110

).

When the temperature T = 120, we have 120 = y (t) = 110ekt + 70.

Solve for t and obtain t =1

kln

5

11.

12. Compound interest and an example of decay. Suppose the value of a R10 000 assetdecreases continuously at a constant rate of 24% per year. Find its worth after

(a) 10 years

(b) 20 years

Solution:

The value v(t) of any quantity that is changing at a constant rate r satisfies the equation:v′ = rv.

Here r = −0.24, so that v (t) = Ae−0.24t

Since the initial asset value is R10 000, we have v (t) = 10 000e−0.24t.

We now have 10 000 = v (0) = Ae0 = A.

MAT1512 145

Page 152: ii - gimmenotes

At time t = 10, the asset value is R10 000e−0.24(10) ≈ R907.18 and

at time t = 20, the asset value is R10 000e−0.24(20) ≈ R82.30.

More Worked Examples:

13. A bacterial culture starts with 1 000 bacteria and after 2 hours there are 2 500bacteria. Assuming that the culture grows at a rate proportional to its size, find thepopulation after 6 hours.

14. The earth’s atmospheric pressure p is often modeled by assuming that the rate dp/dhat which p changes with altitude h above sea level is proportional to p. Suppose thatthe pressure at sea level is 1 013 millibars (about 14.7 pounds per square inch) andthat the pressure at an altitude of 20 km is 90 millibars.

(a) Solve the initial value problem –

Differential equation: dp/dh = kp (k is a constant).

Initial condition: p = p0 when h = 0,

Express p in terms of h. Determine the values of p0 and k from the givenaltitude and pressure data.

(b) What is the atmospheric pressure at h = 50 km?

(c) At what altitude does the pressure equal 900 millibars?

15. In some chemical reactions, the rate at which the amount of a substance changeswith time is proportional to the amount present. For the change of δ-gluconolactoneinto gluconic acid, for example,

dy

dt= −0.6y

when t is measured in hours. If there are 100 grams of δ-gluconolactone presentwhen t = 0, how many grams will be left after the first hour?

16. The intensity L (x) of light x feet beneath the surface of the ocean satisfies thedifferential equation

dL

dx= −kL.

As a diver, you know from experience that diving to 18 ft in the Caribbean Sea cutsthe intensity in half. You cannot work without artificial light when the intensity fallsbelow one-tenth of the surface value. Up to about how deep can you expect to workwithout artificial light?

17. If R1 000 is invested for 4 years at 12% interest compounded continuously, what isthe value of the investment at the end of the 4 years?

146

Page 153: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

18. You have just placed A0 rand in a bank account that pays 14% interest, compoundedcontinuously.

(a) How much money will you have in the account in 6 years’ time?

(b) How long will it take for your money to double and to triple?

19. Suppose an object takes 40 min to cool down from 30◦C to 24◦C in a room that iskept at 20◦C.

(a) What would the temperature of the object be 15 min after it has been 30◦C?

(b) How long will it take for the object to cool down to 21◦C?

20. Suppose that a cup of soup cooled down from 90◦C to 60◦C within 10 minutes in aroom of which the temperature was 20◦C. Use Newton’s Law of Cooling to answerthe following questions.

(a) How much longer would it take for the soup to cool to 35◦C?

(b) Instead of being left to stand in the room, the cup of 90◦C soup is put in afreezer in which the temperature is −15◦C. How long will it take for the soupto cool down from 90◦C to 35◦C?

Solutions:

13. Let y (t) be the number of bacteria after t hours. Then y0 = y (0) = 1000 and

y (2) = 2500. Since we are assumingdy

dt= ky (Law of Exponential Growth on page

237 in Stewart),

y (t) = y0ekt = 1000ekt

⇒ y (2) = 1000e2k = 2500.

Therefore e2k = 2.5 and 2k = ln 2.5.

Thus k =ln 2.5

2.

Substituting the value of k = 12 ln 2.5 back into the expression for y (t), we have

y (t) = 1000e

ln 2, 5

2t

= 1000(eln 2.5

) t2

= 1000 (2.5)t2 (since eln 2.5 = 2.5).

Therefore the population after 6 hours is

y (6) = 1000 (2.5)3 = 15 625.

MAT1512 147

Page 154: ii - gimmenotes

14. (a) Differential equation:dp

dh= kp (k is a constant).

Initial condition: p = p0 when h = 0.

We separate the variables by dividing the differential equation by p to have

1

p

dp

dh= k

⇒ ln |p| = kh+ c (by integrating the R.H.S. with respect to h)

⇒ |p| = ekh + c (by exponentiating)

⇒ |p| = ecekh

⇒ p = ±ecekh

⇒ p = Aekh where A = ±ec.

But the initial condition p = p0 when h = 0. Therefore p0 = Aek0 = A andthus

p = p0ekh

Thenp (0) = p0 = 1013 and p (20) = 90 = 1013e20k.

Thus

e20k =90

1013

⇒ 20k = ln90

1013

⇒ k =1

20ln

90

1013.

Therefore p (h) is given by

p (h) = 1013e ln

(90

1013

)h

20= 1013

(90

1013

) h20

.

(b) If h = 50 km, then

p (50) = 1013eln(90

1013)· 52

= 1013(eln(

901013)

) 52

= 1013

(90

1013

) 52

(since eln(90

1013) =90

1013)

=902.5

10131.5.

148

Page 155: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

(c) If p = 900, then

900 = 1013

(90

1013

) h20

⇒(

90

1013

) h20

=900

1013

⇒ h

20ln

(90

1013

)= ln

(900

1013

)⇒ h = 20 · 1

ln(

901013

) · ln( 900

1013

).

15. We have the following initial-value problem:

Differential equation:dy

dt= −0.6y

Initial condition: y0 = 100 when t = 0.

We use the Radioactive decay equation on page 239 in Stewart:

y = y0e−kt.

Since y0 = 100 and k = −0.6 we have

y = 100e−0.6t.

After the first hour the number of grams will be

y = 100e(−0,6)(1)

= 100e−0,6.

16. We have the following initial-value problem:

Differential equation:dL

dx= −kL

Initial condition: L = L0 when x = 0. We are given that L = 12L0 when x = 18.

We want to find x when L = 110L0.

L (x) = L0e−kx

where

L (x) = y(t),

L0 = A.

MAT1512 149

Page 156: ii - gimmenotes

Thus

1

2L0 = L0e

−18k

∴ e−18k =1

2

⇒ e18k = 2

⇒ 18k = ln 2

⇒ k =1

18ln 2.

When L = 110L0 we have

1

10L0 = L0e

−kx

⇒ e−kx =1

10

⇒ −kx = ln

(1

10

)⇒ −kx = − ln 10

⇒ x =1

kln 10

=18

ln 2ln 10 (since k =

1

18ln 2).

17. We use the Continuously compound interest formula on page 242 in Stewart:

A (t) = A0ert.

It is given that A0 =R1000 and r = 12% = 0.12. So the value of the investment in4 years will be

A (4) = 1000e(0.12)4

= 1000e0.48.

18. We use the continuous compound interest formula:

A (t) = A0ert.

(a) We are given that r = 14% = 0.14. In 6 years the money will be

A (6) = A0e(0.14)6

= A0e0.84.

(b) We want to find t when A = 2A0, and when A = 3A0. We have A (t) = A0e0.14t.

When A = 2A0 we have

2A0 = A0e0.14t

⇒ e0.14t = 2

⇒ 0.14t = ln 2

⇒ t =ln 2

0.14=

100

14ln 2.

150

Page 157: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

When A = 3A0 we have

3A0 = A0e0.14t

⇒ e0.14t = 3

⇒ 0.14t = ln 3

⇒ t =ln 3

0.14=

100

14ln 3.

19. We use Newton’s Law of Cooling on page 240 in Stewart:

T = Ts + (T0 − Ts) e−kt

where T = y (t) , Ts = Tα

and T0 − Ts = A

where T is the temperature at any given time t, Ts is the surrounding temperatureand T0 is the initial temperature (in other words, T0 is the value of T at t = 0).

Now, we are given that Ts = 20◦C and T0 = 30◦C.

Then the object’s temperature after t minutes is

T = 20 + (30− 20) e−kt

= 20 + 10e−kt.

(a) We first find k, by using the information that T = 24 when t = 40 :

24 = 20 + 10e−40k

⇒ 10e−40k = 4

⇒ e−40k =4

10

⇒ −40k = ln

(4

10

)⇒ k = − 1

40ln

(4

10

).

Now the object’s temperature after time t is

T = 20 + 10e140

ln 410·t.

We now find T when t = 15 :

T = 20 + 10e140

ln 410·15

= 20 + 10(eln

410

) 1540

= 20 + 10

(4

10

) 1540

.

MAT1512 151

Page 158: ii - gimmenotes

(b) We now find the time t when T = 21◦C:

21 = 20 + 10(eln

410

) t40

⇒ 10

(4

10

) t40

= 1

⇒(

4

10

) t40

=1

10

⇒ t

40ln

(4

10

)= ln

(1

10

)⇒ t =

40

ln(

410

) · ln( 1

10

)= −40 ln 10

ln (0, 4).

20. As in the solution of the question above,

T = Ts + (T0 − Ts) e−kt.

It is given that Ts = 20◦C and T0 = 90◦C. The soup’s temperature after t minutesis

T = 20 + (90− 20) e−kt

= 20 + 70e−kt.

(a) We find k by using the information that T = 60◦C when t = 10 minutes:

60 = 20 + 70e−10k

⇒ 40 = 70e−10k

⇒ e−10k =4

7

⇒ −10k = ln

(4

7

)⇒ k = − 1

10ln

(4

7

).

The soup’s temperature at time t is

T = 20 + 70e(110

ln( 47))·t

We now find the time t when T = 35◦C:

35 = 20 + 70(eln

47

) t10

⇒ 15 = 70

(4

7

) t10

⇒(

4

7

) t10

=15

70

⇒ t

10ln

(4

7

)= ln

(15

70

)⇒ t = 10

1

ln(47

) ln15

70.

152

Page 159: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

(b) With T = −15◦C and T0 = 90◦C, we have

T = −15 + (90− (−15)) e−kt

= −15 + 105e−kt.

So we find t when T = 35◦C:

35 = −15 + 105(eln

47

) t10

⇒ 50 = 105

(4

7

) t10

⇒(

4

7

) t10

=50

105

⇒ t

10ln

(4

7

)= ln

(50

105

)⇒ t = 10

1

ln(47

) ln

(50

105

).

6.4.3 Partial Derivatives/Chain Rule

Functions with more than one variable appear more often in science than functions withone variable. The reason for this is that in real life the mathematical application inrespect of any dynamic phenomenon depends on more than one variable. One example ofa dynamic phenomenon is a moving train, where the motion will depend on variables suchas time, distance, friction, mass and so forth. The applied mathematician uses functionswith several variables, their derivatives and their integrals to study continuum mechanics,probability, statistics, fluid mechanics and electricity – to mention but a few examples.

If f is a function of two independent variables, we usually call the independent variablesx and y and picture the domain of f(x, y) as a region in the XY -plane. If f is a functionof three independent variables, we call the variables x, y, and z and picture the domain off(x, y, z) as a region in space.

Now, to talk about the derivative of f does not make sense if we do not specify withrespect to which independent variable the derivative is required. When we keep all butone of the independent variables of a function constant and differentiate with respect tothat one variable, we get a partial derivative. We would like to encourage you to workthrough examples 1–8 in Section 14.3 and to study Section 14.5 of Chapter 14 in Stewartcarefully, in conjunction with the examples in the study guide.

(a) The partial derivatives technique

This technique is used when functions have more than one variable.

MAT1512 153

Page 160: ii - gimmenotes

Consider a function f of two variables, x and y. Suppose we let only x vary, while keepingy fixed and y = b where b is a constant.

Then this is a function of a single variable x : g (x) = f (x, b).

If g has a derivative at a, this is called the partial derivative of f with respect to x at (a, b),denoted by

fx (a, b) = g′ (x) , that is g′ (a) = limh→0

g (a+ h)− g (a)

hor fx (a, b) = lim

h→0

f (a+ h, b)− f(a, b)

h.

Similarly, the partial derivative of f with respect to y at (a, b), denoted by fy (a, b) isobtained by keeping x fixed (that is x = a) and finding the derivative at b of the functionG (y) = f (a, y).

So fx (a, b) = limh→0

f (a+ h, b)− f (a, b)

hand fy (a, b) = lim

h→0

f (a, b+ h)− f (a, b)

h.

If we now let the point (a, b) vary, fx and fy become functions of two variables.

DefinitionIf f is a function of two variables, its partial derivatives arethe functions fx and fy defined as:

fx (x, y) = limh→0

f (x+ h, y)− f (x, y)

hand

fy (x, y) = limh→0

f (x, y + h)− f (x, y)

h

(b) Notations for partial derivatives

If z = f (x, y) , we write:

fx (x, y) = fx =∂f

∂x=

∂xf (x, y) =

∂z

∂x= f1 = D1f = Dxf

fy (x, y) = fy =∂f

∂y=

∂yf (x, y) =

∂z

∂y= f2 = D2f = Dyf

Note: f1 or D1f indicates differentiation with respect to the first variable and f2 or D2findicates differentiation with respect to the second variable.

154

Page 161: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

(c) Rules for finding the partial derivatives of z = f (x,y)

1. To find fx, regard y as a constant and differentiate with respect to x.

2. To find fy, regard x as a constant and differentiate with respect to y.

Examples:

21. If f (x, y) = x3 + x2y3 − 2y2, find fx (2, 1) and fy (2, 1).

22. Find∂z

∂xand

∂z

∂yif z is defined implicitly as a function of x and y by the equation

x3 + y3 + z3 + 6xyz = 1.

Solutions:

21. If f (x, y) = x3 + x2y3 − 2y2,

then holding y constant and differentiating with respect to x, we get

fx (x, y) = 3x2 + 2xy3 − 0

= 3x2 + 2xy3

and

fx (2, 1) = 3 (2)2 + 2 (2)(13)

= 12 + 4

= 16.

Holding x constant and differentiating with respect to y, we get

fy (x, y) = 0 + 3x2y2 − 4y

= 3x2y2 − 4y

and

fy (2, 1) = 3(22) (

12)− 4 (1)

= 12− 4

= 8.

22. Given that x3 + y3 + z3 + 6xyz = 1.

Then, holding y constant and differentiating implicitly with respect to x, we get

3x2 + 0 + 3z2∂z

∂x+ 6yz + 6xy

∂z

∂x= 0.

MAT1512 155

Page 162: ii - gimmenotes

Solving this equation for∂z

∂x, we get

∂z

∂x=−3x2 − 6yz

3z2 + 6xy=−3(x2 + 2yz

)3 (z2 + 2xy)

= −x2 + 2yz

z2 + 2yz.

Similarly, holding x constant and differentiating implicitly with respect to y gives

0 + 3y2 + 3z2∂z

∂y+ 6xz + 6xy

∂z

∂y= 0

⇒(3z2 + 6xy

) ∂z∂y

= −3y2 − 6xz

⇒ ∂z

∂y=−3y2 − 6xz

3z2 + 6xy

=−3(y2 + 2xz

)3 (z2 + 2xy)

= −y2 + 2xz

z2 + 2xy.

(d) Partial differentiation

If z = f (x, y) where f is a differentiable function of x and y where x = x (s, t) andy = y(s, t), and both have partial derivatives, then the chain rule below holds:

∂z

∂s=

∂z

∂x

∂x

∂s+∂z

∂y

∂y

∂sand

∂z

∂t=

∂z

∂x

∂x

∂t+∂z

∂y

∂y

∂t.

Example:

23. Suppose f (x, y) = exy, x (u, v) = 3u sin v and y (u, v) = 4v2u.

For g (u, v) = f (x(u, v), y(u, v)) , find the partial derivatives∂g

∂uand

∂g

∂v.

Solution:

f (x, y) = exy, x (u, v) = 3u sin v, y (u, v) = 4uv2 and

g (u, v) = f(x(u, v), y (u, v)).

Then∂g

∂u=∂f

∂x

∂x

∂u+∂f

∂y

∂y

∂u

156

Page 163: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

and∂g

∂v=∂f

∂x

∂x

∂v+∂f

∂y

∂y

∂v.

So

∂f

∂x= exy · y = yexy,

∂f

∂y= exy · x = xexy,

∂x

∂u= 3 sin v,

∂y

∂u= 4v2,

∂x

∂v= 3u (− cosu (1)) = −3u cos v and

∂y

∂v= 8uv.

Therefore

∂g

∂u= yexy (3 sin v) + xexy

(4v2)

= 4uv2e3u sin v(4uv2) (3 sin v) + 3u sin ve3u sin v(4uv

2) (4v2)= 12uv2e12u

2v2 sin v sin v + 12uv2e12u2u2 sin v sin v

= 24uv2e12u2v2 sin v sin v and

∂g

∂v= yexy (3u cos v) + xexy (8uv) = 3yuexy cos v + 8xuvexy

= 3(4uv2

)ue3u sin v(4uv

2) cos v + 8 (3u sin v)uve3u sin v(4uv2)

= 12u2v2e12u2v2 sin v cos v + 24u2ve12u

2v2 sin v sin v.

(e) Functions of more than two variables

Partial derivatives can also be defined for functions of three or more variables. For example,if f is a function of three variables, x, y and z, then its partial derivative with respect tox is defined as:

fx (x, y, z) = limh→0

f (x+ h, y, z)− f (x, y, z)

h

and is found by, for example, regarding y and z as constants and differentiating f(x, y, z)with respect to x.

Example:

24. Find fx, fy and fz if f (x, y, z) = exy ln z.

MAT1512 157

Page 164: ii - gimmenotes

Solution:

If f (x, y, z) = exy ln z,

then to compute the partial derivative with respect to x, we treat y and z as constantsand obtain

fx =∂

∂x(exy ln z)

= exy (y) ln z

= yexy ln z.

To compute the partial derivative with respect to y, we treat x and z as constants andobtain

fy =∂

∂y(exy ln z)

= exy (x) ln z

= xexy ln z.

To compute the partial derivative with respect to z, we treat x and y as constants andobtain

fz =∂

∂z(exy ln z)

= exy · 1

z(1)

=exy

z.

(f) Higher-order derivatives

If f is a function of two variables, then its partial derivatives fx and fy are also functionsof two variables, so we can consider their partial derivatives (fx)x , (fx)y , (fy)x and (fy)y,which are called the second partial derivatives of f .

If z = f(x, y), we use the following notation:

(fx)x = fxx = f11 =∂

∂x

(∂f

∂x

)=∂2f

∂x2=∂2z

∂x2,

(fx)y = fxy = f12 =∂

∂y

(∂f

∂x

)=

∂2f

∂y∂x=

∂2z

∂y∂x,

(fy)x = fyx = f21 =∂

∂x

(∂f

∂y

)=

∂2f

∂x∂y=

∂2z

∂x∂yand

(fy)y = fyy = f22 =∂

∂y

(∂f

∂y

)=∂2f

∂y2=∂2z

∂y2.

158

Page 165: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

Note: The notation fxy or

(∂2f

∂y∂x

)means we first differentiate with respect to x and

then with respect to y, and in computing fyx, the order of differentiation is reversed.

Example:

25. Find the second partial derivatives of f (x, y) = x3 + x2y3 − 2y2.

Solution:

Given f (x, y) = x3 + x2y3 − 2y.

In example 21 we found that

fx (x, y) = 3x2 + 2xy3 and

fy (x, y) = 3x2y2 − 4y.

Therefore

fxx (x, y) =∂

∂x

(3x2 + 2xy3

)= 6x+ 2y3,

fxy (x, y) =∂

∂y

(3x2 + 2xy3

)= 0 + 6xy2 = 6xy2,

fyx (x, y) =∂

∂x

(3x2y2 − 4y

)= 6xy2 − 0 = 6xy2 and

fyy (x, y) =∂

∂y

(3x2y2 − 4y

)= 6x2y − 4.

Now work through the rest of the examples provided.

Worked Examples:

26. Determine ∂f/∂x and ∂f/∂y if:

(a) f(x, y) = sin(x+ y) and

(b) f(x, y) =x

x2 + y2.

27. Use the chain rule for partial derivatives to determine the value of dw/dt when t = 0if w = x2 + y2, x = cos t+ sin t and y = cos t− sin t.

28. Use the chain rule for partial derivatives to find dw/dt when w = − sin(xy),

x = 1 + t and y = t2.

MAT1512 159

Page 166: ii - gimmenotes

29. Suppose

w =1

xy+

1

y, x = t2 + 1 and y = t4 + 3.

Use the chain rule for partial derivatives to find dw/dt.

30. Assume that the equation

yx43 + y

43 = 144

defines y as a differentiable function of x. Use partial derivatives to find the value ofdy/dx at the point (−8, 8).

31. Determine ∂z/∂u when u = 0 and v = 1, if z = sin(xy) + x sin y, x = u2 + v2 andy = uv.

32. Let g be a function of x and y, and suppose that x and y are both functions of u andv. Which one of the following is ∂g/∂v?

(a)∂g

∂u· ∂u∂x

+∂g

∂u· ∂u∂y

(b)dg

dx· ∂x∂v

+dg

dy· ∂y∂v

(c)∂g

∂x· ∂x∂v

+∂g

∂y· ∂y∂v

(d)dg

dx· dxdv

+dg

dy· dydv

33. Determine ∂2f/∂y2 if f(x, y) = tan(xy)− cotx.

34. Suppose that the equationy = sin(xy)

defines y as a differentiable function of x. Use partial derivatives to find dy/dx.

35. Suppose w = (−2x2 + 2y2 − 2)2, x = 2u − 2v + 2 and y = −u + 4v + 2. Find thevalue of ∂w/∂v when u = 0 and v = −1.

36. Use the chain rule for partial derivatives to find dw/dt when w = − sin(xy), x = 1+ tand y = t2.

37. Assume that the equationxy + y2 − 3x− 3 = 0

defines y as a differentiable function of x. Find the value of dy/dx at the point (−1, 1)by using partial derivatives.

38. Use the chain rule for partial derivatives to find ∂w/∂r when r = π and s = 0, ifw = sin(2x− y), x = r + sin s and y = rs.

160

Page 167: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

39. Suppose that the equation7y4 + x3y + x = 4

defines y as a differentiable function of x. Find the value of dy/dx at the point (4, 0).

40. The dimensions a, b and c of a rectangular solid vary with time (t). At the instantin question

a = 13 cm, b = 9 cm, c = 5 cm,da

dt=dc

dt= 2 cm/sec

anddb

dt= −5 cm/sec.

Figure 6.2: Rectangular solid

(a) How fast is the volume V changing at the given instant? Is V increasing ordecreasing?

(b) How fast is the surface area S changing at that moment? Is the area increasingor decreasing?

(c) How fast is the length D of the diagonal changing at that instant? Does thelength increase or decrease?

Solutions:

26. (a)

f(x, y) = sin(x+ y)

⇒ ∂f

∂x= cos(x+ y) and

∂f

∂y= cos(x+ y).

(b)

f(x, y) =x

x2 + y2

⇒ ∂f

∂x=

1.(x2 + y2

)− x (2x+ 0)

(x2 + y2)2

=y2 − x2

(x2 + y2)2.

MAT1512 161

Page 168: ii - gimmenotes

Also,

f(x, y) =x

x2 + y2= x(x2 + y2)−1

⇒ ∂f

∂y= x(−(x2 + y2)−2).(0 + 2y)

= − 2xy

(x2 + y2)2.

27.

w = x2 + y2, x = cos t+ sin t and y = cos t− sin t

⇒ dw

dt=

∂w

∂x

dx

dt+∂w

∂y

dy

dt

= (2x+ 0)(− sin t+ cos t) + (0 + 2y)(− sin t− cos t)

= 2x (cos t− sin t)− 2y (sin t+ cos t)

by substituting for x and y

= 2(cos t+ sin t)(cos t− sin t)− 2(cos t− sin t)(cos t+ sin t)

= 0.

Hence,dw

dt

∣∣∣∣t=0

= 0.

28.w = − sin (xy)

⇒ ∂w

∂x= − cos (xy) · y

and∂w

∂y= − cos (xy) · x.

Also,

x = 1 + t

⇒ dx

dt= 1,

and

y = t2

⇒ dy

dt= 2t.

We have

dw

dt=

∂w

∂x· dxdt

+∂w

∂y· dydt

= − cos (xy) · y (1)− cos (xy) · x · 2t= − cos ((1 + y) (+2)) · y2 − cos

((1 + t) t2

)(1 + t) · 2t.

162

Page 169: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

29.

w =1

xy+

1

y

⇒ ∂w

∂x= − 1

yx2

and∂w

∂y=−1

xy2− 1

y2.

Also,

x = t2 + 1

⇒ dx

dt= 2t

and

y = t4 + 3

⇒ dy

dt= 4t3.

Hence,

dw

dt=

∂w

∂x· dxdt

+∂w

∂y· dydt

= − 1

yx2· 2t+

(− 1

xy2− 1

y2

)· 4t3

= − 2t

(t4 + 3) (t2 + 1)2− 4t3

(t2 + 1) (t4 + 3)2− 4t3

(t4 + 3)2.

30. LetF (x, y) = yx

43 + y

43 − 144.

Then

dy

dx= −Fx

Fy

= −43yx

13

x4/3 + 43y

13

,

so

dy

dx

∣∣∣∣(x,y)=(−8,8)

= −43 · 8 · (−2)

16 + 43 · 2

=8

7.

MAT1512 163

Page 170: ii - gimmenotes

31.

∂z

∂u=

∂z

∂x· ∂x∂u

+∂z

∂y· ∂y∂u

= (y cos(xy) + sin y)2u+ (x cos(xy) + x cos y)v.

If u = 0 and v = 1, then x = u2 + v2 = 1 and y = uv = 0. Then

∂z

∂u= (0 · cos 0 + sin 0) · 0 + (1 · cos 0 + 1 · cos 0) · 1= 2.

32.∂g

∂v=∂g

∂x· ∂x∂v

+∂g

∂y· ∂y∂v.

33.

f(x, y) = tan(xy)− cot x

⇒ ∂f

∂y= sec2(xy).x

⇒ ∂2f

∂y2= 2 sec(xy). sec(xy) tan(xy).x.x

= 2x2. sec2(xy). tan(xy).

34.

y = sin(xy)

⇒ y − sin(xy) = 0.

LetF (x, y) = y − sin(xy).

Then

dy

dx= −Fx

Fy

= − − cos (xy) · y1− cos (xy) · x

=y cos (xy)

1− x cos (xy).

35.

∂w

∂v=

∂w

∂x· ∂x∂v

+∂w

∂y· ∂y∂v

= 2(−2x2 + 2y2 − 2)(−4x)(−2) + 2(−2x2 + 2y2 − 2)(4y)(4).

If u = 0 and v = −1, thenx = 0 + 2 + 2 = 4

164

Page 171: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

andy = 0− 4 + 2 = −2

so that

∂w

∂v= 2 (−32 + 8− 2) (−16) (−2) + 2 (−32 + 8− 2) (−8) (4)

= 0.

36.

w = − sin(xy)

⇒ ∂w

∂x= − cos(xy).y

and∂w

∂y= − cos(xy).x.

Also,

x = 1 + t

⇒ dx

dt= 1

and

y = t2

⇒ dy

dt= 2t.

We have

dw

dt=

∂w

∂x· dxdt

+∂w

∂y· dydt

= − cos(xy) · y · 1− cos(xy) · x · 2t= − cos((1 + t)t2) · t2 − cos((1 + t)t2) · (1 + t)2t.

37. PutF (x, y) = xy + y2 − 3x− 3.

Thendy

dx= −Fx

Fy= − y − 3

x+ 2y.

Hence,dy

dx

∣∣∣∣(x,y)=(−1,1)

= − 1− 3

−1 + 2= 2.

MAT1512 165

Page 172: ii - gimmenotes

38.

∂w

∂r=

∂w

∂x· ∂x∂r

+∂w

∂y· ∂y∂r

= 2 · cos(2x− y) · 1 + (− cos(2x− y)) · s.

If r = π and s = 0, then x = π and y = 0, so that

∂w

∂r= 2 · cos(2π) · 1− cos(2π).0 = 2.

39. LetF (x, y) = 7y4 + x3y + x− 4.

Then

dy

dx= −Fx

Fy

= − 3x2y + 1

28y3 + x3.

Hencedy

dx

∣∣∣∣(x,y)=(4,0)

= − 1

64.

40. (a) Denote derivatives with respect to time by a dot. If

V = abc,

then

V =∂V

∂aa+

∂V

∂bb+

∂V

∂cc

= abc+ abc+ abc.

Substitute the given values:

V = (2)(9)(5) + (13)(−5)(5) + (13)(9)(2)

= 90− 325 + 234

= −1.

Therefore the volume decreases at 1 cm3/sec.

(b) Differentiate with respect to time. If

S = 2ac+ 2bc+ 2ab,

166

Page 173: ii - gimmenotes

Study Unit 6: Differential Equation, Growth and Decay and Partial Derivatives/ChainRule

then

S =∂S

∂aa+

∂S

∂bb+

∂S

∂cc

= (2c+ 2b)a+ (2c+ 2a)b+ (2a+ 2b)c.

Substitute the given values:

S = (2× 5 + 2× 9)(2) + (2× 5 + 2× 13)(−5) + (2× 13 + 2× 9)(2)

= −36.

The area decreases at a rate of 36 cm2/sec.

(c) According to the Theorem of Pythagoras

D = (a2 + b2 + c2)12 .

Differentiate with respect to time:

D =1

2(a2 + b2 + c2)−

12 (2aa+ 2bb+ 2cc)

=aa+ bb+ cc√a2 + b2 + c2

.

Thus D (13, 9, 5) =(13) (2) + (9) (−5) + (5) (2)√

(13)2 + (9)2 + (5)2(from the given values)

=26− 45 + 10√169 + 81 + 25

=−9√275

=−9

5√

11.

Therefore the diagonal decreases at 95√11

cm/sec.

Key points

In this chapter we have introduced you to specific solutions of simple, first-order differentialequations. You should now be comfortable with solving some basic growth and decayproblems. We have also introduced the notion of partial derivatives, where we have seenhow to approach scientific problems involving functions of several variables, by changingone of the variables at a time, and keeping the remaining variable(s) fixed.

At this stage you should be able to:

• solve first-order differential equations with initial values

MAT1512 167

Page 174: ii - gimmenotes

• solve basic real-life problems involving exponential growth and decay

• determine the partial derivatives of the functions of several variables

Continue practising solving problems until you have mastered the basic techniques! Gothrough the section “For your review”at the end of each chapter to consolidate what youhave learnt and also use other calculus textbooks.

168

Page 175: ii - gimmenotes

Appendix A

Sequence and Summation Notation

The purpose of the Appendix is to help you to make the transition from high school to themore advanced first-year calculus module MAT1512.

A sequence is a list of numbers written in a specific order. Sequences have many appli-cations.

To read: Stewart Appendix E A34–A37

Outcomes:

After studying this section you should

(a) know the definition of a sequence

(b) know what is meant by

• a recursive sequence

• a partial sum of a sequence

• sigma notation

(c) be able to

• find the terms of a sequence

• find the nth term of a sequence

• find a partial sum of a sequence

MAT1512 169

Page 176: ii - gimmenotes

• use sigma notation

Examples:

A. 1.1 Write the first four terms of the sequence given by the formula in each case.

(a) cj = 3

(1

10

)j−1

Solution:

c1 = 3

(1

10

)1−1= 3

(1

10

)0

= 3,

c2 = 3

(1

10

)2−1= 3

(1

10

)1

=3

10,

c3 = 3

(1

10

)3−1= 3

(1

10

)2

=3

100

c4 = 3

(1

10

)4−1= 3

(1

10

)3

=3

1000.

(b) an =(−1)n+1

n+ 3

Solution:

a1 =(−1)1+1

1 + 3=

1

4, a2 =

(−1)2+1

2 + 3= −1

5

a3 =(−1)3+1

3 + 3=

1

6, a4 =

(−1)4+1

4 + 3= −1

7.

(c) xk =k

k + 1− k + 1

k

Solution:

x1 =1

1 + 1− 1 + 1

1=

1

2− 2 = −3

2,

x2 =2

2 + 1− 2 + 1

2=

2

3− 3

2= −5

6,

x3 =3

3 + 1− 3 + 1

3=

3

4− 4

3= − 7

12,

x4 =4

4 + 1− 4 + 1

4=

4

5− 5

4= − 9

20.

170

Page 177: ii - gimmenotes

Study Unit A: Sequence and Summation Notation

A. 1.2 Find the ninth and tenth terms of: 0, 4, 0, . . . ,2n + (−2)n

n, . . .

Solution:

an =2n + (−2)n

n

Then a9 =29 + (−2)9

9=

29 − 29

9=

0

9= 0 and

a10 =210 + (−2)10

10=

210 + 210

10=

2 · 210

10=

2048

10=

1024

5.

A. 1.3 Find the first six terms of the sequence defined by: a1 = 6 and an =3

an−1.

Solution:

a1 = 6, a2 =3

a2−1=

3

6=

1

2,

a3 =3

a3−1=

3

a2=

3(12

) = 6,

a4 =3

a4−1=

3

a3=

3

6=

1

2,

a5 =3

a5−1=

3

a4=

3(12

) = 6,

a6 =3

a6−1=

3

a5=

3

6=

1

2.

A. 1.4 Find the sum of the first five terms of the sequence given by the formula in eachcase.

(a) ak = (−1)k1

k

Solution:

5∑k=1

ak = a1 + a2 + a3 + a4 + a5

= (−1)11

1+ (−1)2

1

2+ (−1)3

1

3+ (−1)4

1

4+ (−1)5

1

5

= −1 +1

2− 1

3+

1

4− 1

5

= −47

60.

MAT1512 171

Page 178: ii - gimmenotes

(b) bi = i3

Solution:

5∑i=1

i3 = b1 + b2 + b3 + b4 + b5

= 13 + 23 + 33 + 43 + 53

= 1 + 8 + 27 + 64 + 125

= 225.

(c) Find8∑

n=0xn where xn =

1

2n.

Solution:

8∑n=0

xn = x0 + x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8

=1

20+

1

21+

1

22+

1

23+

1

24+

1

25+

1

26+

1

27+

1

28

= 1 +1

2+

1

4+

1

8+

1

16+

1

32+

1

64+

1

128+

1

256

=511

256.

A. 1.5 Evaluate each of the following:

(a)6∑

k=1

(5k)

Solution:

6∑k=1

(5k) = 5.1 + 5.2 + 5.3 + 5.4 + 5.5 + 5.6

= 5 + 10 + 15 + 20 + 25 + 30

= 105.

(b)7∑

k=1

(−1)k

172

Page 179: ii - gimmenotes

Study Unit A: Mathematical Induction

Solution:

7∑k=1

(−1)k = (−1)1 + (−1)2 + (−1)3 + (−1)4 + (−1)5 + (−1)6 + (−1)7

= −1 + 1− 1 + 1− 1 + 1− 1

= −1.

(c)3∑

n=1

(n+ 1

n− n

n+ 1

)

Solution:

3∑n=1

(n+ 1

n− n

n+ 1

)=

(1 + 1

1− 1

1 + 1

)+

(2 + 1

2− 2

2 + 1

)+

(3 + 1

3− 3

3 + 1

)

= 2− 1

2+

3

2− 2

3+

4

3− 3

4

=35

12.

A. 1.6 Rewrite each series using sigma notation.

(a) 4 + 8 + 12 + 16 + 20 + 24

Solution:

4 + 8 + 12 + 16 + 20 + 24 = 4 · 1 + 4 · 2 + 4 · 3 + 4 · 4 + 4 · 5 + 4 · 6

=6∑

k=1

(4k).

(b) −4− 2 + 0 + 2 + 4 + 6 + 8

Solution:

−4− 2 + 0 + 2 + 4 + 6 + 8 = 2(−2) + 2(−1) + 2 · 0 + 2 · 1 + 2 · 2 + 2 · 3 + 2 · 4

=4∑

k=−2(2k).

MAT1512 173

Page 180: ii - gimmenotes

Appendix B

Mathematical Induction

We consider here a special kind of proof method called mathematical induction.

To read: Stewart pages 72, 74 and Appendix E A36.

Outcomes:

After studying this section you should

(a) know what the principle of mathematical induction is

(b) be able to prove using mathematical induction that a statement P (n) is true for allnatural numbers n

Examples:

B. 2.1 Use mathematical induction to prove the following statement for all positive integersn :

1 + 4 + 7 + . . .+ (3n− 2) =n(3n− 1)

2. (B.1)

Solution:

Let P (n) be the statement

1 + 4 + 7 + . . .+ (3n− 2) =n(3n− 1)

2(B.2)

for any positive integer n.

174

Page 181: ii - gimmenotes

Study Unit B: Mathematical Induction

We first show that P (1) is true.

LHS of (B.2) = 3 · 1− 2

= 1.

RHS of (B.2) =1(3 · 1− 1)

2

=2

2= 1.

Thus P (1) is true.

Suppose that P (k) is true for any k, that is, we assume

1 + 4 + 7 + . . .+ (3k − 2) =k(3k − 1)

2.

We want to prove that P (k + 1) is true, in other words:

1 + 4 + 7 + . . .+ (3k − 2) + (3(k + 1)− 2)

=(k + 1) (3(k + 1)− 1)

2

=(k + 1)(3k + 2)

2.

Now

1 + 4 + 7 + . . .+ (3k − 2) + (3(k + 1)− 2)

=k(3k − 1)

2+ (3k + 1)

=1

2[k(3k − 1) + 2(3k + 1)]

=1

2

(3k2 − k + 6k + 2

)=

1

2(3k2 + 5k + 2)

=(k + 1)(3k + 2)

2.

Since both conditions of the principle of mathematical induction have been satisfied, itfollows that

1 + 4 + 7 + . . .+ (3n− 2) =n(3n− 1)

2

MAT1512 175

Page 182: ii - gimmenotes

is true for all integers n ≥ 1.

B. 2.2 Prove that

1 · 2 + 2 · 3 + 3 · 4 + . . .+ n(n+ 1) =n(n+ 1)(n+ 2)

3for all n ∈ N.

Solution:

We must verify that the equation is true for n = 1.

The LHS is 1(1 + 1) = 2.

The RHS is1(1 + 1)(1 + 2)

3= 2.

So the equation is true for n = 1.

Suppose that the equation is true for n = k, that is

1 · 2 + 2 · 3 + 3 · 4 + . . .+ k(k + 1) =k(k + 1)(k + 2)

3(∗)

We now use the assumption (∗) to deduce that the equation is true for n = k+ 1, in otherwords:

1 · 2 + 2 · 3 + 3 · 4 + . . .+ k(k + 1) + (k + 1) [(k + 1) + 1]

=(k + 1) [(k + 1) + 1] [(k + 1) + 2]

3.

Now,

176

Page 183: ii - gimmenotes

Study Unit B: Mathematical Induction

LHS = 1 · 2 + 2 · 3 + 3 · 4 + . . .+ k(k + 1) + (k + 1) [(k + 1) + 1]

=k(k + 1)(k + 2)

3+ (k + 1) [(k + 1) + 1]

= (k + 1)

[k(k + 2)

3+ (k + 1) + 1

]

= (k + 1)

(k2 + 2k + 3k + 6

3

)

= (k + 1)

(k2 + 5k + 6

3

)

=(k + 1)(k + 2)(k + 3)

3

=(k + 1) [(k + 1) + 1] [(k + 1) + 2]

3

= RHS.

Since the equation is true for n = 1, and if it is true for n = k, then it is true for n = k+ 1,we conclude by mathematical induction that the equation is true for all integers n ≥ 1.

B. 2.3 Prove that

3 + 32 + 33 + . . .+ 3n =3n+1 − 3

2for all integers n ≥ 1.

Solution:

We must verify that the equation is true for n = 1.

The LHS is 31 = 3.

The RHS is31+1 − 3

2= 3

So the equation is true for n = 1.

Suppose that the equation is true for n = k, that is

3 + 32 + 33 + . . . 3k =3k+1 − 3

2(B.3)

We now use the assumption (∗) to deduce that the equation is true for n = k+ 1, in otherwords:

3 + 32 + 33 + . . .+ 3k + 3k+1 =3(k+1)+1 − 3

2.

MAT1512 177

Page 184: ii - gimmenotes

Now,

LHS = 3 + 32 + 33 + . . .+ 3k + 3k+1

=3k+1 − 3

2+ 3k+1

=3k+1 − 3 + 2 · 3k+1

2

=3k+1(1 + 2)− 3

2

=3k+1 · 3− 3

2

=3(k+1)+1 − 3

2

= RHS.

Since the equation is true for n = 1, and if it is true for n = k, then it is true for n = k+ 1,we conclude by mathematical induction that the equation is true for all integers n ≥ 1.

B. 2.4 Use mathematical induction to prove that(3

4

)n<

3

4for n ≥ 2.

Solution:

Our starting point is n = 2, so we first verify that the inequality is true for n = 2.

LHS is

(3

4

)2

=3

4· 3

4<

3

4= RHS since 0 <

3

4< 1.

So the inequality is true for n = 2.

Suppose that the inequality is true for n = k, that is(3

4

)k<

3

4(B.4)

We now use the assumption (B.4) to deduce that the inequality is true for n = k + 1, inother words (

3

4

)k+1

<3

4.

178

Page 185: ii - gimmenotes

Study Unit 6: Mathematical Induction

Now,

LHS =

(3

4

)k+1

=

(3

4

)k· 3

4

<3

4· 3

4by (B.4)

<3

4by the case n = 2

= RHS.

Therefore if the inequality is true for n = k, it is true for n = k + 1. By mathematicalinduction we conclude that it is true for all positive integers n ≥ 2.

MAT1512 179