Calculus 01

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 13

CHAPTER 1

Numbers and Functions

The subject of this course is “functions of one real variable” so we begin by wondering what a real number
“really” is, and then, in the next section, what a function is.

1. What is a number?

1.1. Different kinds of numbers. The simplest numbers are the positive integers
1, 2, 3, 4, · · ·
the number zero
0,
and the negative integers
· · · , −4, −3, −2,
−1.
Together these form the integers or “whole numbers.”
Next, there are the numbers you get by dividing one whole number by another (nonzero) whole number.
These are the so called fractions or rational numbers such as
1 1 2 1 2 3 4
, , , , , , , ···
2 3 3 4 4 4 3
or
− 1 , −1 , −2 , −
1 , 2− , 3− ,4− , · · ·
2 3 3 4 4 4 3
By definition, any whole number is a rational number (in particular zero is a rational number.)
You can add, subtract, multiply and divide any pair of rational numbers and the result will again be a
rational number (provided you don’t try to divide by zero).
One day in middle school you were told that there are other numbers besides the rational numbers, and
the first example of such a number is the square root of two. It has been known ever since the time of the
greeks that no rational number exists whose square is exactly 2, i.e. you can’t find a fraction m
n such that
m 2
= 2, i.e. m2 = 2n2 .
n

Nevertheless, if you compute x2 for some values of x between 1 and 2, and check if you x x2
get more or less than 2, then it looks like there should be some number x between 1.4 and 1.2 1.44
1.5 whose square is exactly 2. So, √ we assume that there is such a number, and we call 1.3 1.69
it the square root of 2, written as 2. This raises several questions. How do we know 1.4 1.96 < 2
there
1.5 2.25 > 2
really is a number between 1.4 and 1.5 for which x2 = 2? How many other such numbers 1.6 2.56
are we going to assume into existence? Do these new numbers obey the same algebra rules
(like a + b = b + a) as the rational numbers? If we knew precisely what these numbers
(like

2) were then we could perhaps answer such questions. It turns out to be rather difficult to give a precise
description of what a number is, and in this course we won’t try to get anywhere near the bottom of this
issue. Instead we will think of numbers as “infinite decimal expansions” as follows.
One can represent certain fractions as decimal fractions, e.g.
5
279
= 1116 = 11.16.
25 100

6
1
Not all fractions can be represented as decimal fractions. For instance, expanding 3 into a decimal fraction
leads to an unending decimal fraction
1
= 0.333 333 333 333 333 · · ·
3
It is impossible to write the complete decimal expansion of 13 because it contains infinitely many digits.
But we can describe the expansion: each digit is a three. An electronic calculator, which always represents
numbers as finite decimal numbers, can never hold the number 31 exactly.
Every fraction can be written as a decimal fraction which may or may not be finite. If the decimal
expansion doesn’t end, then it must repeat. For instance,
1
= 0.142857 142857 142857 142857 . . .
7
Conversely, any infinite repeating decimal expansion represents a rational number.
A real number is specified by a possibly unending decimal expansion. For instance,

2 = 1.414 213 562 373 095 048 801 688 724 209 698 078 569 671 875 376 9
...
Of course you can never write all the digits in the decimal expansion, so you only write the√ first few digits
and hide the others behind dots. To give a precise description of a real number (such as 2) you have to
explain how you could in principle compute as many digits in the expansion as you would like. During the
next three semesters of calculus we will not go into the details of how this should be done.

1.2. A reason to believe in 2. The Pythagorean theorem says that the √ hy-
potenuse of a right triangle with sides 1 and 1 must be a line segment of length 2. In

middle or high school you learned something similar to the following geometric construction
of a line segment whose length is 2. Take a square with side of length 1, and construct
a new square one of whose sides is the diagonal of the first square. The figure you get
consists of 5 triangles of equal area and by counting triangles you see that the larger
square has exactly twice the area√ of the smaller square. Therefore the diagonal of the smaller square, being
the side of the larger square, is 2 as long as the side of the smaller square.

