Introduction To Calculus
Introduction To Calculus
Contents
1 Introduction to Calculus 3
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1.1 Origin of Calculus . . . . . . . . . . . . . . . . . . . . . 3
1.1.2 The Two Branches of Calculus . . . . . . . . . . . . . . 4
1.2 Secant and Tangent Lines . . . . . . . . . . . . . . . . . . . . 5
1.3 Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.4 The Derivative . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.4.1 Definition of the Derivative . . . . . . . . . . . . . . . 14
1.4.2 Rules for Calculating Derivatives . . . . . . . . . . . . 16
1.5 Applications of Derivatives . . . . . . . . . . . . . . . . . . . . 18
1.5.1 Rates of Change . . . . . . . . . . . . . . . . . . . . . 18
1.5.2 Tangent Lines . . . . . . . . . . . . . . . . . . . . . . . 22
1.5.3 Graphing Polynomials . . . . . . . . . . . . . . . . . . 24
1.5.4 Optimization . . . . . . . . . . . . . . . . . . . . . . . 27
2
Chapter 1
Introduction to Calculus
1.1 Introduction
1.1.1 Origin of Calculus
The development of Calculus by Isaac Newton (1642–1727) and Gottfried
Wilhelm Leibnitz (1646–1716) is one of the most important achievements in
the history of science and mathematics.
Newton is without doubt one of the greatest mathematicians of all time.
In his efforts to find a mathematical method that could explain universal
gravitation, he devised what he called the method of fluxions. Today we call
it differential and integral calculus.
Newton was a private and secretive man, and for the most part kept his
discoveries for himself. He did not publish much, and the majority of his
works, like his famous Philosophiae Naturalis Principia Mathematica, had to
be dragged out of him by the persistence of his friends.
It is now well established that Newton and Leibnitz developed their own
form of calculus independently, that Newton was first by about 10 years but
did not publish, and that Leibnitz’s papers of 1684 and 1686 were the earliest
publications on the subject.
If you are interested in finding out more about Newton and Leibnitz, or
the history of mathematics in general, consult the following website:
http://www-history.mcs.st-and.ac.uk/history
3
4 CHAPTER 1. INTRODUCTION TO CALCULUS
6 6
.
.. ............................
... .......... ...
........... .
. ......................
...
. . ....................
P ...
.. ...
....
.......................
........
r
.
.................. ................................
..
.
..
.
..
. R
.........................
.
........
........
........
- -
a b
What is the slope of the tangent at P ? What is the area of the region R?
We will examine the close relationship between the slope problem and the
problem of determining the rate at which a variable is changing as compared
to another variable. The portion of calculus concerned with this problem
is called differential calculus. It relies on the concept of the derivative of a
function. You will eventually see that the derivative of a function is defined
in terms of a more fundamental concept – the concept of a limit.
The area problem is related to the problem of finding a variable quantity
whose rate of change is known. The part of calculus concerned with these
ideas is called integral calculus and will not be covered here. It is studied in
first year calculus.
1.2. SECANT AND TANGENT LINES 5
.
. ................ secant line
Q....t..........
y2 ....
....
.....
....
.
.... ..
..
.
....
.... . ........ tangent line
.....
.... .
....... ...............
........
..... ...........
. ..
P.......t.................................................
...
. ..
y1 .............. . . .. ....
................................................................
......
.
.
...
Figure 1.1: Secant line joining P and Q and tangent line at point P .
If we let h = x2 − x1 , then
f (x1 + h) − f (x1 )
mtan = lim
h→0 h
6 CHAPTER 1. INTRODUCTION TO CALCULUS
f (x1 + h) − f (x1 )
lim
h→0 h
by simply setting h = 0 since this would lead to a fraction where both the
numerator and denominator are zero and we know that this is undefined.
For a particular function f , we will be able to overcome this difficulty by
using algebra to factor an h from the numerator to cancel it with the h in the
denominator. The resulting limit can then be evaluated by setting h = 0.
(a) Compute the slope of the secant line joining the points (2, 4) and (3, 9).
(b) Compute the slope of the secant line joining (2, 4) and (2 + h, f (2 + h))
for h 6= 0.
(c) Compute the slope of the tangent line at the point (2, 4).
Solution: The slope of the secant line joining the two points P (x1 , y1 ) and
Q(x2 , y2 ) is given by
y2 − y1
msec = . (1.1)
x 2 − x1
9−4
msec = = 5.
3−2
(b) We use equation (1.1) with (x1 , y1 ) = (2, 4) and (x2 , y2 ) = (2+h, f (2+h))
to get
f (2 + h) − 4
msec = .
(2 + h) − 2
1.2. SECANT AND TANGENT LINES 7
-3 -2 -1 0 1 2 3
8 CHAPTER 1. INTRODUCTION TO CALCULUS
Solution: We use
f (x + h) − f (x)
mtan = lim
h→0 h
2
with x = 1 and f (x) = 2x − 5x. Since
then
2(1 + h)2 − 5(1 + h) − (−3)
mtan = lim
h→0 h
2
2(1 + 2h + h ) − 5 − 5h + 3
= lim
h→0 h
2 + 4h + 2h2 − 5 − 5h + 3
= lim
h→0 h
2
2h − h
= lim
h→0 h
= lim (2h − 1)
h→0
= −1.
-1 0 1 2 3
-2
-4
Exercises 1.2
(a) Compute the slope of the secant line joining the points (1, 3) and
(2, 9).
(b) Compute the slope of the secant line joining the points (1, 3) and
(1 + h, f (1 + h)) for h 6= 0.
(c) Compute the slope of the tangent line at the point (1, 3).
(d) Sketch a graph of the function and the tangent line at x = 1.
2. Find the slope of the tangent line to y = f (x) at the indicated point.
1.3 Limits
In section 1.2, we computed limits without saying much about limits. The
method we used doesn’t cover all possible cases. In this section, we will look
at limits in more detail.
Let us consider the following piecewise-defined function
(
2x + 1 if x 6= 2,
f (x) =
3 if x = 2.
This function is made up of two parts. One part is the line y = 2x + 1 with
the point (2, 5) deleted. The other part is the single point (2, 3).
....
.....
6
.....
.....
.....
5 ...
.....
b .
....
.
..
.....
.....
.....
3 .
..
.....
.
......
. r
.....
.....
.....
..
......
.
..
.....
.....
.....
..... -
..
......
.
..
.....
.....
2
.....
.....
..
......
.
..
.....
.....
.....
.....
..
......
.
...
.....
lim f (x) = 5.
x→2
Notice that it is not saying that f (2) = 5 (in fact f (2) = 3), it says that the
values of f (x) approach 5 as x approaches 2.
For a function f , the expression
lim f (x) = L
x→a
means that the values of the function f (x) approach the number L as the
values of x approach a from both directions. Notice that we are not interested
in what happens at x = a.
If there is no number L that the function f approaches as x approaches
a, then we say that the limit does not exist.
For example, consider the function f (x) = 1/x2 . As the values of x
approach 0, the values f (x) become arbitrarily large. Therefore
1
lim does not exist.
x→0 x2
x2 − 2x + 1
Example 2. For f (x) = , by direct substitution we get
3x + 6
x2 − 2x + 1 32 − 2(3) + 1 4
lim f (x) = lim = = .
x→3 x→3 3x + 6 3(3) + 6 15
However, direct substitution does not always work and we will need to
simplify the expression before we can substitute.
12 CHAPTER 1. INTRODUCTION TO CALCULUS
Example 3. Evaluate
x2 + x − 2
lim .
x→1 x−1
Solution: If we substitute x = 1, we get values of zero for both the numerator
and the denominator. We eliminate this problem by factoring the numerator.
x2 + x − 2 (x − 1)(x + 2)
lim = lim
x→1 x−1 x→1 (x − 1)
= lim (x + 2)
x→1
=1+2
= 3.
Example 4. Evaluate √ √
x− 3
lim .
x→3 x−3
Solution: If we substitute x = 3, we get values of zero for both the numerator
and the denominator. Rationalizing the numerator eliminates this problem.
√ √ √ √ √ √ !
x− 3 x− 3 x+ 3
lim = lim ·√ √
x→3 x−3 x→3 x−3 x+ 3
(x − 3)
= lim √ √
x→3 (x − 3)( x + 3)
1
= lim √ √
x→3 x+ 3
1
=√ √
3+ 3
1
= √ .
2 3
1.3. LIMITS 13
Exercises 1.3
1. Consider (
3x + 1 if x 6= 1,
f (x) =
2 if x = 1.
x3 − 1
2. Consider f (x) = .
x−1
(a) Complete the following table:
x 0.99 0.999 1.001 1.01
y = f (x)
(b) Guess what lim f (x) is.
x→1
(c) Compute lim f (x) algebraically.
x→1
4. True or False?
x2 − 4 0
(a) lim = .
x→2 x − 2 0
x2 − 4
(b) If f (x) = and g(x) = x + 2, then f (x) = g(x).
x−2
x2 − 4
(c) If f (x) = and g(x) = x + 2, then lim f (x) = lim g(x).
x−2 x→2 x→2
14 CHAPTER 1. INTRODUCTION TO CALCULUS
f (x + h) − f (x)
mtan (x) = lim
h→0 h
(x + h) − x2
2
= lim
h→0 h
(x2 + 2xh + h2 ) − x2
= lim
h→0 h
2xh + h2
= lim
h→0 h
= lim (2x + h)
h→0
= 2x.
The tangent line at any point (x, y) on the graph of y = x2 has a slope equal
to 2x.
For a function f , we call the function which gives the slopes of all tangent
lines, the derivative of f . The derivative of x2 is then equal to 2x.
dy df
f 0, f 0 (x), y0, y 0 (x), , , Dx f.
dx dx
It is a good idea to learn all these different notations.
1.4. THE DERIVATIVE 15
Exercises 1.4.1
f (x + h) − f (x)
f 0 (x) = lim .
h→0 h
Sum Rule. 0
f (x) + g(x) = f 0 (x) + g 0 (x).
1.4. THE DERIVATIVE 17
Power Rule.
For any number n, if f (x) = xn , then f 0 (x) = nxn−1 .
1 1 1 1
f 0 (x) = x1/2−1 = x−1/2 = 1/2 = √
2 2 2x 2 x
Example 1. If f (x) = 6x5 , f 0 (x) = (6 · 5)x4 = 30x4 by the Power Rule and
the Constant Multiple Rule.
Solution: Since f (x) = 1/x = x−1 , the power rule with n = −1 gives
1
f 0 (x) = (−1)x−1−1 = −x−2 = − .
x2
Thus, f 0 (3) = − 19 .
Exercises 1.4.2
x3 √
(a) f 0 (2); f (x) = . (c) g 0 (1); g(x) = 2 x + 3x2 .
6
(b) s0 (2); s(t) = −5t4 + t − 1. (d) f 0 (−1); f (x) = 3/x.
(a) Find the average velocity of the object between t = 2 and t = 5 seconds.
(d) The object is at rest when its instantaneous velocity is zero. To find
when the object is at rest we have to solve v(t) = 0. Since,
The slope of the secant line joining two points on the curve gives
the average rate of change of y with respect to x.
Exercises 1.5.1
1. The position of a car at t seconds is given by s = 10 + 5t + 20t2 meters.
Find the instantaneous velocity as a function of time.
2. An object is dropped from the observation deck of the CN tower so
that its height in meters is given by
h(t) = 447 − 4.9t2
where t is measured in seconds (we are neglecting air resistance.)
(a) What is the average velocity between t = 1 and t = 2 seconds?
(b) What is the instantaneous velocity at t = 2 seconds?
(c) When will the object hit the ground?
(d) What is the velocity of the object when it hits the ground?
3. A bushfire spreads so that after t hours, 80t − 20t2 acres are burning.
What is the growth rate of the burning area, (the rate of change of the
acreage that is burning with respect to time) when t = 1.5 hours?
4. A circular oil spill is increasing in size. Find the instantaneous rate of
change of the area A of the spill with respect to the the radius r for
r = 100 m.
5. Population growth (the rate of change of population size with respect
to time) is proportional to the population size P . Write the latter
statement as an equation involving derivative.
6. The reaction of the body to a dose of medicine can often be represented
by an equation of the form
2 C M
R=M −
2 3
where C is a positive constant and M is the amount of medicine ab-
sorbed in the blood.
If the reaction is a change in blood pressure, R is measured in mil-
limeters of mercury. If the reaction is a change in temperature, R is
measured in degrees, and so on.
Find R0 (M ). (This derivative is called the sensitivity of the body to
the medicine.)
22 CHAPTER 1. INTRODUCTION TO CALCULUS
mtan = f 0 (x1 )
..
...
.
. . .. ............ tangent line
. ...
P .. ..
. ...........................
.......
y1 .
.................. ..................................r......
..
..
..
.
..........................
.
........
........
........
-
x1
Knowing the slope and the coordinates of the given point, we can find
the equation of the tangent line.
Example 1. Find the equation of the tangent line to the curve y = x2 at
the point (3, 9).
Solution: The derivative of f (x) = x2 is f 0 (x) = 2x. The slope of the tangent
line at x = 3 is then
m = f 0 (3) = 2(3) = 6.
If we know one point (x1 , y1 ) and the slope m of a line, we can use the
point-slope formula
y − y1 = m(x − x1 )
to find the equation of the line.
In our case we use m = 6 and (x1 , y1 ) = (3, 9) to get
y − 9 = 6(x − 3) = 6x − 18.
Solution: A line is parallel to the x-axis if and only if its slope is zero. We
then have to find all values of x for which f 0 (x) = 0.
Here we have
1. Find the equation of the tangent line to y = x3 at the point (2, 8).
3. Find a point on the curve y = x2 +4x−6 where the slope of the tangent
line is 6.
4. Find all points on the curve y = x3 where the tangent line is parallel
to the line y = 12x + 5.
..
...
...
...
...
.. . . . ................................P
.
... .
......
...... .....
......
.....
- x
We see that as x increases (from left to right) the y values also increase.
We say that the curve is increasing. We also note that any tangent line to
the curve will have a positive slope where the function is increasing. Since
the derivative of a function determines the slope of the tangent line, we can
conclude that:
What happens at points where the derivative is zero? Three cases could
occur as shown in the following pictures.
........q.......
6.. .
... ..
6 6
..
...
... .. .. .. ...
... ....
..
.... ..... ... ... .......
.
.q.....
.....
......q... . . .....
- - -
c c c
x −5 −2 3 6
y = f (x) −2 3 −3 4
1.5.4 Optimization
Optimization is concerned with finding maximum or minimum of a function.
The only points where a function can attain its maximum or minimum over
an interval are at critical points or at the endpoints of the interval.
In the figure below, over the interval [a, b], the minimum is attained at
the critical number x = c, and the maximum at the endpoint x = a.
y
6 .s
. ...
...
... ..............
... .. .. ......
... .. ...
... . .s
... ..
... .. .
.....s...
- x
a c b
By studying the sign of the derivative around the critical number x = 20, we
conclude that it corresponds to a local maximum.
x R(x)
(−∞, 20) (20, +∞)
0 240
R0 (x) = 8 − 0.4x + −
20 320 ← MAX
R(x) ↑ ↓
30 300
We then conclude that a maximum revenue of $320 is obtained for x = 20,
i.e., a group size of 40.
Example 3. A farmer wants to construct a rectangular pen next to a barn,
that is 60 feet long, using all of the barn as part of one side of the pen. Find
the dimensions of the pen with the largest area that the farmer can build
using 300 feet of fencing material.
Solution: Let’s draw a picture first.
60 feet
qqq qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq-
qqqqqqqqq
qqq qqq
qq Barn q x -
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
6 6
y Pen y
?
-?
60 + x
The area of the pen is: A = (60 + x)y. To maximize the area, all fencing
material should be used, therefore
(60 + x) + x + 2y = 300 =⇒ x + y = 120.
We then have to maximize A(x) = (60 + x)(120 − x) over 0 ≤ x ≤ 120.
Expanding, we get
A(x) = (60 + x)(120 − x) = 7200 + 60x − x2 .
Solving A0 (x) = 0 gives
A0 (x) = 60 − 2x = 0 =⇒ x = 30.
Studying the sign of the derivative around the critical number x = 30, we
conclude that x = 30 corresponds to a local maximum.
30 CHAPTER 1. INTRODUCTION TO CALCULUS
x A(x)
(−∞, 30) (30, +∞)
0 7200
A0 (x) = 60 − 2x + −
30 8100 ← MAX
A(x) ↑ ↓
120 0
If x = 30, then y = 120 − x = 90. The dimensions of the pen that
maximize the area are then 900 × 900 .
Exercises 1.5.4
1. The sum of the base and the height of a triangle is 20 cm. Find the
dimensions for which the area is maximized.
2. Repeat example 3 above with 400 feet of fencing material available.
3. A fence is to be built to enclose a rectangular area of 5000 m2 . The fence
along three sides is to be made of material that costs 5 dollars/m. The
material for the fourth side costs 15 dollars/m. Find the dimensions of
the rectangle that will allow the cheapest fence to be built.
4. Determine the radius and height of a cylinder with a volume of 100 cm3
and with the smallest possible surface area (including top and bottom).
5. An egg ranch has 120 chickens, each of which produces 250 eggs per
year. If fewer chicken are squeezed into the chicken coop, the result-
ing extra space will induce the remaining chickens to increase their
egg production. Specifically, for each chicken removed, the remaining
chickens will each produce 5 more eggs per year. How many chickens
should the ranch accommodate in order to maximize the total yearly
egg production?
6. An open-top box is to be made by cutting away congruent squares
from the corners of a 12 × 12 sheet of cardboard. How large should the
squares be to maximize the volume of the box?
7. What are the dimensions of an open box with square base and volume
32 cm3 , that minimize the surface area of the outside?
Appendix A
4
(d)
2
-2 -1 0 1 2 3
31
32 APPENDIX A. ANSWERS TO ALL EXERCISES
(i) 24
4. (a) False (b) False (c) True
... 6 .
... ...
... ... ..
... ......
... ......
...
............. ......
....
(c)
...
... .......... .
...
....
.
Normal line: y = − 12 x + 1
...
... .......... - .. 2
....
..... .......... ........
..............
....
..
...
6. y = − 19 x + 29
9
7. k = 1
33
5
25
4
3 20
2 15
(a) 1 (b) 10
-2 -1 0 1 2 3
5
-1
-2 -1 0 1 2 3 4 5
-3 -5
2 1
1 0.5
(c) -2 -1 0 1 2 (d) -2 -1 0 1 2
-1 -0.5
-2 -1