DifferentialCalculus Sage
DifferentialCalculus Sage
William Granville
and David Joyner
Contents
ii
CONTENTS
0 Preface ix
2 Theory of limits 9
2.1 Limit of a variable . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 Division by zero excluded . . . . . . . . . . . . . . . . . . . . . 12
2.3 Infinitesimals . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4 The concept of infinity (∞) . . . . . . . . . . . . . . . . . . . . . 13
2.5 Limiting value of a function . . . . . . . . . . . . . . . . . . . . 14
2.6 Continuous and discontinuous functions . . . . . . . . . . . . . . 14
2.7 Continuity and discontinuity of functions illustrated by their graphs 18
2.8 Fundamental theorems on limits . . . . . . . . . . . . . . . . . . 26
2.9 Special limiting values . . . . . . . . . . . . . . . . . . . . . . . 31
2.10 Show that limx→0 sinx x = 1 . . . . . . . . . . . . . . . . . . . . . 32
2.11 The number e . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
∞
2.12 Expressions assuming the form ∞ . . . . . . . . . . . . . . . . . 36
2.13 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
iii
CONTENTS
3 Differentiation 41
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.2 Increments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3.3 Comparison of increments . . . . . . . . . . . . . . . . . . . . . 43
3.4 Derivative of a function of one variable . . . . . . . . . . . . . . 44
3.5 Symbols for derivatives . . . . . . . . . . . . . . . . . . . . . . . 45
3.6 Differentiable functions . . . . . . . . . . . . . . . . . . . . . . . 46
3.7 General rule for differentiation . . . . . . . . . . . . . . . . . . . 46
3.8 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
3.9 Applications of the derivative to geometry . . . . . . . . . . . . . 52
3.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
iv
CONTENTS
v
CONTENTS
vi
CONTENTS
11 Curvature 285
11.1 Curvature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
11.2 Curvature of a circle . . . . . . . . . . . . . . . . . . . . . . . . 285
11.3 Curvature at a point . . . . . . . . . . . . . . . . . . . . . . . . . 287
11.4 Formulas for curvature . . . . . . . . . . . . . . . . . . . . . . . 288
11.5 Radius of curvature . . . . . . . . . . . . . . . . . . . . . . . . . 291
11.6 Circle of curvature . . . . . . . . . . . . . . . . . . . . . . . . . 293
11.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
11.8 Circle of curvature . . . . . . . . . . . . . . . . . . . . . . . . . 301
11.9 Second method for finding center of curvature . . . . . . . . . . . 304
11.10Center of curvature . . . . . . . . . . . . . . . . . . . . . . . . . 306
11.11Evolutes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308
11.12Properties of the evolute . . . . . . . . . . . . . . . . . . . . . . 312
11.13Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
vii
CONTENTS
viii
CHAPTER
ZERO
Preface
This is a free and open source differential calculus book. The “free and open
source” part means you, as a student, can give digital versions of this book to any-
one you want (for free). It means that if you are a teacher, you can (a) give or print
or xerox copies for your students, (b) use potions for your own class notes (if they
are published then you might need to add some acknowledgement, depending on
which parts you copied), and you can xerox even very large portions of it to your
hearts content. The “differential calculus” part means it covers derivatives and
applications but not integrals. It is heavily based on the first half of a classic text,
Granville’s “Elements of the Differential and Integral Calculus,” quite possibly a
book your great grandfather might have used when he was college age. Some ma-
terial from Sean Mauch’s excellent public domain text on Applied Mathematics,
http://www.its.caltech.edu/˜sean/book.html
was also included.
Calculus has been around for several hundred years and the teaching of it has not
changed radically. Of course, like any topic which is taught in school, there are
some modifications, but not major ones in this case. If x(t) denotes the distance a
train has traveled in a straight line at time t then the derivative is the velocity. If
q(t) denotes the charge on a capacitor at time t in a simple electrical circuit then
the derivative is the current. If C(t) denotes the concentration of a solvent in a
chemical mixture at time t then the derivative is the reaction rate. If P (t) denotes
the population size of a country at time t then the derivative is the growth rate.
If C(x) denotes the cost to manufacture x units of a production item (such as a
broom, say) then the derivative is the marginal cost.
ix
Some of these topics, electrical circuits for example, were not studied in calcu-
lus when Granville’s book was first written. However, aside from some changes
in grammar and terminology (which have been updated in this version), the math-
ematical content of the calculus course taught today is basically the same as that
taught a hundred years ago. Terminology has changed, and no one talks about
“versines” any more (they were used in navigation tables before the advent of
computers), but the basic techniques have not. Therefore, to make the book more
useful to current students, some modification and rearrangement of the material
in Granville’s old text is appropriate. Overall, though the rigor and detailed expla-
nations are still at their same high level of quality.
Here is a quote form Granville’s original preface:
The author has tried to write a textbook that is thoroughly modern
and teachable, and the capacity and needs of the student pursuing a
first course in the Calculus have been kept constantly in mind. The
book contains more material than is necessary for the usual course of
one hundred lessons given in our colleges and engineering schools;
but this gives teachers an opportunity to choose such subjects as best
suit the needs of their classes. It is believed that the volume contains
all topics from which a selection naturally would be made in prepar-
ing students either for elementary work in applied science or for more
advanced work in pure mathematics.
WILLIAM A. GRANVILLE
GETTYSBURG COLLEGE
Gettysburg, Pa.
For further information on William Granville, please see the Wikipedia article at
http://en.wikipedia.org/wiki/William_Anthony_Granville,
which has a short biography and links for further information.
Granville’s book “Elements of the Differential and Integral Calculus” fell into
the public domain (in the United States - other countries may be different) and
then much of it (but not all, at the time of this writing) was scanned into
http://en.wikisource.org/wiki/Elements_of_the_Differential_and_Integral_Calculus
primarily by P. J. Hall. This wikisource document uses MathML and LATEX and
some Greek letter fonts.
x
In keeping with the “free and open source” aspect of this textbook, and the
theme of updating to today’s much more technologically-aware students, a free
and open sourse mathematical software package Sage was used to illustrate ex-
amples throughout. You don’t need to know Sage to read the book (just ignore
the Sage examples if you want) but it certainly won’t hurt to learn a little about
it. Besides, you might find that with some practice Sage is fun to “play with”
and helps you with homework or other mathematical problems in some of your
other classes. It is a general purpose mathematical software program and it may
very likely be the only mathematical software you will ever need.
This LATEX’d version is due to the second-named author, who is responsible for
formatting, the correction of any typos in the scanned version, significant revision
for readability, and some extra material (for example, the Sage examples and
graphics). In particular, the existence of this document owes itself primarily to
three great open source projects: TEX/LATEX, Wikipedia, and Sage . All the fig-
ures were created using Sage and then edited and converted using the excellent
open source image manipulation program GIMP (http://www.gimp.org).
The Sage code for each image can be found in the LATEX source code, available
at
http://sage.math.washington.edu/home/wdj/teaching/calc1-sage/.
xi
CHAPTER
ONE
x y
+ =1
a b
x and y may be considered as the variable coordinates of a point moving along the
line. A quantity whose value remains unchanged is called a constant.
√Numerical or absolute constants retain the same values in all problems, as 2, 5,
7, π, etc.
Arbitrary constants, or parameters, are constants to which any one of an unlim-
ited set of numerical values may be assigned, and they are supposed to have these
assigned values throughout the investigation. They are usually denoted by the ear-
lier letters of the alphabet. Thus, for every pair of values arbitrarily assigned to a
and b, the equation
x y
+ =1
a b
represents some particular straight line.
1
1.2. INTERVAL OF A VARIABLE
The origin being at O, layoff on the straight line the points A and B corresponding
to the numbers a and b. Also let the point P correspond to a particular value of the
variable x. Evidently the interval [a, b] is represented by the segment AB. Now
as x varies continuously from a to b inclusive, i.e. through the interval [a, b], the
point P generates the segment AB.
1.4 Functions
A function f of the real numbers R is a well-defined rule which associated to each
x ∈ R a unique value f (x). Usually functions are described algebraically using
some formula (such as f (x) = x2 , for all real numbers x) but it doesn’t have to be
so simple. For example,
2
1.5. NOTATION OF FUNCTIONS
x2 , if x is an integer,
f (x) =
0, otherwise,
is a function on R but it is given by a relatively complicated rule. Namely, the rule
f tells you to associate to a number x the value 0 unless x is an integer, in which
case you are to associate the value x2 . (In particular, f (x) is always an integer, no
matter what x is.) This type of rule defining a function of x is sometimes called
a piecewise-defined function. In this book, we shall usually focus on functions
given by simpler symbolic expressions. However, be aware that piecewise-defined
functions do arise naturally in applications. For example, in electronics, when a
6 volt battery-powered flashlight is powered on or off using a switch, the voltage
to the lightbulb is modeled by a piecewise-defined function which has the value 0
when the device is off and 6 when it is switched on.
When two variables are so related that the value of the first variable depends on
the value of the second variable, then the first variable is said to be a function of
the second variable.
Nearly all scientific problems deal with quantities and relations of this sort, and
in the experiences of everyday life we are continually meeting conditions illus-
trating the dependence of one quantity on another. For instance, the weight a man
is able to lift depends on his strength, other things being equal. Similarly, the dis-
tance a boy can run may be considered as depending on the time. Or, we may say
that the area of a square is a function of the length of a side, and the volume of a
sphere is a function of its diameter.
f (x) = x2 − 9x + 14,
3
1.5. NOTATION OF FUNCTIONS
then
f (y) = y 2 − 9y + 14.
Also
f (a) = a2 − 9a + 14,
f (b + 1) = (b + 1)2 − 9(b + 1) + 14 = b2 − 7b + 6,
f (0) = 02 − 9 · 0 + 14 = 14,
f (−1) = (−1)2 − 9(−1) + 14 = 24,
f (3) = 32 − 9 · 3 + 14 = −4,
f (7) = 72 − 9 · 7 + 14 = 0,
etc. Similarly, φ(x, y) denotes a function of x and y, and is read “φ of x and y”.
If
φ(x, y) = sin(x + y),
then
φ(a, b) = sin(a + b),
and π π
φ , 0 = sin = 1.
2 2
Again, if
F (x, y, z) = 2x + 3y − 12z,
then
F (m, −m, m) = 2m − 3m − 12m = −13m.
and
F (3, 2, 1) = 2 · 3 + 3 · 2 − 12 · 1 = 0.
Evidently this system of notation may be extended indefinitely.
You can define a function in Sage in several ways:
Sage
4
1.6. INDEPENDENT AND DEPENDENT VARIABLES
1
sage: f = lambda x,y: xˆ2+yˆ2
sage: f(3,4)
25
sage: R.<x> = PolynomialRing(CC,"x")
sage: f = xˆ2+2
sage: f.roots()
[(1.41421356237309*I, 1), (2.77555756156289e-17 - 1.41421356237309*I, 1)]
5
1.7. THE DOMAIN OF A FUNCTION
sage: f(pi/2)
0
sage: (f(-3*pi)-2*f(1))ˆ2
(-2*cos(1) - 1)ˆ2
x2 − 2x + 5, sin x, arctan x
y = x2 − 2x + 5, y = sin x, y = arctan x.
In each case y (the value of the function) is known, or, as we say, defined, for all
values of x. We write in this case, domain(f ) = R. This is not by any means
true of all functions, as the following examples illustrating the more common
exceptions will show.
a
y= (1.1)
x−b
Here the value of y (i.e. the function) is defined for all values of x except x = b.
When x = b the divisor becomes zero and the value of y cannot be computed from
(1.1). We write in this case, domain(y) = R − {b}.
√
y= x. (1.2)
In this case the function is defined only for positive values of x. Negative values
of x give imaginary values for y, and these must be excluded here, where we are
confining ourselves to real numbers only. We write in this case, domain(y) =
{x ∈ R | x ≥ 0}.
6
1.8. EXERCISES
Here y is defined only for positive values of x. For negative values of x this
function does not exist (see 2.7).
sage: t = var("t’’)
sage: f = function(’f’, t)
sage: g = function(’g’, t)
sage: f = sin
sage: g = asin
sage: f(g(t))
t
sage: g(f(t))
t
sage: g(f(0.2))
0.200000000000000
1.8 Exercises
1. Given f (x) = x3 − 10x2 + 31x − 30; show that
f (−1) = 6f (6).
7
1.8. EXERCISES
11. Given ψ(x) = x2n + x2m + 1, show that ψ(1) = 3, ψ(0) = 1, and ψ(a) =
ψ(−a), for any real number a (Hint: Use the fact that (−1)2 = 1.)
√
12. If f (x) = 2x−3
x+7
, find f ( 2).
8
CHAPTER
TWO
Theory of limits
In this book, a variable denotes a quantity which takes values in the real numbers.
lim .
v→L
2. Similarly, the limit of the area of the circumscribed polygon is also the area
of the circle, but now the variable is always greater than its limit.
3. Hold a penny exactly 1 meter above the ground and observe its motion as
you release it. First it travels 1/2 the distance from the ground (at this stage
its distance fallen is 1/2 meter), then it travels 1/2 that distance from the
9
2.1. LIMIT OF A VARIABLE
ground (at this stage its distance fallen is 1/2 + 1/4 meter), then it travels
1/2 that distance from the ground (at this stage its distance fallen is 1/2 +
1/4 + 1/8 meter), and so on. This leads us to the series
1 1 1 1
+ = + ··· + k + ··· .
2 4 8 2
Since the penny hits the ground, this infinite sum is 1. (This computational
idea goes back to the Greek scholar Archimedes, c. 287 BC c. 212 BC.)
4. Consider the series
1 1 1 −1
1− + − + · · · + ( )k + · · · . (2.1)
2 4 8 2
The sum of any even number (2n) of the first terms of this series is
S2n = 1 − 12 + 41 − 18 + · · · + 1
22n−2
− 1
22n−1
1
−1
22n
= − 21 −1
(2.2)
2 1
= 3
− 3·22n−1
,
by item 6, Ch. 12, §12.1. Similarly, the sum of any odd number (2n + 1) of
the first terms of the series is
S2n+1 = 1 − 12 + 41 − 18 + · · · − 1
22n−1
+ 1
22n
1
− −1
22n+1
= 1
− 2 −1
(2.3)
2 1
= 3
+ 3·22n
,
again by item 6, Ch. 12, §12.1.
Writing (2.2) and (2.3) in the forms
2 1 2 1
− S2n = , S 2n+1 − =
3 3 · 22n−1 3 3 · 22n
we have
2 1
lim − S2n = lim = 0,
n→∞ 3 n→∞ 3 · 22n−1
and
2 1
lim S2n+1 − = lim = 0.
n→∞ 3 n→∞ 3 · 22n
10
2.1. LIMIT OF A VARIABLE
Hence, by definition of the limit of a variable, it is seen that both S2n and
S2n+1 are variables approaching 23 as a limit as the number of terms in-
creases without limit.
Summing up the first two, three, four, etc., terms of (2.1), the sums are found
by ((2.2) and ((2.3) to be alternately less and greater than 23 , illustrating
the case when the variable, in this case the sum of the terms of ((2.1), is
alternately less and greater than its limit.
Sage
You can see from the Sage example that the limit does indeed seem to
approach 2/3.
In the examples shown the variable never reaches its limit. This is not by any
means always the case, for from the definition of the limit of a variable it is clear
that the essence of the definition is simply that the absolute value of the difference
between the variable and its limit shall ultimately become and remain less than
any positive number we may choose, however small.
Example 2.1.1. As an example illustrating the fact that the variable may reach
its limit, consider the following. Let a series of regular polygons be inscribed in
a circle, the number of sides increasing indefinitely. Choosing anyone of these,
construct. the circumscribed polygon whose sides touch the circle at the vertices
of the inscribed polygon. Let pn and Pn be the perimeters of the inscribed and
circumscribed polygons of n sides, and C the circumference of the circle, and
suppose the values of a variable x to be as follows:
lim x = C
x→∞
and the limit is reached by the variable, every third value of the variable being C.
11
2.2. DIVISION BY ZERO EXCLUDED
2.3 Infinitesimals
Definition 2.3.1. A variable v whose limit is zero is called an infinitesimal1 .
This is written
and means that the successive absolute values of v ultimately become and remain
less than any positive number however small. Such a variable is said to become
“arbitrarily small.”
1
Hence a constant, no matter how small it may be, is not an infinitesimal.
12
2.4. THE CONCEPT OF INFINITY (∞)
If lim v = l, then lim(v − l) = 0; that is, the difference between a variable and
its limit is an infinitesimal.
Conversely, if the difference between a variable and a constant is an infinitesi-
mal, then the variable approaches the constant as a limit.
If a variable v ultimately becomes and remains smaller than any assigned negative
number, we say “unbounded and negative ” (or “v decreases without limit”), and
write
If a variable v ultimately becomes and remains in absolute value greater than any
assigned positive number, however large, we say v, in absolute value, “increases
without limit”, or v becomes arbitrarily large2 , and write
sage: t = var(’t’)
sage: limit(1/t, t = Infinity)
2
On account of the notation used and for the sake of uniformity, the expression v → +∞ is
sometimes read “v approaches the limit plus infinity”. Similarly, v → −∞ is read “v approaches
the limit minus infinity”, and v → ∞ is read “v, in absolute value, approaches the limit infinity”.
While the above notation is convenient to use in this connection, the student must not forget that
infinity is not a limit in the sense in which we defined it in §2.2, for infinity is not a number at all.
13
2.5. LIMITING VALUE OF A FUNCTION
0
sage: limit(1/t, t = -Infinity)
0
lim x = a,
and at the same time the dependent variable f (x) takes on a series of correspond-
ing values such that
lim f (x) = A,
then as a single statement this is written
lim f (x) = A.
x→a
sage: limit((xˆ2+1)/(2+x+3*xˆ2),x=infinity)
1/3
x2 +1
This tells us that limx→∞ 2+x+3∗x2
= 13 .
14
2.6. CONTINUOUS AND DISCONTINUOUS FUNCTIONS
lim f (x) = ∞,
x→a
the function is discontinuous for x = a.
Sage
sage: t = var(’t’)
sage: P1 = plot(1/t, (t, -5, -0.1))
sage: P2 = plot(1/t, (t, 0.1, 5))
sage: show(P1+P2, aspect_ratio=1)
sage: limit(1/t,t=0,dir="plus")
+Infinity
sage: limit(1/t,t=0,dir="minus")
-Infinity
The graph in Figure 2.1 suggests that limx→0+ 1/x = +∞ and limx→0− 1/x =
−∞, as the above Sage computation confirms.
The attention of the student is now called to the following cases which occur
frequently.
CASE I. As an example illustrating a simple case of a function continuous for a
particular value of the variable, consider the function
x2 − 4
f (x) = .
x−2
15
2.6. CONTINUOUS AND DISCONTINUOUS FUNCTIONS
Figure 2.1: The limits limx→0+ 1/x = +∞, limx→0− 1/x = −∞.
sage: x = var(’x’)
sage: limit((xˆ2-4)/(x-2), x = 1)
3
16
2.6. CONTINUOUS AND DISCONTINUOUS FUNCTIONS
CASE II. The definition of a continuous function assumes that the function is
already defined for x = a. If this is not the case, however, it is sometimes possible
to assign such a value to the function for x = a that the condition of continuity
shall be satisfied. The following theorem covers these cases.
lim f (x) = B,
x→a
then f (x) will be continuous for x = a, if B is assumed as the value of f (x) for
x = a.
x2 − 4
x−2
is not defined for x = 2 (since then there would be division by zero). But for
every other value of x,
x2 − 4
= x + 2;
x+2
and
lim (x + 2) = 4
x→2
2
therefore limx→2 xx−2−4
= 4. Although the function is not defined for x = 2, if we
assign it the value 4 for x = 2, it then becomes continuous for this value.
Sage
sage: x = var(’x’)
sage: limit((xˆ2-4)/(x-2), x = 2)
4
17
2.7. CONTINUITY AND DISCONTINUITY OF FUNCTIONS
ILLUSTRATED BY THEIR GRAPHS
2.7 Continuity and discontinuity of functions illus-
trated by their graphs
1. Consider the function x2 , and let
y = x2 (2.4)
If we assume values for x and calculate the corresponding values of y, we
can plot a series of points. Drawing a smooth line free-hand through these
points: a good representation of the general behavior of the function may
be obtained. This picture or image of the function is called its graph. It is
evidently the locus of all points satisfying equation (2.4).
It is very easy to create the above plot in Sage , as the example below
shows:
Sage
sage: P = plot(xˆ2,-2,2)
sage: show(P)
18
2.7. CONTINUITY AND DISCONTINUITY OF FUNCTIONS
ILLUSTRATED BY THEIR GRAPHS
y = ex , (e = 2.718 · · · ),
we get a smooth curve as shown.
From this it is clearly seen that,
19
2.7. CONTINUITY AND DISCONTINUITY OF FUNCTIONS
ILLUSTRATED BY THEIR GRAPHS
y = loge x,
it will be seen that its graph is the reflection of the graph of y = ex about
the diagonal (the x = y line). (This is because they are “inverses” of each
other: loge (ex ) = x and eloge x = x.)
Here we see the following facts pictured:
20
2.7. CONTINUITY AND DISCONTINUITY OF FUNCTIONS
ILLUSTRATED BY THEIR GRAPHS
1
y=
x
If the graph of this function be plotted, it will be seen that as x approaches
the value zero from the left (negatively), the points of the curve ultimately
drop down an infinitely great distance, and as x approaches the value zero
from the right, the curve extends upward infinitely far.
The curve then does not form a continuous branch from one side to the other
of the axis of y, showing graphically that the function is discontinuous for
x = 0, but continuous for all other values of x.
2x
y=
1 − x2
21
2.7. CONTINUITY AND DISCONTINUITY OF FUNCTIONS
ILLUSTRATED BY THEIR GRAPHS
2x
it is seen that the function 1−x 2 is discontinuous for the two values x = ±1,
22
2.7. CONTINUITY AND DISCONTINUITY OF FUNCTIONS
ILLUSTRATED BY THEIR GRAPHS
7. The graph of
y = tan x
shows that the function tan x is discontinuous for infinitely many values
of the independent variable x, namely, x = nπ2
, where n denotes any odd
positive or negative integer.
8. The function arctan x has infinitely many values for a given value of x, the
graph of equation
y = arctan x
consisting of infinitely many branches.
If, however, we confine ourselves to any single branch, the function is con-
tinuous. For instance, if we say that y shall be the smallest angle (in radians)
whose tangent is x, that is, y shall take on only values between − π2 and π2 ,
then we are limited to the branch passing through the origin, and the condi-
tion for continuity is satisfied.
23
2.7. CONTINUITY AND DISCONTINUITY OF FUNCTIONS
ILLUSTRATED BY THEIR GRAPHS
1
y = arctan ,
x
we see that as x approaches zero from the left, y approaches the limit − π2 ,
and as x approaches zero from the right, y approaches the limit + π2 . Hence
the function is discontinuous when x = 0. Its value for x = 0 can be
assigned at pleasure.
24
2.7. CONTINUITY AND DISCONTINUITY OF FUNCTIONS
ILLUSTRATED BY THEIR GRAPHS
−1, x < −π/2,
f (x) = sin(x), π/2 ≤ x ≤ π/2,
1, π/2 < x.
sage: f = piecewise([[(-5,-2),-1],[(-2,3),3],[(3,5),2]])
25
2.8. FUNDAMENTAL THEOREMS ON LIMITS
sage: f
Piecewise defined function with 3 parts,
[[(-5, -2), -1], [(-2, 3), 3], [(3, 5), 2]]
Functions exist which are discontinuous for every value of the independent vari-
able within a certain range. In the ordinary applications of the Calculus, however,
we deal with functions which are discontinuous (if at all) only for certain iso-
lated values of the independent variable; such functions are therefore in general
continuous, and are the only ones considered in this book.
26
2.8. FUNDAMENTAL THEOREMS ON LIMITS
Theorem 2.8.1. The limit of the algebraic sum of a finite number of variables is
equal to the algebraic sum of the limits of the several variables.
In particular,
lim [f (x) + g(x)] = lim f (x) + lim g(x).
x→a x→a x→a
Theorem 2.8.2. The limit of the product of a finite number of variables is equal
to the product of the limits of the several variables.
In particular,
lim [f (x) · g(x)] = lim f (x) · lim g(x).
x→a x→a x→a
sage: t = var(’t’)
sage: f = exp
sage: g = sin
sage: a = var(’a’)
sage: L1 = limit(f(t)+g(t), t = a)
27
2.8. FUNDAMENTAL THEOREMS ON LIMITS
sage: L2 = limit(f(t),t=a)+lim(g(t), t = a)
sage: bool(L1 == L2)
True
sage: L1; L2
sin(a) + eˆa
sin(a) + eˆa
sage: L1 = limit(f(t)*g(t), t = a)
sage: L2 = limit(f(t),t=a)*lim(g(t), t = a)
sage: bool(L1 == L2)
True
sage: L1; L2
eˆa*sin(a)
eˆa*sin(a)
Theorem 2.8.3. The limit of the quotient of two variables is equal to the quotient
of the limits of the separate variables, provided the limit of the denominator is not
zero.
28
2.8. FUNDAMENTAL THEOREMS ON LIMITS
In particular,
limx→a f (x)
lim [f (x)/g(x)] = ,
x→a limx→a g(x)
provided limx→a g(x) 6= 0.
29
2.8. FUNDAMENTAL THEOREMS ON LIMITS
positive quantity (as ǫ) by making the absolute value of the infinitesimal less
than |c|ǫ .
3. If v is a variable which approaches a limit L different from zero, then the
quotient of an infinitesimal by v is also an infinitesimal. For if v → L,
and k is any number in absolute value less than L, then, by definition of a
limit, v will ultimately become and remain in absolute value greater than
k. Hence the quotient vǫ , where ǫ is an infinitesimal, will ultimately become
and remain in absolute value less than kǫ , and is therefore, by the previous
item, an infinitesimal.
4. The product of any finite number of infinitesimals is an infinitesimal. For
the absolute value of the product may be made less than any small positive
quantity that can be assigned. If the given product contains n factors, then
since each infinitesimal may be assumed less than the n − th root of ǫ, the
product can be made less than ǫ itself.
v 1 − L1 = ǫ1 , v 2 − L2 = ǫ2 , v 3 − L3 = ǫ3 ,
where ǫ1 , ǫ2 , ǫ3 , . . . are infinitesimals (i.e. variables having zero for a limit).
Adding
lim(v1 + v2 + v3 + . . . ) = L1 + L2 + L3 + . . . ,
or,
30
2.9. SPECIAL LIMITING VALUES
and v2 = L2 + ǫ2 . Multiplying,
v1 v2 = (L1 + ǫ1 )(L2 + ǫ2 )
= L1 L2 + L1 ǫ2 + L2 ǫ1 + ǫ1 ǫ2
or,
v 1 v 2 − L1 L2 = L1 ǫ2 + L2 ǫ1 + ǫ1 ǫ2 .
Since the right-hand member is an infinitesimal by items (1) and (2) above, (§2.8),
we have, as before,
v 1 L1 L2 ǫ1 − L1 ǫ2
− = .
v 2 L2 L2 (L2 + ǫ2 )
Here again the right-hand member is an infinitesimal by item (3) above, (§2.8), if
L2 6= 0; hence
v1 L1 lim v1
lim = = ,
v2 L2 lim v2
which was to be proved.
It is evident that if any of the variables be replaced by constants, our reasoning
still holds, and the above theorems are true.
31
SIN X
2.10. SHOW THAT LIMX→0 X
=1
Eqn number Written in the form of limits Abbreviated form often used
(1) limx→0 xc = ∞ c
0
=∞
x ∞
(3) limx→∞ c
=∞ c
=∞
c c
(4) limx→∞ x
=0 ∞
=0
The expressions in the last column are not to be considered as expressing nu-
merical equalities (∞ not being a number); they are merely symbolical equations
implying the relations indicated in the first column, and should be so understood.
32
SIN X
2.10. SHOW THAT LIMX→0 X
=1
Indeed, if we refer to the table in §12.4, it will be seen that for all angles less
than 10o the angle in radians and the sine of that angle are equal to three deci-
mal places. To compute the table of values above using Sage , simply use the
following commands.
Sage
M P M ′ < M AM ′ < M T M ′ ;
or 2 sin x < 2x < 2 tan x. Dividing through by 2 sin x, we get
x 1
1< < .
sin x cos x
If now x approaches the limit zero,
x
lim
x→0 sin x
must lie between the constant 1 and limx→0 cos1 x , which is also 1. Therefore
limx→0 sinx x = 1, or, limx→0 sinx x = 1 Theorem 2.8.3.
It is interesting to note the behavior of this function from its graph, the locus of
equation
sin x
y=
x
33
2.11. THE NUMBER E
Although the function is not defined for x = 0, yet it is not discontinuous when
x = 0 if we define sin0 0 = 1 (see Case II in §2.6).
Finally, we show how to use the Sage command limit to compute the limit
above.
Sage
sage: limit(sin(x)/x,x=0)
1
34
2.11. THE NUMBER E
sin(x)
Figure 2.14: The function x
.
To prove rigorously that such a limit e exists, is beyond the scope of this book.
For the present we shall content ourselves by plotting the locus of the equation
1
y = (1 + x) x
1
˙ the function (1 + x) x (= y) takes on values in
and show graphically that, as x=0,
the near neighborhood of 2.718 . . . , and therefore e = 2.718 . . . , approximately.
x -.1 -.001 .001 .01 .1 1 5 10
y = (1 + x)1/x 2.8680 2.7195 2.7169 2.7048 2.5937 2.0000 1.4310 1.0096
35
∞
2.12. EXPRESSIONS ASSUMING THE FORM ∞
log(1 + x) 1
lim = lim log(1 + x) x = log e = ln e = 1.
x
∞
2.12 Expressions assuming the form ∞
As ∞ is not a number, the expression ∞ ÷ ∞ is indeterminate. To evaluate
a fraction assuming this form, the numerator and denominator being algebraic
functions, we shall find useful the following
RULE. Divide both numerator and denominator by the highest power of the vari-
able occurring in either. Then substitute the value of the variable.
2x3 − 3x2 + 4 ∞
lim 2 3
=
x→∞ 5x − x − 7x ∞
which is indeterminate. Hence, following the above rule, we divide both numera-
tor and denominator by x3 , Then
36
2.13. EXERCISES
2.13 Exercises
Prove the following:
1. limx→∞ x+1
x
= 1.
Solution:
x+1
= limx→∞ 1 + x1
limx→∞ x
1
= limx→∞ (1) + lim x → ∞ x
= 1 + 0 = 1,
by Theorem 2.8.1
2
2. limx→∞ x5−3x
+2x
2 = − 31 .
Solution:
x2 + 2x 1 + x2
lim = lim 5
x→∞ 5 − 3x2 x→∞
x2
−3
[ Dividing both numerator and denominator by x2 .]
limx→∞ 1 + x2
=
limx→∞ x52 − 3
by Theorem 2.8.3
by Theorem 2.8.1.
x2 −2x+5
3. limx→1 x2 +7
= 21 .
3x3 +6x2
4. limx→0 2x4 −15x2
= − 25 .
37
2.13. EXERCISES
x2 +1
5. limx→−2 x+3
= 5.
7. limx→∞ (ax2 + bx + c) = ∞.
(x−k)2 −2kx3
8. limk→0 x(x+k)
= 1.
x2 +1
9. limx→∞ 3x2 +2x−1
= 13 .
3+2x
10. limx→∞ x2 −5x
= 0.
cos(α−a)
11. limα→ π2 cos(2α−a)
= − tan α.
ax2 +bx+c
12. limx→∞ dx2 +ex+f
= ad .
z z
13. limz→0 a2 (e a + e− a ) = a.
2x3 +3x2
14. limx→0 x3
= ∞.
5x2 −2x
15. limx→∞ x
= ∞.
y
16. limy→∞ y+1
= 1.
n(n+1)
17. limn→∞ (n+2)(n+3)
= 1.
s3 −1
18. lims→1 s−1
= 3.
(x+h)n −xn
19. limh→0 h
= nxn−1 .
4x2 −x
21. limx→∞ 4−3x2
= − 34 .
1−cos θ
22. limθ→0 θ2
= 21 .
Here is an example of the above limit using Sage :
38
2.13. EXERCISES
Sage
39
2.13. EXERCISES
40
CHAPTER
THREE
Differentiation
3.1 Introduction
In this chapter, we investigate the ways in which a function can change in value
as the independent variable changes. For instance, if f (t) is a function of t (time),
we want to quantify what it means to talk about the “rate of change” of f (t).
A fundamental problem of differential calculus is to establish a mathematically
precise measure of this change in the function.
It was while investigating problems of this sort that Newton1 was led to the
discovery of the fundamental principles of calculus. Today, Gottfried Leibniz
(1646-1716) is generally credited with independently discovering calculus around
the same time2 .
1
Sir Isaac Newton (1642-1727), an Englishman, was a man of the most extraordinary genius.
He developed the science of calculus under the name of “Fluxions.” Although Newton had discov-
ered and made use of the new theory as early as 1670, his first published work in which it occurs is
dated 1687, having the title Philosophiae Naturalis Principia Mathematica. This was Newton’s
principal work. Laplace said of it, “It will always remain preeminent above all other productions
of the human mind.” See frontispiece.
2
However, see http://en.wikipedia.org/wiki/Newton v. Leibniz calculus controversy
and the footnote in §3.9 below.
41
3.2. INCREMENTS
3.2 Increments
The increment of a variable in changing from one numerical value to another is
the difference found by subtracting the first value from the second. An increment
of x is denoted by the symbol ∆x, read “delta x” and typically to be regarded as “a
small change in x.” (The student is warned against reading this symbol as “delta
times x.”) Evidently this increment may be either positive or negative. according
as the variable in changing is increasing or decreasing in value. Similarly,
• ∆y denotes an increment of y,
• ∆φ denotes an increment of φ,
y = x2 .
Assuming x = 10 for the initial value of x fixes y = 100 as the initial value of y.
Suppose x increases to x = 12, that is, ∆x = 2; then y increases to y = 144, and
∆y = 44. Suppose x decreases to x = 9, that is, ∆x = −1; then y increases to
y = 81, and ∆y = −19.
Sage
sage: x = var("x")
sage: f(x) = xˆ2; y = f(x)
sage: Deltax = 2; x0 = 10
sage: Deltay = f(x0 + Deltax) - f(x0)
sage: Deltay
44
42
3.3. COMPARISON OF INCREMENTS
y = x2 .
Assuming a fixed initial value for x, let x take on an increment ∆x. Then y will
take on a corresponding increment ∆y, and we have
y + ∆y = (x + ∆x)2 ,
or,
y + ∆y = x2 + 2x · ∆x + (∆x)2 .
Subtracting y = x2 from this,
∆y = 2x · ∆x + (∆x)2 , (3.1)
we get the increment ∆y in terms of x and ∆x. To find the ratio of the increments,
divide (3.1) by ∆x, giving
∆y
= 2x + ∆x.
∆x
If the initial value of x is 4, it is evident that
∆y
lim = 8.
∆x→0 ∆x
Let us carefully note the behavior of the ratio of the increments of x and y as the
increment of x diminishes.
43
3.4. DERIVATIVE OF A FUNCTION OF ONE VARIABLE
Definition 3.4.1. The derivative4 of a function is the limit of the ratio of the incre-
ment of the function to the increment of the independent variable, when the latter
increment varies and approaches the limit zero.
When the limit of this ratio exists, the function is said to be differentiable, or to
possess a derivative.
The above definition may be given in a more compact form symbolically as
follows: Given the function
y = f (x), (3.2)
and consider x to have a fixed value. Let x take on an increment ∆ x; then the
function y takes on an increment ∆ y, the new value of the function being
y + ∆ y = f (x + ∆ x). (3.3)
To find the increment of the function, subtract (3.2) from (3.3), giving
∆ y = f (x + ∆ x) − f (x).
Dividing by the increment of the variable, ∆ x, we get
∆y f (x + ∆x) − f (x)
= . (3.4)
∆x ∆x
3
The student should guard against the common error of concluding that because the numerator
and denominator of a fraction are each approaching zero as a limit, the limit of the value of the
fraction (or ratio) is zero. The limit of the ratio may take on any numerical value. In the above
example the limit is 8.
4
Also called the differential coefficient or the derived function.
44
3.5. SYMBOLS FOR DERIVATIVES
The limit of this ratio when ∆ x approaches the limit zero is, from our definition,
dy
the derivative and is denoted by the symbol dx . Therefore
dy f (x + ∆x) − f (x)
= lim .
dx ∆x→0 ∆x
defines the derivative of y [or f (x)] with respect to x. From (3.3), we also get
dy ∆y
= lim
dx ∆x→0 ∆x
The process of finding the derivative of a function is called differentiation.
It should be carefully noted that the derivative is the limit of the ratio, not the ra-
tio of the limits. The latter ratio would assume the form 00 , which is indeterminate
(§2.2).
∆y
∆x
is really a fraction. The symbol
dy
,
dx
however, is to be regarded not as a fraction but as the limiting value of a fraction.
In many cases it will be seen that this symbol does possess fractional properties,
and later on we shall show how meanings may be attached to dy and dx, but for
dy
the present the symbol dx is to be considered as a whole.
Since the derivative of a function of x is in general also a function of x, the
symbol f ′ (x) is also used to denote the derivative of f (x).
dy
Hence, if y = f (x), we may write dx = f ′ (x), which is read “the derivative of
y with respect to x equals f prime of x.” The symbol
d
dx
when considered by itself is called the differentiating operator, and indicates that
any function written after it is to be differentiated with respect to x. Thus
45
3.6. DIFFERENTIABLE FUNCTIONS
dy d
• dx
or dx
y indicates the derivative of y with respect to x;
d
• dx
f (x) indicates the derivative of f (x) with respect to x;
d
• dx
(2x2 + 5) indicates the derivative of 2x2 + 5 with respect to x;
dy
• y ′ is an abbreviated form of dx
.
d
The symbol Dx is used by some writers instead of dx
. If then
y = f (x),
• SECOND STEP. Subtract the given value of the function from the new value
in order to find ∆ y (the increment of the function).
5
Also called the Four-step Rule.
46
3.7. GENERAL RULE FOR DIFFERENTIATION
• FOURTH STEP. Find the limit of this quotient, when ∆ x (the increment of
the independent variable) varies and approaches the limit zero. This is the
derivative required.
The student should become thoroughly familiar with this rule by applying the
process to a large number of examples. Three such examples will now be worked
out in detail.
y = 3x2 + 5,
First step.
d
(3x2 + 5) = 6x.
dx
Here’s how to use Sage to verify this (for simplicity, we set h = ∆x):
Sage
sage: x = var("x")
sage: h = var("h")
sage: f(x) = 3*xˆ2 + 5
sage: Deltay = f(x+h)-f(x)
sage: (Deltay/h).expand()
6*x + 3*h
47
3.7. GENERAL RULE FOR DIFFERENTIATION
sage: limit((f(x+h)-f(x))/h,h=0)
6*x
sage: diff(f(x),x)
6*x
Second step.
∆y
Third step. ∆x = 3x2 + 3x · ∆x + (∆x)2 − 2.
dy
Fourth step. dx = 3x2 − 2. Or,
d 3
(x − 2x + 7) = 3x2 − 2.
dx
Example 3.7.3. Differentiate xc2 .
Solution. Place y = xc2 .
c
First step. y + ∆y = (x+∆x) 2.
Second step.
c
y + ∆y = (x+∆x) 2
y = xc2
c c −c·∆x(2x+∆x)
∆y = (x+∆x) 2 − x2
= x2 (x+∆x)2
.
∆y
Third step. ∆x
= −c · x22x+∆x
(x+∆x)2
.
dy 2x
step. dx = −c · x2 (x)2 = − x2c3 . d c −2c
Fourth Or, dx x2
= x3
.
48
3.7. GENERAL RULE FOR DIFFERENTIATION
(The polynomial −2x3 + 3x2 smoothly connects the line y = 0 for x < 0 to the
line y = 1 for x > 1. Such “cubic splines” are used in industry to design roads,
buildings, car bodies, ship hulls, and so on.)
The function is given in parts, so the problem must be solved case-by-case. First,
assume 0 < x < 1.
0 < x < 1: In this case, the derivative can be computed ass in the examples
above to show
f (0 + h) − f (0)
f ′ (0) = lim = 0.
h→0 h
Is f ′ (x) continuous at x = 0? Note
lim f ′ (x) = 0
x→0−
and
Therefore, the slope of the graph y = f (x) is zero as you approach 0 form the left
or from the right. This tells us f ′ (x) is continuously differentiable at both ends.
x = 1: This is similar to the case x = 0 and left to the reader.
49
3.8. EXERCISES
3.8 Exercises
Use the General Rule, §3.7 in differentiating the following functions:
1. y = 3x2
dy
Ans: dx
= 6x
2. y = x2 + 2
dy
Ans: dx
= 2x
3. y = 5 − 4x
dy
Ans: dx
= −4
4. s = 2t2 − 4
ds
Ans: dt
= 4t
1
5. y = x
dy
Ans: dx = − x12
x+2
6. y = x
dy
Ans: dx
= − −2
x2
7. y = x3
dy
Ans: dx
= 3x2
8. y = 2x2 − 3
dy
Ans: dx
= 4x
9. y = 1 − 2x3
dy
Ans: dx
= −6x2
10. ρ = aθ2
dρ
Ans: dθ
= 2aθ
2
11. y = x2
dy
Ans: dx
= − x43
50
3.8. EXERCISES
3
12. y = x2 −1
dy
Ans: dx
= − (x26x
−1)2
sage: y = 3/(xˆ2-1)
sage: diff(y,x)
-6*x/(xˆ4 - 2*xˆ2 + 1)
13. y = 7x2 + x
15. r = 8t + 3t2
3
16. y = x2
a
17. s = − 2t+3
18. y = bx3 − cx
20. y = 43 x2 − 12 x
x2 −5
21. y = x
θ2
22. ρ = 1+θ
23. y = 21 x2 + 2x
24. z = 4x − 3x2
25. ρ = 3θ + θ2
ax+b
26. y = x2
x3 +2
27. z = x
51
3.9. APPLICATIONS OF THE DERIVATIVE TO GEOMETRY
28. y = x2 − 3x + 6
Ans: y ′ = 2x − 3
29. s = 2t2 + 5t − 8
Ans: s′ = 4t + 5 Here’s how to use Sage to verify this (for simplicity, we
set h = ∆t):
Sage
sage: h = var("h")
sage: t = var("t")
sage: s(t) = 2*tˆ2 + 5*t - 8
sage: Deltas = s(t+h)-s(t)
sage: (Deltas/h).expand()
4*t + 2*h + 5
sage: limit((s(t+h)-s(t))/h,h=0)
4*t + 5
sage: diff(s(t),t)
4*t + 5
30. ρ = 5θ3 − 2θ + 6
Ans: ρ′ = 15θ2 − 2
31. y = ax2 + bx + c
Ans: y ′ = 2ax + b
y = f (x) (3.5)
be the equation of a curve AB.
Now differentiate (3.5) by the General Rule and interpret each step geometri-
cally.
52
3.9. APPLICATIONS OF THE DERIVATIVE TO GEOMETRY
• THIRD STEP.
∆y
∆x
= f (x+∆x)−f
∆x
(x)
=MRQ
N
= RQ
PR
= tan RP Q = tan φ
= slope of secant line P Q.
• FOURTH STEP.
lim∆x→0 ∆y
∆x
= lim∆x→0 f (x+∆x)−f
∆x
(x)
dy
= dx = value of the derivative at P.
53
3.9. APPLICATIONS OF THE DERIVATIVE TO GEOMETRY
But when we let ∆x → 0, the point Q will move along the curve and approach
nearer and nearer to P , the secant will turn about P and approach the tangent as a
limiting position, and we have also
∆y
lim∆x→0 ∆x
= lim∆x→0 tan φ = tan τ
= slope of the tangent at P.
dy
Hence , dx
= slope of the tangent line P T . Therefore
Theorem 3.9.1. The value of the derivative at any point of a curve is equal to the
slope of the line drawn tangent to the curve at that point.
It was this tangent problem that led Leibnitz6 to the discovery of the Differential
Calculus.
Example 3.9.1. Find the slopes of the tangents to the parabola y = x2 at the
vertex, and at the point where x = 21 .
Solution. Differentiating by General Rule, (§3.7), we get
dy
y′ = = 2x = slope of tangent line at any point on curve.
dx
To find slope of tangent at vertex, substitute x = 0 in y ′ = 2x, giving
dy
= 0.
dx
Therefore the tangent at vertex has the slope zero; that is, it is parallel to the axis
of x and in this case coincides with it.
To find slope of tangent at the point P , where x = 21 , substitute in y ′ = 2x,
giving
dy
= 1;
dx
that is, the tangent at the point P makes an angle of 45o with the axis of x.
6
Gottfried Wilhelm Leibnitz (1646-1716) was a native of Leipzig. His remarkable abilities
were shown by original investigations in several branches of learning. He was first to publish his
discoveries in Calculus in a short essay appearing in the periodical Acta Eruditorum at Leipzig
in 1684. It is known, however, that manuscripts on Fluxions written by Newton were already in
existence, and from these some claim Leibnitz got the new ideas. The decision of modern times
seems to be that both Newton and Leibnitz invented the Calculus independently of each other. The
notation used today was introduced by Leibnitz. See frontispiece.
54
3.10. EXERCISES
3.10 Exercises
Find by differentiation the slopes of the tangents to the following curves at the
points indicated. Verify each result by drawing the curve and its tangent.
55
3.10. EXERCISES
10. Find the slope of the tangent to the curve y = 2x3 − 6x + 5, (a) at the point
where x = 1; (b) at the point where x = 0.
(Ans. (a) 0; (b) −6.)
11. (a) Find the slopes of the tangents to the two curves y = 3x2 − 1 and
y = 2x2 + 3 at their points of intersection. (b) At what angle do they
intersect?
4
(Ans. (a) ±12, ±8; (b) arctan 97 .)
Here’s how to use Sage to verify these:
Sage
56
3.10. EXERCISES
12. The curves on a railway track are often made parabolic in form. Suppose
that a track has the form of the parabola y = x2 (see Figure 3.2 in §3.9),
the directions of the positive x-axis and positive y-axis being east and north
respectively, and the unit of measurement 1 mile. If the train is going east
when passing through the origin, in what direction will it be going
13. A street-car track has the form of the cubic y = x3 . Assume the same
directions and unit as in the last example. If a car is going west when passing
through the origin, in what direction will it be going
57
3.10. EXERCISES
58
CHAPTER
FOUR
dc
=0 (4.1)
dx
dx
=1 (4.2)
dx
59
4.1. IMPORTANCE OF GENERAL RULE
d du dv dw
(u + v − w) = + − (4.3)
dx dx dx dx
d dv
(cv) = c (4.4)
dx dx
Product rule:
d dv du
(uv) = u + v (4.5)
dx dx dx
Power rule:
d n dv
(v ) = nv n−1 (4.6)
dx dx
d n
(x ) = nxn−1 (4.7)
dx
Quotient rule:
d u v du
dx
dv
− u dx
= (4.8)
dx v v2
du
d u
= dx (4.9)
dx c c
dv
d dx
(loga v) = loga e · (4.10)
dx v
dv
d dx
(ln v) = (4.11)
dx v
Note: Often loge , e = 2.71828... the base of the natural log, is denoted ln (or
sometimes just log).
d v dv
(a ) = av ln a · (4.12)
dx dx
d v dv
(e ) = ev (4.13)
dx dx
60
4.1. IMPORTANCE OF GENERAL RULE
d v du dv
(u ) = vuv−1 + log u · uv (4.14)
dx dx dx
d dv
(sin v) = cos v (4.15)
dx dx
d dv
(cos v) = − sin v (4.16)
dx dx
d dv
(cos v) = − sin v (4.17)
dx dx
d dv
(cot x) = − csc2 v (4.18)
dx dx
d dv
(sec v) = sec v tan v (4.19)
dx dx
d dv
(csc v) = − csc v cot v (4.20)
dx dx
dv
d
(arcsin v) = √ dx (4.21)
dx 1 − v2
dv
d
(arccos v) = − √ dx (4.22)
dx 1 − v2
dv
d dx
(arctan v) = (4.23)
dx 1 + v2
dv
d
(arccot v) = − dx 2 (4.24)
dx 1+v
Note: Sometimes arcsin, arccos, and so on, are denoted asin, acos, and so on.
dv
d
(arcsec v) = √ dx (4.25)
dx v v2 − 1
dv
d dx
(arccsc v) = − √ (4.26)
dx v v2 − 1
61
4.1. IMPORTANCE OF GENERAL RULE
Chain rule:
dy dy dv
= · , (4.27)
dx dv dx
where y is a function of v, v a function of x.
dy 1
= dx , (4.28)
dx dy
where y is a function of x.
Here’s how to see some of these using Sage :
Sage
sage: t = var("t")
sage: diff(acos(t),t)
-1/sqrt(1 - tˆ2)
sage: v = var("v")
sage: diff(acsc(v),v)
-1/(sqrt(1 - 1/vˆ2)*vˆ2)
sage: x = var("x")
sage: u = function("u",x)
sage: v = function("v",x)
sage: diff(u(x)*v(x),x)
u(x)*diff(v(x), x, 1) + v(x)*diff(u(x), x, 1)
sage: x = var("x")
sage: u = function(’u’, x)
sage: v = function(’v’, x)
sage: diff(u/v,x)
diff(u(x), x, 1)/v(x) - u(x)*diff(v(x), x, 1)/v(x)ˆ2
sage: diff(sin(v),x)
cos(v(x))*diff(v(x), x, 1)
sage: diff(arcsin(v),x)
diff(v(x), x, 1)/sqrt(1 - v(x)ˆ2)
62
4.2. DIFFERENTIATION OF A CONSTANT
dv
d
The last Sage computation verifies that dx
(arcsin v) = √ dx .
1−v 2
y=c
denote a constant function. As x takes on an increment ∆x, the function does not
change in value, that is, ∆y = 0, and so
∆y
= 0.
∆x
But
∆y dy
lim = = 0.
∆x→0 ∆x dx
dc
Therefore, dx
= 0 (equation (4.1) above). The derivative of a constant is zero.
• SECOND STEP. ∆y = ∆x
∆y
• THIRD STEP. ∆x
= 1.
dy
• FOURTH STEP. dx
= 1.
dy
Therefore, dx = 1 (equation (4.2) above). The derivative of a variable with respect
to itself is unity.
63
4.4. DIFFERENTIATION OF A SUM
∆y ∆u ∆v ∆w
• THIRD STEP. ∆x
= ∆x
+ ∆x
− ∆x
.
dy du dv dw
• FOURTH STEP. dx
= dx
+ dx
− dx
. [Applying Theorem 2.8.1]
d
Therefore, dx (u + v − w) = du dx
dv
+ dx − dw
dx
(equation (4.3) above). Similarly, for
the algebraic sum of any finite number of functions.
The derivative of the algebraic sum of a finite number of functions is equal to
the same algebraic sum of their derivatives.
∆y ∆v
• THIRD STEP. ∆x
= c ∆x .
dy dv
• FOURTH STEP. dx
= c dx . [Applying Theorem 2.8.2]
d dv
Therefore, dx (cv) = c dx (equation (4.4) above).
The derivative of the product of a constant and a function is equal to the product
of the constant and the derivative of the function.
64
4.6. DIFFERENTIATION OF THE PRODUCT OF TWO FUNCTIONS
y + ∆y = uv + u · ∆v + v · ∆u + ∆u · ∆v.
sage: t = var("t")
sage: f = cos(t)
sage: g = exp(2*t)
sage: diff(f*g,t)
2*eˆ(2*t)*cos(t) - eˆ(2*t)*sin(t)
sage: diff(f,t)*g+f*diff(g,t)
2*eˆ(2*t)*cos(t) - eˆ(2*t)*sin(t)
This simply computes dtd (e2t cos(t) in two ways (one: directly, the second: using
the product rule) and checks that they are the same.
65
4.8. DIFFERENTIATION OF A FUNCTION WITH A CONSTANT
EXPONENT
If then we have the product of n functions y = v1 v2 · · · vn , we may write
d dv1 d
(v v ···vn )
dx 1 2
(v v ···vn )
dx 2 3
v1 v2 ···vn
= dx
v1
+ v2 v3 ···vn
dv1 dv2 d
(v v ···vn )
dx 3 4
= dx
v1
+ dx
v2
+ v3 v4 ···vn
dv1 dv2 dv3 dvn
d
= dx
v1
+ dx
v2
+ + · · · + vdxn dx
dx
v3
(v1 v2 · · · vn )
dv1 dv2
= (v2 v3 · · · vn ) dx + (v1 v3 · · · vn ) dx + · · · + (v1 v2 · · · vn−1 ) dvn
dx
.
The derivative of the product of a finite number of functions is equal to the sum of
all the products that can be formed by multiplying the derivative of each function
by all the other functions.
sage: t = var(’t’)
sage: f = function(’f’, t)
sage: g = function(’g’, t)
sage: (f(t)*g(t)).diff(t) # product rule for 2 functions
f(t)*diff(g(t), t, 1) + g(t)*diff(f(t), t, 1)
sage: h = function(’h’, t)
sage: (f(t)*g(t)*h(t)).diff(t) # product rule for 3 functions
f(t)*g(t)*diff(h(t), t, 1) + f(t)*h(t)*diff(g(t), t, 1)
66
4.9. DIFFERENTIATION OF A QUOTIENT
+ g(t)*h(t)*diff(f(t), t, 1)
u+∆u
• FIRST STEP. y + ∆y = v+∆v
.
u+∆u u v·∆u−u·∆v
• SECOND STEP. ∆y = v∆v
− v
= v(v+∆v)
.
∆y v ∆u ∆v
−u ∆x
• THIRD STEP. ∆x
= ∆x
v(v+∆v)
.
dy v du dv
−u dx
• FOURTH STEP. dx
= dx
v 2 . [Applying Theorems 2.8.2 and 2.8.3]
d
du dv
u v dx −u dx
Therefore, dx v v2
(equation (4.8) above).
The derivative of a fraction is equal to the denominator times the derivative of
the numerator, minus the numerator times the derivative of the denominator, all
divided by the square of the denominator.
Sage
sage: t = var(’t’)
sage: f = function(’f’, t)
sage: g = function(’g’, t)
sage: (f(t)/g(t)).diff(t)
diff(f(t), t, 1)/g(t) - f(t)*diff(g(t), t, 1)/g(t)ˆ2
sage: (1/f(t)).diff(t)
-diff(f(t), t, 1)/f(t)ˆ2
du
d u
When the denominator is constant, set v = c in (4.8), giving (4.9) dx c
= dx
c
.
dv dc
[Since dx = dx = 0.] We may also get (4.9) from (4.4) as follows:
du
d u 1 du
= = dx .
dx c c dx c
67
4.10. EXAMPLES
4.10 Examples
Differentiate the following1 :
1. y = x3 .
dy d
Solution. dx
= dx
(x3 ) = 3x2 . (By (4.7), n = 3.)
2. y = ax4 − bx2 .
Solution.
dy d
dx
= dx (ax4 − bx2 )
d d
= dx (ax4 ) − dx (bx2 ) by (4.3)
d d
= a dx (x ) − b dx (x2 ) by (4.4)
4
4
3. y = x 3 + 5.
Solution.
dy d 4 d
dx
= dx (x 3 ) + dx (5) by (4.3)
4 3 1
= 3 x by (4.7) and (4.1)
3x3 7x
√
7
4. y = √
5 2
x
− √
3 4
x
+ 8 x3
Solution.
13
1
3
dy d d d
dx
= dx
3x 5 + dx 7x− 3 + dx
8x 7 by (4.3)
39 85 4 4
= 5
x + 73 x− 3 + 24
7
x− 7 by (4.4) and (4.7).
1
To the student: Though the answers are included below for all of the problems, it may be that
your computation differs from the solution given. You should then try to show algebraically that
your form is that same as that given.
68
4.10. EXAMPLES
5. y = (x2 − 3)5 .
Solution.
dy d
dx
= 5(x2 − 3)4 dx (x2 − 3) by (4.6), v = x2 − 3 and n = 5
2 4 2 4
5(x − 3) · 2x = 10x(x − 3) .
We might have expanded this function by the Binomial Theorem (see §12.1)
and then applied (4.3), etc., but the above process is much simpler.
√
6. y = a2 − x2 .
Solution.
dy d 1
dx
= dx (a2 − x2 ) 2
1 d
= 12 (a2 − x2 )− 2 dx (a2 − x2 ), by (4.6) (v = a2 − x2 , and n = 5)
1
= 12 (a2 − x2 )− 2 (−2x) = − √a2x−x2 .
√
7. y = (3x2 + 2) 1 + 5x2 .
Solution.
dy d 1 d 1
dx
= (3x2 + 2) dx (1 + 5x2 ) 2 + (1 + 5x2 ) 2 dx (3x2 + 2)
1
(by (4.5) , u = 3x2 + 2, and v = (1 + 5x2 ) 2 )
1 d 1
= (3x2 + 2) 21 (1 + 5x2 )− 2 dx (1 + 5x2 ) + (1 + 5x2 ) 2 6x by (4.6), etc.
1 1
= (3x2 + 2)(1 + 5x2 )− 2 5x + 6x(1 + 5x2 ) 2
2 +2) √
= 5x(3x
√
1+5x2
+ 6x 1 + 5x2
3
= 45x
√ +16x .
1+5x2
2 2
8. y = √a +x .
a2 −x2
Solution. By (4.8), we have
1 d d 1
dy (a2 −x2 ) 2 (a2 −x2 )−(a2 +x2 ) dx (a2 −x2 ) 2
dx
= dx
a2 −x2
2x(a2 −x2 )+x(a2 +x2 )
= 3
(a2 −x2 )− 2
1
(multiplying both numerator and denominator by (a2 − x2 ) 2 )
32
x−x3
= x
3 .
(a2 −x2 ) 2
69
4.10. EXAMPLES
dy
9. 5x4 + 3x2 − 6. (Ans. dx
= 20x3 + 6x)
dy
10. y = 3cx2 − 8dx + 5e. (Ans. dx
= 6cx − 8d)
dy
11. y = xa+b . (Ans. dx
= (a + b)xa+b−1 )
dy
12. y = xn + nx + n. (Ans. dx
= nxn−1 + n)
a+bx+cx2 a
30. y = x
. (Ans. y ′ = c − x2
)
70
4.10. EXAMPLES
(x−1)3 5 2 1 4
31. y = 1 . (Ans. y ′ = 38 x 3 − 5x 3 + 2x− 3 + 13 x− 3 )
x3
38. y = 1
xn
. (Ans. xy = − xn+1
n
)
√ dy a4 +a 2 2 4
39. y = x(a2 + x2 ) a2 − x2 . (Ans. = √ x −4x )
dx a2 −x2
d d 1 d 2 2
(a) dx
(2x3 − 4x + 6) (e) dt
(b + at2 ) 2 (i) dx
(x 3 − a 3 )
d d 3 d 9
(b) dt
(at7 + bt5 − 9) (f ) dx
(x2 − a2 ) 2 (j) dt p
(5 + 2t) 2
d 3 1 d 2 d √
(c) dθ
(3θ 2 − 2θ 2 + 6θ) (g) dφ√
(4 − φ 5 ) (k) ds
a+b s
d 5 d d 1 5
(d) dx
(2x3 + x) 3 (h) dt
1 + 9t2 (l) dx
(2x 3 + 2x 3 )
t3 ds 3t2 +t3
43. s = (1+t)2
. (Ans. dt
= (1+t)3
)
(s+4)2 (s+2)(s+4)
44. f (s) = s+3
. (Ans. f ′ (s) = (s+3)2
)
71
4.11. DIFFERENTIATION OF A FUNCTION OF A FUNCTION
2x 2 1+4x2
48. φ(x) = √ −1 . (Ans. φ′ (x) = 3 )
x 1+x2 x2 (1+x2 ) 2
√
49. y = 2px. (Ans. y ′ = yp )
b
√ 2
50. y = a
a2 − x 2 . (Ans. y ′ = − ab 2xy )
2 2 3
(Ans. y ′ = − 3 xy )
p
51. y = (a 3 − x 3 ) 2 .
√ p √
a+3cφ
52. r = aφ + c φ3 . (Ans. r′ = √
2 φ
)
v c +v d v c−1 v d−1
53. u = cd
. (Ans. u′ = d
+ c
)
3 √
(q+1) 2 (q−2) q+1
54. p = √
q−1
. (Ans. p′ = 3 )
(q−1) 2
sage: t = var(’t’)
sage: f = function(’f’, t)
sage: g = lambda v: 2*v/(1-vˆ2)
sage: g(f(t)).diff(t) # this gives the general form, for any f
2*diff(f(t), t, 1)/(1 - f(t)ˆ2) + 4*f(t)ˆ2*diff(f(t), t, 1)/(1 - f(t)ˆ2)ˆ2
sage: f = lambda x: 1-xˆ2
72
4.11. DIFFERENTIATION OF A FUNCTION OF A FUNCTION
∆y ∆y ∆v
= · .
∆x ∆v ∆x
• FOURTH STEP. Passing to the limit,
dy dy dv
= · , (4.29)
dx dv dx
by Theorem 2.8.2.This may also be written
dy
= f ′ (v) · g ′ (x),
dx
or
dy
= g ′ (x)f ′ (g(x)). (4.30)
dx
73
4.12. DIFFERENTIATION OF INVERSE FUNCTIONS
The above formula is sometimes referred to as the chain rule for differentiation.
If y = f (v) and v = g(x), the derivative of y with respect to x equals the product
of the derivative of y with respect to v and the derivative of v with respect to x.
x = φ(y);
that is, to consider y as the independent and x as the dependent variable. In that
case f (x) and φ(y) are said to be inverse functions (and one often writes φ = f −1 ).
When we wish to distinguish between the two it is customary to call the first
one given the direct function and the second one the inverse function. Thus, in the
examples which follow, if the second members in the first column are taken as the
direct functions, then the corresponding members in the second column will be
respectively their inverse functions.
√
Example 4.12.1. • y = x2 + 1, x = ± y − 1.
• y = ax , x = loga y.
• y = sin x, x = arcsin y.
The plot of the inverse function φ(y) is related to the plot of the function f (x) in
a simple manner. The plot of f (x) over an interval (a, b) in which f is increasing
is the same as the plot of φ(y) over (f (a), f (b)). The plot of y = f (x) is the
“mirror image” of the plot of y = φ(x), reflected about the “diagonal line” y = x.
√
Example 4.12.2. If f (x) = x2 , for x > 0, and φ(y) = y, then the graphs are
Now flip this graph about the 45o line:
74
4.12. DIFFERENTIATION OF INVERSE FUNCTIONS
√
Figure 4.2: The function φ(y) = f −1 (y) = y.
The graph of inverse trig functions, for example, tan(x) and arctan(x), are
75
4.12. DIFFERENTIATION OF INVERSE FUNCTIONS
• SECOND STEP.
• THIRD STEP.
dy 1
= dx , (4.31)
dx dy
or,
1
f ′ (x) = .
φ′ (y)
The derivative of the inverse function is equal to the reciprocal of the derivative
of the direct function.
76
4.13. DIFFERENTIATION OF A LOGARITHM
• SECOND STEP.
∆y = loga (v + ∆v)
− loga v
v+∆v
= loga v
= loga 1 + ∆v
v
.
by item (8), §12.1.
• THIRD STEP.
∆y 1 ∆v
∆x
= ∆v
loga 1 + v
1
= loga 1 + ∆v
∆v
v v
= v1 loga 1 + ∆v
∆v
v
.
[Dividing the logarithm by v and at the same time multiplying the exponent
of the parenthesis by v changes the form of the expression but not its value
(see item (9), §12.1.]
dy 1 ∆v
• FOURTH STEP. = loga e. [When ∆v → 0 → 0. Therefore
dvv
∆v ∆v
v
∆v
v
lim∆v→0 1 + v
= e, from §2.11, placing x = v
.]
Hence
dy d 1
= (loga v) = loga e · . (4.32)
dv dv v
Since v is a function of x and it is required to differentiate loga v with respect to x,
we must use formula (4.29), for differentiating a function of a function, namely,
dy dy dv
= · .
dx dv dx
2
The student must not forget that this function is defined only for positive values of the base a
and the variable v.
77
4.14. DIFFERENTIATION OF THE SIMPLE EXPONENTIAL FUNCTION
dy
Substituting the value of dv
from (4.32), we get
dy 1 dv
= loga e · · .
dx v dx
dv
d
Therefore, dx
(loga x) = logs e · dx
v
(equation (4.10) above). When a = e, loga e =
dv
d
loge e = 1, and (4.10) becomes dx
(log v) = dx
v
(equation (4.11) above).
Sage
sage: t = var(’t’)
sage: f = function(’f’, t)
sage: log(f(t)).diff(t)
diff(f(t), t, 1)/f(t)
sage: f = 1-tˆ2
sage: log(f(t)).diff(t)
-2*t/(1 - tˆ2)
dv 1 1
= · ;
dy log a y
dy
and from (4.31),relating to inverse functions, we get dv
= log a · y, or,
dy
= log a · av .
dv
Since v is a function of x and it is required to differentiate av with respect to x,
we must use formula (4.29), for differentiating a function of a function, namely,
dy dy dv
= · .
dx dv dx
78
4.15. DIFFERENTIATION OF THE GENERAL EXPONENTIAL FUNCTION
dy
Substituting the value of dx
from above, we get
dy dv
= log a · av · .
dx dx
d dv
Therefore, dx
(av ) = log a · av · dx
(equation (4.12) in §4.1 above).
Sage
sage: t = var(’t’)
sage: f = function(’f’, t)
sage: (3ˆf(t)).diff(t)
log(3)*3ˆf(t)*diff(f(t), t, 1)
sage: f = tˆ7
sage: (3ˆf(t)).diff(t)
7*log(3)*tˆ6*3ˆtˆ7
d dv
When a = e, log a = log e = 1, and (4.12) becomes dx (ev ) = ev dx (equation
(4.13) in §4.1 above) .
The derivative of a constant with a variable exponent is equal to the product of
the natural logarithm of the constant, the constant with the variable exponent, and
the derivative of the exponent.
79
4.15. DIFFERENTIATION OF THE GENERAL EXPONENTIAL FUNCTION
The derivative of a function with a variable exponent is equal to the sum of the
two results obtained by first differentiating by (4.6), regarding the exponent as
constant, and again differentiating by (4.12), regarding the function as constant.
Let v = n, any constant; then (4.14) reduces to
d n du
(u ) = nun−1 .
dx dx
But this is the form differentiated in §4.8; therefore (4.6) holds true for any value
of n.
Sage
80
4.16. LOGARITHMIC DIFFERENTIATION
2 2
Example 4.15.4. Differentiate y = bec +x .
Solution. By (4.4) and (4.13),
dy d c2 +x2
dx
= b dx
e
d 2 2
= bec +x dx (c2 + x2 )
2 2
= 2bxec +x .
x
Example 4.15.5. Differentiate y = xe .
Solution. By (4.14),
dy x d d x
dx
= ex xe −1 dx (x) + xe log x dx (ex )
x ex −1 ex x
=e x + x log x · e
x
= ex xe x1 + log x
y = 12 [log(1 2
h d +2 x ) −d log(1
2
i− x )]
(1+x ) 2
(1−x )
dy
dx
= 21 dx1+x2 − dx1−x2 by (4.11), etc.
x x 2x
= 1+x2 + 1−x2 = 1−x4 .
In differentiating an exponential function, especially a variable with a variable
exponent, the best plan is first to take the logarithm of the function and then dif-
ferentiate. Thus Example 4.15.5 is solved more elegantly as follows:
81
4.16. LOGARITHMIC DIFFERENTIATION
x
Example 4.16.3. Differentiate y = xe .
Solution. Taking the logarithm of both sides, log y = ex log x, by Formula 9 in
§12.1. Now differentiate both sides with respect to x:
dy
d d
dx
y
= ex dx (log x) + log x dx (ex ) by (4.10) and (4.5)
= ex · x1 + log x · ex ,
or,
dy 1 x ex 1
= ex · y log x =e x + log x .
dx x x
√
x2 −5
Example 4.16.4. Differentiate y = (4x2 − 7)2+ .
Solution. Taking the logarithm of both sides,
√
log y = (2 + x2 − 5) log(4x2 − 7).
Differentiating both sides with respect to x,
1 dy √ 8x x
= (2 + x2 − 5) 2 + log(4x2 − 7) · √ .
y dx 4x − 7 x2 − 5
√
√ x2 − 5) log(4x2 − 7)
dy 2 2+ x2 −5 8(2 +
= x(4x − 7) + √ .
dx 4x2 − 7 x2 − 5
In the case of a function consisting of a number of factors it is sometimes con-
venient to take the logarithm before differentiating. Thus,
q
Example 4.16.5. Differentiate y = (x−1)(x−2)
(x−3)(x−4)
.
Solution. Taking the logarithm of both sides,
1
log y = [log(x − 1) + log(x − 2) − log(x − 3) − log(x − 4)].
2
Differentiating both sides with respect to x,
1 dy 1
1 1 1 1
y dx
= 2 x−1
+ x−2
− x−3
− x−4
2x2 −10x+11
= − (x−1)(x−2)(x−3)(x−4) ,
or,
dy 2x2 − 10x − 11
=− 1 1 3 3 .
dx (x − 1) 2 (x − 2) 2 (x − 3) 2 (x − 4) 2
82
4.17. EXAMPLES
4.17 Examples
Differentiate the following4 :
dy 1
1. y = log(x + a) Ans: dx
= x+a
dy a
2. y = log(ax + b) Ans: dx
= ax+b
1+x 2 dy 4x
3. y = log 1−x 2 Ans: dx
= 1−x4
2x+1
4. y = log(x2 + x) Ans: y ′ = x2 +x
3x2 −2
5. y = log(x3 − 2x + 5) Ans: y ′ = x3 −2x+5
2+3x2
6. y = loga (2x + x3 ) Ans: y ′ = loga e · 2x+x3
3 log2 x
9. f (x) = log3 x Ans: f ′ (x) = x
(Hint: log3 x = (log x)3 . Use first (4.6), v = log x, n = 3; and then (4.11).)
a+x 2a
10. f (x) = log a−x Ans: f ′ (x) = a2 −x2
√
11. f (x) = log(x+ 1 + x2 ) Ans: f ′ (x) = √ 1
1+x2
d ax
12. dx
e = aeax
d 4x+5
13. dx
e = 4e4x+5
d 3x
14. dx
a = 3a3x log a
d 4t
15. dt
log(3 − 2t2 ) = 2t2 −3
16. d
dy
log 1+y
1−y
= 2
1−y 2
d b2 +x2 2 +x2
17. dx
e = 2xeb
4
Though the answers are given below, it may be that your computation differs from the solution
given. You should then try to show algebraically that your form is that same as that given.
83
4.17. EXAMPLES
d log a
18. dθ
a = 1θ alog θ log a
d s2 2
19. ds
b = 2x log b · bs
√ √
d v ae√ v
20. dv
ae = 2 v
d ex x
21. dx
a = log a · ae · ex
2 +2x 2 +2x
22. y = 7x Ans: y ′ = 2 log 7 · (x + 1)7x
2 −x2 2 −x2
23. y = ca Ans: y ′ = −2x log c · ca
e x dy 1
24. y = log 1+ex Ans: dx
= 1+ex
d
25. [ex (1 − x2 ] = ex (1 − 2x − x2 )
dx
d ex −1 x
= (ex2e+1)2
26. dx x
e +1
d
27. dx
(x2 eax ) = xeax (ax + 2)
x x dy x x
28. y = a2 (e a − e− a ) Ans: dx
= 21 (e a + e− a )
ex −e−x dy 4
29. y = ex +e−x
Ans: dx
= (ex +e−x ))2
4 log3 (log x)
37. F (x) = log4 (log x) Ans: F ′ (x) = x log x
84
4.17. EXAMPLES
q
1+y 1
39. ψ(y) = log 1−y
Ans: ψ ′ (y) = 1−y 2
√
2
40. f (x) = log √xx1 +1−x
+1+x
2
Ans: f ′ (x) = − √1+x 2
1
dy
41. y = x log x Ans: dx
=0
x dy x
42. y = ex Ans: = ex (1 + log x)xx
dx
cx dy
x
= xc log xc − 1
43. y = xx
Ans: dx
x nx dy
nx
= n nx 1 + log nx
44. y = n
Ans: dx
v ev v 1+v log v
45. w = v e Ans: dw
dv
= v e v
t t
46. z = at Ans: dz = at (log a − log t − 1)
dt
n dy n +n−1
47. y = xx Ans: dx
= xx (n log x + 1)
x dy x
48. y = xx = xx xx log x + log2 x + 1
Ans: dx x
√ 1
dy xy log a
49. y = a a2 −x2 Ans: dx
= 3
(a2 −x2 ) 2
d 2 d x d
(a) dx
x log x (f) dx
e log x (k) dx log(ax + bx )
d d 3 x d
(b) dx
(e2x − 1)4 (g) dx
x3 (l) dx log1 0(x2 + 5x)
d d 2+x2
(c) dx
log 3x+1
x+3
(h) d 1
dx x log x √
(m) dx e3x
d 1−x2 d d 2 2
(d) log
dx √
√
1+x
(i) dx
log x3 1 + x2 (n) dx (x2 + a2 )ex +a
d x d 1 x d
(x2 + 4)x .
(e) dx
x (j) dx x
(o) dx
(x+1)2 2
51. y = (x+2)3 (x+3)4
Ans: dy
dx
= − (x+1)(5x +14x+5)
(x+2)4 (x+3)5
5 3
((x−1) 2 2 (7x2 +30x−97)
52. y = 3 7 Ans: dy
dx
= − (x−1) 7 10
(x−2) 4 (x−3) 3 12(x−2) 4 (x−3) 3
√ dy 2+x−5x 2
53. y = x 1 − x(1 + x) Ans: dx
= √
2 1−x
3
x(1+x2 ) dy 1+3x2 −2x4 2
54. y = √
1−x2
Ans: dx
= (1−x2
85
4.18. DIFFERENTIATION OF SIN V
• SECOND STEP.
∆v ∆v
∆y = sin(v + ∆v) − sin v = 2 cos v + · sin .
2 2
• THIRD STEP.
!
sin ∆v
∆y ∆v 2
= cos v + ∆v
.
∆v 2 2
dy
• FOURTH STEP. dx = cos v.
∆v
sin ∆v
(Since lim∆v→0 ∆v2 = 1, by §2.10, and lim∆v→0 cos v + 2
= cos v.)
2
dy dy dv
= · .
dx dv dx
dy dy dv
Substituting value dx
from Fourth Step, we get dx
= cos v dx . Therefore,
d dv
(sin v) = cos v
dx dx
86
4.19. DIFFERENTIATION OF COS V
sage: t = var(’t’)
sage: f = function(’f’, t)
sage: cos(f(t)).diff(t)
-sin(f(t))*diff(f(t), t, 1)
87
4.21. DIFFERENTIATION OF COT V
1
y= .
sin v
Differentiating by formula (4.8),
88
4.24. EXERCISES
d
dy (sin v)
dx
= − dxsin2 v
cos v dv
= − sin2 dx
v
dv
= − csc v cot v dx .
Therefore,
d dv
(csc v) = − csc v cot v
dx dx
sage: t = var(’t’)
sage: f = function(’f’, t)
sage: csc(f(t)).diff(t)
-cot(f(t))*csc(f(t))*diff(f(t), t, 1)
sage: f = tan
sage: csc(f(t)).diff(t)
-sec(t)ˆ2*cot(tan(t))*csc(tan(t))
sage: f = arccos
sage: csc(f(t)).diff(t)
t/(1 - tˆ2)ˆ(3/2)
sage: f = arccsc
sage: csc(f(t)).diff(t)
1
4.24 Exercises
In the derivation of our formulas so far it has been necessary to apply the General
Rule, §3.7, (i.e. the four steps), only for the following:
89
4.24. EXERCISES
d
4.3 dx
(u + v − w) = dudx
+ dxdv
− dw
dx
Algebraic sum.
d dv du
4.5 dx
(uv) = u dx + v dx . Product.
d u
v du −u dv
4.8 dx v
= dx v2 dx . Quotient.
dv
d
4.10 dx
(loga v) = loga e vdx
. Logarithm.
d dv
4.15 dx
(sin v) = cos v dx Sine.
dy
4.27 dx
= dy · dv .
dv dx
Function of a function.
dy 1
4.28 dx
= dx . Inverse functions.
dy
These are very basic formulas for us. Not only do all the other formulas we have
verified so far depend on them, but those formulas we’ll verify later depend on
them as well.
Examples/exercises:
Differentiate the following:
1. y = sin(ax2 ) .
dy d
= cos ax2 (ax2 ), by 4.15 (v = ax2 ).
dx dx
√
2. y = tan 1 − x.
dy
√ d 1 √
= sec2 1 − x dx (1 − x) 2 , by 4.17 )v = 1 − x)
dx √ 1
= sec2 √1 − x · 21 (1 − x)− 2 (−1)
2 1−x
= − sec2√1−x .
3. y = cos3 x.
This may also be written, y = (cos x)3 .
dy d
dx
= 3(cos x)2 dx (cos x) by 4.6 (v = cos x and n = 3)
2
= 3 cos x(− sin x) by 4.16
= −3 sin x cos2 x.
4. y = sin nx sinn x.
90
4.24. EXERCISES
dy
dx
d
= sin nx dx (sin x)n + sinn x dxd
(sin nx) by (4.5)(v = sin nx and v = sinn x)
= sin nx · n(sin x)n−1 dxd
(sin x) + sinn x cos nx dx
d
(nx) by 4.6 and 4.15
n−1 n
= n sin nx · sin x cos x + n sin x cos nx
= n sinn−1 x(sin nx cos x + cos nx sinx)
= n sinn−1 x sin(n + 1)x.
dy
5. y = sec ax Ans: dx
= a sec ax tan ax
dy
6. y = tan(ax + b) Ans: dx
= a sec2 (ax + b)
ds
7. s = cos 3ax Ans: dx
= −3a sin 3ax
ds
8. s = cot(2t2 + 3) Ans: dt
= −4t csc2 (2t2 + 3)
13. f (t) = sin3 t cos t Ans: f ′ (t) = sin2 t(3 cos t − sin2 t)
dr
14. r = a cos 2θ Ans: dθ
= −2a sin 2θ
15. d
dx
sin2 x = sin 2x
d
16. dx
cos3 (x2 ) = −6x cos2 (x2 ) sin(x2 )
d 2 2 2
17. csc t2 = −t csc t2 cot t2
dt
d
√ a sin 2s
18. ds a cos 2s = − √ cos 2s
d
19. dθ
a(1 − cos θ) = a sin θ
d
20. dx
(log cos x) = − tan x
d 2
21. dx
(log tan x) = sin 2x
22. d
dx
(log sin2 x) = 2 cot x
91
4.24. EXERCISES
d
23. dt
cos at = a
t2
sin at
d
24. dθ
sin θ12 = − θ23 cos θ12
d sin x
25. dx
e = esin x cos x
d cos(log x)
26. dx
sin(log x) = x
d sec2 (log x)
27. dx
tan(log x) = x
28. d
dx
a sin3 3θ = a sin2 3θ cos 3θ
d
29. dα
sin(cos α) = − sin α cos(cos α)
d tan x−1
30. dx sec x
= sin x + cos x
q
1+sin x dy 1
31. y = log 1−sin x
Ans: dx
= cos x
π x dy 1
32. y = log tan 4
+ 2
Ans: dx
= cos x
d
38. dx
(xn esin x ) = xn−1 esin x (n + x cos x)
d
39. dx
(eax cos mx) = eax (a cos mx − m sin mx)
1+cos θ 2 sin θ
40. f (θ) = 1−cos θ
Ans: f ′ (θ) = − (1−cos θ)2
92
4.25. DIFFERENTIATION OF ARCSIN V
dy 1 dv 1 dv
= · =√ .
dx cos y dx 1 − v dx
2
p √
Here we used the fact that cos y = 1 − sin2 y = 1 − v 2 . The positive sign of
the square root is taken since cos y is positive for all values of y between − π2 and
π
2
inclusive. Therefore,
dv
d dx
(arcsin v) = √
dx 1 − v2
93
4.25. DIFFERENTIATION OF ARCSIN V
94
4.26. DIFFERENTIATION OF ARCCOS V
dy 1 dv 1 dv
=− · = −√
dx sin y dx 1 − v 2 dx
p √
(sin y = 1 − cos2 y = 1 − v 2 , the plus sign of the radical being taken, since
sin y is positive for all values of y between 0 and π inclusive). Therefore,
dv
d
(arccos v) = − √ dx .
dx 1 − v2
5
This function is defined only for values of v between −1 and +1 inclusive, and is many-
valued. In order to make the function single-valued, only values of y between 0 and π inclusive
are considered; that is, y the smallest angle whose cosine is v.
95
4.27. DIFFERENTIATION OF ARCTAN V
sage: t = var("t")
sage: x = var("x")
sage: solve(x == cos(t),t)
[t == acos(x)]
sage: f = solve(x == cos(t),t)[0].rhs()
sage: f
acos(x)
sage: diff(f,x)
-1/sqrt(1 - xˆ2)
This (a) computes arccos directly as the inverse function of cos (Sage can use
the notation acos in addition to arccos), (b) computes its derivative.
dy 1 dv 1 dv
= 2
· = ,
dx sec y dx 1 + v 2 dx
(since sec2 y = 1 + tan2 y = 1 + v 2 ). Therefore
dv
d
(arctan v) = dx 2
dx 1+v
(equation (4.23) in §4.1 above).
6
This function is defined for all values of v, and is many-valued. In order to make it single-
valued, only values of y between − π2 and π2 are considered; that is, the smallest angle (in radians)
whose tangent is v.
96
4.28. DIFFERENTIATION OF ARCCOT V
sage: t = var(’t’)
sage: f = function(’f’, t)
sage: acot(f(t)).diff(t)
97
4.29. DIFFERENTIATION OF ARCSEC V
-diff(f(t), t, 1)/(f(t)ˆ2 + 1)
sage: arccot(f(t)).diff(t)
-diff(f(t), t, 1)/(f(t)ˆ2 + 1)
sage: f = tˆ7
sage: arccot(f(t)).diff(t)
-7*tˆ6/(tˆ14 + 1)
98
4.29. DIFFERENTIATION OF ARCSEC V
dy 1 dv 1 dv
= = √
dx sec y tan y dx v v 2 − 1 dx
√ √
(since sec y = v, and tan y = sec y − 1 = v 2 − 1, the plus sign of the radical
being taken, since tan y is positive for an values of y between 0 and π2 and between
−π and − π2 , including 0 and −π). Therefore,
dv
d dx
(arcsecv) = √
dx v v2 − 1
99
4.30. DIFFERENTIATION OF ARCCSC V
y = arccsc v;
then
v = csc y.
This function is defined for all values of v except those lying between −1 and +1,
and is seen to be many-valued. To make the function single-valued, y is taken as
the smallest angle whose cosecant is v. This means that if v is positive, we confine
ourselves to points on the arc AB (Figure 4.11), y taking on values between 0 and
100
4.31. EXAMPLE
π
2
( π2 may be included); and if v is negative, we confine ourselves to points on the
arc CD, y taking on values between −π and − π2 (− π2 may be included).
Differentiating with respect to y by 4.20 and following the method of the last
section, we get
dv
d
(arccscv) = − √ dx
dx v v2 − 1
(equation (4.26) in §4.1 above).
4.31 Example
Differentiate the following:
1. y = arctan(ax2 ).
101
4.31. EXAMPLE
d
dy dx
(ax2 ) 2ax
= 2 2
= .
dx 1 + (ax ) 1 + a2 x 4
2. y = arcsin(3x − 4x3 ).
Solution. By 4.21 (v = 3x − 4x3 ),
d
dy dx
(3x − 4x3 ) 3 − 12x2 3
=p =√ =√ .
dx 1 − (3x − 4x ) 3 2 2 4
1 − 9x + 24x − 16x 6 1 − x2
2
3. y = arcsec xx2 +1
−1
.
x2 +1
Solution. By (4.25) (v = x2 −1
),
102
4.31. EXAMPLE
d x2 +1 (x2 −1)2x−(x2 +1)2x
dy dx x2 −1 (x2 −1)2 2
= = 2 =− .
x +1
· 2x x2
q
dx x2 +1 x2 +1
2 +1
x2 −1 x2 −1
−1 x2 −1 x2 −1
d
4. dx
arcsin xa = √ 1
a2 −x2
d −2x
5. dx
arccot(x2 − 5) = 1+(x2 −5)2
d 2x 2
6. dx
arctan 1−x 2 = 1+x2
d
7. dx
arccsc 2x21−1 = √ 2
1−x2
d √ 2
8. dx
arcvers 2x2 = 1−x2
d
√ 1
9. dx
arctan 1 − x = − 2√1−x(2−x)
d 3 2
10. dx
arccsc 2x = 9−4x2
d 2x2 2
11. dx
arcvers 1+x2
= 1+x2
103
4.31. EXAMPLE
d
12. dx
arctan xa = a
a2 +x2
d
13. dx
arcsin x+1
√ =
2
√ 1
1−2x−x2
√
14. f (x) = x a2 − x2 + a2 arcsin xa Ans: f ′ (x) =
√
2 a2 − x 2
√ 12
15. f (x) = a2 − x2 +a arcsin xa Ans: f ′ (x) = a−x
a+x
dθ 3
17. θ = arcsin(3r − 1) Ans: dr
= √
6r−9r 2
r+a dφ 1
18. φ = arctan 1−ar Ans: dr
= 1+r 2
1 ds √ 1
19. s = arcsec √1−t2 Ans: dt
= 1−t2
d √ x
20. dx
(x arcsin x) = arcsin x + 1−x2
d tan θ
21. dθ
(tan θ arctan θ) = sec2 θ arctan θ 1+θ 2
d
22. dt
[log(arccos t)] = − arccos 1t√1−t2
1
23. f (y) = arccos(log y) Ans: f ′ (y) = − √
y 1−(log y)2
√ 1
√
24. f (θ) = arcsin sin θ Ans: f ′ (θ) = 2
1 + csc θ
q
25. f (φ) = arctan 1−cos φ
1+cos φ
Ans: f ′ (φ) = 1
2
dp earctan q
26. p = earctan q Ans: dq
= 1+q 2
v −e−v
27. u = arctan e 2
Ans: du
dv
= 2
ev +e−v
t −t
28. s = arccos eet +e
−e
−t Ans: ds
dt
2
= − ev +e −v
29. y = x arcsin x ′
Ans: y = x arcsin x arcsin x
+ √log x
x 1−x2
x x 1
30. y = ex arctan x Ans: y ′ = ex + xx arctan x(1 + log x)
1+x2
104
4.31. EXAMPLE
1+x
41 x2
34. y = log 1−x
− 12 arctan x Ans: y ′ = 1−x4
√
35. y = 1 − x2 arcsin x−x Ans: y ′ = − x√arcsin
1−x2
x
d d 3
p
(a) dx
arcsin 2x2 (f ) dt
t arcsin 3t (k) d
dy
arcsin 1 − y2
d d arctan at d
(b) dx
arctan a2 x (g) dt
e (l) dz
arctan(log 3az)
d 1
(c) dx
arcsec xa (h) d
dφ
tan φ2 · arctan φ 2 (m) d
ds
(a2 + s2 )arcsec 2s
d d d
(d) dx
x arccos x (i) dθ
arcsin aθ (n) dα
arccot 2α
3
d 2 d
√ d
√
(e) dx
x arccotax (j) dθ
arctan 1 + θ2 (o) dt
1 − t2 arcsin t
Formulas (4.29) for differentiating a function of a function, and (4.31) for differ-
entiating inverse junctions, have been added to the list of formulas at the beginning
of this chapter as (4.27) and (4.28) respectively.
In the next eight examples, first find dydv
dv
and dx by differentiation and then sub-
dy dy dv dy
stitute the results in dx = dv · dx (by (4.27)) to find dx . (As was pointed out in
§4.11, it might be possible to eliminate v between the two given expressions so as
to find y directly as a function of x, but in most cases the above method is to be
preferred.)
In general our results should be expressed explicitly in terms of the independent
dy
variable; that is, dx in terms of x, dx
dy
in terms of y, dφ
dθ
in terms of θ, etc.
37. y = 2v 2 − 4, v = 3x2 + 1.
dy dv dy
dv
= 4v; dx
= 6x; substituting in (4.27), dx
= 4v · 6x = 24x(3x2 + 1).
105
4.31. EXAMPLE
dy
41. y = log(a2 − v 2 ) Ans: dx
= −2 tan x
dy ex
42. y = arctan(a+v), v = ex Ans: dx
= 1+(a+ex )2
dr
43. r = e2s + es , s = log(t − t2 ) Ans: dt
= 4t3 −
6t2 + 1
dx
In the following examples first find dy
by differentiation and then substitute in
dy 1
= dx by (4.28)
dx dy
dy
to find dx
.
√ dy
√
2 1+y 2x
44. x = y 1 + y Ans: dx
= 2+3y
= 2y+3y 2
√ √
45. x = 1 + cos y Ans: dy
dx
= −2 1+cos y
sin y
=
2
− √2−x 2
y dy (1+log y)2
46. x = 1+log y
Ans: dx
= log y
√ √
a+ a2 −y 2 dy y a2 −y 2
47. x = a log y
Ans: dx
= − a2
q
48. x = rarcvers yr − 2ry − y 2 dy 2r−y
p
Ans: dx
= y
49. Show that the geometrical significance of (4.28) is that the tangent makes
complementary angles with the two coordinate axes.
106
4.32. IMPLICIT FUNCTIONS
x2 − 4y = 0
defines y as an implicit function of x. Evidently x is also defined by means of this
equation as an implicit function of y. Similarly,
x 2 + y 2 + z 2 − a2 = 0
defines anyone of the three variables as an implicit function of the other two.
It is sometimes possible to solve the equation defining an implicit function for
one of the variables and thus change it into an explicit function. For instance,
2
the above two implicit functions may be solved for y, giving y = x4 and y =
√
± a2 − x2 − z 2 ; the first showing y as an explicit function of x, and the second
as an explicit function of x and z. In a given case, however, such a solution may
be either impossible or too complicated for convenient use.
The two implicit functions used in this section for illustration may be respec-
tively denoted by f (x, y) = 0 and F (x, y, z) = 0.
f (x, y) = 0, (4.33)
it was explained in the last section how it might be inconvenient to solve for y in
terms of x; that is, to find y as an explicit function of x so that the formulas we
have deduced in this chapter may be applied directly. Such, for instance, would
be the case for the equation
107
4.34. EXERCISES
d
f (x, y) = 0. (4.35)
dx
dy
Let us apply this rule in finding dx
from (4.34): by (4.35),
d
(ax6 + 2x3 y − y 7 x − 10) = 0,
dx
d d d d
(ax6 ) + (2x3 y) − (y 7 x) − (10) = 0;
dx dx dx dx
dy dy
6ax5 + 2x3 + 6x2 y − y 7 − 7xy 6 = 0;
dx dx
dy
(2x3 − 7xy 6 ) = y 7 − 6ax5 − 6x2 y;
dx
dy y 7 − 6ax5 − 6x2 y
= .
dx 2x3 − 7xy 6
This is the final answer.
The student should observe that in general the result will contain both x and y.
4.34 Exercises
Differentiate the following by the above rule:
dy 2p
1. y 2 = 4px Ans: dx
= y
dy
2. x2 + y 2 = r2 Ans: dx
= − xy
dy 2
3. b2 x2 + a2 y 2 = a2 b2 Ans: dx
= − ab 2xy
dy 2a
4. y 3 − 3y + 2ax = 0 Ans: dx
= 3(1−y 2 )
1 1 1 dy
= − xy
p
5. x 2 + y 2 = a 2 Ans: dx
2 2 2 dy
= − 3 xy
p
6. x 3 + y 3 = a 3 Ans: dx
23 2 1
x 2 y dy
= − 3b axy
3 3
7. a
+ b
=1 Ans: dx 2
dy y
8. y 2 − 2xy + b2 = 0 Ans: dx
= y−x
108
4.34. EXERCISES
dy ay−x2
9. x3 + y 3 − 3axy = 0 Ans: dx
= y 2 −ax
dy y 2 −xy log y
10. xy = y x Ans: dx
= x2 −xy log x
dρ 2
11. ρ2 = a2 cos 2θ Ans: dθ
= −a sin 2θ
ρ
du c+u sin(uv)
13. cos(uv) = cv Ans: dv
= −v sin(uv)
dθ sin(θ+φ)
14. θ = cos(θ + φ) Ans: dφ
= − 1+sin(θ+φ)
dy
15. Find dx
from the following equations:
16. A race track has the form of the circle x2 + y 2 = 12500. The x-axis and
y-axis are east and north respectively, and the unit is 1 meter. If a runner
starts east at the extreme north point, in what direction will he be going
√
(a) when 25 √10 m east of OY? Ans. Southeast or southwest.
(b) when 25 10 m north of OX? Ans. Southeast or northeast.
(c) when 30 rods west of OY? Ans. E. 36o 52’ 12” N. or W. 36o 52’ 12” N.
(d) when 200 m south of OX?
(e) when 50 m east of OY?
17. An automobile course is elliptic in form, the major axis being 6 miles long
and running east and west, while the minor axis is 2 miles long. If a car
starts north at the extreme east point of the course, in what direction will the
car be going
(a) when 2 miles west of the starting point?
(b) when 1/2 mile north of the starting point?
109
4.35. MISCELLANEOUS EXERCISES
4. arccos ay Ans: √ a2
y y −a2
√ x a2
5. a2 −x2
Ans: 3
(a2 −x2 ) 2
x log x
6. 1+log x
Ans: (1+log x)2
sage: t = var("t")
sage: diff(log(sqrt((1-cos(t))/(1+cos(t)))),t)
(cos(t) + 1)*(sin(t)/(cos(t) + 1)
+ (1 - cos(t))*sin(t)/(cos(t) + 1)ˆ2)/(2*(1 - cos(t)))
sage: diff(log(sqrt((1-cos(t))/(1+cos(t)))),t).simplify_trig()
-sin(t)/(cos(t)ˆ2 - 1)
Since cos(t)2 − 1 = − sin(t)2 , the result returned by Sage agrees with the
answer given.
q
10. arcsin 12 (1 − cos x) Ans: 21 , for x > 0; − 21 , for x < 0.
110
4.35. MISCELLANEOUS EXERCISES
Sage
sage: diff(arcsin(sqrt((1-cos(x))/2)),x)
sin(x)/(2*sqrt(2)*sqrt(1 - (1 - cos(x))/2)*sqrt(1 - cos(x)))
sage: diff(arcsin(sqrt((1-cos(x))/2)),x).simplify_trig()
sin(x)/(2*sqrt(1 - cos(x))*sqrt(cos(x) + 1))
sage: diff(arcsin(sqrt((1-cos(x))/2)),x).simplify_radical()
sin(x)/(2*sqrt(1 - cos(x))*sqrt(cos(x) + 1))
Here we see again that Sage does not simplify the result down to the final
answer. Nonetheless, simplify trig is useful. Since
p p p p
1 − cos(x) cos(x) + 1 = 1 − cos(x)2 = sin(x)2 = ± sin(x),
we see the answer given is correct (at least for the interval −π < x < π).
17. xtan x
1 2
(x+2) 3 (x2 −1) 5
18. 3
x2
19. esec(1−3x)
√
20. arctan 1 − x2
z2
21. cos z
2
22. etan x
111
4.35. MISCELLANEOUS EXERCISES
sage: a = var("a")
sage: diff(exp(a*x)*log(sin(a*x)),x)
a*eˆ(a*x)*log(sin(a*x)) + a*eˆ(a*x)*cos(a*x)/sin(a*x)
m+x em arctan x
27. 1+m2
· √
1+x2
(1+x)(1−2x)(2+x)
33. (3+x)(2−3x)
sage: diff(arctan(log(3*x)),x)
1/(x*(log(3*x)ˆ2 + 1))
112
4.35. MISCELLANEOUS EXERCISES
p
35. 3
(b − axm )n
Here’s how Sage tackles this one:
Sage
p
36. log (a2 − bx2 )m
q
y 2 +1
37. log y 2 −1
38. earcsec 2θ
q
(2−3x)3
39. 1+4x
√
3
a2 −x2
40. cos x
43. arctan ax
2
44. asin mx
113
4.35. MISCELLANEOUS EXERCISES
114
CHAPTER
FIVE
y = f (x)
is the equation of a curve (see Figure 5.2), then
dy
= tan τ = slope of line tangent to the curve at any point P.
dx
Example 5.1.1. A group of hikers are climbing a hill whose height is described
by the graph of
sage: x = var("x")
sage: h = -xˆ4 + 29*xˆ3 - 290*xˆ2 + 1200*x
sage: Dh = h.diff(); Dh
-4*xˆ3 + 87*xˆ2 - 580*x + 1200
115
5.1. DIRECTION OF A CURVE
sage: Dh(5)
-25
sage: plot(h,0,15)
The direction of a curve at any point is defined to be the same as the direction of
the line tangent to the curve at that point. From this it follows at once that
dy
= tan τ = slope of the curve at any point P.
dx
At a particular point whose coordinates are known we write
dy
= slope of the curve (or tangent) at point (x1 , y1 ).
dx x=x1 ,y=y1
At points such as D or F or H where the curve (or tangent) is parallel to the x-axis,
dy
τ = 0o , therefore dx = 0 (see Figure 5.2 for the notation).
116
5.1. DIRECTION OF A CURVE
dy
τ = an acute angle; therefore = a positive number.
dx
The curve (or tangent) has a positive slope
• to the left of B,
• to the right of G,
117
5.1. DIRECTION OF A CURVE
dy
τ = an obtuse angle; therefore = a negative number.
dx
The curve (or tangent) has a negative slope between B and D, and also between F
and G.
3
Example 5.1.2. Given the curve y = x3 − x2 + 2 (see Figure 5.3).
(a) Find τ when x = 1.
(b) Find τ when x = 3.
(c) Find the points where the curve is parallel to the x-axis.
(d) Find the points where τ = 45o .
(e) Find the points where the curve is parallel to the line 2x − 3y = 6.
x3
Figure 5.3: The graph of y = 3
− x2 + 2.
dy
Differentiating, dx = x2 − 2x = slope at any point.
dy
(a) tan τ = dx x=1 = 1 − 2 = −1; therefore τ = 135o = 3π/4.
dy
(b) tan τ = dx x=3
= 9 − 6 = 3; therefore τ = arctan 3 = 1.249....
o dy
(c) τ = 0 , tan τ = dx = 0; therefore x2 − 2x = 0. Solving this equation, we
find that x = 0 or 2, giving points C and D where the curve (or tangent) is parallel
to the x-axis.
118
5.1. DIRECTION OF A CURVE
dy
√
(d) τ = 45o , tan τ = dx = 1; therefore x2 −2x = 1. Solving, we get x = 1± 2,
giving two points where the slope of the curve (or tangent) is unity. q
(e) Slope of line = 23 ; therefore x2 − 2x = 32 . Solving, we get x = 1 ± 5
3
,
giving points E and F where curve (or tangent) is parallel to 2x − 3y = 6.
The angle between two curves at a common point will be the angle between their
tangents at that point. This definition is analogous to the fact that the direction of
curve at any point is defined to be the direction of its tangent at that point.
sage: x = var("x")
sage: y = var("y")
sage: F = xˆ2 + yˆ2 - 4*x - 1
sage: G = xˆ2 + yˆ2 - 2*y - 9
sage: solve([F == 0,G == 0],x,y)
[[x == 1, y == -2], [x == 3, y == 2]]
dy 2−x
Using (A), formulas in §4.33 give dx
= y
. Using (B), formulas in §4.33 give
dy x
dx
= 1−y . Therefore,
2−x 1
= − = slope of tangent to (A) at (3, 2).
y x=3,y=2 2
x
= −3 = slope of tangent to (B) at (3, 2).
1−y x=3,y=2
sage: x = var("x")
sage: y = function("y",x)
119
5.1. DIRECTION OF A CURVE
The formula for finding the angle between two lines whose slopes are m1 and
m2 is
120
5.2. EXERCISES
m1 − m2
tan θ = ,
1 + m1 m2
− 1 +3
by item 55, §12.1. Substituting, tan θ = 1+ 2
3 = 1; therefore θ = π/4 = 45o .
2
This is also the angle of intersection at the point (1, −2).
5.2 Exercises
The corresponding figure should be drawn in each of the following examples:
x
1. Find the slope of y = 1+x2
at the origin.
Ans. 1 = tan τ .
3. What is the direction in which the point generating the graph of y = 3x2 −x
tends to move at the instant when x = 1?
Ans. Parallel to a line whose slope is 5.
dy
4. Show that dx
(or slope) is constant for a straight line.
121
5.2. EXERCISES
9. Find the points where a particle moving on the circle x2 + y 2 = 169 moves
perpendicular to the line 5x + 12y = 60.
Ans. (±12, ∓5).
10. Show that all the curves of the system y = log kx have the same slope; i.e.
the slope is independent of k.
11. The path of the projectile from a mortar cannon lies on the parabola y =
2x−x2 ; the unit is 1 mile, the x-axis being horizontal and the y-axis vertical,
and the origin being the point of projection. Find the direction of motion of
the projectile
(a) at instant of projection;
3
(b) when it strikes a vertical cliff 2
miles distant.
(c) Where will the path make an inclination of 45o = π/4 with the horizon-
tal?
(d) Where will the projectile travel horizontally?
Ans. (a) arctan 2; (b) 135o = 3π/4; (c) ( 21 , 34 ); (d) (1, 1).
12. If the cannon in the preceding example was situated on a hillside of inclina-
tion 45o = π/4, at what angle would a shot fired up strike the hillside?
Ans. 45o = π/4.
14. Find the angle of intersection between the parabola y 2 = 6x and the circle
x2 + y 2 = 16.
√
Ans. arctan 53 3.
x2 y2
15. Show that the hyperbola x2 − y 2 = 5 and the ellipse 18
+ 8
= 1 intersect
at right angles.
x3
16. Show that the circle x2 + y 2 = 8ax and the cissoid y 2 = 2a−x
(a) are perpendicular at the origin;
(b) intersect at an angle of 45o = π/4 at two other points.
122
5.3. EQUATIONS OF TANGENT AND NORMAL LINES
17. Find the angle of intersection of the parabola x2 = 4ay and the Witch of
3
Agnesi, y = x28a
+4a2
.
Ans. arctan 3 = 71o 33′ = 1.249....
For the interesting history of this curve, see for example
http://en.wikipedia.org/wiki/Witch_of_Agnesi.
18. Show that the tangents to the Folium of Descartes, x3 + y 3 = 3axy at the
points where it meets the parabola y 2 = ax are parallel to the y-axis.
For some history of this curve, see for example
http://en.wikipedia.org/wiki/Folium_of_Descartes.
19. At how many points will a particle moving on the curve y = x3 −2x2 +x−4
be moving parallel to the x-axis? What are the points?
Ans. Two; at (1, −4) and ( 31 , − 104
27
).
20. Find the angle at which the parabolas y = 3x2 −1 and y = 2x2 +3 intersect.
4
Ans. arctan 97 .
21. Find the relation between the coefficients of the conics a1 x2 + b1 y 2 = 1 and
a2 x2 + b2 y 2 = 1 when they intersect at right angles.
1 1 1 1
Ans. a1
− b1
= b2
− b2
.
y − y1 = m(x − x1 )
(this is item 54, §12.1).
If this line is tangent to the curve y = f (x) at the point P = (x1 , y1 ) (see Figure
5.5 to visualize how these can be situated in relationship to the graph of the curve),
then from §5.1,
123
5.3. EQUATIONS OF TANGENT AND NORMAL LINES
dy
m = tan τ = .
dx x=x1 ,y=y1
Therefore at a point P = (x1 , y1 ) on the curve, the equation of the tangent line
(containing the segment T P ) is
dy
y − y1 = ( )(x − x1 ). (5.1)
dx x=x1 ,y=y1
The normal being perpendicular to tangent, its slope is
1 dx dy
− =− = −( )−1
m dy x=x1 ,y=y1 dx x=x1 ,y=y1
(item 55 in §12.1). And since it also passes through the point P = (x1 , y1 ), we
have for the equation of the normal line (containing the segment P N )
dx
y − y1 = −( )(x − x1 ). (5.2)
dy x=x1 ,y=y1
124
5.3. EQUATIONS OF TANGENT AND NORMAL LINES
The length of the segment on the tangent line which is between P = (x1 , y1 ) and
the point of contact with the x-axis is called the length of the tangent ( = T P ), and
the projection of this segment on the x-axis is called the length of the subtangent1
(= T M ). Similarly, we have the length of the normal ( = P N ) and the length of
the subnormal (= M N ).
In the triangle T P M , tan τ = M
TM
P
; therefore2
MP dx
TM = = y1 = length of subtangent. (5.3)
tan τ dy x=x1 ,y=y1
MN
In the triangle M P N , tan τ = MP
; therefore3
dy
M N = M P tan τ = y1 = length of subnormal. (5.4)
dx x=x1 ,y=y1
125
5.4. EXERCISES
The student is advised to get the lengths of the tangent and of the normal directly
from the figure rather than by using these equations.
When the length of subtangent or subnormal at a point on a curve is determined,
the tangent and normal may be easily constructed.
5.4 Exercises
1. Find the equations of tangent and normal, lengths of subtangent, subnormal
x3
tangent, and normal at the point (a, a) on the cissoid y 2 = 2a−x .
x3
Figure 5.6: Graph of cissoid y 2 = 2a−x
with a = 1.
dy 3ax2 −x3
Solution. dx
= y(2a−x)2
. Hence
3a3 − a3
dy1 dy
= = =2
dx1 dx x=a,y=a a(2a − a)2
126
5.4. EXERCISES
y = 2x − a,
2y + x = 3a,
a
TM = ,
2
the length of subtangent. Substituting in (5.4) gives
M N = 2a,
the length of subnormal. Also
r
p a2 a√
P T = (T M )2 + (M P )2 = + a2 = 5,
4 2
which is the length of tangent, and
p √ √
PN = (M N )2 + (M P )2 = 4a2 + a2 = a 5,
the length of normal.
4. Show that the subtangent to the parabola y 2 = 4px is bisected at the vertex,
and that the subnormal is constant and equal to 2p.
4
In Exs. 3 and 5 the student should notice that if we drop the subscripts in equations of tangents,
they reduce to the equations of the curves themselves.
127
5.4. EXERCISES
x2 y2
5. Find the equation of the tangent at (x1 , y1 ) to the ellipse a2
+ b2
= 1.
x1 x y1 y
Ans. a2
+ b2
= 1.
Here’s how to find the length of tangent, normal, subtangent and subnormal
2
of this in Sage using the values a = 1, b = 2 (so x2 + y4 = 1) and
x1 = 4/5, y1 = 6/5.
Sage
sage: x = var("x")
sage: y = var("y")
sage: F = xˆ2 + yˆ2/4 - 1
sage: Dx = -diff(F,y)/diff(F,x); Dx; Dx(4/5,6/5)
-y/(4*x)
-3/8
sage: Dy = -diff(F,x)/diff(F,y); Dy; Dy(4/5,6/5)
-4*x/y
-8/3
(For this Sage calculation, we have used the fact that F (x, y) = 0 im-
dy
plies Fx (x, y) + dx Fy (x, y) = 0, where y is regarded as a function of x.)
Therefore, we have (using (5.3))
dx
length of subtangent = y1 = (6/5)(−3/8) = −9/20,
dy x=x1 ,y=y1
(using (5.4))
dy
length of subnormal = y1 = (6/5)(−8/3) = −16/5,
dx x=x1 ,y=y1
(using (5.5))
s 2
h i q
dx 9
length of tangent = y1 dy
+ 1 = (6/5) 1 + 64
x=x1 ,y=y1
√
= 3 73/20 = 1.2816... ,
128
5.4. EXERCISES
8a3
6. Find equations of tangent and normal to the Witch of Agnesi y = 4a2 +x2
as
at the point where x = 2a.
Ans. x + 2y = 4a, y = 2x − 3a.
a x x
7. Prove that at any point on the catenary y = 2
(e a + e− a ) the lengths of
2x 2x y2
subnormal and normal are a4 (e a − e− a ) and a
respectively.
8. Find equations of tangent and normal, lengths of subtangent and subnormal,
to each of the following curves at the points indicated:
10. Get the equation of tangent to the parabola y 2 = 20x which makes an angle
of 45o = π/4 with the x-axis.
Ans. y = x + 5. (Hint: First find point of contact by method of Example
5.1.2.)
11. Find equations of tangents to the circle x2 + y 2 = 52 which are parallel to
the line 2x + 3y = 6.
Ans. 2x + 3y ± 26 = 0
12. Find equations of tangents to the hyperbola 4x2 − 9y 2 + 36 = 0 which are
perpendicular to the line 2y + 5x = 10.
Ans. 2x − 5y ± 8 = 0.
129
5.5. PARAMETRIC EQUATIONS OF A CURVE
13. Show that in the equilateral hyperbola 2xy = a2 the area of the triangle
formed by a tangent and the coordinate axes is constant and equal to a2 .
14. Find equations of tangents and normals to the curve y 2 = 2x2 − x3 at the
points where x = 1.
Ans. At (1, 1), 2y = x + 1, y + 2x = 3. At (1, −1), 2y = −x − 1,
y − 2x = −3.
1 1
15. Show that the sum of the intercepts of the tangent to the parabola x 2 + y 2 =
1
a2 .
16. Find the equation of tangent to the curve x2 (x+y) = a2 (x−y) at the origin.
2 2 2
17. Show that for the hypocycloid x 3 + y 3 = a 3 that portion of the tangent
included between the coordinate axes is constant and equal to a.
(This curve is parameterized by x = a cos(t)3 , y = a sin(t)3 , 0 ≤ t ≤ 2π.
Parametric equations shall be discussed in the next section.)
x
18. Show that the curve y = ae c has a constant subtangent.
F (x, y) = 0. (5.7)
If x is given as a function of a third variable, t say, called a parameter, then by
virtue of (5.7) y is also a function of t, and the same functional relation (5.7)
between x and y may generally be expressed by means of equations in the form
(
x = f (t),
(5.8)
y = g(t)
each value of t giving a value of x and a value of y. Equations (5.8) are called
parametric equations of the curve. If we eliminate t between equations (5.8), it is
evident that the relation (5.7) must result.
130
5.5. PARAMETRIC EQUATIONS OF A CURVE
√
x2 + y 2 = r2 or y = r 2 − x2 .
We have
(
x = r cos t
(5.9)
y = r sin t
as parametric equations of the circle, t being the parameter5 .
If we eliminate t between equations (5.9) by squaring and adding the results, we
have
x2 + y 2 = r2 (cos2 t + sin2 t) = r2 ,
the rectangular equation of the circle. It is evident that if t varies from 0 to 2π, the
point P = (x, y) will describe a complete circumference.
gx2
y = x tan α − 2 .
2v0 cos2 α
5
Parameterizations are not
√
unique. Another set of parametric equations of the first quadrant of
2t
the circle is given by x = 1+t2 , y = √1−t
√
1+t2
, for example.
6
Subject to (downward) gravitational force but no wind resistance or other external forces.
131
5.5. PARAMETRIC EQUATIONS OF A CURVE
that is,
dy
dy dt g ′ (t)
= dx
= . (5.10)
dx dt
f ′ (t)
Hence, if the parametric equations of a curve are given, we can find equations of
tangent and normal, lengths of subtangent and subnormal at a given point on the
dy
curve, by first finding the value of dx at that point from (5.10) and then substituting
in formulas (5.1), (5.2), (5.3), (5.4) of the last section.
Example 5.5.3. Find equations of tangent and normal, lengths of subtangent and
subnormal to the ellipse
(
x = a cos φ,
(5.11)
y = b sin φ,
at the point where φ = π4 .
As in Figure 5.7 draw the major and minor auxiliary circles of the ellipse.
Through two points B and C on the same radius draw lines parallel to the axes
of coordinates. These lines will intersect in a point P = (x, y) on the ellipse, be-
cause x = OA = OB cos φ = a cos φ and y = AP = OD = OC sin φ = b sin φ,
or, xa = cos φ and yb = sin φ. Now squaring and adding, we get
x2 y 2
2
+ 2 = cos2 φ + sin2 φ = 1,
a b
the rectangular equation of the ellipse. φ is sometimes called the eccentric angle
of the ellipse at the point P.
dx dy
Solution. The parameter being φ, dφ = −a sin φ, dφ = b cos φ.
π a √b
Substituting φ = 4 in the given equations (5.11), we get √
2
, 2 as the point
dy b
of contact. Hence dx x=x1 ,y=y1 = − a . Substituting in (5.1),
b b a
y−√ =− x− √ ,
2 a 2
√
or, bx + ay = 2ab, the equation of tangent. Substituting in (5.2),
132
5.5. PARAMETRIC EQUATIONS OF A CURVE
b a a
y−√ = x− √ ,
2 b 2
√
or, 2(ax − by) = a2 − b2 , the equation of normal. Substituting in (5.3) and (5.4),
we find
b2
b b
√ − =− √ ,
2 a a 2
133
5.5. PARAMETRIC EQUATIONS OF A CURVE
b a a
√ − = −√ ,
2 b 2
the length of subtangent.
sage: t = var("t")
sage: f1 = lambda t: [t-sin(t),1-cos(t)]
sage: p1 = parametric_plot(f1(t), 0.0, 2*pi, rgbcolor=(1,0,0))
sage: f2 = lambda t: [t+RR(pi)/2-1,t+1]
sage: p2 = parametric_plot(f2(t), -1, 1, rgbcolor=(1,0,0))
sage: f3 = lambda t: [-t+RR(pi)/2,t]
sage: p3 = parametric_plot(f3(t), -1, 1, rgbcolor=(1,0,0))
sage: t1 = text("P", (RR(pi)/2-1+0.1,1-0.1))
sage: t2 = text("T", (-0.4,0.1))
134
5.5. PARAMETRIC EQUATIONS OF A CURVE
Solution:
dx dy
= a(1 − cos θ), = a sin θ.
dθ dθ
Substituting in (5.10),
dy sin θ
= ,
dx 1 − cos θ
the slope at any point. Since θ = π2 , the point of contact is πa
2
− a, a , and
dy
dx x=x1 ,y=y1
= 1.
Substituting in (5.3), (5.4), (5.5), (5.6) of the last section, we get
length of subtangent = a,
length of subnormal = √a,
length of tangent = a√ 2,
length of normal = a 2.
135
5.6. EXERCISES
5.6 Exercises
Find equations of tangent and normal, lengths of subtangent and subnormal to
each of the following curves at the point indicated:
1. Curve: x = t2 , 2y = t;
Point: t = 1.
Tangent line: x − 4y + 1 = 0;
Normal line: 8x + 2y − 9 = 0;
Subtangent: 2;
Subnormal: 18 .
2. Curve: x = t, y = t3 ;
Point: t = 2.
Tangent line: 12x − y − 16 = 0;
Normal line: x + 12y − 98 = 0;
Subtangent: 23 ;
Subnormal: 96.
3. Curve: x = t2 , y = t3 ;
Point: t = 1.
Tangent line: 3x − 2y − 1 = 0;
Normal line: 2x + 3y − 5 = 0;
Subtangent: 23 ;
Subnormal: 32 .
136
5.6. EXERCISES
sage: t = var("t")
sage: x = sin(t)
sage: y = cos(2*t)
sage: t0 = pi/6
sage: y_x = diff(y,t)/diff(x,t)
sage: y_x
-2*sin(2*t)/cos(t)
sage: y_x(t0)
-2
sage: m = y_x(t0); x0 = x(t0); y0 = y(t0)
sage: X,Y = var("X,Y")
sage: Y - y0 == m*(X - x0)
Y - 1/2 == -2*(X - 1/2)
The last line is the point-slope form of the tangent line of the paramet-
ric curve at that point t0 = π/6 (so, (x0 , y0 ) = (sin(t0 ), cos(2t0 )) =
(1/2, 1/2)). We use X and Y in place of x and y so as to not over-ride
the entries that Sage has stored for them. Continuing the above Sage
computations:
Sage
137
5.6. EXERCISES
These tell us the length of the subtangent is − 14 (as expected), as well as the
lengths of the subnormal, tangent and normal, using formulas (5.10), (5.3),
(5.4), (5.5), (5.6) of the last section.
6. Curve: x = 1 − t, y = t2 ;
Point: t = 3.
7. Curve: x = 3t; y = 6t − t2 ;
Point: t = 0.
8. Curve: x = t3 ; y = t;
Point: t = 2.
9. Curve: x = t3 , y = t2 ;
Point: t = −1.
10. Curve: x = 2 − t; y = 3t2 ;
Point: t = 1.
11. Curve: x = cos t, y = sin 2t;
Point: t = π3 .
12. Curve: x = 3e−t , y = 2et ;
Point: t = 0.
13. Curve: x = sin t, y = 2 cos t;
Point: t = π4 .
14. Curve: x = 4 cos t, y = 3 sin t;
Point: t = π2 .
138
5.6. EXERCISES
15. Curve:
Point:
In the following curves find lengths of (a) subtangent, (b) subnormal, (c) tangent,
(d) normal, at any point:
139
5.7. ANGLE BETWEEN RADIUS VECTOR AND TANGENT
Figure 5.9: Angle between the radius vector drawn to a point on a curve and the
tangent to the curve at that point.
140
5.7. ANGLE BETWEEN RADIUS VECTOR AND TANGENT
PR PR ρ sin ∆θ
tan P QR = = = .
RQ OQ − OR ρ + ∆ρ − ρ cos ∆θ
Denote by ψ the angle between the radius vector OP and the tangent PT. If we
now let ∆θ approach the limit zero, then
(b) the secant PQ will approach the tangent PT as a limiting position; and
Hence
ρ∆θ ρ∆θ
tan ψ = lim = lim 2
∆θ→0 ρ + ∆ρ − ρ cos ∆θ ∆θ→0 2ρ sin ∆θ + ∆ρ
2
Since
∆ρ dρ ∆θ
lim = and lim sin = 0,
∆θ→0 ∆θ dθ ∆θ→0 2
also
sin ∆θ
lim =1
∆θ→0 ∆θ
and
sin ∆θ
2
lim ∆θ
=1
∆θ→0
2
by §2.10, we have
ρ
tan ψ = dρ
(5.12)
dθ
141
5.7. ANGLE BETWEEN RADIUS VECTOR AND TANGENT
τ = θ + ψ. (5.13)
Having found τ , we may then find tan τ , the slope of the tangent to the curve at
P. Or since, from (5.13),
tan θ + tan ψ
tan τ = tan(θ + ψ) =
1 − tan θ tan ψ
we may calculate tan ψ from (5.12) and substitute in the formula
tan θ + tan ψ
slope of tangent = tan τ = . (5.14)
1 − tan θ tan ψ
Example 5.7.1. Find ψ and τ in the cardioid ψ = a(1 − cos θ). Also find the
slope at θ = π6 .
Solution. dψ
dθ
= a sin θ. Substituting in (5.12) gives
or, φ = ψ ′ − ψ. Hence
tan ψ ′ − tan ψ
tan φ = , (5.15)
1 + tan ψ ′ tan ψ
where tan ψ ′ and tan ψ are calculated by (5.12) from the two curves and evalu-
ated for the point of intersection.
142
5.7. ANGLE BETWEEN RADIUS VECTOR AND TANGENT
Example 5.7.2. Find the angle of of intersection of the curves ρ = a sin 2θ,
ρ = a cos 2θ.
Solution. Solving the two equations simultaneously, we get at the point of inter-
section
45 o
tan 2θ = 1, 2θ = 45o = π/4, θ = = π/8.
2
From the first curve, using (5.12),
1 1
tan ψ ′ =tan 2θ = ,
2 2
45 o
for θ = 2
= π/8. From the second curve,
1 1
tan ψ = − cot 2θ = − ,
2 2
o
for θ = 45
2
= π/8.
Substituting in ((5.15),
1
+ 12
2 4
tan ψ = 1 = .
1− 4 3
therefore ψ = arctan 34 .
143
5.8. LENGTHS OF POLAR SUBTANGENT AND POLAR SUBNORMAL
and
144
5.9. EXAMPLES
of the curve at P.
OT
In the triangle OPT, tan ψ = ρ
. Therefore
dθ
OT = ρ tan ψ = ρ2 = length of polar subtangent. (5.16)
dρ
ρ
In the triangle OPN, tan ψ = ON
. Therefore
ρ dρ
ON = = = length of polar subnormal. (5.17)
tan ψ dθ
The length of the polar tangent (= PT) and the length of the polar normal (= PN)
may be found from the figure, each being the hypotenuse of a right triangle.
Example 5.8.1. Find lengths of polar subtangent and subnormal to the lemniscate
ρ2 = a2 cos 2θ.
Solution. Differentiating the equation of the curve as an implicit function with
2
respect to θ, or, 2ρ dρ
dθ
= −2a2 sin 2θ, dρ
dθ
= − a sin
ρ
2θ
.
Substituting in (5.16) and (5.17), we get
ρ 3
length of polar subtangent = − a2 sin 2θ
,
a2 sin 2θ
length of polar subnormal = − ρ .
If we wish to express the results in terms of θ, find ρ√in terms of θ from the given
equation and substitute. Thus, in the above, ρ = ±a cos 2θ; therefore
√
length of polar subtangent = ±a cot 2θ cos 2θ.
5.9 Examples
1. In the circle ρ = r sin θ, find ψ and τ in terms of θ.
Solution: ψ = θ, τ = 2θ.
θ
2. In the parabola ρ = a sec 2 , show that τ + ψ = π.
4. Show that ψ is constant in the logarithmic spiral ρ = eaθ . Since the tangent
makes a constant angle with the radius vector, this curve is also called the
equiangular spiral.
145
5.9. EXAMPLES
Sage can help with this problem. Using (5.12) but with t in place of θ for
typographical simplicity, we have
Sage
7. Find the angle between the straight line ρ cos θ = 2a and the circle ρ =
5a sin θ.
Solution: arctan 43 .
θ θ
8. Show that the parabolas ρ = a sec2 2
and ρ = b csc2 2
intersect at right
angles.
10. Find the slopes of the following curves at the points designated:
146
5.9. EXAMPLES
147
5.10. SOLUTION OF EQUATIONS HAVING MULTIPLE ROOTS
a
17. Show that the reciprocal spiral ρ = θ
has a constant subtangent.
148
5.11. EXAMPLES
• THIRD STEP. Find the roots of the G.C.D.Each different root of the G.C.D.will
occur once more in f (x) than it does in the G.C.D.
If it turns out that the G.C.D.does not involve x, then f (x) has no multiple roots
and the above process is of no assistance in the solution of the equation, but it may
be of interest to know that the equation has no equal, i.e. multiple, roots.
5.11 Examples
1. x3 − 7x2 + 16x − 12 = 0.
Ans. 2, 2, 3.
2. x4 − 6x2 − 8x − 3 = 0.
149
5.11. EXAMPLES
5. x4 + 6x3 + x2 − 24x + 16 = 0.
Ans. 1, 1, −4, −4.
6. x4 − 9x3 + 23x2 − 3x − 36 = 0.
Ans. 3, 3, −1, 4.
7. x4 − 6x3 + 10x2 − 8 = 0.
√
Ans. 2, 2, 1 ± 3.
sage: x = var("x")
sage: solve(xˆ4 - 6*xˆ3 + 10*xˆ2 - 8 == 0,x)
[x == 1 - sqrt(3), x == sqrt(3) + 1, x == 2]
150
5.11. EXAMPLES
8. x5 − x4 − 5x3 + x2 + 8x + 4 = 0.
sage: x = var("x")
sage: solve(xˆ5 - 15*xˆ3 + 10*xˆ2 + 60*x - 72 == 0,x)
[x == -3, x == 2]
sage: factor(xˆ5 - 15*xˆ3 + 10*xˆ2 + 60*x - 72)
(x - 2)ˆ3*(x + 3)ˆ2
This tells use that the root 2 occurs with multiplicity 3 amd the root −3
occurs with multiplicity 2, as expected.
Show that the following four equations have no multiple (equal) roots:
11. x3 + 9x2 + 2x − 48 = 0.
14. xn − an = 0.
151
5.12. APPLICATIONS OF THE DERIVATIVE IN MECHANICS
x3 + 3qx + r = 0
shall have a double root is 4q 3 + r2 = 0.
x3 + 3px2 + r = 0
shall have a double root is r(4p3 + r) = 0.
Let s be the distance measured from some fixed point as A to any position of
P, and let t be the corresponding elapsed time. To each value of t corresponds a
position of P and therefore a distance (or space) s. Hence s will be a function of
t, and we may write
s = f (t)
Now let t take on an increment ∆t; then s takes on an increment8 ∆s, and
8
s being the space or distance passed over in the time ∆t.
152
5.12. APPLICATIONS OF THE DERIVATIVE IN MECHANICS
∆s
= the average velocity (5.20)
∆t
of P during the time interval ∆t. If P moves with uniform motion, the above
ratio will have the same value for every interval of time and is the velocity at any
instant.
For the general case of any kind of motion, uniform or not, we define the velocity
(or, time rate of change of s) at any instant as the limit of the ratio ∆s∆t
as ∆t
approaches the limit zero; that is,
∆s
v = lim ,
∆t→0 ∆t
or
ds
v= (5.21)
dt
The velocity is the derivative of the distance (= space) with respect to the time.
To show that this agrees with the conception we already have of velocity, let us
find the velocity of a falling body at the end of two seconds.
By experiment it has been found that a body falling freely from rest in a vacuum
near the earth’s surface follows approximately the law
s = 16.1t2 (5.22)
where s = space fallen in feet, t = time in seconds. Apply the General Rule, §3.7,
to (5.22).
FIRST STEP. s + ∆s = 16.1(t + ∆t)2 = 16.1t2 + 32.2t · ∆t + 16.1(∆t)2 .
SECOND STEP. ∆s = 32.2t · ∆t + 16.1(∆t)2 .
THIRD STEP. ∆s ∆t
= 32.2t + 16.1∆t = average velocity throughout the time
interval ∆t.
Placing t = 2,
∆s
= 64.4 + 16.1∆t (5.23)
∆t
which equals the average velocity throughout the time interval ∆t after two sec-
onds of falling. Our notion of velocity tells us at once that (5.23) does not give us
the actual velocity at the end of two seconds; for even if we take ∆t very small,
1 1
say 100 or 1000 of a second, (5.23) still gives only the average velocity during the
corresponding small interval of time. But what we do mean by the velocity at
153
5.13. COMPONENT VELOCITIES. CURVILINEAR MOTION
the end of two seconds is the limit of the average velocity when ∆t diminishes
towards zero; that is, the velocity at the end of two seconds is from (5.23), 64.4 ft.
per second.
Thus even the everyday notion of velocity which we get from experience in-
volves the idea of a limit, or in our notation
∆s
v = lim = 64.4 f t./sec.
∆t→0 ∆t
The above example illustrates well the notion of a limiting value. The student
should be impressed with the idea that a limiting value is a definite, fixed value, not
something that is only approximated. Observe that it does not make any difference
how small 16.1∆t may be taken; it is only the limiting value of 64.4 + 16.1∆t,
when ∆t diminishes towards zero, that is of importance, and that value is exactly
64.4.
dx
vx =
. (5.24)
dt
In the same way we get the vertical component, or time rate of change of y,
dy
vy =
. (5.25)
dt
Representing the velocity and its components by vectors, we have at once from
the figure
v 2 = vx 2 + vy 2 ,
9
The equation of the path in rectangular coordinates may often be found by eliminating t
between their equations.
10
The direction of v is along the tangent to the path.
154
5.13. COMPONENT VELOCITIES. CURVILINEAR MOTION
or,
s 2 2
ds dx dy
v= = + , (5.26)
dt dt dt
dy dx dy
vy dt vx dt vy dt
sin τ = = ds
; cos τ = = ds
; tan τ = = dx
. (5.27)
v dt
v ds
vx dt
155
5.14. ACCELERATION. RECTILINEAR MOTION
dv
a= (5.28)
dt
The acceleration is the derivative of the velocity with respect to time.
dv v2
at = ; an = . (5.29)
dt R
(R is the radius of curvature. See §11.5.)
The acceleration may also be resolved into components parallel to the axes of
the path of motion. Following the same plan used in §5.13 for finding component
velocities, we define the component accelerations parallel to the x-axis and y-axis,
dvx dvy
ax = ; ay = . (5.30)
dt dt
Also, s 2 2
dvx dvy
a= + , (5.31)
dt dt
which gives the magnitude of the acceleration at any instant.
156
5.16. EXAMPLES
5.16 Examples
1. By experiment it has been found that a body falling freely from rest in a
vacuum near the earth’s surface follows approximately the law s = 16.1t2 ,
where s = space (height) in feet, t = time in seconds. Find the velocity and
acceleration
2. Neglecting the resistance of the air, the equations of motion for a projectile
are
157
5.16. EXAMPLES
3. Given the following equations of rectilinear motion. Find the distance, ve-
locity, and acceleration at the instant indicated:
(a) s = t3 + 2t2 ; t = 2.
Ans. s = 16, v = 20, a = 16.
(b) s = t2 + 2t; t = 3.
Ans. s = 15, v = 8, a = 2.
(c) s = 3 − 4t; t = 4.
Ans. s = −13, v = −4, a = 0.
(d) x = 2t − t2 ; t = 1.
Ans. x = 1, v = 0, a = −2.
(e) y = 2t − t3 ; t = 0.
Ans. y = 0, v = 2, a = 0.
(f) h = 20t + 16t2 ; t = 10.
Ans. h = 1800, v = 340, a = 32.
(g) s = 2 sin t; t = π4 .
√ √ √
Ans. s = 2, v = 2, a = − 2.
(h) y = a cos πt
3
; t = 1.
√ 2
Ans. y = a2 , v = − πa6 3 , a = − π18a .
(i) s = 2e3t ; t = 0.
Ans. s = 2, v = 6, a = 18.
(j) s = 2t2 − 3t; t = 2.
(k) x = 4 + t3 ; t = 3.
158
5.16. EXAMPLES
(a) the velocity and direction of motion at the end of the third and sixth
seconds;
(b) the component velocities at the same instants.
6. A cannon ball is fired vertically upwards with a muzzle velocity of 644 ft.
per sec. Find (a) its velocity at the end of 10 seconds; (b) for how long it
will continue to rise. Conditions same as for Exercise 5.
Ans. (a) 322 ft. per sec. Upwards; (b) 20 seconds.
159
5.16. EXAMPLES
s = t3 + 2t2 + 3t
miles from the starting point. Find its acceleration (a) at the end of t hours;
(b) at the end of 2 hours.
Ans. (a) a = 6t + 4; (b) a = 16 miles/(hour)2 .
s = 48t − 16t2 .
3
Find the velocity and acceleration at the end of 2
seconds.
Ans. v = 0,a = −32 ft./(sec.)2 .
(a) v = t2 + 2t; t = 3.
Ans. a = 8.
(b) v = 3t − t3 ; t = 2.
Ans. a = −9.
(c) v = 4 sin 2t ; t = π3 .
√
Ans. a = 3.
160
5.16. EXAMPLES
11. At the end of t seconds a body has a velocity of 3t2 + 2t ft. per sec.; find its
acceleration (a) in general; (b) at the end of 4 seconds.
Ans. (a) a = 6t + 2 ft./(sec.)2 ; (b) a = 26 ft./(sec.)2
vy = 3t2 − 2t + 6
in ft. per sec. Find the vertical component of acceleration (a) at any instant;
(b) at the end of 2 seconds.
Ans. (a) ay = 6t − 2; (b) 10 ft./(sec.)2 .
√
s= t,
show that the acceleration is negative and proportional to the cube of the
velocity.
s = c1 et + c2 e−t ,
for some constants c1 and c2 , show that the acceleration is always equal in
magnitude to the space passed over.
x = a1 + a2 cos t, y = b1 + b2 sin t,
for some constants ai and bi ,show that its velocity has a constant magnitude.
161
5.16. EXAMPLES
(
x = at,
y = b sin at
show (a) that the x-component of the velocity is constant; (b) that the ac-
celeration of the point at any instant is proportional to its distance from the
x-axis.
17. Given the following equations of curvilinear motion, find at the given instant
• vx , vy , v;
• ax , ay , a;
• position of point (coordinates);
• direction of motion.
• the equation of the path in rectangular coordinates.
(a) x = t2 , y = t; t = 2.
(g) x = 2 sin t, y = 3 cos t; t = π.
(b) x = t, y = t3 ; t = 1.
(h) x = sin t, y = cos 2t; t = π4 .
(c) x = t2 , y = t3 ; t = 3.
(i) x = 2t, y = 3et ; t = 0.
(d) x = 2t, y = t2 + 3; t = 0.
(e) x = 1 − t2 , y = 2t; t = 2.
(j) x = 3t, y = log t; t = 1.
3π
(f) x = r sin t, y = r cos t; t = 4
.
(k) x = t, y = 12/t; t = 3.
162
5.17. APPLICATION: NEWTON’S METHOD
f (xn )
xn+1 = xn − .
f ′ (xn )
We start the process off with some arbitrary initial value x0 . (The closer to the
zero, the better. But, in the absence of any intuition about where the zero might
lie, a ”guess and check” method might narrow the possibilities to a reasonably
small interval by appealing to the intermediate value theorem.) The method will
11
This section uses material modified from Wikipedia [N].
163
5.17. APPLICATION: NEWTON’S METHOD
usually converge, provided this initial guess is close enough to the unknown zero,
and that f ′ (x0 ) 6= 0. Furthermore, for a zero of multiplicity 1, the convergence
is at least quadratic (see rate of convergence) in a neighbourhood of the zero,
which intuitively means that the number of correct digits roughly at least doubles
in every step. More details can be found in the analysis section below.
Example 5.17.1. Consider the problem of finding the positive number x with
cos(x) = x3 . We can rephrase that as finding the zero of f (x) = cos(x) − x3 . We
have f ′ (x) = − sin(x) − 3x2 . Since cos(x) ≤ 1 for all x and x3 > 1 for x > 1,
we know that our zero lies between 0 and 1. We try a starting value of x0 = 0.5.
f (x0 ) 3
cos(0.5)−0.5
x1 = x0 − f ′ (x0 )
= 0.5 − − sin(0.5)−3×0.52 = 1.112141637097
f (x1 )
x2 = x1 − f ′ (x1 )
= 0.909672693736
f (x2 )
x3 = x2 − f ′ (x2 )
= 0.867263818209
f (x3 )
x4 = x3 − f ′ (x3 )
= 0.865477135298
f (x4 )
x5 = x4 − f ′ (x4 )
= 0.865474033111
f (x5 )
x6 = x5 − f ′ (x5 )
= 0.865474033102
The correct digits are underlined in the above example. In particular, x6 is cor-
rect to the number of decimal places given. We see that the number of correct
digits after the decimal point increases from 2 (for x3 ) to 5 and 10, illustrating the
quadratic convergence.
5.17.2 Analysis
Suppose that the function f has a zero at a, i.e., f (a) = 0.
If f is continuously differentiable and its derivative does not vanish at a, then
there exists a neighborhood of a such that for all starting values x0 in that neigh-
borhood, the sequence {xn } will converge to a.
In practice this result is “local” and the neighborhood of convergence is not
known a priori, but there are also some results on “global convergence.” For
instance, given a right neighborhood U of a, if f is twice differentiable in U and
if f ′ 6= 0, f · f ′′ > 0 in U , then, for each x0 ∈ U the sequence xk is monotonically
decreasing to a.
164
5.17. APPLICATION: NEWTON’S METHOD
5.17.3 Fractals
For complex functions f : C → C, however, Newton’s method can be directly
applied to find their zeros. For many complex functions, the boundary of the set
(also known as the basin of attraction) of all starting values that cause the method
to converge to a particular zero is a fractal12
For example, the function f (x) = x5 − 1, x ∈ C, has five roots, equally spaced
around the unit circle in the complex plane. If x0 is a starting point which con-
verges to the root at x = 1, color x0 yellow. Repeat this using four other colors
(blue, red, green, purple) for the other four roots of f . The resulting image is in
Figure 5.15.
12
The definition of a fractal would take us too far afield. Roughly speaking, it is a geometrical
object with certain self-similarity properties [F].
165
5.17. APPLICATION: NEWTON’S METHOD
166
CHAPTER
SIX
Successive differentiation
y = 3x4 ,
dy
=
dx
12x3 ,
d dy
ddx dx
= 36x2 ,
d dy
dx dx dx
= 72x,
and so on.
6.2 Notation
The symbols for the successive derivatives are usually abbreviated as follows:
d dy d2 y
dx dx
= dx 2,
d2 y d3 y
d
d dy d
dx dx dx
= dx dx 2 = dx 3,
...
...
d dn−1 y dn y
dx dxn−1
= dxn
.
167
6.3. THE N -TH DERIVATIVE
d2 y
d π π 2π
= sin x + = cos x + = sin x + ,
dx2 dx 2 2 2
d3 y
d 2π 2π 3π
= sin x + = cos x + = sin x +
dx3 dx 2 2 2
...
n
d y nπ
= sin x + .
dxn 2
1
The mathod of inductin is usually taught in a course after calculus. For
the curious reader, we recommend the discussion and references in Wikipedia
http://en.wikipedia.org/wiki/Mathematical induction as a good start.
168
6.4. LEIBNITZ’S FORMULA FOR THE N -TH DERIVATIVE OF A
PRODUCT
6.4 Leibnitz’s Formula for the n-th derivative of a
product
This formula expresses the n-th derivative of the product of two variables in terms
of the variables themselves and their successive derivatives.
If u and v are functions of x, we have, from equation (4.5) in §4.1 above,
d du dv
(uv) = v+u .
dx dx dx
Differentiating again with respect to x,
d2 d2 u du dv du dv d2 v d2 u du dv d2 v
(uv) = v + + + u = v + 2 + u .
dx2 dx2 dx dx dx dx dx2 dx2 dx dx dx2
Similarly,
d3 3 2 2 2 2 3
dx3
= ddxu3 + ddxu2 dx
(uv) dv
+ 2 ddxu2 dx
dv
+ 2 du d v
dx dx2
+ du d v
dx dx2
d v
+ u dx 3
3 2 2 3
= ddxu3 v + 3 ddxu2 dx
dv
+ 3 du d v
dx dx 2 + u d v
dx 3 .
However far this process may be continued, it will be seen that the numerical co-
efficients follow the same law as those of the Binomial Theorem, and the indices
of the derivatives correspond2 to the exponents of the Binomial Theorem. Rea-
soning then by mathematical induction from the m-th to the (m + 1)-st derivative
of the product, we can prove Leibnitz’s Formula
d3 y 3ex 3ex
x x 3 3 2
= e log x + − 2 = e log x + − 2 + 3 .
dx3 x x x x x
This can be verified using the Sage commands:
2 d0 u d0 v
To make this correspondence complete, u and v are considered as dx0 and dx0 .
169
6.5. SUCCESSIVE DIFFERENTIATION OF IMPLICIT FUNCTIONS
Sage
sage: x = var("x")
sage: f = exp(x)*log(x)
sage: diff(f,x,1); diff(f,x,2); diff(f,x,3)
eˆx*log(x) + eˆx/x
eˆx*log(x) + 2*eˆx/x - eˆx/xˆ2
eˆx*log(x) + 3*eˆx/x - 3*eˆx/xˆ2 + 2*eˆx/xˆ3
sage: diff(f*g,x,1)
f(x)*diff(g(x), x, 1) + g(x)*diff(f(x), x, 1)
sage: diff(f*g,x,2)
f(x)*diff(g(x), x, 2)+2*diff(f(x), x, 1)*diff(g(x), x, 1)\
+ g(x)*diff(f(x), x, 2)
n
d y
Example 6.4.2. Given y = x2 eax , find dx n by Leibnitz’s Formula.
2
Solution. Let u = x , and v = e ; then du
2 ax
dx
= 2x, dxdv
= aeax , ddxu2 = 2x,
d2 v 3 d3 v n dn v
dx2
= a2 eax , ddxu3 = 0, dx 3 ax
3 = a e , . . . , ddxnu = 0, dx n ax
n = a e . Substituting in
(6.1), we get
dn y
n
= x2 an eax +2nan−1 xeax +n(n−1)an−2 eax = an−2 eax [x2 a2 +2nax+n(n−1)].
dx
b 2 x 2 − a2 y 2 = a2 b 2 .
Differentiating with respect to x, as in §4.33,
dy
2b2 x − 2a2 y = 0,
dx
or,
dy b2 x
= 2 . (6.2)
dx ay
170
6.5. SUCCESSIVE DIFFERENTIATION OF IMPLICIT FUNCTIONS
d2 y b4
= − .
dx2 a2 y 3
Sage can be made to do a lot of this work for you (though the notation doesn’t
get any prettier):
Sage
sage: x = var("x")
sage: y = function("y",x)
sage: a = var("a")
sage: b = var("b")
sage: F = xˆ2/aˆ2 - yˆ2/bˆ2 - 1
sage: F.diff(x)
2*x/aˆ2 - 2*y(x)*diff(y(x), x, 1)/bˆ2
sage: F.diff(x,2)
-2*y(x)*diff(y(x), x, 2)/bˆ2 - 2*diff(y(x), x, 1)ˆ2/bˆ2 + 2/aˆ2
sage: solve(F.diff(x) == 0, diff(y(x), x, 1))
[diff(y(x), x, 1) == bˆ2*x/(aˆ2*y(x))]
sage: solve(F.diff(x,2) == 0, diff(y(x), x, 2))
[diff(y(x), x, 2) == (bˆ2 - aˆ2*diff(y(x), x, 1)ˆ2)/(aˆ2*y(x))]
dy b2 x
y′ = = 2 ,
dx ay
and
d2 y b2 − a2 (y ′ )2
y ′′ = = − .
dx2 a2 y
171
6.6. EXERCISES
−2 2 2 2
Now simply plug the first equation into the second, obtaining y ′′ = −b2 1−a ab2 yx /y .
Next, use the given equation in the form a−2 b2 x2 /y 2 − 1 = b2 /y 2 to get the result
above.
6.6 Exercises
Verify the following derivatives:
1. y = 4x3 − 6x2 + 4x + 7.
d2 y
Ans. dx2
= 12(2x − 1).
x3
2. f (x) = 1−x
.
4!
Ans. f (4) (x) = (1−x)5
.
3. f (y) = y 6 .
Ans. f (6) (y) = 6!.
4. y = x3 log x.
d4 y
Ans. dx4
= x6 .
c n(n+1)c
5. y = xn
. y ′′ = xn+2
.
6. y = (x − 3)e2x + 4xex + x.
Ans. y ′′ = 4ex [(x − 2)ex + x + 2].
x x
7. y = a2 (e a + e− a ).
1 x x y
Ans. y ′′ = 2a
(e a + e− a ) = a2
.
8. f (x) = ax2 + bx + c.
Ans. f ′′′ (x) = 0.
172
6.6. EXERCISES
12. r = tan φ.
d3 r
Ans. dφ3
= 6 sec6 φ − 4 sec2 φ.
16. p = (q 2 + a2 ) arctan aq .
d3 p 4a3
Ans. dq 3
= (a2 +q 2 )2
.
17. y = ax .
dn y
Ans. dxn
= (log a)n ax .
Sage
173
6.6. EXERCISES
2
Hint: Reduce fraction to form −1 + 1+x
before differentiating.
d2 y dy
22. If y = ex sin x, prove that dx2
− 2 dx + 2y = 0.
d y dy 2
23. If y = a cos(log x) + b sin(log x), prove that x2 dx 2 + x dx + y = 0.
24. y = x2 ax .
dn y
Ans. dxn
= ax (log a)n−2 [(x log a + n)2 − n].
25. y = xex .
dn y
Ans. dxn
= (x + n)ex .
28. Show that the formulas for acceleration, (5.28), (5.30), may be written a =
2
d2 s 2
dt2
, ax = ddt2x , ay = ddt2y .
29. y 2 = 4ax.
d2 y 2
Ans. dx2
= − 4a
y3
.
30. b2 x2 + a2 y 2 = a2 b2 .
d2 y 4 d3 y 6
Ans. dx2
= − a2by3 ; dx2
= − a3b4 yx5 .
d2 y 2
31. x2 + y 2 = r2 . dx2
= − yr 3 .
174
6.6. EXERCISES
32. y 2 + y = x2 .
d3 y 24x
Ans. dx3
= − (1+2y) 5.
34. y 2 − 2xy = a2 .
d2 y a2 3 2
Ans. dx2
= ;dy
(y−x)3 dx3
3a x
= − (y−x) 5.
175
6.6. EXERCISES
176
CHAPTER
SEVEN
7.1 Introduction
Many practical problems occur where we have to deal with functions that have
a maximum value (or a minimum value) and it is important to know where the
extreme values of the function occur.
Hence
432
M = M (x) = x2 +
x
is a formula giving the number of square feet required in any such box having a
capacity of 108 ft3 . Draw a graph of M (x).
177
7.1. INTRODUCTION
Figure 7.1: A box with square x × x base, height y = 108/x2 , and fixed volume.
432
Figure 7.2: Sage plot of y = x2 + x
, 1 < x < 10.
178
7.1. INTRODUCTION
dM 432
= 2x − 2 .
dx x
At the lowest point T the slope will be zero. Hence
432
2x − = 0;
x2
that is, when x = 6 the least amount of lumber will be needed.
Substituting in M (x), we see that this is M = 108 sq. ft.
In addition to the graph, the fact that a least value of M exists can be intuitively
deduced by the following argument. Let the base increase from a very small
square to a very large one. In the former case the height must be very great and
therefore the amount of lumber required will be large. In the latter case, while the
height is small, the base will take a great deal of lumber. Our intuition tells that
M therefore varies from a large value, decreases for a while, then increases again
to another large value. It follows, then, that the graph of y = M (x) must have a
“lowest” point corresponding to the dimensions which require the least amount of
lumber, and therefore would involve the least cost.
Here is how to compute the critical points of M in Sage :
Sage
sage: x = var("x")
sage: M = xˆ2 + 432/x
sage: solve(M.diff(x)==0,x)
[x == 3*sqrt(3)*I - 3, x == -3*sqrt(3)*I - 3, x == 6]
This says that (x2 + 432/x)′ = 0 has three roots, but only one real root - the one
reported above at x = 6.
179
7.1. INTRODUCTION
Example 7.1.2. For instance, suppose that it is required to find the dimensions of
the rectangle of greatest area that can be inscribed in a circle of radius 5 inches.
Consider the circle in Figure 7.3:
Inscribe any rectangle,
√ as BCDE, where CD is the base and DE is the height. Let
CD = x, so DE = 100 − x2 , and the area of the rectangle is evidently
√
A = A(x) = x 100 − x2 .
180
7.1. INTRODUCTION
That a rectangle of maximum area must exist may be seen as follows: Let the
base CD (= x) increase to 10 inches (the diameter); then the altitude DE (=
√
100 − x2 ) will decrease to zero and the area will become zero. Now let the base
decrease to zero; then the altitude will increase to 10 inches and the area will again
become zero. It is therefore intuitively evident that there exists in-between these
extremes a rectangle of greatest area. By a careful study of the figure we might
suspect that when the rectangle becomes a square its area would be the greatest,
but this would be mere guesswork1 . A better way would be to plot the graph of
the function y = A(x) and note its behavior. To aid us in drawing the graph of
A(x), we observe that
(a) from the nature of the problem it is clear that x and A(x) must both be
positive; and
Now draw the graph (we have used Sage in Figure 7.4).
What do we learn from the graph?
(a) If the rectangle is carefully drawn, we may approximate the area of the
rectangle corresponding to any value x by measuring the length of the cor-
responding ordinate. For example, when x = 3 inches, then the area is
about A(x) ≈ 28.6 inches2 ; and when x 29 inches, then the area is about
A(x) ≈ 39.8 inches2 .
The y-coordinate at the point T there this tangent contacts the curve is greater
than any other y-coordinate on the curve. We deduce from this that one of the
inscribed rectangles has a greater area than any of the others. In other words, we
may infer from this that the function defined by y = A(x) has a maximum value.
We can find this value very easily to using calculus. We observed that at T the
tangent was horizontal, hence the slope will be zero at that point (Example 5.1.2).
To find the x-coordinate of T we find the first derivative of A(x), set it equal to
zero, and solve for x:
1
Reasoning that “by symmetry we must have base = height” happens to work in this particular
example (as we will see) but, surprisingly enough, does not hold in general.
181
7.1. INTRODUCTION
√
A = x 100 − x2 ,
dA 2
dx
= √100−2x
100−x2
,
100−2x2
√
100−x2
= 0.
√ √ √
Solving this gives x = 5 2. Substituting back, we get DE = 100 − x2 = 5 2.
Hence the rectangle √of maximum
√ area inscribed in the circle is a square of area
A = CD × DE = 5 2 × 5 2 = 50 square inches. The length of HT is therefore
50.
We will now proceed to the treatment in detail of the subject of maxima and
minima.
182
7.2. INCREASING AND DECREASING FUNCTIONS
As we move along the curve from left to right the curve is rising; that is, as
x increases the function y = ax always increases. Therefore ax (a > 1) is
an increasing function for all values of x.
(2) On the other hand, consider the function (a − x)3 whose graph (Figure 7.6)
is the locus of the equation y = (a − x)3 .
183
7.2. INCREASING AND DECREASING FUNCTIONS
Now as we move along the curve from left to right the curve is falling;
that is, as x increases, the function y = (a − x)3 always decreases. Hence
(a − x)3 is a decreasing function for all values of x.
As we move along the curve from left to right the curve rises until we reach
184
7.3. TESTS FOR DETERMINING WHEN A FUNCTION IS INCREASING
OR DECREASING
the point when x = 1, then it falls from that point to the point when x = 2,
and to the right of x = 2 it is always increasing. Hence
The student should study the curve carefully in order to note the behavior
of the function when x = 1 and x = 2. At x = 1 the function ceases to
increase and commences to decrease; at x = 2, the reverse is true. At x = 1
and at x = 2 the tangent to the curve is parallel to the x-axis, and therefore
the slope is zero.
y = f (x)
is increasing, the tangent in general makes an acute angle with the x-axis, so
dy
slope = tan τ = dx
= f ′ (x) = a positive number.
dy
slope = tan τ = dx
= f ′ (x) = a negative number.
It follows from this that in order for a differentiable function to change from an
increasing to a decreasing function, or vice versa, it is a necessary and sufficient
condition that the first derivative changes sign. But this can only happen for a
continuous derivative by passing through the value zero. Thus in Figure 7.7 as
2
Conversely, for any given value of x, if f ′ (x) > 0, then f (x) is increasing; if f ′ (x) < 0,
then f (x) is decreasing. When f ′ (x) = 0, we cannot decide without further investigation whether
f (x) is increasing or decreasing.
185
7.4. MAXIMUM AND MINIMUM VALUES OF A FUNCTION
we pass along the curve the derivative (= slope) changes sign at the points where
x = 1 and x = 2. In general, then, we have at these “turning points,”
dy
= f ′ (x) = 0.
dx
A value of y = f (x) satisfying this condition is called a critical point of the
function f (x).
Remark 7.3.1. The derivative is continuous in nearly all our important appli-
cations, but it is interesting to note the case when the derivative (= slope) of y
changes sign by “passing through ∞” (that is, its reciprocal 1/y passes through
the value zero). This would evidently happen at the points on a curve where the
tangent is perpendicular to the x-axis. At such “turning points” we have
dy
= f ′ (x) = inf;
dx
or, what amounts to the same thing,
1
= 0.
f ′ (x)
For example, the function y = 1/x2 has a “turning point” at x = 0, where the
slope is infinite but the function changes from being increasing (for x < 0) to
decreasing (for x > 0).
186
7.4. MAXIMUM AND MINIMUM VALUES OF A FUNCTION
dy
slope = = f ′ (x) = 0.
dx
At the exceptional critical points A, B, G the tangent (or curve) is perpendicular
to the x-axis, giving
dy
slope = = f ′ (x) = ∞.
dx
One of these two conditions is then necessary in order that the function shall
have a maximum or a minimum value. But such a condition is not sufficient; for
at H the slope is zero and at A it is infinite, and yet the function has neither a
maximum nor a minimum value at either point. It is necessary for us to know,
in addition, how the function behaves in the neighborhood of each point. Thus
at the points of maximum value, B, F, the function changes from an increasing
to a decreasing function, and at the points of minimum value, D, G, the function
187
7.4. MAXIMUM AND MINIMUM VALUES OF A FUNCTION
We may then state the conditions in general for maximum and minimum values
of f (x) for certain values of the variable as follows:
The values of the variable at the turning points of a function are called critical
values; thus x = 1 and x = 2 are the critical values of the variable for the function
whose graph is shown in Figure 7.7. The critical values at turning points where the
tangent is parallel to the x-axis are evidently found by placing the first derivative
equal to zero and solving for real values of x, just as under §5.1. (Similarly, if
we wish to examine a function at exceptional turning points where the tangent is
perpendicular to the x-axis, we set the reciprocal of the first derivative equal to
zero and solve to find critical values.)
To determine the sign of the first derivative at points near a particular turning
point, substitute in it, first, a value of the variable just a little less than the corre-
sponding critical value, and then one a little greater3 . If the first gives + (as at L,
Figure 7.8) and the second - (as at M), then the function (= y) has a maximum
3
In this connection the term “little less,” or “trifle less,” means any value between the next
smaller root (critical value) and the one under consideration; and the term “little greater,” or “trifle
greater,” means any value between the root under consideration and the next larger one.
188
7.5. EXAMINING A FUNCTION FOR EXTREMAL VALUES: FIRST
METHOD
value in that interval (as at I). If the first gives − (as at P) and the second + (as at
N), then the function (= y) has a minimum value in that interval (as at C).
If the sign is the same in both cases (as at Q and R), then the function (= y) has
neither a maximum nor a minimum value in that interval (as at F)4 .
We shall now summarize our results into a compact working rule.
• SECOND STEP. Set the first derivative equal to zero5 and solve the resulting
equation for real roots in order to find the critical values of the variable.
• FOURTH STEP. Considering one critical value at a time, test the first deriva-
tive, first for a value a trifle less and then for a value a trifle greater than the
critical value. If the sign of the derivative is first + and then −, the function
has a maximum value for that particular critical value of the variable; but if
the reverse is true, then it has a minimum value. If the sign does not change,
the function has neither.
Remark 7.5.1. It can be helpful to draw a sign graph for the values of the deriva-
tive. This is a sketch of the real axis, with tick marks at the critical points, labeling
an interval in-between successive critical points with a “+” if the derivative is pos-
itive there, and labeling such an interval with a “−” otherwise.
Example 7.5.1. In the problem worked out in Example 7.1.2, we showed by
means of the graph of the function
√
A = x 100 − x2
4
A similar discussion will evidently hold for the exceptional turning points B, E, and A respec-
tively.
5
When the first derivative becomes infinite for a certain value of the independent variable, then
the function should be examined for such a critical value of the variable, for it may give maximum
or minimum values, as at B, E, or A (Figure 7.8). See footnote in §7.3.
189
7.5. EXAMINING A FUNCTION FOR EXTREMAL VALUES: FIRST
METHOD
that the rectangle of maximum area inscribed in a circle of radius 5 inches con-
tained 50 square inches. This may now be proved analytically as follows by ap-
plying the above rule. √
Solution. Let f (x) = x 100 − x2 .
2
First step. Compute f ′ (x) = √100−2x
100−x2
.
100−2x 2 √
Second step. √100−x2 = 0 implies x = 5 2, which is the critical value. Only
the positive sign of the radical is taken, since, from the nature of the problem, the
negative sign has no meaning.√ √
Third step. f ′ (x) = 2(5 √ 2−x)(5 2+x) .
(10−x)(10+x)
√ 2(+)(+)
√
Fourth step. When x < 5 2, f ′ (x) = √ = +. When x > 5 2,
(+)(+)
′ 2(+)(+)
f (x) = √ = −.
(−)(+)
√
Since the sign of the first derivative changes from + to − at x = 5 2, the
function has a maximum value
√ √ √
f (5 2) = 5 2 · 5 2 = 50.
In Sage :
Sage
sage: x = var("x")
sage: f(x) = x*sqrt(100 - xˆ2)
sage: f1(x) = diff(f(x),x); f1(x)
sqrt(100 - xˆ2) - xˆ2/sqrt(100 - xˆ2)
sage: crit_pts = solve(f1(x) == 0,x); crit_pts
[x == -5*sqrt(2), x == 5*sqrt(2)]
sage: x0 = crit_pts[1].rhs(); x0
5*sqrt(2)
sage: f(x0)
50
sage: RR(f1(x0-0.1))>0
True
sage: RR(f1(x0+0.1))<0
True
√
This tells us that x0 = 5 2 is a critical point, at which the area is 50 square inches
190
7.6. EXAMINING A FUNCTION FOR EXTREMAL VALUES: SECOND
METHOD
and at which the area changes from increasing to decreasing. This implies that the
area is a maximum at this point.
191
7.6. EXAMINING A FUNCTION FOR EXTREMAL VALUES: SECOND
METHOD
• SECOND STEP. Set the first derivative equal to zero and solve the resulting
equation for real roots in order to find the critical values of the variable.
• FOURTH STEP. Substitute each critical value for the variable in the second
derivative. If the result is negative, then the function is a maximum for that
critical value; if the result is positive, the function is a minimum.
When f ′′ (x) = 0, or does not exist, the above process fails, although there may
even then be a maximum or a minimum; in that case the first method given in
the last section still holds, being fundamental. Usually this second method does
apply, and when the process of finding the second derivative is not too long or
tedious, it is generally the shortest method.
Example 7.6.1. Let us now apply the above rule to test analytically the function
432
M = x2 +
x
found in Example 7.1.1.
Solution. Let f (x) = x2 + 432x
.
First step. Compute f (x) = 2x − 432
′
x2
.
Second step. Solve 2x − 432x2
= 0. (In Example 7.1.1 we got x = 6.)
′′ 864
Third step. Compute f (x) = 2 + x3 .
Fourth step. Use the second derivative test. f ′′ (6) = +. Hence f (6) = 108,
minimum value.
In Sage :
Sage
sage: x = var("x")
sage: f(x) = xˆ2 + 432/x
sage: f1(x) = diff(f(x),x); f1(x)
2*x - 432/xˆ2
sage: f2(x) = diff(f(x),x,2); f2(x)
864/xˆ3 + 2
sage: crit_pts = solve(f1(x) == 0,x); crit_pts
[x == 3*sqrt(3)*I - 3, x == -3*sqrt(3)*I - 3, x == 6]
sage: x0 = crit_pts[2].rhs(); x0
6
192
7.6. EXAMINING A FUNCTION FOR EXTREMAL VALUES: SECOND
METHOD
sage: f2(x0)
6
sage: f(x0)
108
This tells us that x0 = 6 is a critical point and that f ′′ (x0 ) > 0, so it is a minimum.
The work of finding maximum and minimum values may frequently be simpli-
fied by the aid of the following principles, which follow at once from our discus-
sion of the subject.
(a) The (local) maximum and minimum values of a continuous function must
occur alternately. (In particular, you cannot have two local maximums with-
out having a minimum in-between them.)
(c) If c is a constant, f (x) and c + f (x) have maximum and minimum values
for the same values of x.
Hence a constant term may be omitted when finding critical values of x and
testing.
In general we must first construct, from the conditions given in the problem,
the function whose maximum and minimum values are required, as was done in
the two examples worked out in §7.1. This is sometimes a problem of consider-
able difficulty. No rule applicable in all cases can be given for constructing the
function, but in a large number of problems we may be guided by the following
general directions.
(a) Express the function whose maximum or minimum is involved in the prob-
lem.
193
7.7. PROBLEMS
(b) If the resulting expression contains more than only variable, the conditions
of the problem will furnish enough relations between the variables so that
all may be expressed in terms of a single one.
(c) To the resulting function of a single variable apply one of our two rules for
finding maximum and minimum values.
(d) In practical problems it is usually easy to tell which critical value will give
a maximum and which a minimum value, so it is not always necessary to
apply the fourth step of our rules.
(e) Draw the graph of the function in order to check the work.
7.7 Problems
1. It is desired to make an open-top box of greatest possible volume from a
square piece of tin whose side is a, by cutting equal squares out of the
corners and then folding up the tin to form the sides. What should be the
length of a side of the squares cut out?
Solution. Let x = side of small square = depth of box; then a − 2x = side of
square forming bottom of box, and volume is V = (a − 2x)2 x, which is the
function to be made a maximum by varying x. Applying rule:
dV
First step. dx
= (a − 2x)2 − 4x(a − 2x) = a2 − 8ax + 12x2 .
a
Second step. Solving a2 − 8ax + 12x2 = 0 gives critical values x = 2
and
a
6
.
It is evident that x = a2 must give a minimum, for then all the tin would
be cut away, leaving no material out of which to make a box. By the usual
3
test, x = a6 is found to give a maximum volume 2a 27
. Hence the side of the
square to be cut out is one sixth of the side of the given square.
The drawing of the graph of the function in this and the following problems
is left to the student.
2. Assuming that the strength of a beam with rectangular cross section varies
directly as the breadth and as the square of the depth, what are the dimen-
sions of the strongest beam that can be sawed out of a round log whose
diameter is d?
194
7.7. PROBLEMS
Solution. If x = breadth and y = depth, then the beam will have maximum
strength when the function xy 2 is a maximum. From the construction and
the Pythagorean theorem, y 2 = d2 − x2 ; hence we should test the function
f (x) = x(d2 − x2 ).
First step. f ′ (x) = −2x2 + d2 − x2 = d2 − 3x2 .
Second step. d2 − 3x2 = 0. Therefore, x = √d = critical value which gives
3
a maximum.
q
Therefore, if the beam is cut so that depth = 23 of diameter of log, and
q
breadth = 13 of diameter of log, the beam will have maximum strength.
3. What is the width of the rectangle of maximum area that can be inscribed
in a given segment OAA′ of a parabola?
195
7.7. PROBLEMS
Ans. Width = 23 h.
4. Find the altitude of the cone of maximum volume that can be inscribed in a
sphere of radius r (see Figure 7.10).
5. Find the altitude of the cylinder of maximum volume that can be inscribed
in a given right cone (see Figure 7.11).
HINT. Let AU = r and BC = h. Volume of cylinder = πx2 y. But from
similar triangles ABC and DBG, r/x = h/(h − y), so x = r(h−y)
h
. Hence
r2 2
the function to be tested is f (y) = h2 y(h − y) .
Ans. Altitude = 13 h.
196
7.7. PROBLEMS
7. Divide 10 into two such parts that the sum of the double of one and square
of the other may be a minimum.
Ans. 9 and 1.
8. Find the number that exceeds its square by the greatest possible quantity.
Ans. 21 .
9. What number added to its reciprocal gives the least possible sum?
Ans. 1.
10. Assuming that the stiffness of a beam of rectangular cross section varies
197
7.7. PROBLEMS
directly as the breadth and the cube of the depth, what must be the breadth
of the stiffest beam that can be cut from a log 16 inches in diameter?
Ans. Breadth = 8 inches.
11. A water tank is to be constructed with a square base and open top, and is
to hold 64 cubic yards. If the cost of the sides is $ 1 a square yard, and of
the bottom $ 2 a square yard, what are the dimensions when the cost is a
minimum? What is the minimum cost?
Ans. Side of base = 4 yd., height = 4 yd., cost $ 96.
12. A rectangular tract of land is to be bought for the purpose of laying out a
quarter-mile track with straightaway sides and semicircular ends. In addi-
tion a strip 35 yards wide along each straightaway is to be bought for grand
stands, training quarters, etc. If the land costs $ 200 an acre, what will be
the maximum cost of the land required?
Ans. $ 856.
13. A torpedo boat is anchored 9 miles from the nearest point of a beach, and
it is desired to send a messenger in the shortest possible time to a military
camp situated 15 miles from that point along the shore. If he can walk 5
miles an hour but row only 4 miles an hour, required the place he must land.
Ans. 3 miles from the camp.
14. A gas holder is a cylindrical vessel closed at the top and open at the bottom,
where it sinks into the water. What should be its proportions for a given
volume to require the least material (this would also give least weight)?
Ans. Diameter = double the height.
15. What should be the dimensions and weight of a gas holder of 8, 000, 000
cubic feet capacity, built in the most economical manner out of sheet iron
1
16
of an inch thick and weighing 52 lb. per sq. ft.?
Ans. Height = 137 ft., diameter = 273 ft., weight = 220 tons.
16. A sheet of paper is to contain 18 sq. in. of printed matter. The margins
at the top and bottom are to be 2 inches each and at the sides 1 inch each.
Determine the dimensions of the sheet which will require the least amount
of paper.
Ans. 5 in. by 10 in.
198
7.7. PROBLEMS
199
7.7. PROBLEMS
23. Show that a square is the rectangle of maximum perimeter that can be in-
scribed in a given circle.
24. Two poles of height a and b feet are standing upright and are c feet apart.
Find the point on the line joining their bases such that the sum of the squares
of the distances from this point to the tops of the poles is a minimum. (Ans.
Midway between the poles.) When will the sum of these distances be a
minimum?
25. A conical tank with open top is to be built to contain V cubic feet. Deter-
mine the shape if the material used is a minimum.
26. An isosceles triangle has a base 12 in. long and altitude 10 in. Find the rect-
angle of maximum area that can be inscribed in it, one side of the rectangle
coinciding with the base of the triangle.
27. Divide the number 4 into two such parts that the sum of the cube of one part
and three times the square of the other shall have a maximum value.
28. Divide the number a into two parts such that the product of one part by the
fourth power of the other part shall be a maximum.
29. A can buoy in the form of a double cone is to be made from two equal
circular iron plates of radius r. Find the radius of the base of the cone when
the buoy has the greatest displacement (maximum volume).
q
Ans. r 23 .
30. Into a full conical wineglass of depth a and generating angle a there is care-
fully dropped a sphere of such size as to cause the greatest overflow. Show
that the radius of the sphere is sinααsin α
cos 2α
.
31. A wall 27 ft. high is 8 ft. from a house. Find the length of the shortest
ladder that will reach the house if one end rests on the ground outside of the
wall.
√
Ans. 13 13.
Here’s how to solve this using Sage : Let h be the height above ground at
which the ladder hits the house and let d be the distance from the wall that
the ladder hits the ground on the other side of the wall. By similar triangles,
200
7.7. PROBLEMS
Sage
sage: h = var("h")
sage: f(h) = sqrt(hˆ2+(8*h/(h-27))ˆ2)
sage: f1(h) = diff(f(h),h)
sage: f2(h) = diff(f(h),h,2)
sage: crit_pts = solve(f1(h) == 0,h); crit_pts
[h == 21 - 6*sqrt(3)*I, h == 6*sqrt(3)*I + 21, h == 39, h == 0]
sage: h0 = crit_pts[2].rhs(); h0
39
sage: f(h0)
13*sqrt(13)
sage: f2(h0)
3/(4*sqrt(13))
This says f (h) has four critical points, but only one of which is meaningful,
h0 = 39. At this point, f (h) is a minimum.
32. A vessel is anchored 3 miles offshore, and opposite a point 5 miles further
along the shore another vessel is anchored 9 miles from the shore. A boat
from the first vessel is to land a passenger on the shore and then proceed to
the other vessel. What is the shortest course of the boat?
Ans. 13 miles.
33. A steel girder 25 ft. long is moved on rollers along a passageway 12.8 ft.
wide and into a corridor at right angles to the passageway. Neglecting the
width of the girder, how wide must the corridor be?
Ans. 5.4 ft.
34. A miner wishes to dig a tunnel from a point A to a point B 300 feet below
and 500 feet to the east of A. Below the level of A it is bed rock and above
A is soft earth. If the cost of tunneling through earth is $ 1 and through rock
$ 3 per linear foot, find the minimum cost of a tunnel.
Ans. $ 1348.53.
201
7.7. PROBLEMS
35. A carpenter has 108 sq. ft. of lumber with which to build a box with a
square base and open top. Find the dimensions of the largest possible box
he can make.
Ans. 6 × 6 × 3.
36. Find the right triangle of maximum area that can be constructed on a line of
length h as hypotenuse.
Ans. √h = length of both legs.
2
37. What is the isosceles triangle of maximum area that can be inscribed in a
given circle?
Ans. An equilateral triangle.
38. Find the altitude of the maximum rectangle that can be inscribed in a right
triangle with base b and altitude h.
Ans. Altitude = h2 .
39. Find the dimensions of the rectangle of maximum area that can be inscribed
in the ellipse b2 x2 + a2 y 2 = a2 b2 .
√ √
Ans. a 2 × b 2; area = 2ab.
40. Find the altitude of the right cylinder of maximum volume that can be in-
scribed in a sphere of radius r.
2r
Ans. Altitude of cylinder = √
3
.
41. Find the altitude of the right cylinder of maximum convex (curved) surface
that can be inscribed in a given sphere.
√
Ans. Altitude of cylinder = r 2.
42. What are the dimensions of the right hexagonal prism of minimum surface
whose volume is 36 cubic feet?
√
Ans. Altitude = 2 3; side of hexagon = 2.
43. Find the altitude of the right cone of minimum volume circumscribed about
a given sphere.
Ans. Altitude = 4r, and volume = 2× vol. of sphere.
202
7.7. PROBLEMS
44. A right cone of maximum volume is inscribed in a given right cone, the
vertex of the inside cone being at the center of the base of the given cone.
Show that the altitude of the inside cone is one third the altitude of the given
cone.
45. Given a point on the axis of the parabola y 2 = 2px at a distance a from the
vertex; find the abscissa of the point of the curve nearest to it.
Ans. x = a − p.
46. What is the length of the shortest line that can be drawn tangent to the ellipse
b2 x2 + a2 y 2 = a2 b2 and meeting the coordinate axes?
Ans. a + b.
48. A tapestry 7 feet in height is hung on a wall so that its lower edge is 9
feet above an observer’s eye. At what distance from the wall should he
stand in order to obtain the most favorable view? (HINT. The vertical angle
subtended by the tapestry in the eye of the observer must be at a maximum.)
Ans. 12 feet.
49. What are the most economical proportions of a tin can which shall have a
given capacity, making allowance for waste? (HINT. There is no waste in
cutting out tin for the side of the can, but for top and bottom a hexagon of
tin circumscribing the circular pieces required is used up. NOTE 1. If no
allowance is made for waste, then height = diameter. NOTE 2. We know
that the shape of a bee cell is hexagonal, giving a certain capacity for honey
with the greatest possible economy of wax.)
√
2 3
Ans. Height = π
× diameter of base.
203
7.7. PROBLEMS
51. A weight W is to be raised by means of a lever with the force F at one end
and the point of support at the other. If the weight is suspended from a point
at a distance a from the point of support, and the weight of the beam is w
pounds per linear foot, what should be the length of the lever in order that
the force required to lift it shall be a minimum?
q
Ans. x = 2aW w
feet.
52. An electric arc light is to be placed directly over the center of a circular plot
of grass 100 feet in diameter. Assuming that the intensity of light varies
directly as the sine of the angle under which it strikes an illuminated surface,
and inversely as the square of its distance from the surface, how high should
the light he hung in order that the best possible light shall fall on a walk
along the circumference of the plot?
50
Ans. √
2
feet
53. The lower corner of a leaf, whose width is a, is folded over so as just to
reach the inner edge of the page.
(a) Find the width of the part folded over when the length of the crease is a
minimum.
(b) Find the width when the area folded over is a minimum.
Ans. (a) 34 a; (b) 32 a.
55. When the resistance of air is taken into account, the inclination of a pen-
dulum to the vertical may be given by the formula θ = ae−kt cos (nt + η).
Show that the greatest elongations occur at equal intervals πn of time.
204
7.7. PROBLEMS
205
7.7. PROBLEMS
of the plant, what is the relation between c, r, and t when the waste is a
minimum?
Ans. cr = t.
59. A submarine telegraph cable consists of a core of copper wires with a cov-
ering made of non-conducting material. If x denote the ratio of the radius
of the core to the thickness of the covering, it is known that the speed of
signaling varies as
1
x2 log .
x
Show that the greatest speed is attained when x = √1 .
e
60. Assuming that the power given out by a voltaic cell is given by the formula
E 2R
P = ,
(r + R)2
when E = constant electro-motive force, r = constant internal resistance, R
= external resistance, prove that P is a maximum when r = R.
61. The force exerted by a circular electric current of radius a on a small magnet
whose axis coincides with the axis of the circle varies as
x
5 .
(a2 + x2 ) 2
where x = distance of magnet from plane of circle. Prove that the force is a
maximum when x = a2 .
62. We have two sources of heat at A and B, which we visualize on the real line
(with B to the right or A), with intensities a and b respectively. The total
intensity of heat at a point P between A and B at a distance of x from A
is given by the formula I = xa2 + (d−x)
b
2 . Show that the temperature at P
1/3
will be the lowest when d−x
x
= ab 1/3 . that is, the distances BP and AP have
the same ratio as the cube roots of the corresponding heat intensities. The
1
a3 d
distance of P from A is x = 1 1 .
a 3 +b 3
206
7.7. PROBLEMS
v 2 sin 2φ
63. The range of a projectile in a vacuum is given by the formula R = 0 g ,
where v0 = initial velocity, g = acceleration due to gravity, φ = angle of
projection with the horizontal. Find the angle of projection which gives the
greatest range for a given initial velocity.
Ans. φ = 45o = π/4.
64. The total time of flight of the projectile in the last problem is given by the
formula T = 2v0 gsin φ . At what angle should it be projected in order to make
the time of flight a maximum?
Ans. φ = 90o = π/2.
65. The time it takes a ball to roll down an inclined planeqwith angle φ (with
respect to the x-axis) is given by the formula T = 2 g sin2 2φ . Neglecting
friction, etc., what must be the value of φ to make the quickest descent?
Ans. φ = 45o = π/4.
66. Examine the function (x − 1)2 (x + 1)3 for maximum and minimum values.
Use the first method.
Solution. f (x) = (x − 1)2 (x + 1)3 .
First step. f ′ (x) = 2(x − 1)(x + 1)3 + 3(x − 1)2 (x + 1)2 = (x − 1)(x +
1)2 (5x − 1).
Second step. (x − 1)(x + 1)2 (5x − 1) = 0, x = 1, −1, 51 , which are critical
values.
Third step. f ′ (x) = 5(x − 1)(x + 1)2 (x − 51 ).
Fourth step. Examine first for critical value x = 1.
When x < 1, f ′ (x) = 5(−)(+)2(+) = −. When x > 1, f ′ (x) =
5(+)(+)2(+) = +. Therefore, when x = 1 the function has a minimum
value f (l) = 0. Examine now for the critical value x = 51 . When x < 51 ,
f ′ (x) = 5(−)(+)2 (−) = +. When x > 51 , f ′ (x) = 5(−)(+)2 (+) = −.
Therefore, when x = 15 the function has a maximum value f ( 51 ) = 1.11.
Examine lastly for the critical value x = −1. When x < −1, f ′ (x) =
5(−)(−)2(−) = +. When x > −1, f ′ (x) = 5(−)(+)2(−) = +. There-
fore, when x = −1 the function has neither a maximum nor a minimum
value.
207
7.7. PROBLEMS
2
Figure 7.13: Sage plot of y = (x + 1) 3 (x − 5)2 .
208
7.7. PROBLEMS
83. Examine x3 −3x2 −9x+5 for maxima and minima, Use the second method,
§7.6.
Solution. f (x) = x3 − 3x2 − 9x + 5.
First step. f ′ (x) = 3x2 − 6x − 9.
Second step, 3x2 − 6x − 9 = 0; hence the critical values are x = −1 and 3.
Third step. f ′′ (x) = 6x − 6.
209
7.7. PROBLEMS
210
7.7. PROBLEMS
98. x4 − 4.
99. x3 − 8.
100. 4 − x6 .
105. xx .
x = 1e , gives min.
1
106. x x .
Ans. x = e, gives max.
108. sin 2x − x.
Ans. x = π6 , gives max.; x = − π6 , gives min.
211
7.7. PROBLEMS
109. x + tan x.
Ans. No max. or min.
111. x cos x.
212
7.8. POINTS OF INFLECTION
or
2 2
(b) ddyx2 = 0 and ddyx2 changes sign.
Solving the equation resulting from Lemma 7.8.1 gives the x-coordinate(s) of
the point(s) of inflection. To determine the direction of curving or direction of
bending in the vicinity of a point of inflection, test f ′′ (x) for values of x, first
slightly less and then slightly more than the x-coordinate at that point.
If f ′′ (x) changes sign, we have a point of inflection, and the signs obtained deter-
mine if the curve is concave upwards or concave downwards in the neighborhood
of each point of inflection.
The student should observe that near a point where the curve is concave up-
wards the curve lies above the tangent, and at a point where the curve is concave
downwards the curve lies below the tangent. At a point of inflection the tangent
evidently crosses the curve.
Following is a rule for finding points of inflection of the curve whose equation
is y = f (x). This rule includes also directions for examining the direction of
curvature of the curve in the neighborhood of each point of inflection.
• SECOND STEP. Set f ′′ (x) = 0, and solve the resulting equation for real
roots.
6
It is assumed that f ′ (x) and f ′′ (x) are continuous. The solution of Exercise 2, §7.8, shows
how to discuss a case where f ′ (x) and f ′′ (x) are both infinite.
213
7.9. EXAMPLES
• FOURTH STEP. Test f ′′ (x) for values of x, first a trifle less and then a trifle
greater than each root found in the second step. If f ′′ (x) changes sign, we
have a point of inflection.
7.9 Examples
Examine the following curves for points of inflection and direction of bending.
1. y = 3x4 − 4x3 + 1.
Solution. f (x) = 3x4 − 4x3 + 1.
First step. f ′′ (x) = 36x2 − 24x.
2
Second step. 36x2 − 24x = 0, x = 3
and x = 0, critical values.
′′ 2
Third step. f (x) = 36x(x − 3
).
Fourth step. When x < 0, f (x) = +; and when x > 0, f ′′ (x) = −.
′′
Therefore, the curve is concave upwards to the left and concave downwards
to the right of x = 0. When x < 23 , f ′′ (x) = −; and when x > 23 ,
f ′′ (x) = +. Therefore, the curve is concave downwards to the left and
concave upwards to the right of x = 32 .
The curve is evidently concave upwards everywhere to the left of x = 0,
11
concave downwards between (0, 1) and ( 23 , 27 ), and concave upwards ev-
2 11
erywhere to the right of ( 3 , 27 ).
2. (y − 2)3 = (x − 4).
1
Solution. y = 2 + (x − 4)− 3 .
dy 2
First step. dx
= 13 (x − 4)− 3 .
Second step. When x = 4, both first and second derivatives are infinite.
d2 y d2 y
Third step. When x < 4, dx2
= +; but when x > 4, dx2
= −.
7
This may be easily remembered if we say that a vessel shaped like the curve where it is
concave upwards will “hold (+) water”, and where it is concave downwards will “spill (−) water.”
214
7.9. EXAMPLES
3. y = x2 .
Ans. Concave upwards everywhere.
4. y = 5 − 2x − x2 .
Ans. Concave downwards everywhere.
5. y = x3 .
Ans. Concave downwards to the left and concave upwards to the right of
(0, 0).
6. y = x3 − 3x2 − 9x + 9.
Ans. Concave downwards to the left and concave upwards to the right of
(1, −2).
7. y = a + (x − b)3 .
Ans. Concave downwards to the left and concave upwards to the right of
(b, a).
x3
8. a2 y = 3
− ax2 + 2a3 .
Ans. Concave downwards to the left and concave upwards to the right of
(a, 4a
3
).
9. y = x4 .
Ans. Concave upwards everywhere.
11. y = sin x.
Ans. Points of inflection are x = nπ, n being any integer.
215
7.10. CURVE PLOTTING
12. y = tan x.
Ans. Points of inflection are x = n, n being any integer.
14. Show that the graphs of ex and log x have no points of inflection.
• FIRST STEP. Find the first derivative; place it equal to zero; solving gives
the abscissas of maximum and minimum points.
• SECOND STEP. Find the second derivative; place it equal to zero; solving
gives the abscissas of the points of inflection.
216
7.11. EXERCISES
• FOURTH STEP. Plot the points determined and sketch in the curve to cor-
respond with the results shown in the table.
If the calculated values of the ordinates are large, it is best to reduce the scale on
the y-axis so that the general behavior of the curve will be shown within the limits
of the paper used. Coordinate plotting (graph) paper should be employed.
7.11 Exercises
Trace the following curves, making use of the above rule. Also find the equations
of the tangent and normal at each point of inflection.
1. y = x3 − 9x2 + 24x − 7.
Solution. Use the above rule.
First step. y ′ = 3x2 − 18x + 24, 3x2 − 18x + 24 = 0, x = 2, 4.
Second step. y ′′ = 6x − 18, 6x − 18 = 0, x = 3.
Third step.
x y y′ y ′′ Remarks Direction of Curve
0 -7 + - concave down
2 13 0 - max. concave down
3 11 - 0 pt. of infl. concave up
4 9 0 + min. concave up
6 29 + + concave up
Fourth step. Plot the points and sketch the curve. To find the equations
of the tangent and normal to the curve at the point of inflection (3, 11),
use formulas (5.1), ((5.2). This gives 3x + y = 20 for the tangent and
3y − x = 30 for the normal.
2. y = x3 − 6x2 − 36x + 5.
Ans. Max. (−2, 45); min. (6, −211); pt. of infl. (2, −83); tan. y + 48x −
13 = 0; nor. 48y − x + 3986 = 0.
We shall solve this using Sage .
Sage
sage: x = var("x")
217
7.11. EXERCISES
3. y = x4 − 2x2 + 10.
1 85
Ans. Max. (0, 10); min. (±1, 9); pt. of infl. ± 3 , 9 .
√
4. y = 12 x4 − 3x2 + 2.
√
Ans. Max. (0, 2); min. (± 3, − 52 ); pt. of infl. (±1, − 12 ).
6x
5. y = 1+x2
.
√ √
Ans. Max. (1, 3); min. (−1, −3); pt. of infl. (0, 0), ± 3, ± 3 2 3 .
6. y = 12x − x3 .
Ans. Max. (2, 16); min. (−2, −16); pt. of infl. (0, 0).
7. 4y + x3 − 3x2 + 4 = 0.
Ans. Max. (2, 0); min. (0, −1).
218
7.11. EXERCISES
8. y = x3 − 3x2 − 9x + 9.
9. 2y + x3 − 9x + 6 = 0.
11. y(1 + x2 ) = x.
8a3
12. y = x2 +4a2
.
2
13. y = e−x .
4+x
14. y = x2
.
2
15. y = (x + l) 3 (x − 5)2 .
x+2
16. y = x3
.
219
7.11. EXERCISES
19. y = x − 2 cos x.
20. y = 3x − x3 .
22. x2 y = 4 + x.
23. 4y = x4 − 6x2 + 5.
x3
24. y = x2 +3a2
.
25. y = sin x + x2 .
x2 +4
26. y = x
.
27. y = 5x − 2x2 − 31 x3 .
1+x2
28. y = 2x
.
29. y = x − 2 sin x.
31. y = log(1 + x2 ).
220
CHAPTER
EIGHT
8.1 Introduction
Thus far we have represented the derivative of y = f (x) by the notation
dy
= f ′ (x).
dx
We have taken special pains to impress on the student that the symbol
dy
dx
was to be considered not as an ordinary fraction with dy as numerator and dx as
denominator, but as a single symbol denoting the limit of the quotient
∆y
∆x
as ∆x approaches the limit zero.
Problems do occur, however, where it is very convenient to be able to give a
meaning to dx and dy separately, and it is especially useful in applications us-
ing integral calculus. How this may be done is explained in the first part of this
chapter.
In the second part (starting with §8.6), we apply what we know about the deriva-
tive to functions of time t. If f (t) is some quantity (for example, distance) chang-
ing with time then we can regard f ′ (t) as the rate of change of f (for example,
221
8.2. DEFINITIONS
velocity). The method of solving “related rates” problems will be explained in the
second part of this chapter.
8.2 Definitions
If f ′ (x) is the derivative of f (x) for a particular value of x, and ∆x is an arbitrarily
chosen1 increment of x, then the differential of f (x), denoted by the symbol df (x),
is defined by the equation
dy
= f ′ (x) = tan τ,
dx
dy denotes the corresponding increment of the y-coordinate drawn to the tangent.
1
The term “arbitrarily chosen” essentially means that the variable ∆x is independent from the
variable x.
222
8.3. DERIVATIVE OF THE ARCLENGTH IN RECTANGULAR
COORDINATES
223
8.3. DERIVATIVE OF THE ARCLENGTH IN RECTANGULAR
COORDINATES
224
8.4. DERIVATIVE OF THE ARCLENGTH IN POLAR COORDINATES
s 2
ds dx
= + 1.
dy dy
Also, from the above figure,
∆x ∆y
cos θ = , sin θ = .
chordP Q chordP Q
Now as Q approaches P as a limiting position θ → τ , and we get
dx dy
cos τ = , sin τ = . (8.5)
ds ds
∆y
∆x
(Since lim chord PQ
∆x
= lim ∆x = dx
ds
, and lim chord PQ
= lim ∆y
∆s
= dy
ds
.) Using the
notation of differentials, these formulas may be written
" 2 # 21
dy
ds = 1 + dx (8.6)
dx
and
" 2 # 21
dx
ds = +1 dy, (8.7)
dy
respectively. Substituting the value of ds from (8.6) in (8.5),
dy
1 dx
cos τ = h i 12 , sin τ = h i 12 , (8.8)
dy 2 dy 2
1+ dx
1+ dx
225
8.4. DERIVATIVE OF THE ARCLENGTH IN POLAR COORDINATES
226
8.5. EXERCISES
Example 8.4.2. Find the differential of the arclength of the cardioid ρ = a(l −
cos θ) in terms of θ.
Solution. Differentiating, dρ
dθ
= a sin θ.
Substituting in (8.10), gives
12
1 1 θ θ
ds = [a2 (1−cos θ)2 +a2 sin2 θ] dθ = a[2−2 cos θ] dθ = a 4 sin2
2 2 dθ = 2a sin dθ.
2 2
8.5 Exercises
Find the differential of arclength in each of the following curves:
1. y 2 = 4x.
q
1+x
Ans. ds = x
dx.
2. y = ax2 .
√
Ans. ds = 1 + 4a2 x2 dx.
3. y = x3 .
√
Ans. ds = 1 + 9x4 dx.
4. y 3 = x2 .
1
√
Ans. ds = 2
4 + 9ydy.
2 2 2
5. x 3 + y 3 = a 3 .
q
Ans. ds = 3 ay dy.
6. b2 x2 + a2 y 2 = a2 b2 .
q
2 2 x2
Ans. ds = aa2−e −x2
dx.
227
8.6. THE DERIVATIVE CONSIDERED AS THE RATIO OF TWO RATES
7. ey cos x = 1.
Ans. ds = sec x dx.
8. ρ = a cos θ.
Ans. ds = a dθ.
9. ρ2 = a2 cos 2θ.
√
Ans. ds = sec 2θdθ.
11. ρ = aθ.
p
Ans. ds = aθ 1 + log2 adθ.
12. ρ = aθ.
1
p
Ans. ds = a
a2 + ρ2 dρ.
13. 1 1 1
(a) x 2 − y 2 = a2 . (h) x 2 + y 2 = a 2 .
(b) x2 = 4ay. (i) y 2 = ax3 .
(c) y = ex + e−x . (j) y = log x.
(d) xy = a. (k) 4x = y 3 .
(e) y = log sec x. (l) ρ = a sec2 2θ .
(f ) ρ = 2a tan θ sin θ. (m) ρ = 1 + sin θ.
(g) ρ = a sec3 3θ . (n) ρθ = a.
y = f (x)
be the equation of a curve generated by a moving point P. Its coordinates x and y
may then be considered as functions of the time, as explained in §5.13. Differen-
tiating with respect to t, by the chain rule (Formula XXV in §4.1), we have
dy dx
= f ′ (x) . (8.11)
dt dt
228
8.6. THE DERIVATIVE CONSIDERED AS THE RATIO OF TWO RATES
At any instant the time rate of change of y (or the function) equals its derivative
multiplied by the time rate change of the independent variable.
Or, write (8.11) in the form
dy
dy
dt
dx
= f ′ (x) = .
dt
dx
The derivative measures the ratio of the time rate of change of y to that of x.
ds
dt
being the time rate of change of length of arc, we have from (5.26),
s 2 2
ds dx dt
= + . (8.12)
dt dt dt
which is the relation indicated by Figure 8.3.
As a guide in solving rate problems use the following rule.
229
8.7. EXERCISES
• FIFTH STEP. Substitute the known quantities in the result found by differ-
entiating (third step), and solve for the unknown.
8.7 Exercises
1. A man is walking at the rate of 5 miles per hour towards the foot of a tower
60 ft. high. At what rate is he approaching the top when he is 80 ft. from
the foot of the tower?
Solution. Apply the above rule.
First step. Draw the figure. Let x = distance of the man from the foot and y
= his distance from the top of the tower at any instant.
Second step. Since we have a right triangle, y 2 = x2 + 3600.
Third step. Differentiating, we get 2y dy
dt
= 2x dx
dt
, or, dy
dt
= xy dx
dt
, meaning
that at any instant whatever (Rate of change of y) = xy (rate of change of
x).
Fourth step.
x = 80, dx
dt
= 5 miles/hour,
=√5 × 5280f t/hour,
y = x2 + 3600
= 100.
dy
dt
=?
dy 80
Fifth step. Substituting back in the above dt
= 100
× 5 × 5280 ft/hour = 4
miles/hour.
230
8.7. EXERCISES
dx dy x2 ds
Fourth step. dt
= 2 ft. per second, x = 6, dt
=?, y = 6
= 6, dt
=?
dy 6
Fifth step. Substituting back in the above, dt
= 3
× 2 = 4 ft. per second.
From the first result we note that at the point (6, 6) the y-coordinate changes
twice as rapidly as the x-coordinate.
If we consider the point (−6, 6) instead, the result is dydt
= −4 ft. per
second, the minus sign indicating that the y-coordinate is decreasing as the
x-coordinate increases.
We shall now solve this using Sage .
Sage
sage: t = var("t")
sage: x = function("x",t)
sage: y = function("y",t)
sage: eqn = 6*y - xˆ2
sage: solve(diff(eqn,t) == 0, diff(y(t), t, 1))
[diff(y(t), t, 1) == x(t)*diff(x(t), t, 1)/3]
sage: s = sqrt(xˆ2+yˆ2)
sage: diff(s,t)
(2*y(t)*diff(y(t), t, 1)
+ 2*x(t)*diff(x(t), t, 1))/(2*sqrt(y(t)ˆ2 + x(t)ˆ2))
dy x dx
This tells us that dt
= 3
· dt
and
231
8.7. EXERCISES
3. A circular plate of metal expands by heat so that its radius increases uni-
formly at the rate of 0.01 inch per second. At what rate is the surface in-
creasing when the radius is two inches?
Solution. Let x = radius and y = area of plate. Then y = πx2 , dy dt
= 2πx dx
dt
,
That is; at any instant the area of the plate is increasing in square inches 2πx
times as fast as the radius is increasing in linear inches. x = 2, dx dt
= 0.01,
dy dy
dt
=?. Substituting in the above, dt = 2π × 2 × 0.01 = 0.04π sq. in. per
sec.
4. A street light is hung 12 ft. directly above a straight horizontal walk on
which a boy 5 ft. in height is walking. How fast is the boy’s shadow length-
ening when he is walking away from the light at the rate of 168 ft. per
minute?
Solution. Let x = distance of boy from a point directly under light L, and y
= length of boy’s shadow. By similar triangle, y/(y +x) = 5/12, or y = 57 x.
Differentiating, dy
dt
= 57 dx
dt
; i.e. the shadow is lengthening 57 as fast as the
boy is walking, or 120 ft. per minute.
5. In a parabola y 2 = 12x, if x increases uniformly at the rate of 2 in. per
second, at what rate is y increasing when x = 3 in. ?
Ans. 2 in. per sec.
6. At what point on the parabola of the last example do the x-coordinate and
y-coordinate increase at the same rate?
Ans. (3, 6).
7. In the function y = 2x3 + 6, what is the value of x at the point where y
increases 24 times as fast as x?
Ans. x = ±2.
8. The y-coordinate of a point describing the curve x2 + y 2 = 25 is decreasing
at the rate of 3/2 in. per second. How rapidly is the x-coordinate changing
when the y-coordinate is 4 inches?
dx
Ans. dt
= 2 in. per sec.
9. Find the values of x at the points where the rate of change of x3 − 12x2 +
45x − 13 is zero.
Ans. x = 3 and 5.
232
8.7. EXERCISES
10. At what point on the ellipse 16x2 + 9y 2 = 400 does y decrease at the same
rate that x increases?
Ans. (3, 16
3
).
11. Where in the first quadrant does the arclength increase twice as fast as the
y-coordinate?
Ans. At 60o = π/3.
A point generates each of the following curves (problems 12-16). Find the rate
at which the arclength is increasing in each case:
dx
12. y 2 = 2x; = 2, x = 2.
dt
ds
√
Ans. dt
= 5.
dy
13. xy = 6; dt
= 2, y = 3.
ds
√
Ans. dt
= 23 13.
dx
14. x2 + 4y 2 = 20; dt
= −1, y = 1.
√
Ans. ds
dt
= 2.
dx
15. y = x3 ; dt
= 3, x = −3.
dy
16. y 2 = x3 ; dt
= 4, y = 8.
17. The side of an equilateral triangle is 24 inches long, and is increasing at the
rate of 3 inches per hour. How fast is the area increasing?
√
Ans. 36 3 sq. in. per hour.
18. Find the rate of change of the area of a square when the side b is increasing
at the rate of a units per second.
Ans. 2ab sq. units per sec.
19. (a) The,volume of a spherical soap bubble increases how many times as fast
as the radius? (b) When its radius is 4 in. and increasing at the rate of 1/2
in. per second, how fast is the volume increasing?
Ans. (a) 4πr2 times as fast; (b) 32π cu. in. per sec.
How fast is the surface increasing in the last case?
233
8.7. EXERCISES
20. One end of a ladder 50 ft. long is leaning against a perpendicular wall
standing on a horizontal plane. Supposing the foot of the ladder to be pulled
away from the wall at the rate of 3 ft. per minute; (a) how fast is the top of
the ladder descending when the foot is 14 ft. from the wall? (b) when will
the top and bottom of the ladder move at the same rate? (c) when is the top
of the ladder descending at the rate of 4 ft. per minute?
7
√
Ans. (a) 78 ft. per min.; (b) when 25 2 ft. from wall; (c) when 40 ft. from
wall.
21. A barge whose deck is 12 ft. below the level of a dock is drawn up to it by
means of a cable attached to a ring in the floor of the dock, the cable being
hauled in by a windlass on deck at the rate of 8 ft. per minute. How fast is
the barge moving towards the dock when 16 ft. away?
Ans. 10 ft. per minute.
22. An elevated car is 40 ft. immediately above a surface car, their tracks inter-
secting at right angles. If the speed of the elevated car is 16 miles per hour
and of the surface car 8 miles per hour, at what rate are the cars separating
5 minutes after they meet?
Ans. 17.9 miles per hour.
23. One ship was sailing south at the rate of 6 miles per hour; another east at
the rate of 8 miles per hour. At 4 P.M. the second crossed the track of the
first where the first was two hours before; (a) how was the distance between
the ships changing at 3 P.M.? (b) how at 5 P.M.? (c) when was the distance
between them not changing?
Ans. (a) Diminishing 2.8 miles per hour; (b) increasing 8.73 miles per hour;
(c) 3 : 17 P.M.
24. Assuming the volume of the wood in a tree to be proportional to the cube
of its diameter, and that the latter increases uniformly year by year when
growing, show that the rate of growth when the diameter is 3 ft. is 36 times
as great as when the diameter is 6 inches.
25. A railroad train is running 15 miles an hour past a station 800 ft. long, the
track having the form of the parabola y 2 = 600x, and situated as shown in
Figure 8.4.
234
8.7. EXERCISES
If the sun is just rising in the east, find how fast the shadow S of the loco-
motive L is moving along the wall of the station at the instant it reaches the
end of the wall.
Solution. y 2 = 600x, 2y dy = 600 dx , or dx y dy
= 300 . Substituting this value
q dt dt dt dt
dx 2 dy 2 ds 2 y dy 2 dy 2
of dx ds
dt
in dt
= dt
+ dt
, we get dt
= 300 dt
+ dt
. Now
ds dy
dt
= 15 miles per hour = 22 ft. per sec., y = 400 and dt =?. Substituting
dy 2
back in the above, we get (22)2 = 16 9
+ 1 dt
, or, dy
dt
= 13 51 ft. per
second.
26. An express train and a balloon start from the same point at the same instant.
The former travels 50 miles an hour and the latter rises at the rate of 10
miles an hour. How fast are they separating?
Ans. 51 miles an hour.
27. A man 6 ft. tall walks away from a lamp-post 10 ft. high at the rate of 4
miles an hour. How fast does the shadow of his head move?
Ans. 10 miles an hour.
235
8.7. EXERCISES
28. The rays of the sun make an angle of 30o = π/6 with the horizon. A ball is
thrown vertically upward to a height of 64 ft. How fast is the shadow of the
ball moving along the ground just before it strikes the ground?
Ans. 110.8 ft. per sec.
29. A ship is anchored in 18 ft. of water. The cable passes over a sheave on the
bow 6 ft. above the surface of the water. If the cable is taken in at the rate
of 1 ft. a second, how fast is the ship moving when there are 30 ft. of cable
out?
5
Ans. 3
ft. per sec.
31. Water flows from a faucet into a hemispherical basin of diameter 14 inches
at the rate of 2 cu. in. per second. How fast is the water rising (a) when
the water is halfway to the top? (b) just as it runs over? (The volume of a
spherical segment = 12 πr2 h + 61 πh3 , where h = altitude of segment.)
32. Sand is being poured on the ground from the orifice of an elevated pipe,
and forms a pile which has always the shape of a right circular cone whose
height is equal to the radius of the base. If sand is falling at the rate of 6 cu.
ft. per sec., how fast is the height of the pile increasing when the height is 5
ft.?
33. An aeroplane is 528 ft. directly above an automobile and starts east at the
rate of 20 miles an hour at the same instant the automobile starts east at the
rate of 40 miles an hour. How fast are they separating?
236
8.7. EXERCISES
35. A kite is 150 ft. high and 200 ft. of string are out. If the kite starts drifting
away horizontally at the rate of 4 miles an hour, how fast is the string being
paid out at the start?
Ans. 2.64 miles an hour.
36. A solution is poured into a conical filter of base radius 6 cm. and height 24
cm. at the rate of 2 cu. cm. a second, and filters out at the rate of 1 cu. cm.
a second. How fast is the level of the solution rising when (a) one third of
the way up? (b) at the top?
Ans. (a) 0.079 cm. per sec.; (b) 0.009 cm. per sec.
37. A horse runs 10 miles per hour on a circular track in the center of which is
a street light. How fast will his shadow move along a straight board fence
(tangent to the track at the starting point) when he has completed one eighth
of the circuit?
Ans. 20 miles per hour.
38. The edges of a cube are 24 inches and are increasing at the rate of 0.02
in. per minute. At what rate is (a) the volume increasing? (b) the area
increasing?
39. The edges of a regular tetrahedron are 10 inches and are increasing at the
rate of 0.3 in. per hour. At what rate is (a) the volume increasing? (b) the
area increasing?
40. An electric light hangs 40 ft. from a stone wall. A man is walking 12 ft. per
second on a straight path 10 ft. from the light and perpendicular to the wall.
How fast is the man’s shadow moving when he is 30 ft. from the wall?
Ans. 48 ft. per sec.
41. The approach to a drawbridge has a gate whose two arms rotate about the
same axis as shown in the figure. The arm over the driveway is 4 yards
long and the arm over the footwalk is 3 yards long. Both arms rotate at
the rate of 5 radians per minute. At what rate is the distance between the
extremities of the arms changing when they make an angle of 45o = π/4
with the horizontal?
Ans. 24 yd. per min.
237
8.7. EXERCISES
42. A conical funnel of radius 3 inches and of the same depth is filled with a
solution which filters at the rate of 1 cu. in. per minute. How fast is the
surface falling when it is 1 inch from the top of the funnel?
1
Ans. 4π
in. per mm.
43. An angle is increasing at a constant rate. Show that the tangent and sine
are increasing at the same rate when the angle is zero, and that the tangent
increases eight times as fast as the sine when the angle is 60o = π/3.
238
CHAPTER
NINE
Change of variable
dy
If y = f (x) is a function of x and x is a function of some other variable t then dx ,
2
d y dy dx d y 2
dx2
, etc., can be expressed in terms of dt , dt , dt2 , etc.. This chapter is devoted to
explaining the techniques to find the formulas necessary for making such a change
of variables.
dy 1 dx
= dx , 6= 0 (9.1)
dx dy
dy
dy dx
giving dx
in terms of dy
. Also, by 4.27 in §4.1,
239
9.1. INTERCHANGE OF DEPENDENT AND INDEPENDENT VARIABLES
d2 y
d dy d dy dy
2
= = ,
dx dx dx dy dx dx
or
!
d2 y d 1 dy
2
= dx
. (9.2)
dx dy dy
dx
d2 x
d 1 dy 2 dy 1
But dy dx =− dx 2
; and dx
= dx from (9.1). Substituting these in (9.2), we
dy ( )
dy dy
get
d2 x
d2 y dy 2
2
= − 3 , (9.3)
dx dx
dy
d2 y dx d2 x
giving dx2
in terms of dy
and dy 2
. Similarly,
2
d3 x dx d2 x
d3 y dy 3 dy
−3 dy 2
=− 5 , (9.4)
dx3 dx
dy
and so on for higher derivatives. This transformation is called changing the inde-
pendent variable from x to y.
Example 9.1.1. Change the independent variable from x to y in the equation
2 2
d2 y dy d3 y d2 y dy
3 − − = 0.
dx2 dx dx3 dx2 dx
Solution. Substituting from (9.1), (9.3), (9.4),
2 2
d2 x d3 x dx d2 x d2 x
!2
−3
!
dy 2 1 dy 3 dy dy 2 dy 2 1
3 − 3 − − − − 3 = 0.
dx 5 dx
dx dy dx dx dy
dy dy dy
Reducing, we get
d3 x d2 x
+ = 0,
dy 3 dy 2
a much simpler equation.
240
9.2. CHANGE OF THE DEPENDENT VARIABLE
y = f (x),
and suppose at the same time y is a function of z, say
y = g(z).
dy d2 y dz d z 2
We may then express dx , dx2 etc., in terms of dx , dx2 , etc., as follows
In general, z is a function of y, and since y is a function of x, it is evident that z
is a function of x. Hence by 4.27 of §4.1, we have
dy dy dz dz
= = ψ ′ (z) .
dx dz dx dx
d2 y d ′ dz dz d ′ d z 2 d ′ d ′ dz
+ g ′ (z) dx
Also dx 2 = dx g (z) dx = dx dx
g (z) 2 . But dx
g (z) = dz
g (z) dx =
′′ dz
g (z) dx . Therefore,
2
d2 y d2 z
dz
2
= g ′′ (z) + g ′ (z) .
dx dx dx2
Similarly for higher derivatives. This transformation is called changing the de-
pendent variable from y to z, the independent variable remaining x throughout.
We will now illustrate this process by means of an example.
y = tan z.
Solution. From the above,
2
dz d2 y d2 z
dy dz
= sec2 (z) , 2 = sec2 (z) 2 + 2 sec2 (z) tan(z) ,
dx dx dx dx dx
Substituting,
241
9.3. CHANGE OF THE INDEPENDENT VARIABLE
2 2
d2 z
dz 2(1 + tan z) dz
2
sec (z) 2 + 2 sec2 (z) tan(z) =1+ 2
sec z ,
dx dx 1 + tan2 z dx
d2 z dz 2
= cos2 z.
and reducing, we get dx2
−2 dx
dy d2 y
, , etc.,
dx dx2
in terms of new derivatives having t as the independent variable. By 4.27 §4.1,
dy dy dx
dt
= dx dt
, or
dy
dy dt
= dx
. (9.5)
dx dt
dx d2 y
! 2
dy
− dy d x
d dy d dt dt dt2 dt dt2
= = .
dt dx dt dx dx 2
dt dt
Therefore
dx d2 y 2
d2 y dt dt2
− dy d x
dt dx2
= , (9.6)
dx2 dx 3
dt
and so on for higher derivatives. This transformation is called changing the in-
dependent variable from x to t. It is usually better to work out examples by the
methods illustrated above rather than by using the formulas deduced.
242
9.4. CHANGE OF INDEPENDENT AND DEPENDENT VARIABLES
d2 y dy
x2 + x +y =0
dx2 dx
where x = et .
Solution. dx
dt
= et , therefore
dt
= e−t .
dx
dy d2 y
= dy dt ; therefore dx
dy
= e−t dy −t d dy dy −t dt
Also dx dt dx dt
. Also dx 2 = e dx dt
− dt
e dx =
dy dt dy −t dt
e−t dtd dt dx
− dt e dx . Substituting into dt −t
the last result dx = e ,
d2 y 2
−2t d y dy
2
= e 2
− e−2t .
dx dt dt
Substituting these into the differential equation,
2
2t −2t d y dy −2t t −t dy
e e − e +e e + y = 0,
dt2 dt dt
d2 y
and reducing, we get dt2
+ y = 0.
Since the formulas deduced in the Differential Calculus generally involve deriva-
tives of y with respect to x, such formulas as the chain rule are especially useful
when the parametric equations of a curve are given. Such examples were given in
§5.5, and many others will be employed in what follows.
f (x, y) = 0
243
9.4. CHANGE OF INDEPENDENT AND DEPENDENT VARIABLES
Example 9.4.1. Transform the formula for the radius of curvature (11.5),
h i 23
dy 2
1+ dx
R= d2 y
,
dx2
dx d2 y 2
d2 y dθ dθ2
− dy d x
dθ dθ2
= .
dx2 dx 3
dθ
dx dρ
= −ρ sin θ + cos θ ;
dθ dθ
dy dρ
= ρ cos θ + sin θ ;
dθ dθ
d2 x dρ d2 ρ
= −ρ cos θ − 2 sin θ + cos θ ;
dθ2 dθ dθ2
d2 y dρ d2 ρ
= −ρ sin θ + 2 cos θ + sin θ .
dθ2 dθ dθ2
Substituting these in (9.7) and reducing,
244
9.5. EXERCISES
h i 23
2 dρ 2
ρ + dθ
R= .
dρ 2 2
− ρ ddθρ2
ρ2 + 2 dθ
9.5 Exercises
Change the independent variable from x to y in the following equations.
i3
dy 2 2
h
1+( dx )
1. R = d2 y
dx2
h i3
2 2
1+( dx
dy )
Ans. R = − d2 x
.
dy 2
d2 y dy 2
2. dx2
+ 2y dx
= 0.
d2 x
Ans. dy 2
− 2y dx
dy
= 0.
d y2 dy 3 dy
3. x dx 2 + dx
− dx
= 0.
2
2
d y dx
Ans. x dx 2 − 1 + dy
= 0.
dy
d2 y 2 dy
dy d3 y
4. + 2 dx2 = a dx
3a dx + 1 dx dx3
.
2 2 3
Ans. ddyx2 = dx dy
+ a d x
dy 3
.
d x 3 dz d2 z
Ans. (z + 1) dx 3 = dx dx2
+ z 2 + 2z.
d2 y 2(1+y) dy 2
6. dx2
=1+ 1+y 2 dx
, y = tan z.
d2 z dz 2
= cos2 z.
Ans. dx2
−2 dx
245
9.5. EXERCISES
n o
3 dy 2
d y dy
d2 y dy dy
7. y 2 dx 2
+ 3x2 y 2 + x3 y 3 = 0, y =
3 − 3y dx + 2xy dx2
+ 2 dx
2xy dx dx
ez .
d3 z d z 2
2 dz 3
Ans. dx3
− 2x dx 2 + 3x dx + x = 0.
d2 y x dy y
8. dx2
− 1−x2 dx
+ 1−x2
= 0, x = cos t.
d2 y
Ans. dt2
+ y = 0.
d y 2
dy
9. (1 − x2 ) dx 2 − x dx = 0, x = cos z.
d2 y
Ans. dz 2
= 0.
2
10. (1 − y 2 ) ddyu2 − y du
dy
+ a2 u = 0, y = sin x.
d2 u
Ans. dx2
+ a2 u = 0.
2
d y dy a2
11. x2 dx 2 + 2x dx + x2
y = 0, x = z1 .
d2 y
Ans. dz 2
+ a2 y = 0.
d v 3 2
2d v dv
12. x3 dx 3 + 3x dx2 + x dx + v = 0, x = et .
d3 v
Ans. dx3
+ v = 0.
d2 y 2x dy y
13. dx2
+ 1+x2 dx
+ (1+x2 )2
= 0, x = tan θ.
d2 y
Ans. dθ2
+ y = 0.
d2 u
14. ds2
+ su du
ds
+ sec2 s = 0.
Ans. s = arctan t.
d y 2
15. x4 dx 2
2 + a y = 0, x = z1 .
d2 y 2 dy
Ans. dz 2
+ z dz
+ a2 y = 0.
In the following seven examples the equations are given in parametric form.
dy d2 y
Find dx and dx 2 in each case:
246
9.5. EXERCISES
16. x = 7 + t2 , y = 3 + t2 − 3t4 .
dy d2 y
Ans. dx
= 1 − 6t2 , dx2
= −6.
We shall solve this using Sage .
Sage
sage: t = var("t")
sage: x = 7 + tˆ2
sage: y = 3 + tˆ2 - 3*tˆ4
sage: f = (x, y)
sage: p = parametric_plot(f, 0, 1)
sage: D_x_of_y = diff(y,t)/diff(x,t); D_x_of_y
(2*t - 12*tˆ3)/(2*t)
sage: solve(D_x_of_y == 0,t)
[t == -1/sqrt(6), t == 1/sqrt(6)]
sage: t0 = solve(D_x_of_y == 0,t)[1].rhs()
sage: (x(t0),y(t0))
(43/6, 37/12)
sage: D_xx = (diff(y,t,t)*diff(x,t)-diff(x,t,t)*diff(y,t))/diff(x,t)ˆ2
sage: D_xx
(2*t*(2 - 36*tˆ2) - 2*(2*t - 12*tˆ3))/(4*tˆ2)
sage: D_xx(t0)
-12/sqrt(6)
This tells us that the critical point is at (43/6, 37/12) = (7.166.., 3.0833..),
which is a maximum. The plot in Figure 9.1 illustrates this.
17. x = cot t, y = sin3 t.
dy d2 y
Ans. dx
= −3 sin4 t cos t, dx2
= 3 sin5 t(4 − 5 sin2 t).
18. x = a(cos t + sin t), y = a(sin t − t cos t).
dy d2 y 1
Ans. dx
= tan t, dx2
= at cos3 t
.
1−t 2t
19. x = 1+t
, y= 1+t
.
20. x = 2t, y = 2 − t2 .
21. x = 1 − t2 , y = t3 .
22. x = a cos t, y = b sin t.
x dy −y
23. Transform q dx
dy 2
by assuming x = ρ cos θ, y = ρ sin θ.
1+( dx )
2
Ans. q ρ
2.
ρ( dρ
dθ )
247
9.5. EXERCISES
24. Let f (x, y) = 0 be the equation of a curve. Find an expression for its slope
dy
dx
in terms of polar coordinates.
dy ρ cos θ+sin θ dρ
Ans. dx
= dθ
−ρ sin θ+cos θ dρ
.
dθ
248
CHAPTER
TEN
We have seen how the first derivative can be applied to solving max-min problems
and related rate problems. In this chapter, we present some applications of higher
derivatives. Below, we introduce the mean value theorem, L’Hôpital’s rule for
limits of “indeterminant forms,” and Taylor series approximations.
Rolle’s Theorem: If f (x) vanishes when x = a and x = b, and f (x) and f ′ (x)
are continuous for all values of x from x = a to x = b, then f ′ (x) will be zero for
at least one value of x between a and b.
249
10.1. ROLLE’S THEOREM
250
10.2. THE MEAN VALUE THEOREM
f (b) − f (a)
= Q, (10.1)
b−a
or
F ′ (x) = f ′ (x) − Q.
Therefore, since F ′ (x1 ) = 0, then also f ′ (x1 ) − Q = 0, and Q = f ′ (x1 ). Substi-
tuting this value of Q in (10.1), we get the ean value theorem,
f (b) − f (a)
= f ′ (x1 ), a < x1 < b (10.4)
b−a
where in general all we know about x1 is that it lies between a and b.
The mean value theorem interpreted geometrically.
Let the curve in the figure be the locus of y = f (x).
251
10.2. THE MEAN VALUE THEOREM
EB f (b) − f (a)
tan EAB = = .
AE b−a
There is at least one point on the curve between A and B (as P) where the tangent
(or curve) is parallel to the chord AB. If the abscissa of P is x1 the slope at P is
f (b) − f (a)
= f ′ (x1 ),
b−a
which is the mean value theorem.
252
10.3. THE EXTENDED MEAN VALUE THEOREM
The student should draw curves (as the one in §10.1), to show that there may be
more than one such point in the interval; and curves to illustrate, on the other hand,
that the theorem may not be true if f (x) becomes discontinuous for any value of
x between a and b (see Figure 10.2 (a)), or if f ′ (x) becomes discontinuous (see
Figure 10.2 (b)).
Clearing (10.4) of fractions, we may also write the theorem in the form
1
f (b) − f (a) − (b − a)f ′ (a) − (x − a)2 R = 0. (10.7)
2
Let F (x) be a function formed by replacing b by x in the left-hand member of
(10.1); that is,
1
F (x) = f (x) − f (a) − (x − a)f ′ (a) − (x − a)2 R. (10.8)
2
From (10.7), F (b) = 0; and from (10.8), F (a) = 0; therefore, by Rolle’s Theo-
rem, at least one value of x between a and b, say x1 will cause F ′ (x) to vanish.
Hence, since
253
10.4. EXERCISES
Since F ′ (x1 ) = 0 and F ′ (a) = 0, it is evident that F ′ (x) also satisfies the condi-
tions of Rolle’s Theorem, so that its derivative, namely F ′′ (x), must vanish for at
least one value of x between a and x1 , say x2 , and therefore x2 also lies between
a and b. But F ′′ (x) = f ′′ (x) − R; therefore F ′′ (x2 ) = f ′′ (x2 ) − R = 0, and
R = f ′′ (x2 ). Substituting this result in (10.7), we get
1
f (b) = f (a) + (b − a)f ′ (a) +
(b − a)2 f ′′ (x2 ), a < x2 < b.
2!
In the same manner, if we define S by means of the equation
1 1
f (b) − f (a) − (b − a)f ′ (a) − (b − a)2 f ′′ (a) − (b − a)2 f ′′ (a)S = 0,
2! 3!
we can derive the equation
10.4 Exercises
Examine the following functions for maximum and minimum values, using the
methods above.
1. y = 3x4 − 4x3 + 1
Ans. x = 1 is a min., y = 0; x = 0 gives neither.
1
Also called Taylor’s formula.
254
10.5. MAXIMA AND MINIMA TREATED ANALYTICALLY
2. y = x3 − 6x2 + 12x + 48
Ans. x = 2 gives neither.
3. y = (x − 1)2 (x + 1)3
Ans. x = 1 is a min., y = 0; x = 1/5 is a max; x = −1 gives neither.
5. Investigate y = x3 − 3x2 + 3x + 7 at x = 1.
6. Show the if the first derivative of f (x) which does not vanish at x = a is
of odd order n then f (x) is increasing or decreasing at x = a, according to
whether f (n) (a) is positive or negative.
255
10.5. MAXIMA AND MINIMA TREATED ANALYTICALLY
(10.10) and (10.11), f (a) will be neither a maximum nor a minimum. This
result agrees with the discussion in §7.4, where it was shown that for all
values of x for which f (x) is a maximum or a minimum, the first derivative
f ′ (x) must vanish.
II Let f ′ (a) = 0, and f ′′ (a) 6= 0. From (10.12), replacing b by x and transpos-
ing f (a),
(x − a)2 ′′
f (x) − f (a) = f (x2 ), a < x2 < x. (10.13)
2!
Since f ′′ (a) 6= 0, and f ′′ (x) is assumed as continuous, we may choose
our interval [a − h, a + h] so small that f ′′ (x2 ) will have the same sign as
f ′′ (a) (Chap. 2). Also (x − a)2 does not change sign. Therefore the second
member of (10.13) will not change sign, and the difference f (x) − f (a)
will have the same sign for all values of x in the interval [a − h, a + h],
and, moreover, this sign will be the same as the sign of f ′′ (a). It therefore
follows from our definitions (10.10) and (10.11) that
1
f (x) − f (a) = (x − a)3 f ′′′ (x3 ), a < x3 < x. (10.16)
3!
As before, f ′′′ (x3 ) will have the same sign as f ′′′ (a). But (x−a)3 changes its
sign from − to + as x increases through a. Therefore the difference f (x) −
f (a) must change sign, and f (a) is neither a maximum nor a minimum.
IV Let f ′ (a) = f ′′ (a) = · · · = f (n−l) (a) = 0, and f (n) (a) 6= 0. By continuing
the process as illustrated in I, II, and III, it is seen that if the first derivative
of f (x) which does not vanish for x = a is of even order (= n), then2
2
As in §7.4, a critical value x = a is found by placing the first derivative equal to zero and
solving the resulting equation for real roots.
256
10.6. EXERCISES
Example 10.5.1. Examine x3 −9x2 +24x−7 for maximum and minimum values.
Solution. f (x) = x3 − 9x2 + 24x − 7. f ′ (x) = 3x2 − 18x + 24. Solving
3x2 − 18x + 24 = 0 gives the critical values x = 2 and x = 4. Thus f ′ (2) = 0,
and f ′ (4) = 0. Differentiating again, f ′′ (x) = 6x − 18. Since f ′′ (2) = −6, we
know from (10.17) that f (2) = 13 is a maximum. Since f ′′ (4) = +6, we know
from (10.18) that f (4) = 9 is a minimum.
10.6 Exercises
Examine the following functions for maximum and minimum values, using the
method of the last section.
1. 3x4 − 4x3 + 1.
Ans. x = 1 gives min. = 0; x = 0 gives neither.
3. (x − 1)2 (x + 1)3 .
1
Ans. x = 1 gives min. = 0; x = 5
gives max.; x = −1 gives neither.
5. Investigate x3 − 3x2 + 3x + 7, at x = 1.
257
10.7. INDETERMINATE FORMS
6. Show that if the first derivative of f (x) which does not vanish for x = a is
of odd order (= n), then f (x) is an increasing or decreasing function when
x = a, according as f (n) (a) is positive or negative.
cos(x)
Figure 10.4: x
.
258
10.8. EVALUATION OF A FUNCTION TAKING ON AN INDETERMINATE
FORM
f (x)
h(x) = ,
g(x)
where at x = a,
lim f (x)
x=a
is taken as the value of f (x) for x = a. The calculation of this limiting value is
called evaluating the indeterminate form.
The assumption of this limiting value makes f (x) continuous for x = a. This
agrees with the theorem under Case II [§2.6], and also with our practice in Chapter
2, where several functions assuming the indeterminate form 00 were evaluated.
259
0
10.9. EVALUATION OF THE INDETERMINATE FORM 0
x2 −4 0
Example 10.8.1. For x = 2 the function x−2
assumes the form 0
but
x2 − 4
lim = 4.
x→2 x − 2
Hence 4 is taken as the value of the function for x = 2. Let us now illustrate
graphically the fact that if we assume 4 as the value of the function for x = 2,
2 −4
then the function is continuous for x = 2. Let y = xx−2 This equation may also
be written in the form y(x − 2) = (x − 2)(x + 2); or (x − 2)(y − x − 2) = 0.
Placing each factor separately equal to zero, we have x = 2, and y = x + 2. Also,
when x = 2, we get y = 4.
In plotting, the loci of these equations are found to be two lines. Since there
are infinitely many points on a line, it is clear that when x = 2, the value of
y (or the function) may be taken as any number whatever. When x is different
from 2, it is seen from the graph of the function that the corresponding value of
y (or the function) is always found from y = x + 2, which we saw was also the
limiting value of y (or the function) for x = 2. It is evident from geometrical
considerations that if we assume 4 as the value of the function for x = 2, then the
function is continuous for x = 2.
Similarly, several of the examples given in Chapter 2 illustrate how the limiting
values of many functions assuming indeterminate forms may be found by em-
ploying suitable algebraic or trigonometric transformations, and how in general
these limiting values make the corresponding functions continuous at the points
in question. The most general methods, however, for evaluating indeterminate
forms depend on differentiation.
0
10.9 Evaluation of the indeterminate form 0
f (x)
lim .
x→a g(x)
(See Figure 10.6.) Since, by hypothesis, f (a) = 0 and g(a) = 0, these graphs
intersect at (a, 0).
260
0
10.9. EVALUATION OF THE INDETERMINATE FORM 0
Figure 10.6: The graphs of the functions f (x) = x and g(x) = sin(x).
Applying the mean value theorem to each of these functions (replacing b by x),
we get f (x) = f (a)+(x−a)f ′ (x1 ), a < xl < x, and g(x) = g(a)+(x−a)g ′ (x2 ).
a < x2 < x. Since f (a) = 0 and g(a) = 0, we get, after canceling out (x − a),
f (x) f ′ (x1 )
= ′ .
g(x) g (x2 )
Now let x → a; then xl → a, x2 → a, and limx→a f ′ (x1 ) = f ′ (a), limx→a g ′ (x2 ) =
g ′ (a). Therefore,
f (x) f ′ (a)
lim = ′ , (10.19)
x→a g(x) g (a)
provided g ′ (a) 6= 0. This is a special case of the so-called
261
0
10.9. EVALUATION OF THE INDETERMINATE FORM 0
L’Hospital’s Rule3 : Let f (x) and g(x) be differentiable and f (a) = g(a) = 0.
Further, let g(x) be nonzero in a punctured neighborhood of x = a, (for some
small δ, g(x) 6= 0 for x ∈ {0 < |x − a| < δ}). Then
f (x) f ′ (x)
lim = lim ′ .
x→a g(x) x→a g (x)
sin x sin x
lim+ = lim+ =1
x→0 |x| x→0 x
sin x sin x
lim− = lim− = −1
x→0 |x| x→0 −x
sin x
Thus |x|
has a finite discontinuity at x = 0.
sin x cos x 1
lim = lim = =∞
x→0 1 − cos x x→0 sin x 0
sin x
Thus 1−cos x
has an infinite discontinuity at x = 0.
cos(x)−1
Example 10.9.2. We use Sage to compute limx→0 x2
.
Sage
sage: limit((cos(x)-1)/xˆ2,x=0)
-1/2
sage: limit((-sin(x))/(2*x),x=0)
3
Also written L’Hôpital and pronounced “low-peh-tall”.
262
0
10.9. EVALUATION OF THE INDETERMINATE FORM 0
-1/2
sage: limit((-cos(x))/(2),x=0)
-1/2
This verifies
ax2 + bx + c 2ax + b
lim = lim
x→∞ dx2 + ex + f x→∞ 2dx + e
2a
= lim
x→∞ 2d
a
=
d
Thus the value of the original limit is − 12 . We could also obtain this result by
263
0
10.9. EVALUATION OF THE INDETERMINATE FORM 0
sage: limit((cos(x)-1)/xˆ2,x=0)
-1/2
sage: limit((-sin(x))/(2*x),x=0)
-1/2
sage: limit((-cos(x))/(2),x=0)
-1/2
This verifies
0
10.9.1 Rule for evaluating the indeterminate form 0
Differentiate the numerator for a new numerator and differentiate the denominator
for a new denominator4 . The value of this new fraction for the assigned value5 of
the variable will be the limiting value of the original fraction.
4
A warning to the student: don’t make the mistake of differentiating the whole expression as a
fraction using the quotient rule!
5
If a = inf, the substitution x = z1 reduces the problem to the evaluation of the limit for z = 0.
(x) −f ′ ( 1 ) 1 f ′( 1 ) ′
(x)
Thus limx→inf fg(x) = limz→0 −g′ 1z z12 = limz→0 g′ 1z = limx→inf fg′ (x) . Therefore the rule
( z ) z2 (z)
holds in this case also.
264
0
10.9. EVALUATION OF THE INDETERMINATE FORM 0
In case it so happens that f ′ (a) = 0 and g ′ (a) = 0, that is, the first derivatives
also vanish for x = a, then we still have the indeterminate form 00 , and the theorem
′ (x) ′′ (a)
can be applied anew to the ratio fg′ (x) giving us limx→a fg(x)
(x)
= fg′′ (a) . When also
f (x) f ′′′ (a)
f ′′ (a) = 0 and g ′′ (a) = 0, we get in the same manner limx→a g(x)
= g ′′′ (a)
, and so
on.
It may be necessary to repeat this process several times.
f (x) x3 −3x+2
Example 10.9.6. Evaluate g(x)
= x3 −x2 −x−1
when x = 1.
Solution.
x3 − 3x + 2
f (1) 1−3+2 0
= 3 = = .
g(1) x − x2 + 1 x=1 1−1−1+1 0
Therefore, this is an indeterminate form.
f ′ (1) 3x2 − 3
3−3 0
= = = .
g ′ (1) 3x2 − 2x − 1 x=1 3 − 2 − 1 0
Therefore, this is an indeterminate form.
f ′′ (1)
6x 6 3
′′
= = = . Ans.
g (1) 6x − 2 x=1 6 − 2 2
ex −e−x −2x
Example 10.9.7. Evaluate limx→0 x−sin x
.
Solution.
ex − e−x − 2x
f (0) 1−1−0 0
= = = .
g(0 x − sin x x=0 0−0 0
Therefore, this is an indeterminate form.
f ′ (0) ex − e−x − 2
1+1−2 0
′
= = = .
g (0) 1 − cos x x=0 1−1 0
Therefore, this is an indeterminate form.
f ′′ (0) ex − e−x
1−1 0
= = = .
g ′′ (0) sin x x=0 0 0
Therefore, this is an indeterminate form.
265
0
10.9. EVALUATION OF THE INDETERMINATE FORM 0
10.9.2 Exercises
Evaluate the following by differentiation6 .
x2 −16
1. limx→4 x2 +x−20
.
Ans. 89 .
x−1
2. limx→1 xn −1
.
Ans. n1 .
log x
3. limx→1 x−1
.
Ans. 1.
ex −e−x
4. limx→0 sin x
.
Ans. 2.
tan x−x
5. limx→0 x−sin x
.
Ans. 2.
log sin x
6. limx→ π2 (π−2x)2
.
Ans. − 81 .
ax −bx
7. limx→0 x
.
Ans. log ab .
r 3 −ar 2 −a2 r+a3
8. limr→a r 2 −a2
.
Ans. 0.
θ−arcsin θ
9. limθ→0 sin3 θ
.
Ans. − 61 .
sin x−sin φ
10. limx→φ x−φ
.
Ans. cos φ.
6
After differentiating, the student should in every case reduce the resulting expression to its
simplest possible form before substituting the value of the variable.
266
∞
10.10. EVALUATION OF THE INDETERMINATE FORM ∞
ey +sin y−1
11. limy→0 log(1+y)
.
Ans. 2.
tan θ+sec θ−1
12. limθ→0 tan θ−sec θ+1
.
Ans. 1.
sec2 φ−2 tan φ
13. limφ→ π4 1+cos 4φ
.
Ans. 21 .
az−z 2
14. limz→a a4 −2a3 z+2az 3 −z 4
.
Ans. +∞.
(ex −e2 )2
15. limx→2 (x−4)ex +e2 x
.
Ans. 6e4 .
x2 +x−2
16. limx→1 x2 −1
.
x3 +8
17. limx→−2 x5 +32
.
sin 2x
18. limx→0 x
.
x−sin x
19. limx→0 x3
.
log cos(x−1)
20. limx→1 1−sin πx
.
2
tan x−sin x
21. limx→0 sin3 x
.
∞
10.10 Evaluation of the indeterminate form ∞
In order to compute
f (x)
lim
x→a g(x)
when limx→a f (x) = ∞ and limx→a g(x) = ∞, that is, when for x = a the
function fg(x)
(x)
assumes the indeterminate form ∞∞
, we follow the same rule as that
given in §10.9 for evaluating the indeterminate form 00 .
267
10.11. EVALUATION OF THE INDETERMINATE FORM 0 · ∞
∞
Rule for evaluating the indeterminate form ∞ : Differentiate the numerator
for a new numerator and the denominator for a new denominator. The value of
this new fraction for the assigned value of the variable will be the limiting value
of the original fraction.
A rigorous proof of this rule is beyond the scope of this book and is left for more
advanced treatises.
log x
Example 10.10.1. Evaluate csc x
for x = 0.
Solution.
f (0) log(x) −∞
= = .
g(0) csc(x) x=0 ∞
Therefore, this is an indeterminate form.
1
f ′ (0) sin2 x
x 0
′
= =− = .
g (0) − csc x cot x x=0 x cos x x=0 0
Therefore, this is an indeterminate form.
f ′′ (0)
2 sin x cos x 0
= − = − = 0. Ans.
g ′′ (0) cos x − x sin x x=0 1
Example 10.10.2. Let a and d be nonzero.
ax2 + bx + c 2ax + b
lim 2
= lim
x→∞ dx + ex + f x→∞ 2dx + e
2a
= lim
x→∞ 2d
a
=
d
268
10.12. EVALUATION OF THE INDETERMINATE FORM ∞ − ∞
f ( π2 )
cos 5x 0
π = = .
g( 2 ) cos 3x x= π 0
s
Example 10.11.2.
1 x cos x − sin x
lim cot x − = lim
x→0 x x→0 x sin x
cos x − x sin x − cos x
= lim
x→0 sin x + x cos x
−x sin x
= lim
x→0 sin x + x cos x
−x cos x − sin x
= lim
x→0 cos x + cos x − x sin x
=0
sage: limit(cot(x)-1/x,x=0)
0
sage: limit((- x*cos(x) - sin(x) )/(cos(x) + cos(x) - x*sin(x)),x=0)
0
269
10.12. EVALUATION OF THE INDETERMINATE FORM ∞ − ∞
10.12.1 Exercises
Evaluate the following by differentiation7 .
ax2 +b
1. limx→∞ cx2 +d
.
Ans. ac .
cot x
2. limx→0 log x
.
Ans. −∞.
log x
3. limx=∞ xn
.
Ans. 0.
x2
4. limx→∞ ex
.
Ans. 0.
ex
5. limx→∞ log x
.
Ans. ∞.
270
10.12. EVALUATION OF THE INDETERMINATE FORM ∞ − ∞
9. limx→∞ x sin xa .
Ans. a.
10. limx→0 xn log x. [n positive.]
Ans. 0.
11. limθ→ π4 (1 − tan θ) sec 2θ.
Ans. 1.
12. limφ→a (a2 − φ2 ) tan πφ
2a
.
4a2
Ans. π
.
log sin 2x
13. limx→0 log sin x
.
Ans. 1.
tan θ
14. limθ→ π2 tan 3θ
.
Ans. 3.
log(φ− π2 )
15. limφ→ π2 tan φ
.
Ans. 0.
log x
16. limx→0 cot x
.
Ans. 0.
17. limx→0 x log sin x.
Ans. 0.
2 1
18. limx→1 x2 −1
− x−1
.
Ans. − 21 .
Sage
h i
1 x
19. limx→1 log x
− log x
.
Ans. −1.
271
10.13. EVALUATION OF THE INDETERMINATE FORMS 00 , 1∞ , ∞0
Sage
Ans. 12 .
h i
y 1
22. limy→1 y−1
− log y
.
Ans. 12 .
h i
π π
23. limz→0 4z
− 2z(eπz +1)
.
π2
Ans. 8
.
f (x)φ(x) .
In order that the function shall take on one of the above three forms, we must have
for a certain value of x, f (x) = 0, φ(x) = 0, giving 00 ; or, f (x) = 1, φ(x) = ∞,
giving 1∞ ; or, f (x) = ∞, φ(x) = 0, giving ∞0 . Let y = f (x)φ(x) ; taking the
logarithm of both sides gives us, log y = φ(x) log f (x). In any of the above cases
the logarithm of y (the function) will take on the indeterminate form 0 · ∞.
Evaluating this by the process illustrated in §10.11 gives the limit of the loga-
rithm of the function. This being equal to the logarithm of the limit of the function,
the limit of the function is known.
272
10.14. EXERCISES
10.14 Exercises
Evaluate the following limits.
1
1. limx→1 x 1−x .
Ans. 1e .
1 tan x
2. limx→0 x
.
Ans. 1.
273
10.14. EXERCISES
y
4. limy→∞ 1 + ay .
Ans. ea .
x−sin x
14. (a) limx→0 x3
1
(b) limx→0 csc x − x
1 x
(c) limx→+∞ 1 + x
(d) limx→0 csc2 x − x12 .
(First evaluate using L’Hospital’s rule then us-
ing a Taylor series expansion. You will find that the latter method is
more convenient.)
274
10.15. APPLICATION: USING TAYLOR’S THEOREM TO APPROXIMATE
FUNCTIONS.
15. a bx
lim xa/x , lim 1 + ,
x→∞ x→∞ x
where a and b are constants.
x2 −16
16. limx→4 x2 +x−20
Ans. 8/9
x−1
17. limx→1 xn −1
.
Ans. 1/n
log x
18. limx→1 x−1
.
Ans. 1
ex −e−x
19. limx→0 sin(x)
Ans. 2
log sin(x)
20. limx→π/2 (π−2x)2
Ans. −1/8
ax −bx
21. limx→0 x
Ans. log(a/b)
θ−arcsin(θ)
22. limx→0 θ2
Ans. −1/6.
sin(x)−sin(φ)
23. limx→φ x−φ
.
Ans. cos(φ).
275
10.15. APPLICATION: USING TAYLOR’S THEOREM TO APPROXIMATE
FUNCTIONS.
Theorem 10.15.1. (Taylor’s Theorem) If f (x) is n + 1 times continuously dif-
ferentiable in (a, b) then there exists a point x = ξ ∈ (a, b) such that
2
f (b) = f (a) + (b − a)f ′ (a) + (b−a) 2!
f ′′ (a) + · · ·
n n+1 (10.20)
+ (b−a)
n!
f (n) (a) + (b−a)
(n+1)!
f (n+1) (ξ).
For the case n = 0, the formula is
f (b) − f (a)
f ′ (ξ) = .
b−a
One can use Taylor’s theorem to approximate functions with polynomials. Con-
sider an infinitely differentiable function f (x) and a point x = a. Substituting x
for b into Equation 10.20 we obtain,
2 (x−a)n (n)
f (x) = f (a) + (x − a)f ′ (a) + (x−a)2!
f ′′ (a) + · · · + n!
f (a)
n+1 (10.21)
+ (x−a)
(n+1)!
f (n+1) (ξ).
If the last term in the sum is small then we can approximate our function with an
nth order polynomial.
(x − a)n+1 (n+1)
Rn = f (ξ).
(n + 1)!
Since the function is infinitely differentiable, f (n+1) (ξ) exists and is bounded.
Therefore we note that the error must vanish as x → 0 because of the (x − a)n+1
factor. We therefore suspect that our approximation would be a good one if x is
close to a. Also note that n! eventually grows faster than (x − a)n ,
(x − a)n
lim = 0.
n→∞ n!
276
10.15. APPLICATION: USING TAYLOR’S THEOREM TO APPROXIMATE
FUNCTIONS.
So if the derivative term, f (n+1) (ξ), does not grow to quickly, the error for a certain
value of x will get smaller with increasing n and the polynomial will become a
better approximation of the function. (It is also possible that the derivative factor
grows very quickly and the approximation gets worse with increasing n.)
Example 10.15.1. Consider the function f (x) = ex . We want a polynomial ap-
proximation of this function near the point x = 0. Since the derivative of ex is ex ,
the value of all the derivatives at x = 0 is f (n) (0) = e0 = 1. Taylor’s theorem thus
states that
x2 x3 xn xn+1 ξ
ex = 1 + x + + + ··· + + e,
2! 3! n! (n + 1)!
for some ξ ∈ (0, x). The first few polynomial approximations of the exponent
about the point x = 0 are
f1 (x) = 1
f2 (x) = 1 + x
x2
f3 (x) = 1 + x +
2
x2 x3
f4 (x) = 1 + x + +
2 6
The four approximations are graphed in Figure 10.7.
Note that for the range of x we are looking at, the approximations become more
accurate as the number of terms increases.
Here is one way to compute these approximations using Sage :
Sage
sage: x = var("x")
sage: y = exp(x)
sage: a = lambda n: diff(y,x,n)(0)/factorial(n)
sage: a(0)
1
sage: a(1)
1
sage: a(2)
1/2
sage: a(3)
1/6
sage: taylor = lambda n: sum([a(i)*xˆi for i in range(n)])
sage: taylor(2)
x + 1
277
10.15. APPLICATION: USING TAYLOR’S THEOREM TO APPROXIMATE
FUNCTIONS.
x2
Figure 10.7: Finite Taylor Series Approximations of 1, 1 + x, 1 + x + 2
to ex .
sage: taylor(3)
xˆ2/2 + x + 1
sage: taylor(4)
xˆ3/6 + xˆ2/2 + x + 1
f (x) = cos x
f ′ (x) = − sin x
f ′′ (x) = − cos x
f ′′′ (x) = sin x
f (4) (x) = cos x
278
10.15. APPLICATION: USING TAYLOR’S THEOREM TO APPROXIMATE
FUNCTIONS.
It’s easy to pick out the pattern here,
(
(−1)n/2 cos x for even n,
f (n) (x) =
(−1)(n+1)/2 sin x for odd n.
Since cos(0) = 1 and sin(0) = 0 the n-term approximation of the cosine is,
x2 x4 x6 x2(n−1) x2n
cos x = 1 − + − + · · · + (−1)2(n−1) + cos ξ.
2! 4! 6! (2(n − 1))! (2n)!
Here are graphs of the one-, two-, three- and four-term approximations.
x2 x2 x4
Figure 10.8: Taylor Series Approximations of 1, 1 − 2
, 1− 2
+ 4!
to cos x.
Note that for the range of x we are looking at, the approximations become more
accurate as the number of terms increases. Consider the ten term approximation
of the cosine about x = 0,
x2 x4 x18 x20
cos x = 1 − + − ··· − + cos ξ.
2! 4! 18! 20!
Note that for any value of ξ, | cos ξ| ≤ 1. Therefore the absolute value of the error
term satisfies, 20
|x|20
x
|R| = cos ξ ≤ .
20! 20!
279
10.15. APPLICATION: USING TAYLOR’S THEOREM TO APPROXIMATE
FUNCTIONS.
Note that the error is very small for x < 6, fairly small but non-negligible for
x ≈ 7 and large for x > 8. The ten term approximation of the cosine, plotted in
Figure 10.9, behaves just we would predict.
x2 x4 x6 x8
Figure 10.9: Taylor Series Approximation of 1 − 2
+ 4!
− 6!
+ 8!
to cos x.
280
10.16. EXAMPLE/APPLICATION: FINITE DIFFERENCE METHODS
2
Figure 10.10: Taylor series (about x = 1) approximations of x − 1, x − 1 − (x−1)
2
,
(x−1)2 (x−1)3
x − 1 − 2 + 3 to ln x.
Note that the approximation gets better on the interval (0, 2) and worse outside
this interval as the number of terms increases. The Taylor series converges to ln x
only on this interval.
281
10.16. EXAMPLE/APPLICATION: FINITE DIFFERENCE METHODS
this is a bit of an advanced topic, rather than explain the theory, we shall just give
a detailed example which contains the main ideas.
Example 10.16.1. Suppose you sample a function at the discrete points n∆x,
n ∈ Z. In Figure 10.11 we sample the function f (x) = sin x on the interval
[−4, 4] with ∆x = 1/4 and plot the data points.
1
0.5
-4 -2 2 4
-0.5
-1
Figure 10.11: Sine function sampling.
We wish to approximate the derivative of the function on the grid points using
only the value of the function on those discrete points. From the definition of the
derivative, one is lead to the formula
f (x + ∆x) − f (x)
f ′ (x) ≈ . (10.22)
∆x
Taylor’s theorem states that
∆x2 ′′
f (x + ∆x) = f (x) + ∆xf ′ (x) + f (ξ).
2
Substituting this expression into our formula for approximating the derivative we
obtain
2
f (x + ∆x) − f (x) f (x) + ∆xf ′ (x) + ∆x2 f ′′ (ξ) − f (x) ∆x ′′
= = f ′ (x)+ f (ξ).
∆x ∆x 2
282
10.16. EXAMPLE/APPLICATION: FINITE DIFFERENCE METHODS
Thus we see that the error in our approximation of the first derivative is ∆x 2
f ′′ (ξ).
Since the error has a linear factor of ∆x, we call this a first order accurate method.
Equation 10.22 is called the forward difference scheme for calculating the first
derivative. Figure 10.12 shows a plot of the value of this scheme for the function
f (x) = sin x and ∆x = 1/4. The first derivative of the function f ′ (x) = cos x is
shown for comparison.
0.5
-4 -2 2 4
-0.5
-1
Figure 10.12: Forward Difference Scheme Approximation of the Derivative.
Another scheme for approximating the first derivative is the centered difference
scheme,
f (x + ∆x) − f (x − ∆x)
f ′ (x) ≈ .
2∆x
Expanding the numerator using Taylor’s theorem,
f (x + ∆x) − f (x − ∆x)
2∆x
2 ∆x3 ′′′ ∆x2 ′′ ∆x3 ′′′
f (x) + ∆xf ′ (x) + ∆x ′′
2 f (x) + 6 f (ξ) − f (x) + ∆xf ′ (x) − 2 f (x) + 6 f (ψ)
=
2∆x
∆x2 ′′′
= f ′ (x) + (f (ξ) + f ′′′ (ψ)).
12
The error in the approximation is quadratic in ∆x. Therefore this is a second
283
10.16. EXAMPLE/APPLICATION: FINITE DIFFERENCE METHODS
order accurate scheme. Figure 10.13 is a plot of the derivative of the function and
the value of this scheme for the function f (x) = sin x and ∆x = 1/4.
0.5
-4 -2 2 4
-0.5
-1
Figure 10.13: Centered Difference Scheme Approximation of the Derivative.
Notice how the centered difference scheme gives a better approximation of the
derivative than the forward difference scheme.
284
CHAPTER
ELEVEN
Curvature
11.1 Curvature
The shape of a curve depends very largely upon the rate at which the direction
of the tangent changes as the point of contact describes the curve. This rate of
change of direction is called curvature and is denoted by K. We now proceed to
find its analytical expression, first for the simple case of the circle, and then for
curves in general.
285
11.2. CURVATURE OF A CIRCLE
286
11.3. CURVATURE AT A POINT
More important, however, than the notion of the average curvature of an arc is
that of curvature at a point. This is obtained as follows. Imagine P to approach
P along the curve; then the limiting value of the average curvature = ∆τ as P′
∆s
approaches P along the curve is defined as the curvature at P, that is,
∆τ dτ
Curvature at a point = lim∆s→0 ∆s
= ds
.
Therefore,
dτ
K= = curvature. (11.2)
ds
Since the angle ∆τ is measured in radians and the length of arc ∆s in units of
length, it follows that the unit of curvature at a point is one radian per unit of
length.
287
11.4. FORMULAS FOR CURVATURE
But
dτ
dx dτ
ds
= = K.
dx
ds
Hence
d2 y
dx2
K=h i 23 . (11.3)
dy 2
1+ dx
τ = θ + ψ.
288
11.4. FORMULAS FOR CURVATURE
Differentiating,
dτ dψ
=1+ .
dθ dθ
But
ρ
tan ψ = dρ
,
dθ
dρ 2 2
− ρ ddθρ2
dψ dθ
= 2 .
dθ ρ2 + dρ
dθ
Substituting, we get
2 2
dτ ρ2 − ρ ddθρ2 + 2 dρ
dθ
= .
dθ dρ 2
2
ρ + dθ
Also
" # 12
2
ds dρ
= ρ2 ,
dθ dθ
by (8.9). Dividing gives
2 2
dτ
dθ
ρ2 − ρ ddθρ2 + 2 dρ
dθ
ds
= h i 3 .
dρ 2 2
dθ 2
ρ + dθ
But
dτ
dθ dτ
ds
= = K.
dθ
ds
Hence
289
11.4. FORMULAS FOR CURVATURE
2 2
ρ2 − ρ d ρ2 + 2 dρ
K = h dθ dθ
i 32 . (11.4)
2
ρ2 + dρ
dθ
Example 11.4.1. Find the curvature of the parabola y 2 = 4px at the left-most end
of the chord that passes through the focus and is perpendicular to the y-axis.
dy d2 y 4p2
Solution. dx = 2py
; dx 2p dy
2 = − y 2 dx = − y 3 . Substituting in (11.3), K =
40−p2
− 3 , giving the curvature at any point. At the left-most end of the chord
(y 2 +4p2 ) 2
(p, 2p),
4p2 4p2 1
K=− 3 =− √ =− √ .
(4p2 + 4p2 ) 2 16 2p3 4 2p
While in our work it is generally only the numerical value of K that is of im-
portance, yet we can give a geometric meaningqto its sign. Throughout our work
dy 2
we have taken the positive sign of the radical 1 + dx . Therefore K will be
d y 2
positive or negative at the same time that dx 2 is, i.e., (by §7.8), according as the
sage: x = var("x")
sage: p = var("p")
sage: y = sqrt(4*p*x)
sage: K = diff(y,x,2)/(1+diff(y,x)ˆ2)ˆ(3/2)
sage: K
-pˆ2/(2*(p/x + 1)ˆ(3/2)*(p*x)ˆ(3/2))
sage: K.variables()
(p, x)
sage: K(p,p)
-pˆ2/(4*sqrt(2)*(pˆ2)ˆ(3/2))
sage: K(p,p).simplify_rational()
290
11.5. RADIUS OF CURVATURE
-1/(4*sqrt(2)*sqrt(pˆ2))
Example 11.4.2. Find the curvature of the logarithmic spiral ρ = eaθ at any point.
2
Solution. dρ
dθ
= aeaθ = aρ; ddθρ2 = a2 eaθ = a2 ρ.
1
Substituting in (11.4), K = ρ√1+a 2.
In laying out the curves on a railroad it will not do, on account of the high speed
of trains, to pass abruptly from a straight stretch of track to a circular curve. In
order to make the change of direction gradual, engineers make use of transition
curves to connect the straight part of a track with a circular curve. Arcs of cubical
parabolas are generally employed as transition curves.
Now we do this in Sage :
Sage
Example 11.4.3. The transition curve on a railway track has the shape of an arc
of the cubical parabola y = 13 x3 . At what rate is a car on this track changing its
direction (1 mi. = unit of length) when it is passing through (a) the point (3, 9)?
(b) the point (2, 38 )? (c) the point (1, 13 )?
dy d2 y 2x
Solution. dx = x2 , dx 2 = 2x. Substituting in (11.3), K =
4
3 . (a) At (3, 9),
(1+x ) 2
6 ′ 8 4
K = 3 radians per mile = 28 per mile. (b) At (2, 3
), K = 3 radians per
(82) 2 (17) 2
mile = 3 16 per mile. (c) At (1, 31 ), K =
o ′ 2
3 = √1
2
radians per mile = 40o 30′ per
(2) 2
mile.
291
11.5. RADIUS OF CURVATURE
1
R= .
K
Or, substituting the values of x from (11.3) and (11.4),
h i 32
dy 2
1+ dx
R= d2 y
(11.5)
dx2
and3
h i 32
2 dρ 2
ρ + dθ
R= . (11.6)
2 dρ 2
ρ2 − ρ ddθρ2 + 2 dθ
Example 11.5.1. Find the radius of curvature at any point of the catenary y =
a x x
2
(e a + e− a ).
dy x x d2 y x
−x
Solution. dx = 12 (e a − e− a ); dx 1
2 = 2a (e
a − e a ). Substituting in (11.5),
"
x «2 # 32
−x
„
e a −e a
1+ 2
R = x −x
e a −e a
„ x 2a«3
−x
e a −e a
x x
2 a(e a −e− a )2
= x −x
e a −e a
= 4
2a
y2
= a
.
If the equation of the curve is given in parametric form, find the first and second
derivatives of y with respect to x from (9.5) and (9.6), namely:
dy
dy dt
= dx
,
dx dt
and
2
Hence the radius of curvature will have the same sign as the curvature, that is, + or −, ac-
cording as the curve is concave upwards or concave downwards.
3
In §9.4, the next equation is derived from the previous one by transforming from rectangular
to polar coordinates.
292
11.6. CIRCLE OF CURVATURE
dx d2 y 2
d2 y dt dt2
− dy d x
dt dt2
= ,
dx2 dx 3
dt
4
and then substitute the results in (11.5).
Example 11.5.2. Find the radius of curvature of the cycloid x = a(t − sin t),
y = a(t − cos t).
2 2
Solution. dx dt
= a(1 − cos t), dy dt
= a sin t; ddt2x = a sin t, ddt2y = a cos t. Substi-
tuting the previous example and then in (11.5), we get
h i3
2 2
dy d2 y a(1−cos t)a cos t−a sin ta sin t 1+( 1−cos
sin t
t)
sin t 1
dx
= 1−cos t , dx2 = a3 (1−cos t)3
= a(1−cos t)2 , and R = − 1 =
a(1−cos t)2
√
−2a 2 − 2 cos t.
293
11.6. CIRCLE OF CURVATURE
Example 11.6.1. Find the radius of curvature at the point (3, 4) on the equilateral
hyperbola xy = 12, and draw the corresponding circle of curvature.
dy d2 y 4 d2 y
Solution. dx = − xy , dx 2y dy 8
2 = x2 . For (3, 4), dx = − 3 , dx2 = 9 , so
16 32
[1 + 9
] 125 5
R= 8 = = 25 .
9
24 24
The circle of curvature crosses the curve at two points.
We solve for the circle of curvature using Sage . First, we solve for the inter-
section of the normal y − 4 = (−1/m)(x − 3), where m = y ′ (3) = −4/3, and
the circle of radius R = 125/24 about (3, 4):
Sage
sage: x = var("x")
sage: y = 12/x
sage: K = diff(y,x,2)/(1+diff(y,x)ˆ2)ˆ(3/2)
sage: K
24/((144/xˆ4 + 1)ˆ(3/2)*xˆ3)
sage: K(3)
24/125
sage: R = 1/K(3)
294
11.6. CIRCLE OF CURVATURE
sage: m = diff(y,x)(3); m
-4/3
sage: xx = var("xx")
sage: yy = var("yy")
sage: solve((xx-3)ˆ2+(-1/m)ˆ2*(xx-3)ˆ2==Rˆ2, xx)
[xx == -7/6, xx == 43/6]
This tells us that the normal line intersects the circle of radius R centered at (3, 4)
in 2 points, one of which is at (43/6, 57/8). This is the center of the circle of
curvature, so the equation is (x − 43/6)2 + (y − 57/8)2 = R2 .
295
11.7. EXERCISES
11.7 Exercises
1. Find the radius of curvature for each of the following curves, at the point
indicated; draw the curve and the corresponding circle of curvature:
296
11.7. EXERCISES
(o) y = log x, x = e.
(p) 9y = x3 , x = 3.
(q) 4y 2 = x3 , x = 4.
(r) x2 − y 2 = a2 , y = 0.
(s) x2 + 2y 2 = 9, (1, −2).
4. Find the radius of curvature of the curve y = log sec x at the point (x1 , y1 ).
Ans. R = sec x1 .
1 1 1
5. Find K at any point on the parabola x 2 + y 2 = a 2 .
1
a2
Ans. K = 3 .
2(x+y) 2
2 2 2
6. Find R at any point on the hypocycloid x 3 + y 3 = a 3 .
1
Ans. R = 3(axy) 3 .
297
11.7. EXERCISES
sage: t = var(’t’)
sage: x = 3*tˆ2
sage: y = 3*t-tˆ3
sage: Rnum = (x.diff(t)ˆ2+y.diff(t)ˆ2)ˆ(3/2)
sage: Rdenom = x.diff(t)*y.diff(t,2)-y.diff(t)*x.diff(t,2)
sage: R = Rnum/Rdenom
sage: R(1)
-6
298
11.7. EXERCISES
sage: t = var(’t’)
sage: x = cos(t)ˆ3
sage: y = sin(t)ˆ3
sage: Rnum = (x.diff(t)ˆ2+y.diff(t)ˆ2)ˆ(3/2)
sage: Rdenom = x.diff(t)*y.diff(t,2)-y.diff(t)*x.diff(t,2)
sage: R = Rnum/Rdenom
sage: R.simplify_trig()
-sqrt(9*cos(t)ˆ2 - 9*cos(t)ˆ4)
You can simplify this last result even further if you want.
299
11.7. EXERCISES
21. Find the radius of curvature for each of the following curves at the point
indicated; draw the curve and the corresponding circle of curvature:
(a) x = t2 , 2y = t; t = 1. (e) x = t, y = 6t − 1; t = 2.
2 3
(b) x = t , y = t ; t = 1. (f) x = 2et , y = e−t ; t = 0.
π
(c) x = sin t, y = cos 2t; t = 6 . (g) x = sin t, y = 2 cos t; t = π4 .
(d) x = 1 − t, y = t3 ; t = 3. (h) x = t3 , y = t2 + 2t; t = 1.
22. An automobile race track has the form of the ellipse x2 + 16y 2 = 16, the
unit being one mile. At what rate is a car on this track changing its direction
1
Ans. (a) 4 radians per mile; (b) 16
radian per mile.
23. On leaving her dock a steamship moves on an arc of the semi cubical
parabola 4y 2 = x3 . If the shore line coincides with the axis of y, and the
unit of length is one mile, how fast is the ship changing its direction when
one mile from the shore?
24
Ans. 125
radians per mile.
24. A battleship 400 ft. long has changed its direction 30o while moving through
a distance equal to its own length. What is the radius of the circle in which
it is moving?
Ans. 764 ft.
25. At what rate is a bicycle rider on a circular track of half a mile diameter
changing his direction?
Ans. 4 rad. per mile = 43′ per rod.
26. The origin being directly above the starting point, an aeroplane follows ap-
proximately the spiral ρ = θ, the unit of length being one mile. How rapidly
is the aeroplane turning at the instant it has circled the starting point once?
300
11.8. CIRCLE OF CURVATURE
27. A railway track has curves of approximately the form of arcs from the fol-
lowing curves. At what rate will an engine change its direction when pass-
ing through the points indicated (1 mi. = unit of length):
(a) y = x3 , (2, 8)? (d) y = ex , x = 0?
(b) y = x2 , (3, 9)? (e) y = cos x, x = π4 ?
(c) x2 − y 2 = 8, (3, 1)? (f) ρθ = 4, θ = 1?
301
11.8. CIRCLE OF CURVATURE
y = f (x); (11.7)
and let x0 , x1 , x2 be the abscissas of the points P0 , P1 , P2 respectively, C =
(α′ , β ′ ) the coordinates of the center, and R′ the radius of the circle passing
through the three points. Then the equation of the circle is
(x − α′ )2 + (y − β ′ )2 = (R′ )2 ;
and since the coordinates of the points P0 , P1 , P2 must satisfy this equation, we
have
′ 2 ′ 2 ′ 2
(x0 − α ) + (y0 − β ) − (R ) = 0,
(x1 − α′ )2 + (y1 − β ′ )2 − (R′ )2 = 0, (11.8)
′ 2 ′ 2 ′ 2
(x2 − α ) + (y2 − β ) − (R ) = 0.
F (x) = (x − α′ )2 + (y − β ′ )2 − (R′ )2 ,
in which y = f (x) using (11.7).
Then from equations (11.8) we get
F ′ (x′ ) = 0, F ′ (x′′ ) = 0.
Again, for the same reason, F ′′ (x) must vanish for some value of x between x′
and x′′ , say x3 ; hence
F ′′ (x3 ) = 0.
Therefore the elements α′ , β ′ , R′ of the circle passing through the points P0 , P1 ,
P2 must satisfy the three equations
302
11.8. CIRCLE OF CURVATURE
dy
(x − α) + (y − β) = 0, (11.10)
dx
differentiating (11.9).
2
d2 y
dy
1+ + (y − β) 2 = 0, (11.11)
dx dx
differentiating
2 (11.10). Solving (11.10) and (11.11) for x − α and y − β, we get
d y
dx2
6= 0 ,
dy 2
dy
h i
dx
1+( dx )
x − α =
d2 y
dx2 (11.12)
dy 2
1+( dx )
y − β = − d2 y ;
dx2
303
11.9. SECOND METHOD FOR FINDING CENTER OF CURVATURE
Theorem 11.8.1. The radius of the circle of curvature equals the radius of curva-
ture.
Then
304
11.9. SECOND METHOD FOR FINDING CENTER OF CURVATURE
α = OA = OD − AD = OD − BP = x − BP,
β = AC = AB + BC = DP + BC = y + BC.
But BP = R sin τ , BC = R cos τ . Hence
sage: y = xˆ3-xˆ2+1
sage: Dy = diff(y,x)
sage: D2y = diff(y,x,x)
sage: R = (1+Dyˆ2)ˆ(3/2)/D2y
sage: R(1)
1/sqrt(2)
sage: alpha = x - Dy*(1+Dyˆ2)/D2y
sage: beta = y + (1+Dyˆ2)/D2y
sage: alpha(1)
1/2
sage: beta(1)
3/2
1
cos τ = h i 12 ,
dy 2
1+ dx
h i 23
dy 2
1+ dx
R= d2 y
.
dx2
Substituting these back in (11.14), we get
305
11.10. CENTER OF CURVATURE
h i
dy dy 2
1+ dy 2
dx dx 1+ dx
α=x− d2 y
; β=y+ d2 y
. (11.15)
dx2 dx 2
d2 y
= 0.
dx2
Therefore, by (11.3) [§11.4], the curvature K = 0. From (11.5) [§11.5], and
d2 y
(11.15) [§11.9], we see that in general α, β, R increase without limit as dx 2 → 0.
Example 11.9.2. Find the coordinates of the center of curvature of the parabola
y 2 = 4px corresponding (a) to any point on the curve; (b) to the vertex.
dy 2 2
Solution. dx = 2p ; d y = − 4p
y dx2 y3
.
(a) Substituting in (11.13) [§11.8],
y 2 + 4p2 2p y 3
α=x+ · · = 3x + 2p.
y2 y 4p2
y 2 + 4p2 y 3 y3
β=y− · = − .
y2 4p2 4p2
y3
Therefore 3x + 2p, − 4p 2 is the center of curvature corresponding to any point
on the curve.
(b) (2p, 0) is the center of curvature corresponding to the vertex (0, 0).
y = f (x). (11.16)
The equations of the normals to the curve at two neighboring points P0 and P1
are (using (5.2) [§5.3]),
dy0 dy1
(x0 − x) + (y0 − y) = 0, (x1 − x) + (y1 − y) = 0.
dx0 dx1
306
11.10. CENTER OF CURVATURE
If the normals intersect at C ′ = (α′ , β ′ ), the coordinates of this point must satisfy
both equations, giving
(
dy0
(x0 − α′ ) + (y0 − β) dx = 0,
0
dy1 (11.17)
(x1 − α′ ) + (y1 − β ′ ) dx 1
= 0.
dy
φ(x) = (x − α′ ) + (y − β ′ ) ,
dx
in which y = f (x) using (11.16). Then equations (11.17) show that
φ(x0 ) = 0, φ(x1 ) = 0.
But then, by Rolle’s Theorem (§10.1), φ′ (x) must vanish for some value of x
between x0 and x1 say x′ . Therefore α′ and β ′ are determined by the two equations
φ(x0 ) = 0, φ′ (x′ ) = 0.
φ(x0 ) = 0, φ′ (x0 ) = 0,
and C ′ (α′ , β ′ ) will approach as a limiting position the center of curvature C(α, β)
corresponding to P0 on the curve. For if we drop the subscripts and write the last
two equations in the form
2
d2 y
′ dy
′ dy ′
(x − α ) + (y − β ) = 0, 1+ + (y − β ) 2 = 0,
dx dx dx
it is evident that solving for α′ and β ′ will give the same results as solving (11.10)
and ((11.11) for α and β. Hence we have the following result.
307
11.11. EVOLUTES
11.11 Evolutes
The locus of the centers of curvature of a given curve is called the evolute of that
curve. Consider the circle of curvature corresponding to a point P on a curve.
If P moves along the given curve, we may suppose the corresponding circle of
curvature to roll along the curve with it, its radius varying so as to be always equal
to the radius of curvature of the curve at the point P . The curve described by the
center of the circles is the evolute.
It is instructive to make an approximate construction of the evolute of a curve by
estimating (from the shape of the curve) the lengths of the radii of curvature at
different points on the curve and then drawing them in and drawing the locus of
the centers of curvature.
Formula (11.13) gives the coordinates of any point (α, β) on the evolute ex-
pressed in terms of the coordinates of the corresponding point (x, y) of the given
curve. But y is a function of x; therefore
h i
dy 2 dy dy 2
1 + dx
dx 1 + dx
α=x− d2 y
, β=y+ d2 y
dx2 dx2
give us at once the parametric equations of the evolute in terms of the parameter
x.
To find the ordinary rectangular equation of the evolute we eliminate x between
the two expressions. No general process of elimination can be given that will
apply in all cases, the method to be adopted depending on the form of the given
equation. In a large number of cases, however, the student can find the rectangular
equation of the evolute by taking the following steps:
General directions for finding the equation of the evolute in rectangular coordi-
nates.
• SECOND STEP. Solve the two resulting equations for x and y in terms of
α and β.
• THIRD STEP. Substitute these values of x and y in the given equation. This
gives a relation between the variables α and β which is the equation of the
evolute.
Example 11.11.1. Find the equation of the evolute of the parabola y 2 = 4px.
308
11.11. EVOLUTES
dy 2p d2 y 2
Solution. dx
= ,
y dx2
= − 4p
y3
.
y 3
First step. α = 3x + 2p, β = − 4p 2.
1
Second step. x = α−2p3
, y = −(4p2 β) 3 .
2
Third step (4p2 β) 3 = 4p α−2p 4
or pβ 2 = 27 (α − 2p)3 .
3
Remembering that α denotes the “x-coordinate” and β the “y-coordinate” of a
rectangular system of coordinates, we see that the evolute of the parabola y = 4x2
is the “cusp” y 2 = 4(x − 2)3 /27. The curve (dotted) and its evolute (solid) are
plotted in Figure 11.7.
When the equations of the curve are given in parametric form, we proceed to
309
11.11. EVOLUTES
dy d2 y
find dx
and dx2
, as in §11.5, from
dy dx d2 y 2
dy dt d2 y dt dt2
− dy d x
dt dt2
= , = (11.18)
dx dx dx2 dx 3
dt dt
and then substitute the results in formulas (11.15). This gives the parametric equa-
tions of the evolute in terms of the same parameter that occurs in the given equa-
tions.
Example 11.11.3. The parametric equations of a curve are
t2 + 1 t3
x= , y= . (11.19)
4 6
Find the equation of the evolute in parametric form, plot the curve and the evolute,
find the radius of curvature at the point where t = 1, and draw the corresponding
circle of curvature.
2 2 2
Solution. dx
dt
= 2t , ddt2x = 21 , dy
dt
= t2 , ddt2y = t. Substituting in above formulas
(11.18) and then in (11.15), gives
1 − t2 − 2t4 4t3 + 3t
α= , β= , (11.20)
4 6
the parametric equations of the evolute. Assuming values of the parameter t, we
calculate x, y; α, β from (11.19) and (11.20). The curve (solid) and its evolute
(dotted) are plotted in Figure 11.9.
The point ( 14 , 0) is common to the given curve and its evolute. The given curve (a
“cusp”) lies entirely to the right and the evolute entirely to the left of x = 14 .
Example 11.11.4. Find the parametric equations of the evolute of the cycloid,
(
x = a(t − sin t)
(11.21)
y = a(1 − cos t).
Solution. As in Example 11.5.2, we get
dy sin t d2 y 1
= , 2
=− .
dx 1 − cos t dx α(1 − cos t)2
Substituting these results in formulas (11.15), we get the answer:
(
α = a(t + sin t),
(11.22)
β = −a(1 − cos t).
310
11.11. EVOLUTES
The curve (solid) and its evolute (dotted) are plotted in Figure 11.9.
311
11.12. PROPERTIES OF THE EVOLUTE
dα dx dτ dR
= − R cos τ − sin τ , (11.24)
ds ds ds ds
dβ dy dτ dR
= − R sin τ + cos τ . (11.25)
ds ds ds ds
But dx
ds
= cos τ , dy
ds
= sin τ , from (8.5); and dτ
ds
= 1
R
, from (11.1) and (11.2).
Substituting in (11.24) and (11.25), we obtain
dα 1 dR dR
= cos τ − R cos τ · − sin τ = − sin τ , (11.26)
ds R ds ds
and
dβ 1 dR dR
= sin τ − R sin τ · + cos τ = cos τ . (11.27)
ds R ds ds
Dividing (11.27) by (11.26) gives
dβ 1 1
= − cot τ = − = − dy . (11.28)
dα tan τ dx
dβ dy
But dα = tan τ = slope of tangent to the evolute at C, and dx = tan τ = slope of
tangent to the given curve at the corresponding point P = (x, y).
Substituting the last two results in (11.28), we get
1
tan τ ′ = − .
tan τ
Since the slope of one tangent is the negative reciprocal of the slope of the other,
they are perpendicular. But a line perpendicular to the tangent at P is a normal to
the curve. Hence
A normal to the given curve is a tangent to its evolute.
Again, squaring equations (11.26) and (11.27) and adding, we get
312
11.13. EXERCISES
2 2 2
dα dβ dR
+ = . (11.29)
ds ds ds
But if s′ = length of arc of the evolute, the left-hand member of (11.29) is precisely
′
the square of ds
ds
(from (8.12), where t = s, s = s′ , x = α, y = β). Hence (11.29)
asserts that
2 2
ds′ ds′
dR dR
= , or =± .
ds ds ds ds
That is, the radius of curvature of the given curve increases or decreases as fast as
the arc of the evolute increases. In our figure this means that
P1 C1 − P C = arc CC1 .
The length of an arc of the evolute is equal to the difference between the radii of
curvature of the given curve which are tangent to this arc at its extremities.
Thus in Example 11.11.4, we observe that if we fold Qv Pv ( = 4a) over to the
left on the evolute, Pv will reach to O′ , and we have:
The length of one arc of the cycloid (as OO′ Qv ) is eight times the length of the
radius of the generating circle.
11.13 Exercises
Find the coordinates of the center of curvature and the equation of the evolute of
each of the following curves. Draw the curve and its evolute, and draw at least
one circle of curvature.
x2 y2
1. The hyperbola a2
− b1
= 1.
(a2 +b2 )x3 2 +b2 )y 3 2 2 2
Ans. α = a4
, β = − (a b4
; evolute (aα) 3 − (bβ) 3 = (a2 + b2 ) 3 .
2 2 2
2. The hypocycloid x 3 + y 3 = a 3 .
1 2 2 1 2 2 2
α = x + 3x 3 y 3 , β = y + 3x 3 y 3 ; evolute (α + β) 3 + (α − β) 3 = 2a 3 .
313
11.13. EXERCISES
1 1 1
4. Show that in the parabola x 2 + y 2 = a 2 we have the relation α + β =
3(x + y).
(y + x)3 (y − x)3
α+β = ,α − β = .
a2 a2
2 2 2
From this derive the equation of the evolute (α + β) 3 − (α − β) 3 = 2a 3 .
Find the parametric equations of the evolutes of the following curves in terms
of the parameter t. Draw the curve and its evolute, and draw at least one circle of
curvature. (
x = a cos3 t,
6. The hypocycloid
y = a sin3 t.
(
α = a cos3 t + 3a cos t sin2 t,
Ans. .
β = 3a cos2 t sin t + a sin3 t.
(
x = 3t2 ,
7. The curve
y = 3t − t3 .
(
α = 23 (1 + 2t2 − t4 ),
Ans.
β = −4t3 .
(
x = a(cos t + t sin t),
8. The curve .
y = a(sin t − t cos t).
(
α = a cos t,
Ans. .
β = a sin t.
(
x = 3t,
9. The curve .
y = t2 − 6.
(
α = − 43 t3 ,
Ans. .
β = 3t2 − 23 .
(
x = 6 − t2
10. The curve .
y = 2t.
(
α = 4 − 3t2 ,
Ans. .
β = −2t3 .
314
11.13. EXERCISES
(
x = 2t,
11. The curve .
y = t2 − 2.
(
α = −2t3 ,
Ans. .
β = 3t2 .
(
x = 4t,
12. The curve .
y = 3 + t2 .
(
α = −t3 ,
Ans. .
β = 11 + 3t2 .
(
x = 9 − t2 ,
13. The curve .
y = 2t.
(
α = 7 − 3t2 ,
Ans. .
β = −2t3 .
(
x = 2t,
14. The curve .
y = 13 t3 .
( 5
α = 4t−t4
.
Ans. 12+5t4
.
β = 6t .
(
x = 31 t3 ,
15. The curve .
y = t2 .
( 3
α = 4t +12t
3
Ans. 2 4 .
β = − 2t 2+t .
(
x = 2t,
16. The curve .
y = 3t .
( 4
α = 12t4t3+9
Ans 4 .
β = 27+4t
6t
.
17. x = 4 − t2 , y = 2t.
18. x = 2t, y = 16 − t2 .
19. x = t, y = sin t.
20. x = 4t , y = 3t.
21. x = t2 , y = 16 t3 .
22. x = t, y = t3 .
23. x = sin t, y = 3 cos t.
315
11.13. EXERCISES
316
CHAPTER
TWELVE
n(n−1) n−2 2
(a + b)n = an + nan−1 b + 2!
a b + n(n−1)(n−2)3!
an−3 b3 + · · ·
n(n−1)(n−2)···(n−r+2) n−r+1 r−1
+ (r−1)!
a b + ···
2. n! = 1 · 2 · 3 · 4 · · · (n − 1)n.
317
12.1. FORMULAS FOR REFERENCE
n−1
X n
s= a + id = [2a + (n − 1)d].
i=0
2
n−1
X a(rn − 1)
s= ari = .
i=0
r−1
9. log an = n log a.
√
10. log n a = n1 log a.
11. log 1 = 0.
12. log e = 1.
318
12.1. FORMULAS FOR REFERENCE
cos x = sin π2 − x ;
tan x = cot π2 − x .
319
12.1. FORMULAS FOR REFERENCE
2 tan 21 x
37. sin x = 2 sin x2 cos x2 ; cos x = cos2 x
2
− sin2 x2 ; tan x = 1−tan2 21 x
.
38. cos2 x = 1
2
+ 21 cos 2x; sin2 x = 1
2
− 21 cos 2x.
coordinates.
320
12.1. FORMULAS FOR REFERENCE
(e) x cos α + y sin α = p, normal form (α is the angle the normal line
crosses the x-axis and p is the length of the shortest segment between
the line in question and the origin);
m1 −m2
55. tan θ = 1+m1 m2
, angle between two lines whose slopes are m1 and m2 .
56. (x − α)2 + (y − β)2 = r2 , equation of circle with center (α, β) and radius
r.
Sage
321
12.2. GREEK ALPHABET
322
12.4. NATURAL VALUES OF THE TRIGONOMETRIC FUNCTIONS
You can create a table of trig values (for 0 < θ < π/4 in radians) like this in
Sage :
Sage
The first column are the values of sin(x) at x ∈ {0.01750, 0.03500, ...0.7875}
(measured in radians). The second, third and fourth rows are the corresponding
values for cos, tan and cot, respectively.
323
12.4. NATURAL VALUES OF THE TRIGONOMETRIC FUNCTIONS
324
CHAPTER
THIRTEEN
The goal for this chapter1 is to introduce to a Sage –newcomer some ways of
using Sage in calculus, emphasizing examples over detailed explanations or
programming background. We hope that you will consult the more detailed doc-
umentation, such as the Sage Tutorial [T], available (free) on the Sage website
if you want to learn more.
What is Sage ?
325
13.1. WAYS TO USE SAGE
can be weeks (or more) of a students’ salary3 ? . Sage is easy to use (that is, for
a beginner it is at least as easy to use as the commercial “competition”) and costs
a lot less!
A main goal for Sage is to create the best available software for (among many
other mathematical topics)
• algebra (“How many legal positions does the Rubik’s cube have?”),
using the best possible GPL-compatible (open source) software. Currently, Sage
includes are: Maxima (for calculus and other symbolic computation), Singular
(for algebra), R (for statistics), Pari (for number theory), GAP (for more alge-
bra!), SciPy (for numerical computation), and over 60 more. Sage is headed
by the mathematician William Stein, who is at the University of Washington, in
Seattle. Sage is free and open source and will always remain so.
Though much of Sage is implemented using Python, no Python background is
needed to read this chapter nor to follow the examples in this book. However, to
become expert in Sage you will want to learn Python (a great language, used at
places such as Google and Industrial Light and Magic) at some point.
326
13.2. LONGTERM GOALS FOR SAGE
• Scripts: by writing stand-alone Python scripts that use the Sage library.
The first two mentioned will be discussed below. For the latter two ways of using
Sage , please see the Sage Tutorial [T] as they are more advanced than what is
needed here.
Here is a brief Sage example, to illustrate the ease-of-use and some capabilites.
(More examples will be given later, but for a more complete tutorial, please see
[T].) To find the area under the curve y = x2 from x = 0 to x = 1, your can type in
the following commands to see that Sage tells you the answer is 1/3 = 0.333....
Sage
sage: x = var(’x’)
sage: integral(xˆ2,x,0,1)
1/3
sage: n(integral(xˆ2,x,0,1))
0.333333333333333
If you use the Sage Notebook (described later) then you can use Sage to
create an interactive application which allows you to approximate this area using
mid-point based rectangles. This is illustrated in Figure 13.1.
Use your mouse to move the slider to vary the level of the approximation. The
Sage code can be found at [W].
327
13.2. LONGTERM GOALS FOR SAGE
328
13.3. THE SAGE COMMAND LINE
free access to Sage and all its source code, and you are even allowed to
archive and re-distribute the version of Sage you used.
• Easy to compile: Sage should be easy to compile from source for Linux,
OS X and Windows users. This provides more flexibility for users to modify
the system.
• Extensible: Be able to define new data types or derive from built-in types,
and use code written in a range of languages.
The session below shows and example of “tab-completion”: start typing the begin-
ning of a command and hit the TAB key. Sage will then return a list of possible
completions. Very handy!
When you start Sage you will get a small Sage banner and then the Sage
command-line prompt sage:. If you want to use the graphical user interface
(GUI), type notebook() at the prompt and hit return. If you are happy to work
at the command line, here is an example of what a short Sage session could look
like:
Sage
sage: 2ˆ3
8
sage: t = var("t")
sage: integrate(t*sin(tˆ2),t)
-cos(tˆ2)/2
329
13.4. THE SAGE NOTEBOOK
sage: plot[TAB]
plot plot_slope_field plotkin_bound_asymp
plot3d plot_vector_field plotkin_upper_bound
The Sage Notebook can be tried out for free by anyone with an internet connec-
tion and a good browser at http://www.sagenb.org (this also works with
the iPhone but not all cell-phones are configured for this).
The following screenshot illustrates a Notebook worksheet. Worksheets can be
saved (as text or as an sws file in Sage worksheet format), downloaded, emailed
(for use by someone else), shared (with “collaborators”), or published (if created
on a public Sage server).
Here are the commands used to create the output in the Notebook session in the
330
13.4. THE SAGE NOTEBOOK
above screenshot:
Sage Notebook
a,b,c,d,x,y=var(’a,b,c,d,x,y’)
show(solve(a*xˆ2+b*x+c==0,x))
show(solve(a*xˆ3+b*x+c==0,x))
solve(a*x+b*y==0,c*x+d*y==0,x,y)
331
13.4. THE SAGE NOTEBOOK
• If you enjoy playing with the Rubik’s cube, there are several programs for
solving the Rubik’s cube in Sage :
You can rotate the Rubik’s cube interactively with your mouse.
332
13.5. A GUIDED TOUR
• If you are interested in experimenting with calculus, Sage has excellent sym-
bolic computation and graphics capabilities. This is a Notebook session (to be
typed in a notebook “cell”, then executed):
Sage Notebook
var(’x’)
RR = RealField(15)
f = sin(x)*eˆ(-x)
p = plot(f,-1,5, thickness=2)
pt_list = (RR(0),RR(0.25),RR(0.5),RR(0.75),RR(1),RR(1.25),RR(1.5),RR(1.75),\
RR(2),RR(2.25),RR(2.5),RR(2.75),RR(3),RR(3.25),RR(3.5))
@interact
def _(pt=pt_list):
dot = point((pt,f(pt)),pointsize=80,rgbcolor=(1,0,0))
fp = f.diff()
slope = fp(pt)
sp = plot(f(pt)+slope*(x-pt),(x,-1, 5), color=’green’, thickness=2)
html(’<font color=red>Tangent to y = exp(-x)sin(x) at x = %s</font>’%RR(pt))
show(dot + p + sp, ymin = -.5, ymax = 1)
When these are all typed in a single cell and executed, using javascript Sage
displays an interactive graphic (see Figure 13.4) with a slider bar which allows
you to vary the point at which the tangent line is drawn to the graph of f (x) =
e−x sin(x) using your mouse.
Such interactive commands are easy to write in Sage !
333
13.5. A GUIDED TOUR
Sage uses = for assignment. It uses ==, <=, >=, < and > for comparison:
Sage
sage: a = 5
sage: a
5
sage: 2 == 2
True
sage: 2 == 3
False
sage: 2 < 3
True
sage: a == 5
True
334
13.5. A GUIDED TOUR
sage: sqrt(3.4)
1.84390889145858
sage: sin(5.135)
-0.912021158525540
sage: sin(pi/3)
sqrt(3)/2
As the last example shows, some mathematical expressions return ‘exact’ val-
ues, rather than numerical approximations. To get a numerical approximation,
use either the function n or the method n (and both of these have a longer name,
numerical approx, and the function N is the same as n)). These take op-
tional arguments prec, which is the requested number of bits of precision, and
digits, which is the requested number of decimal digits of precision; the default
is 53 bits of precision.
Sage
sage: exp(2)
eˆ2
sage: n(exp(2))
7.38905609893065
sage: sqrt(pi).numerical approx()
1.77245385090552
sage: sin(10).n(digits=5)
-0.54402
sage: N(sin(10),digits=10)
-0.5440211109
sage: numerical approx(pi, prec=200)
3.1415926535897932384626433832795028841971693993751058209749
335
13.5. A GUIDED TOUR
Sage
sage: tan?
Type: <class sage.calculus.calculus.Function tan>
Definition: tan( [noargspec] )
Docstring:
EXAMPLES:
sage: tan(pi)
0
sage: tan(3.1415)
-0.0000926535900581913
sage: tan(3.1415/4)
0.999953674278156
sage: tan(pi/4)
1
sage: tan(1/2)
tan(1/2)
sage: RR(tan(1/2))
0.546302489843790
sage: sudoku?
File: sage/local/lib/python2.5/site-packages/sage/games/sudoku.py
Type: <type function>
Definition: sudoku(A)
Docstring:
EXAMPLE:
sage: A = matrix(ZZ,9, [5,0,0, 0,8,0, 0,4,9, 0,0,0, 5,0,0,
0,3,0, 0,6,7, 3,0,0, 0,0,1, 1,5,0, 0,0,0, 0,0,0, 0,0,0, 2,0,8,
0,0,0, 0,0,0, 0,0,0, 0,1,8, 7,0,0, 0,0,4, 1,5,0, 0,3,0, 0,0,2,
0,0,0, 4,9,0, 0,5,0, 0,0,3])
sage: A
[5 0 0 0 8 0 0 4 9]
[0 0 0 5 0 0 0 3 0]
[0 6 7 3 0 0 0 0 1]
[1 5 0 0 0 0 0 0 0]
[0 0 0 2 0 8 0 0 0]
[0 0 0 0 0 0 0 1 8]
[7 0 0 0 0 4 1 5 0]
[0 3 0 0 0 2 0 0 0]
[4 9 0 0 5 0 0 0 3]
sage: sudoku(A)
[5 1 3 6 8 7 2 4 9]
[8 4 9 5 2 1 6 3 7]
[2 6 7 3 4 9 5 8 1]
[1 5 8 4 6 3 9 7 2]
[9 7 4 2 1 8 3 6 5]
[3 2 6 7 9 5 4 1 8]
[7 8 2 9 3 4 1 5 6]
[6 3 5 1 7 2 8 9 4]
[4 9 1 8 5 6 7 2 3]
336
13.5. A GUIDED TOUR
Solving Equations
The solve function solves equations. To use it, first specify some variables;
then the arguments to solve are an equation (or a system of equations), together
with the variables for which to solve:
Sage
sage: x = var(x)
sage: solve(x2 + 3*x + 2, x)
[x == -2, x == -1]
sage: x, b, c = var(x b c)
sage: solve([x2 + b*x + c == 0],x)
[x == (-sqrt(b2 - 4*c) - b)/2, x == (sqrt(b2 - 4*c) - b)/2]
sage: x, y = var(x, y)
sage: solve([x+y==6, x-y==4], x, y)
[[x == 5, y == 1]]
sage: var(x y p q)
(x, y, p, q)
sage: eq1 = p+q==9
sage: eq2 = q*y+p*x==-6
sage: eq3 = q*y2+p*x2==24
337
13.5. A GUIDED TOUR
sage: solve([eq1,eq2,eq3,p==1],p,q,x,y)
[[p == 1, q == 8, x == (-4*sqrt(10) - 2)/3,
y == (sqrt(2)*sqrt(5) - 4)/6],
[p == 1, q == 8, x == (4*sqrt(10) - 2)/3,
y == (-sqrt(2)*sqrt(5) - 4)/6]]
(The function n prints a numerical approximation, and the argument is the num-
ber of bits of precision.)
Often times, solve will not be able to find an exact solution to the equation or
equations specified. When it fails, you can use find root to find a numerical
solution. For example, solve does not return anything intersting for the following
equation:
Sage
On the other hand, we can use find root to find a solution to the above equa-
tion in range 0 < θ < π/2:
Sage
338
13.5. A GUIDED TOUR
Sage
sage: u = var(u)
sage: diff(sin(u), u)
cos(u)
sage: diff(sin(x2), x, 4)
16*x4*sin(x2) - 12*sin(x2) - 48*x2*cos(x2)
sage:
sage:
sage:
2*x
sage:
34*y
x, y = var(x,y)
f = x2 + 17*y2
f.diff(x)
f.diff(y)
x sin(x2 ) dx
R
We move on to integrals, both indefinite and definite. To compute
R1
and 0 x2x+1 dx
Sage
1
To compute the partial fraction decomposition of x2 −1
:
Sage
sage: f = 1/((1+x)*(x-1))
sage: f.partial fraction(x)
1/(2*(x - 1)) - 1/(2*(x + 1))
sage: print f.partial fraction(x)
1 1
--------- - ---------
2 (x - 1) 2 (x + 1)
339
13.5. A GUIDED TOUR
13.5.4 Plotting
Sage can produce two-dimensional and three-dimensional plots.
Two-dimensional Plots
In two dimensions, Sage can draw circles, lines, and polygons; plots of functions
in rectangular coordinates; and also polar plots, contour plots and vector field
plots. We present examples of some of these here. For more examples of plotting
with Sage , see also the Sage Reference Manual [R].
This command produces a yellow circle of radius 1, centered at the origin:
Sage
You can also create a circle by assigning it to a variable; this does not plot it:
Sage
sage: c.show()
340
13.5. A GUIDED TOUR
Sage
Once you specify a variable name, you can create parametric plots also:
Sage
sage: x = var(x)
sage: parametric plot((cos(x),sin(x)3),0,2*pi,rgbcolor=hue(0.6))
sage:
sage:
sage:
sage:
sage:
x = var(x)
p1 = parametric plot((cos(x),sin(x)),0,2*pi,rgbcolor=hue(0.2))
p2 = parametric plot((cos(x),sin(x)2),0,2*pi,rgbcolor=hue(0.4))
p3 = parametric plot((cos(x),sin(x)3),0,2*pi,rgbcolor=hue(0.6))
show(p1+p2+p3, axes=false)
A good way to produce filled-in shapes is to produce a list of points (L in the ex-
ample below) and then use the polygon command to plot the shape with bound-
ary formed by those points. For example, here is a green deltoid:
Sage
sage: L = [[-1+cos(pi*i/100)*(1+cos(pi*i/100)),\
... 2*sin(pi*i/100)*(1-cos(pi*i/100))] for i in range(200)]
sage: polygon(L, rgbcolor=(1/8,3/4,1/2))
341
13.5. A GUIDED TOUR
(You don’t type the “...” above - they are filled in automatically by Sage when
you type \<shift-enter>, which is a way you can create a newline without
executing the Sage command.) Type show(p, axes=false) to see this
without any axes.
You can add text to a plot:
Sage
sage: L = [[6*cos(pi*i/100)+5*cos((6/2)*pi*i/100),\
... 6*sin(pi*i/100)-5*sin((6/2)*pi*i/100)] for i in range(200)]
sage: p = polygon(L, rgbcolor=(1/8,1/4,1/2))
sage: t = text("hypotrochoid", (5,4), rgbcolor=(1,0,0))
sage: show(p+t)
Calculus teachers draw the following plot frequently on the board: not just one
branch of arcsin but rather several of them: i.e., the plot of y = sin(x) for x
between −2π and 2π, flipped about the 45 degree line. The following Sage
commands construct this:
Sage
Since the tangent function has a larger range than sine, if you use the same
trick to plot the inverse tangent, you should change the minimum and maximum
coordinates for the x-axis:
Sage
Sage also computes polar plots, contour plots and vector field plots (for special
types of functions). Here is an example of a contour plot:
Sage
342
13.5. A GUIDED TOUR
Three-Dimensional Plots
Sage produces three-dimensional plots using an open source package called
[Jmol]. Here are a few examples:
Yellow Whitney’s umbrella http://en.wikipedia.org/wiki/Whitney umbrella:
Sage
sage: u, v = var(u,v)
sage: fx = u*v
sage: fy = u
sage: fz = v2
sage: parametric plot3d([fx, fy, fz], (u, -1, 1), (v, -1, 1),\
... frame=False, color="yellow")
Once you have evaluated parametric plot3d, so that the plot is visible,
you can click and drag on it to rotate the figure. Type parametric plot3d?
for more examples.
In the last line, note the syntax. Using plot(f(z), 0, 2) instead will give
an error, because z is a dummy variable in the definition of f and is not defined
outside of that definition. Indeed, just f(z) returns an error. The following will
work in this case, although in general there are issues and so it should probably
be avoided (see item 4 below).
343
13.5. A GUIDED TOUR
Sage
sage: z = var("z")
sage: derivative(f(z),z)
2*z
sage: plot(f(z), 0, 2)
At this point, f(z) is a symbolic expression, the next item in our list.
2. Define a “callable symbolic expression”. These can be plotted, differentiated,
and integrated.
Sage
sage: g(x) = x2
sage: g
# g sends x to x2
x |--> x2
sage: g(3)
9
sage: Dg = g.derivative(); Dg
x |--> 2*x
sage: Dg(3)
6
sage: type(g)
<class sage.calculus.calculus.CallableSymbolicExpression>
sage: plot(g, 0, 2)
Note that while g is a callable symbolic expression, g(x) is a related, but differ-
ent sort of object, which can also be plotted, differentated, etc., albeit with some
issues: see item 5 below for an illustration.
Sage
sage: type(g(x))
<class sage.calculus.calculus.SymbolicArithmetic>
sage: g(x).derivative()
2*x
sage: plot(g(x), 0, 2)
3. Use a pre-defined Sage ‘calculus function’. These can be plotted, and with
a little help, differentiated, and integrated.
Sage
sage: type(sin)
<class sage.calculus.calculus.Function sin>
sage: plot(sin, 0, 2)
sage: type(sin(x))
<class sage.calculus.calculus.SymbolicComposition>
sage: plot(sin(x), 0, 2)
344
13.5. A GUIDED TOUR
sage: f = sin
sage: f.derivative()
0
Using f = sin(x) instead of sin works, but it is probably even better to use
f(x) = sin(x) to define a callable symbolic expression.
Sage
sage: type(x<2)
<class sage.calculus.equations.SymbolicEquation>
sage: plot(h, 0, 4)
345
13.5. A GUIDED TOUR
sage: f = x
sage: g = f.derivative()
sage: g
1
The problem: g(3), for example, returns an error, saying “ValueError: the
number of arguments must be less than or equal to 0.”
Sage
sage: type(f)
<class sage.calculus.calculus.SymbolicVariable>
sage: type(g)
<class sage.calculus.calculus.SymbolicConstant>
g is not a function, it’s a constant, so it has no variables associated to it, and you
can’t plug anything into it.
The solution: there are several options.
• Define f initially to be a symbolic expression.
Sage
sage: f(x) = x
# instead of f = x
sage: g = f.derivative()
sage: g
x |--> 1
sage: g(3)
1
sage: type(g)
<class sage.calculus.calculus.CallableSymbolicExpression>
sage: f = x
sage: g(x) = f.derivative() # instead of g = f.derivative()
sage: g
x |--> 1
sage: g(3)
1
sage: type(g)
<class sage.calculus.calculus.CallableSymbolicExpression>
346
13.6. TRY IT!
• Or with f and g as defined originally, specify the variable for which you are
substituting.
Sage
sage: f = x
sage: g = f.derivative()
sage: g
1
sage: g(x=3) # instead of g(3)
1
Please see the Sage Tutorial for more details and examples.
http://www.sagemath.org/
http://www.sagenb.com/
347
13.6. TRY IT!
348
CHAPTER
FOURTEEN
¡http://fsf.org/¿
Everyone is permitted to copy and distribute verbatim copies of this license document,
but changing it is not allowed.
Preamble
The purpose of this License is to make a manual, textbook, or other functional and useful
document “free” in the sense of freedom: to assure everyone the effective freedom to copy
and redistribute it, with or without modifying it, either commercially or noncommercially.
Secondarily, this License preserves for the author and publisher a way to get credit for
their work, while not being considered responsible for modifications made by others.
This License is a kind of “copyleft”, which means that derivative works of the document
must themselves be free in the same sense. It complements the GNU General Public
License, which is a copyleft license designed for free software.
We have designed this License in order to use it for manuals for free software, be-
cause free software needs free documentation: a free program should come with manuals
providing the same freedoms that the software does. But this License is not limited to
software manuals; it can be used for any textual work, regardless of subject matter or
whether it is published as a printed book. We recommend this License principally for
works whose purpose is instruction or reference.
350
formats include proprietary formats that can be read and edited only by proprietary word
processors, SGML or XML for which the DTD and/or processing tools are not generally
available, and the machine-generated HTML, PostScript or PDF produced by some word
processors for output purposes only.
The “Title Page” means, for a printed book, the title page itself, plus such following
pages as are needed to hold, legibly, the material this License requires to appear in the
title page. For works in formats which do not have any title page as such, “Title Page”
means the text near the most prominent appearance of the work’s title, preceding the
beginning of the body of the text.
The “publisher” means any person or entity that distributes copies of the Document to
the public.
A section “Entitled XYZ” means a named subunit of the Document whose title either
is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in
another language. (Here XYZ stands for a specific section name mentioned below, such as
“Acknowledgements”, “Dedications”, “Endorsements”, or “History”.) To “Preserve
the Title” of such a section when you modify the Document means that it remains a
section “Entitled XYZ” according to this definition.
The Document may include Warranty Disclaimers next to the notice which states that
this License applies to the Document. These Warranty Disclaimers are considered to be
included by reference in this License, but only as regards disclaiming warranties: any
other implication that these Warranty Disclaimers may have is void and has no effect on
the meaning of this License.
2. VERBATIM COPYING
You may copy and distribute the Document in any medium, either commercially or
noncommercially, provided that this License, the copyright notices, and the license notice
saying this License applies to the Document are reproduced in all copies, and that you
add no other conditions whatsoever to those of this License. You may not use technical
measures to obstruct or control the reading or further copying of the copies you make or
distribute. However, you may accept compensation in exchange for copies. If you dis-
tribute a large enough number of copies you must also follow the conditions in section 3.
You may also lend copies, under the same conditions stated above, and you may publicly
display copies.
3. COPYING IN QUANTITY
If you publish printed copies (or copies in media that commonly have printed covers)
of the Document, numbering more than 100, and the Document’s license notice requires
351
Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all
these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the
back cover. Both covers must also clearly and legibly identify you as the publisher of
these copies. The front cover must present the full title with all words of the title equally
prominent and visible. You may add other material on the covers in addition. Copying
with changes limited to the covers, as long as they preserve the title of the Document and
satisfy these conditions, can be treated as verbatim copying in other respects.
If the required texts for either cover are too voluminous to fit legibly, you should put the
first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto
adjacent pages.
If you publish or distribute Opaque copies of the Document numbering more than 100,
you must either include a machine-readable Transparent copy along with each Opaque
copy, or state in or with each Opaque copy a computer-network location from which
the general network-using public has access to download using public-standard network
protocols a complete Transparent copy of the Document, free of added material. If you use
the latter option, you must take reasonably prudent steps, when you begin distribution of
Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible
at the stated location until at least one year after the last time you distribute an Opaque
copy (directly or through your agents or retailers) of that edition to the public.
It is requested, but not required, that you contact the authors of the Document well
before redistributing any large number of copies, to give them a chance to provide you
with an updated version of the Document.
4. MODIFICATIONS
You may copy and distribute a Modified Version of the Document under the conditions
of sections 2 and 3 above, provided that you release the Modified Version under precisely
this License, with the Modified Version filling the role of the Document, thus licensing
distribution and modification of the Modified Version to whoever possesses a copy of it.
In addition, you must do these things in the Modified Version:
A. Use in the Title Page (and on the covers, if any) a title distinct from that of the
Document, and from those of previous versions (which should, if there were any,
be listed in the History section of the Document). You may use the same title as a
previous version if the original publisher of that version gives permission.
B. List on the Title Page, as authors, one or more persons or entities responsible for
authorship of the modifications in the Modified Version, together with at least five
of the principal authors of the Document (all of its principal authors, if it has fewer
than five), unless they release you from this requirement.
352
C. State on the Title page the name of the publisher of the Modified Version, as the
publisher.
E. Add an appropriate copyright notice for your modifications adjacent to the other
copyright notices.
F. Include, immediately after the copyright notices, a license notice giving the public
permission to use the Modified Version under the terms of this License, in the form
shown in the Addendum below.
G. Preserve in that license notice the full lists of Invariant Sections and required Cover
Texts given in the Document’s license notice.
I. Preserve the section Entitled “History”, Preserve its Title, and add to it an item
stating at least the title, year, new authors, and publisher of the Modified Version as
given on the Title Page. If there is no section Entitled “History” in the Document,
create one stating the title, year, authors, and publisher of the Document as given
on its Title Page, then add an item describing the Modified Version as stated in the
previous sentence.
J. Preserve the network location, if any, given in the Document for public access to
a Transparent copy of the Document, and likewise the network locations given in
the Document for previous versions it was based on. These may be placed in the
“History” section. You may omit a network location for a work that was published
at least four years before the Document itself, or if the original publisher of the
version it refers to gives permission.
L. Preserve all the Invariant Sections of the Document, unaltered in their text and in
their titles. Section numbers or the equivalent are not considered part of the section
titles.
M. Delete any section Entitled “Endorsements”. Such a section may not be included
in the Modified Version.
353
O. Preserve any Warranty Disclaimers.
If the Modified Version includes new front-matter sections or appendices that qualify as
Secondary Sections and contain no material copied from the Document, you may at your
option designate some or all of these sections as invariant. To do this, add their titles to
the list of Invariant Sections in the Modified Version’s license notice. These titles must be
distinct from any other section titles.
You may add a section Entitled “Endorsements”, provided it contains nothing but en-
dorsements of your Modified Version by various parties—for example, statements of peer
review or that the text has been approved by an organization as the authoritative definition
of a standard.
You may add a passage of up to five words as a Front-Cover Text, and a passage of up
to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified
Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added
by (or through arrangements made by) any one entity. If the Document already includes
a cover text for the same cover, previously added by you or by arrangement made by the
same entity you are acting on behalf of, you may not add another; but you may replace
the old one, on explicit permission from the previous publisher that added the old one.
The author(s) and publisher(s) of the Document do not by this License give permission
to use their names for publicity for or to assert or imply endorsement of any Modified
Version.
5. COMBINING DOCUMENTS
You may combine the Document with other documents released under this License, un-
der the terms defined in section 4 above for modified versions, provided that you include
in the combination all of the Invariant Sections of all of the original documents, unmod-
ified, and list them all as Invariant Sections of your combined work in its license notice,
and that you preserve all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and multiple identical
Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sec-
tions with the same name but different contents, make the title of each such section unique
by adding at the end of it, in parentheses, the name of the original author or publisher of
that section if known, or else a unique number. Make the same adjustment to the section
titles in the list of Invariant Sections in the license notice of the combined work.
In the combination, you must combine any sections Entitled “History” in the various
original documents, forming one section Entitled “History”; likewise combine any sec-
tions Entitled “Acknowledgements”, and any sections Entitled “Dedications”. You must
delete all sections Entitled “Endorsements”.
354
6. COLLECTIONS OF DOCUMENTS
You may make a collection consisting of the Document and other documents released
under this License, and replace the individual copies of this License in the various docu-
ments with a single copy that is included in the collection, provided that you follow the
rules of this License for verbatim copying of each of the documents in all other respects.
You may extract a single document from such a collection, and distribute it individually
under this License, provided you insert a copy of this License into the extracted document,
and follow this License in all other respects regarding verbatim copying of that document.
8. TRANSLATION
Translation is considered a kind of modification, so you may distribute translations of
the Document under the terms of section 4. Replacing Invariant Sections with translations
requires special permission from their copyright holders, but you may include translations
of some or all Invariant Sections in addition to the original versions of these Invariant
Sections. You may include a translation of this License, and all the license notices in
the Document, and any Warranty Disclaimers, provided that you also include the original
English version of this License and the original versions of those notices and disclaimers.
In case of a disagreement between the translation and the original version of this License
or a notice or disclaimer, the original version will prevail.
If a section in the Document is Entitled “Acknowledgements”, “Dedications”, or “His-
tory”, the requirement (section 4) to Preserve its Title (section 1) will typically require
changing the actual title.
355
9. TERMINATION
You may not copy, modify, sublicense, or distribute the Document except as expressly
provided under this License. Any attempt otherwise to copy, modify, sublicense, or dis-
tribute it is void, and will automatically terminate your rights under this License.
However, if you cease all violation of this License, then your license from a particular
copyright holder is reinstated (a) provisionally, unless and until the copyright holder ex-
plicitly and finally terminates your license, and (b) permanently, if the copyright holder
fails to notify you of the violation by some reasonable means prior to 60 days after the
cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if
the copyright holder notifies you of the violation by some reasonable means, this is the
first time you have received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after your receipt of the
notice.
Termination of your rights under this section does not terminate the licenses of parties
who have received copies or rights from you under this License. If your rights have been
terminated and not permanently reinstated, receipt of a copy of some or all of the same
material does not give you any rights to use it.
11. RELICENSING
“Massive Multiauthor Collaboration Site” (or “MMC Site”) means any World Wide
Web server that publishes copyrightable works and also provides prominent facilities for
356
anybody to edit those works. A public wiki that anybody can edit is an example of such a
server. A “Massive Multiauthor Collaboration” (or “MMC”) contained in the site means
any set of copyrightable works thus published on the MMC site.
“CC-BY-SA” means the Creative Commons Attribution-Share Alike 3.0 license pub-
lished by Creative Commons Corporation, a not-for-profit corporation with a principal
place of business in San Francisco, California, as well as future copyleft versions of that
license published by that same organization.
“Incorporate” means to publish or republish a Document, in whole or in part, as part of
another Document.
An MMC is “eligible for relicensing” if it is licensed under this License, and if all
works that were first published under this License somewhere other than this MMC, and
subsequently incorporated in whole or in part into the MMC, (1) had no cover texts or
invariant sections, and (2) were thus incorporated prior to November 1, 2008.
The operator of an MMC Site may republish an MMC contained in the site under CC-
BY-SA on the same site at any time before August 1, 2009, provided the MMC is eligible
for relicensing.
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the
“with . . . Texts.” line with this:
with the Invariant Sections being LIST THEIR TITLES, with the Front-
Cover Texts being LIST, and with the Back-Cover Texts being LIST.
357
If you have Invariant Sections without Cover Texts, or some other combination of the
three, merge those two alternatives to suit the situation.
If your document contains nontrivial examples of program code, we recommend releas-
ing these examples in parallel under your choice of free software license, such as the GNU
General Public License, to permit their use in free software.
358
BIBLIOGRAPHY
[F] Fractals,
http://en.wikipedia.org/wiki/Fractal
http://sage.math.washington.edu/home/wdj/teaching/calc1-sage/
[W] Sage interact examples, available free from the Sagemath wiki at
http://wiki.sagemath.org/interact/calculus
359
INDEX
dy
dx
, 45 Folium of Descartes, 139
hyperbolic spiral, 140
acceleration, 156 hypocycloid (astroid), 139
angle between two curves, 119 lemniscate, 145
arclength, 223, 225 logarithmic spiral, 147
arctan, 23 spiral of Archimedes, 147
argument, 5 Witch of Agnesi, 123
cylinder, volume formula, 318
binomial theorem, 317
dependent variable, 5
center of curvature, 301
derivative, 44
chain rule, 74, 242
difference scheme
circle of curvature, 293
centered, 283
circle, area formula, 318
forward, 283
composition, 72
differentiable, 44
concave down, 191
differential, 222
concave upward, 191 differentiating operator, 45
cone, volume formula, 319 differentiation, 45
constant, 1 chain rule, 62
continuous, 14 power rule, 60
continuous in an interval, 17 product rule, 60
critical point, 186 quotient rule, 60
critical value, 188 direction of a curve, 116
curvature, 285, 287 discontinuous, 15
curve, 18 domain, 6
cardioid, 139, 147
catenary, 129 equations of a line, 320
cissoid, 122 evolute, 308
cycloid, 134 exp, 18
360
INDEX
361
INDEX
variable, 1
velocity, 153
362