Why are real numbers called real? All the numbers we will use in this first semester of calculus are
“real numbers.” At some point (in 2nd semester calculus) it becomes useful to assume that there is a number
whose square is −1. No real number has this property since the square of any real number is positive, so
it was decided
√ to call this new imagined number “imaginary” and to refer to the numbers we already have
(rationals, 2-like things) as “real.”

1.3. The real number line and intervals. It is customary to visualize the real numbers as points
on a straight line. We imagine a line, and choose one point on this line, which we call the origin. We also
decide which direction we call “left” and hence which we call “right.” Some draw the number line vertically
and use the words “up” and “down.”
To plot any real number x one marks off a distance x from the origin, to the right (up) if x > 0, to
the left (down) if x < 0.
The distance along the number line between two numbers x and y is |x − y|. In particular,
the distance is never a negative number.

−3 −2 −1 0 1 2 3

Figure 1. To draw the half open interval [−1, 2) use a filled dot to mark the endpoint which is included
and an open dot for an excluded endpoint. 7
−2 −1 0 1 √
2 2


Figure 2. To find 2 on the real line you draw a square of sides 1 and drop the diagonal onto the real line.

Almost every equation involving variables x, y, etc. we write down in this course will be true for some
values of x but not for others. In modern abstract mathematics a collection of real numbers (or any other
kind of mathematical objects) is called a set. Below are some examples of sets of real numbers. We will use
the notation from these examples throughout this course.
The collection of all real numbers between two given real numbers form an interval. The following
notation is used
• (a, b) is the set of all real numbers x which satisfy a < x < b.
• [a, b) is the set of all real numbers x which satisfy a ≤ x < b.
• (a, b] is the set of all real numbers x which satisfy a < x ≤ b.
• [a, b] is the set of all real numbers x which satisfy a ≤ x ≤ b.
If the endpoint is not included then it may be ∞ or −∞. E.g. (−∞, 2] is the interval of all real numbers
(both positive and negative) which are ≤ 2.

1.4. Set notation. A common way of describing a set is to say it is the collection of all real numbers
which satisfy a certain condition. One uses this notation
A = x | x satisfies this or that condition
Most of the time we will use upper case letters in a calligraphic font to denote sets. (A,B,C,D, . . . )
For instance, the interval (a, b) can be described as
(a, b) = x | a < x < b
The set
B = x | x2 − 1 > 0
consists of all real numbers x for which x2 − 1 > 0, i.e. it consists of all real numbers x for which either x >
1 or x < −1 holds. This set consists of two parts: the interval (−∞, −1) and the interval (1, ∞).
You can try to draw a set of real numbers by drawing the number line and coloring the points
belonging to that set red, or by marking them in some other way.
Some sets can be very difficult to draw. For instance,
C = x | x is a rational number
can’t be accurately drawn. In this course we will try to avoid such sets.
Sets can also contain just a few numbers, like
D = {1, 2, 3}
which is the set containing the numbers one, two and three. Or the set
E = x | x3 − 4x2 + 1 = 0
which consists of the solutions of the equation x3 − 4x2 + 1 = 0. (There are three of them, but it is not easy
to give a formula for the solutions.)
If A and B are two sets then the union of A and B is the set which contains all numbers that belong
either to A or to B. The following notation is used
A ∪ B = x | x belongs to A or to B or both.

8
Similarly, the intersection of two sets A and B is the set of numbers which belong to both sets. This
notation is used:
A ∩ B = x | x belongs to both A and B.

2. Exercises
th
1. What is the 2007 digit after the period in the expan- 4. Suppose A and B are intervals. Is it always true that
sion of 1 ? A ∩ B is an interval? How about A ∪ B?
7
2. Which of the following fractions have finite decimal 5. Consider the sets
expansions?
2 3 276937 M= x | x > 0 and N = y|y> 0 .
a= , b= , c= .
Are these sets the same?
3 25 15625
6. Group Problem.
3. Draw the following sets of real numbers. Each of these
Write the numbers
sets is the union of one or more intervals. Find those
intervals. Which of thee sets are finite? x = 0.3131313131 . . . , y = 0.273273273273 . . .
2
and z = 0.21541541541541541 . . .
A= x | x − 3x + 2 ≤ 0 m
as fractions (i.e. write them as n , specifying m and n.)
2
B= x | x − 3x + 2 ≥ 0 (Hint: show that 100x = x + 31. A similar trick
2 works for y, but z is a little harder.)
C = x | x − 3x > 3
2
D = x | x − 5 > 2x 7. Group Problem.
2
E = t | t − 3t + 2 ≤ 0 Is the number whose decimal expansion after the
2
F = α | α − 3α + 2 ≥ 0 period consists only of nines, i.e.
G = (0, 1) ∪ (5, 7] √ x = 0.99999999999999999 . . .
H = {1} ∪ {2, 3} ∩ (0, 2 2) an integer?
Q = θ | sin θ = 21
R = ϕ | cos ϕ > 0

3. Functions

Wherein we meet the main characters of this semester

3.1. Definition. To specify a function f you must


(1) give a rule which tells you how to compute the value f (x) of the function for a given real number
x, and:
(2) say for which real numbers x the rule may be applied.
The set of numbers for which a function is defined is called its domain. The set of all possible numbers f (x)
as x runs over the domain is called the range of the function. The rule must be unambiguous: the same
xmust always lead to the same f (x).

For instance, one can define a function f by putting f (x) = x for all x ≥ 0. Here the rule defining f is
“take the square root of whatever number you’re given”, and the function f will accept all nonnegative real
numbers.
The rule which specifies a function can come in many different forms. Most often it is a formula, as in
the square root example of the previous paragraph. Sometimes you need a few formulas, as in
(
2x for x < 0
g(x) = domain of g = all real numbers.
x2 for x ≥ 0
Functions which are defined by different formulas on different intervals are sometimes called
piecewise defined functions.

3.2. Graphing a function. You get the graph of a function f by drawing all points whose
coordi- nates are (x, y) where x must be in the domain
9 of f and y = f (x).
range of f

y = f (x) (x, f (x))

x
domain of f
Figure 3. The graph of a function f . The domain of f consists of all x values at which the function is
defined, and the range consists of all possible values f can have.

m
1
P1
y1

y1 − y0
P0
y0
x1 − x0
n

x0 x1

Figure 4. A straight line and its slope. The line is the graph of f (x) = mx + n. It intersects the y-axis
at height n, and the ratio between the amounts by which y and x increase as you move from one point
y −y
to another on the line is x11 −x00 = m.

3.3. Linear functions. A function which is given by the formula


f (x) = mx + n
where m and n are constants is called a linear function. Its graph is a straight line. The constants m
and n are the slope and y-intercept of the line. Conversely, any straight line which is not vertical (i.e.
not parallel to the y-axis) is the graph of a linear function. If you know two points (x0 , y0 ) and (x1 , y1 ) on
the line, then then one can compute the slope m from the “rise-over-run” formula
m = y1 − y0 .
x1 − x0
This formula actually contains a theorem from Euclidean geometry, namely it says that the ratio (y1 − y0 ) :
(x1 − x0 ) is the same for every pair of points (x0 , y0 ) and (x1 , y1 ) that you could pick on the line.

3.4. Domain and “biggest possible domain. ” In this course we will usually not be careful about
specifying the domain of the function. When this happens the domain is understood to be the set of all x
for which the rule which tells you how to compute f (x) is meaningful. For instance, if we say that h is the
function √
h(x) = x
1
0
y = x3 − x

3
Figure 5. The graph of y = x − x fails the “horizontal line test,” but it passes the “vertical line test.”
The circle fails both tests.

then the domain of h is understood to be the set of all nonnegative real numbers
domain of h = [0, ∞)

since x is well-defined for all x ≥ 0 and undefined for x < 0.
A systematic way of finding the domain and range of a function for which you are only given a formula is
as follows:
• The domain of f consists of all x for which f (x) is well-defined (“makes sense”)
• The range of f consists of all y for which you can solve the equation f (x) = y.

3.5. Example – find the domain and range of f (x) = 1/x2 . The expression 1/x2 can be computed
for all real numbers x except x = 0 since this leads to division by zero. Hence the domain of the function
f (x) = 1/x2 is

“all real numbers except 0” = x | x = 0 = (−∞, 0) ∪ (0, ∞).


To find the range we ask “for which y can we solve the equation y = f (x) for x,” i.e. we for which y can
you solve y = 1/x2 for x?
If y = 1/x2 then we must have x2 = 1/y, so first of all, since we have to divide by y, y can’t be
zero. Furthermore, 1/y = x2 says that y must be positive. On the other hand, if y > 0 then y = 1/x2 has a
solution √
(in fact two solutions), namely x = ±1/ y. This shows that the range of f is
“all positive real numbers” = {x | x > 0} = (0, ∞).

3.6. Functions in “real life. ” One can describe the motion of an object using a function. If some
object is moving along a straight line, then you can define the following function: Let x(t) be the distance
from the object to a fixed marker on the line, at the time t. Here the domain of the function is the set of all
times t for which we know the position of the object, and the rule is
Given t, measure the distance between the object and the marker at time t.
There are many examples of this kind. For instance, a biologist could describe the growth of a cell by
defining m(t) to be the mass of the cell at time t (measured since the birth of the cell). Here the domain is
the interval [0, T ], where T is the life time of the cell, and the rule that describes the function is
Given t, weigh the cell at time t.

3.7. The Vertical Line Property. Generally speaking graphs of functions are curves in the plane
but they distinguish themselves from arbitrary curves by the way they intersect vertical lines: The
graph of a function cannot intersect a vertical line “x = constant” in more than one point.
The reason why this is true is very simple: if two points lie on a vertical line, then they have the same x
1
1
coordinate, so if they also lie on the graph of a function f , then their y-coordinates must also be equal,
namely f (x).

1
2
3.8. Examples. The graph of f (x) = x3 − x “goes up and down,” and, even though it intersects
several horizontal lines in more than one point, it intersects every vertical line in exactly one point.
The collection of points determined by the equation x2 + y 2 = 1 is a circle. It is not the graph of a
function since the vertical line x = 0 (the y-axis) intersects the graph in two points P1 (0, 1) and P2 (0, −1).
See Figure 6.

4. Inverse functions and Implicit functions

For many functions the rule which tells you how to compute it is not an explicit formula, but instead an
equation which you still must solve. A function which is defined in this way is called an “implicit function.”

4.1. Example. One can define a function f by saying that for each x the value of f (x) is the solution y
of the equation
2
x + 2y − 3 = 0.
In this example you can solve the equation for y,
3 − x2
y= .
2
Thus we see that the function we have defined is f (x) = (3 − x2 )/2.
Here we have two definitions of the same function, namely
(i) “y = f (x) is defined by x2 + 2y − 3 = 0,” and
(ii) “f is defined by f (x) = (3 − x2 )/2.”
The first definition is the implicit definition, the second is explicit. You see that with an “implicit function”
it isn’t the function itself, but rather the way it was defined that’s implicit.

4.2. Another example: domain of an implicitly defined function. Define g by saying that for
any x the value y = g(x) is the solution of
x2 + xy − 3 = 0.
Just as in the previous example one can then solve for y, and one finds that
3 −
2
x .
g(x) = y =
x
Unlike the previous example this formula does not make sense when x = 0, and indeed, for x = 0 our rule for
g says that g(0) = y is the solution of
02 + 0 · y − 3 = 0, i.e. y is the solution of 3 = 0.
That equation has no solution and hence x = 0 does not belong to the domain of our function g.


y = + 1 − x2


y = − 1 − x2

√ by x2 + y 2 = 1 is not the
Figure 6. The circle determined √ graph of a function, but it contains the graphs
of the two functions h1 (x) = 1 − x2 and h2 (x) = − 1 − x2 .

1
3
4.3. Example: the equation alone does not determine the function. Define y = h(x) to be the
solution of
x2 + y 2 = 1.
If x > 1 or x < −1 then x2 > 1 and there is no solution, so h(x) is at most defined when −1 ≤ x ≤ 1. But
when −1 < x < 1 there is another problem: not only does the equation have a solution, but it even has two
solutions:
p p
x2 + y 2 = 1 ⇐⇒ y = 1 − x2 or y = − 1 − x2 .
The rule which defines a function must be unambiguous, and since we have not specified which of these two
solutions is h(x) the function is not defined for −1 < x < 1.
One can fix this by making a choice, but there are many possible choices. Here are three possibilities:

h1 (x) = the nonnegative solution y of x2 + y 2 = 1


h2 (x) = the nonpositive solution y of x2 + y 2 = 1
(
h1 (x) when x < 0
h3 (x) =
h2 (x) when x ≥ 0

4.4. Why use implicit functions? In all the examples we have done so far we could replace the
implicit description of the function with an explicit formula. This is not always possible or if it is possible the
implicit description is much simpler than the explicit formula. For instance, you can define a function f by
saying that y = f (x) if and only if

(1) y 3 + 3y + 2x =
0.

This means that the recipe for computing f (x) for any given x is “solve the equation y 3 + 3y + 2x =
0.” E.g. to compute f (0) you set x = 0 and solve y 3 + 3y = 0. The only solution is y = 0, so f (0) = 0.
To compute f (1) you have to solve y 3 + 3y + 2 · 1 = 0, and if you’re lucky you see that y = −1 is the
solution, and f (1) = −1.
In general, no matter what x is, the equation (1) turns out to have exactly one solution y (which depends
on x, this is how you get the function f ). Solving (1) is not easy. In the early 1500s Cardano and Tartaglia
discovered a formula1 for the solution. Here
q it is: q
p p
3 2 3
y = f (x) = −x + 1 + x − x + 1 + x2 .

The implicit description looks a lot simpler, and when we try to differentiate this function later on, it will be
much easier to use “implicit differentiation” than to use the Cardano-Tartaglia formula directly.

4.5. Inverse functions. If you have a function f , then you can try to define a new function f −1 , the
so-called inverse function of f , by the following prescription:

(2) For any given x we say that y = f −1 (x) if y is the solution to the equation f (y) =
x.

So to find y = f −1 (x) you solve the equation x = f (y). If this is to define a function then the prescription
(2) must be unambiguous and the equation f (y) = x has to have a solution and cannot have more than one
solution.

1
To see the solution and its history visit
1
4
http://www.gap-system.org/~history/HistTopics/Quadratic_etc_equations.html

1
5
The graph of f
f (c)
The graph of f −1
c
b
f (b)
a
f (a)
a b c f (a) f (b) f (c)
Figure 7. The graph of a function and its inverse are mirror images of each other.

4.6. Examples. Consider the function f with f (x) = 2x + 3. Then the equation f (y) = x works out
to be
2y + 3 = x
and this has the solution
x − 3
y= .
2
−1 −1
So f (x) is defined for all x, and it is given by f (x) = (x − 3)/2.
Next we consider the function g(x) = x2 with domain all positive real numbers. To see for which x the
inverse g −1 (x) is defined we try to solve the equation g(y) = x, i.e. we try to solve y 2 = x. If x < 0 then√this
equation has no solutions since y ≥ 0 for all y. But if x ≥ 0 then y = x does have a solution, namely y = x.

So we see that g −1 (x) is defined for all nonnegative real numbers x, and that it is given by g −1 (x) = x.

4.7. Inverse trigonometric functions. The familiar trigonometric functions Sine, Cosine and Tangent
have inverses which are called arcsine, arccosine and arctangent.
y = f (x) x = f −1 (y)
y = sin x (−π/2 ≤ x ≤ π/2) x = arcsin(y) (−1 ≤ y ≤ 1)
y = cos x (0 ≤ x ≤ π) x = arccos(y) (−1 ≤ y ≤ 1)
y = tan x (−π/2 < x < π/2) x = arctan(y)
−1
The notations arcsin y = sin y, arccos x = cos−1 x, and arctan u = tan−1 u are also commonly used for
the inverse trigonometric functions. We will avoid the sin−1 y notation because it is ambiguous. Namely,
everybody writes the square of sin y as
2
sin y = sin2 y.
Replacing the 2’s by −1’s would lead to
? !? −1 1
arcsin y = sin−1 y = sin y = , which is not true!
sin y

5. Exercises
8. The functions f and g are defined by 10. Find a formula for the function f which is defined by
2 2 2
f (x) = x and g(s) = s . y = f (x) ⇐⇒ x y − y = 6.
Are f and g the same functions or are they different? What is the domain of f ?
9. Find a formula for the function f which is defined by
11. Let f be the function defined by y = f (x) ⇐⇒ y
2
y = f (x) ⇐⇒ x y + y = 7. is the largest solution of
2 2
What is the domain of f ? y = 3x − 2xy.

1
6
Find a formula for f . What are the domain and range of for all real numbers x.
f?
Compute
12. Find a formula for the function f which is defined by
2 (a) f (1) (b) f (0) (c) f (x)
y = f (x) ⇐⇒ 2x + 2xy + y = 5 and y > −x.
(d) f (t) (e) f (f (2))
Find the domain of f .
where x and t are arbitrary real numbers.
13. Use a calculator to compute f (1.2) in three deci-
mals where f is the implicitly defined function from §4.4. What are the range and domain of f ?
(There are (at least) two different ways of finding f (1.2)) 21. Does there exist a function f which satisfies
14. Group Problem. 2
f (x ) = x + 1
(a) True or false: for all real numbers x?
for all x one has sin arcsin x = x?
(b) True or false: ∗ ∗ ∗
for all x one has arcsin sin x = x? The following exercises review precalculus material
2
in- volving quadratic expressions ax + bx + c in one
15. On a graphing calculator plot the graphs of the follow- way or another.
ing functions, and explain the results. (Hint: first do the
previous exercise.) 22. Explain how you “complete the square” in a quadratic
2
f (x) = arcsin(sin x), −2π ≤ x ≤ 2π expression like ax + bx.

g(x) = arcsin(x) + arccos(x), 0 ≤ x ≤ 1 23. Find the range of the following functions:
sin x f (x) = 2x + 3
2
h(x) = arctan , | x| <
π/2 cos x
cos x
k(x) = arctan , | x| < g(x) = −2x2 + 4x
π/2 sin x
l(x) = arcsin(cos x), −π ≤ x ≤ h(x) = 4x + x
2

π m(x) = cos(arcsin x), −1 ≤ x ≤ 2


k(x) = 4 sin x + sin x
1 2
`(x) = 1/(1 + x )
16. Find the inverse of the function f which is given by 2
m(x) = 1/(3 + 2x + x ).
f (x) = sin x and whose domain is π ≤ x ≤ 2π. Sketch
−1
the graphs of both f and f .
24. Group Problem.
17. Find a number a such that the function f (x) = For each real number a we define a line `a with
sin(x + π/4) with domain a ≤ x ≤ a + π has an inverse. 2
equation y = ax + a .
−1
Give a formula for f (x) using the arcsine function.
(a) Draw the lines corresponding to a =
18. Draw the graph of the function h3 from §4.3. −2, −1, −21 , 0,21 , 1, 2.
19. A function f is given which satisfies (b) Does the point with coordinates (3, 2) lie on one
2 or more of the lines `a (where a can be any number, not
f (2x + 3) = x
just the five values from part (a))? If so, for which values
for all real numbers x. of a does (3, 2) lie on `a ?
Compute
(c) Which points in the plane lie on at least one of
(a) f (0) (b) f (3) (c) f (x) the lines `a ?.
(d) f (y) (e) f (f (2)) 25. For which values of m and n does the graph of
where x and y are arbitrary real numbers. f (x) = mx + n intersect the graph of g(x) = 1/x in
What are the range and domain of f ? exactly one point and also contain the point (−1, 1)?

20. A function f is given which satisfies 26. For which values of m and n does the graph of
1 f (x) = mx + n not intersect the graph of g(x) = 1/x?
f −
= 2x
12. x + 1

1
7

You might also like