Section 1.1: Definition of Functions: Provided by Almae Matris Studiorum Campus
Section 1.1: Definition of Functions: Provided by Almae Matris Studiorum Campus
Definition of a function
A function f from a set A to a set B (f : A → B) is a rule of correspondence that assigns to each element x
in the set A exactly one element y in the set B. The set A is called the domain of the function f . The range or
codomain of the function is the set of elements in B that are in correspondence with elements in A.
In the case of functions described as equations in two variables, the variable x is the independent variable
and the variable y is the dependent variable. In general a function is denoted as f (x) (read f of x), where f
is the name of the function, x is the domain value and f (x) is the range value y for a given x. The process
of finding the value of f (x) for a given value of x is called evaluating a function.
Ex.1
• Demand function: Qd = f (P ) = 15 − 2P .
• Supply function: Qs = g(P ) = 1 + 5P .
• Cobb-Douglas production function: Q(K, L) = K α Lβ .
• Cobb-Douglas utility function: U (X, Y ) = a log(X) + (1 − a) log(Y ).
Ex.2
Constant functions are functions that assign every object in the domain to the same object in the target. For
example, f (x) = 3 is a constant function. The identity function is the function that assigns every object in
the domain to itself, that is f (x) = x for every x in the domain.
Ex.3
Let f (x) = x2 . Find the domain and the range of f (x). Compute
• f (3)
• f (2)
• f (−2)
• f (3 + h)
Ex.4
Find the domain and the range of f (x) = 1/x.
Ex.5 √
Find the domain and the range of f (x) = 5 − x − 1.
Graph of a function
Let f (x) be a function. The graph of the function f consists of those points (x, y) such that y = f (x). Not every
curve is the graph of a function. The reason is that a function assigns to a given input a single number as
the output. A line parallel to the y axis therefore meets the graph of a function in at most one point. Hence,
if some line parallel to the y axis meets the curve more than once, then the curve is NOT the graph of a
function.
Ex.6
Graph the function f (x) = x2 .
Ex.7
Graph the function f (x) = 1/x.
1
Chapter 3: Functions Lecture notes Math
Zoo of function
In mathematics there are many kinds of functions. Here is a short list of some of them:
• Polynomial functions: linear (ex. f (x) = 2x − 1), quadratic (ex. f (x) = −x2 ), cubic (ex.
f (x) = 4x3 − 3x2 + 5)
2
• Rational functions (ex. f (x) = x−3 )
√
• Irrational functions (ex. f (x) = 2 − x)
• Absolute value functions (ex. f (x) = |x − 9|)
• Exponential functions (ex. f (x) = 2x )
• Logarithmic functions (ex. f (x) = log2 (x))
• Trigonometric functions (ex. f (x) = sin(x), f (x) = cos(x), f (x) = tan(x))
Transformations of functions
Let f (x) be a function, then
• y = f (x) + C
– C > 0 moves it up
– C < 0 moves it down
• y = f (x + C)
– C > 0 moves it left
– C < 0 moves it right
• y = Cf (x)
– C > 1 stretches it in the y-direction
– 0 < C < 1 compresses it
• y = f (Cx)
– C > 1 compresses it in the x-direction
– 0 < C < 1 stretches it
• y = −f (x) reflects it about x-axis
• y = f (−x) reflects it about y-axis
Ex.8
1
Graph the function f (x) = x2 +1 .
Ex.9
Let f (x) = 1 + 2x and g(x) = x2 . Compute (f ◦ g)(x) and (g ◦ f )(x).
Ex.10 √
Let f (x) = x and g(x) = x3 − 1. Compute (f ◦ g)(x) and (g ◦ f )(x).
Ex.11 √
Let f (x) = x and g(x) = x2 . Compute (f ◦ g)(x) and (g ◦ f )(x).
2
Chapter 3: Functions Lecture notes Math
Ex.12
The function f (x) = x4 is an even function. The function g(x) = x3 is an odd function.
Bijective functions
A function f : X → Y that assigns distinct outputs to distinct inputs is called an injective or one-to-one
function. Hence, a function is injective if for every a, b ∈ X such that f (a) = f (b), then a = b. The graph of
a one-to-one function has the property that every horizontal line meets it in at most one point and if each
horizontal line meets the graph of a function in at most one point, then the function is one-to-one.
The function is surjective or onto if every element of the codomain is mapped to by at least one element of
the domain. Hence, a function f : X → Y is surjective if the range of f is Y .
A function is bijective if it is BOTH injective and surjective.
Monotonic functions
If f (x1 ) < f (x2 ) whenever x1 < x2 , then f (x) is an increasing function. If f (x1 ) > f (x2 ) whenever x1 < x2 ,
then f (x) is a decreasing function. These two types of functions are called monotonic.
Inverse functions
Let f (x) be a one-to-one function. The function g(x) that assigns to each output of f the corresponding
unique input is called the inverse of f . The symbol f −1 denotes the inverse function.
Ex.1
Determine the inverse of the following functions and then graph them.
• f (x) = 2x
• f (x) = x3
• f (x) = 3x + 2
3
Chapter 3: Functions Lecture notes Math
Definition of limit 1
The limit of f (x) as x approaches x0 is the number L if given any radius ε > 0 about L there exists a radius
δ > 0 about x0 such that for all x,
0 < |x − x0 | < δ
implies |f (x) − L| < ε. In other words, if the values of a function f (x) approach the value L as x approaches
x0 , we say that f has limit L as x approaches x0 and we write
lim f (x) = L.
x→x0
The limit of f (x) as x approaches x0 from the right is the number L if given any radius ε > 0 about L there
exists a radius δ > 0 about x0 such that for all x,
x0 < x < x 0 + δ
implies |f (x) − L| < ε. We write
lim f (x) = L.
x→x+
0
The limit of f (x) as x approaches x0 from the left is the number L if given any radius ε > 0 about L there
exists a radius δ > 0 about x0 such that for all x,
x0 − δ < x < x0
implies |f (x) − L| < ε. We write
lim f (x) = L.
x→x−
0
A function has a limit as x approaches x0 if and only if the right-hand and left-hand limits at x0 exist and
are equal.
Ex.1
Find
x2 − 4
lim
x→2 x − 2
Ex.2
Let
2 if x≥3
f (x) =
−1 if x<3
Find limx→3 f (x).
Ex.3
Find
3
lim
x→5 x−5
4
Chapter 3: Functions Lecture notes Math
Ex.4
Show that the function y = sin(1/x) has no limit as x approaches zero from either side.
Proof: As x → 0, its reciprocal x1 becomes infinite and the value of sin(1/x) cycles repeatedly from −1 to 1.
Thus there is no single number L such that the function’s values get close to a single value when x → 0.
This is true even if we restrict x to positive values or to negative values, therefore the function has neither a
right-hand limit nor a left-hand limit as x approaches zero. In conclusion, the function y = sin(1/x) has no
limit from either side as x → 0.
Properties of limits
If limx→x0 f (x) = L1 and limx→x0 g(x) = L2 , then
• Sum rule:
lim [f (x) + g(x)] = lim f (x) + lim g(x) = L1 + L2
x→x0 x→x0 x→x0
• Difference rule:
lim [f (x) − g(x)] = lim f (x) − lim g(x) = L1 − L2
x→x0 x→x0 x→x0
• Product rule:
lim [f (x) · g(x)] = lim f (x) · lim g(x) = L1 · L2
x→x0 x→x0 x→x0
• Constant multiple rule:
lim [k · g(x)] = k · lim g(x) = k · L2
x→x0 x→x0
Ex.5
Prove:
• If limx→x0 f (x) = L1 and limx→x0 g(x) = L2 , then
lim [f (x) + g(x)] = L1 + L2
x→x0
• limx→2 x
√+ 5 = 7
• limx→5 x − 1 = 2
5
Chapter 3: Functions Lecture notes Math
Ex.6
Compute the following limits:
• limx→3 x2 (2 − x)
2
• limx→2 x +2x+4
x+2
x2 −5
• limx→−5 3(x+5)
3+sin(t)
• limt→π 1−cos(t)
√ √
• limt→3 3t+7− 2
7
2
x −25
• limx→−5 2(x+5)
• limx→−2 (x3 + 3x2 − 2x − 17)
x+3
• limx→−1+ x3 +3x+1
x+3
• limx→2 x+6
y2
• limy→−3 3−y
• limx→6 8(x
√ − 5)(x − 7)
• limx→−3 x + 7
5
• limx→0 √5x+4+2
u4 −1
• limu→1 u3 −1
3
−8
• limv→2 vv4 −16
Definition of limit 2
Let f (x) be a function defined on an interval that contains x0 , except possibly at x0 . Then we say that
lim f (x) = +∞
x→x0
if for every M > 0 there is some number δ > 0 such that f (x) > M for all x such that 0 < |x − x0 | < δ.
Let f (x) be a function defined on an interval that contains x0 , except possibly at x0 . Then we say that
lim f (x) = −∞
x→x0
if for every N < 0 there is some number δ > 0 such that f (x) < N for all x such that 0 < |x − x0 | < δ.
Ex.7
Compute the following limits:
• limx→0 x12
• limx→0+ x1
• limx→0− x1
Definition of limit 3
Let f (x) be a function defined on x > K for some K. Then we say that
lim f (x) = L
x→+∞
if for every ε > 0 there is some number M > 0 such that |f (x) − L| < ε for all x such that x > M .
Let f (x) be a function defined on x < K for some K. Then we say that
lim f (x) = L
x→−∞
if for every ε > 0 there is some number N < 0 such that |f (x) − L| < ε for all x such that x < N .
6
Chapter 3: Functions Lecture notes Math
Definition of limit 4
Let f (x) be a function defined on x > K for some K. Then we say that
lim f (x) = +∞
x→+∞
if for every N > 0 there is some number M > 0 such that f (x) > N for all x such that x > M .
Let f (x) be a function defined on x < K for some K. Then we say that
lim f (x) = +∞
x→−∞
if for every N > 0 there is some number M < 0 such that f (x) > N for all x such that x < M .
In a similar way we can define limx→+∞ f (x) = −∞ and limx→−∞ f (x) = −∞.
Ex.8
Compute the following limits:
1
• limx→+∞ x+3
• limx→−∞ 7 − x1
11x+2
• limx→−∞ 2x 3 −1
2
−3
• limx→+∞ 2x
5x+4
7−x
• limx→2+ x−2
x2 +5
• limx→1+ 3−3x
5−3x
• limx→2+ 2
√x −6x+8
• limx→0 x+9−3
4x
√
14 5 +x3 −x2 +2
• limx→−∞ 8x 5x−3x 4 −x2 +x−5
2 √
−4x−2 √x+3
• limx→+∞ 5x 2x 2 −x+ x
√
x−1
• limx→1 x−1
Sandwich Theorem
Suppose that g(x) ≤ f (x) ≤ h(x) for all x 6= x0 in some open interval about x0 and that
lim g(x) = lim h(x) = L.
x→x0 x→x0
Then
lim f (x) = L.
x→x0
Ex.9
Compute the following limits:
• limx→0 sin(x)
• limx→0 cos(x)
• limx→0 tan(x)
Theorem
If θ is measured in radians, then
sin(θ)
lim = 1.
θ→0 θ
7
Chapter 3: Functions Lecture notes Math
Ex.10
Compute the following limits:
• limx→0 sin(7x)
7x
• limx→0 sin(x/2)
x/2
• limx→0 sin(6x)
x
• limx→0 tan(2x)
5x
• limx→0 sin(5x)
sin(2x)
• limx→0 x sin(1/x)
Standard Limits
Limits to remember:
• limx→0 sin(x)
x =1
1−cos(x)
• limx→0 x2 = 12
tan(x)
• limx→0 x = 1
• limx→0 ln(1+x)
x =1
loga (1+x) 1
• limx→0 x = ln(a) , (a > 0)
x
• limx→0 e −1)
x =1
x
• limx→0 a x−1 = ln(a), (a > 0)
• limx→±∞ (1 + x1 )x = e
c
−1
• limx→0 (1+x)x = c, (c ∈ R)
Ex.11
Compute the following limits:
•
log3 (1 + 3x)
lim
x→0 e2x − 1
•
sin(x)
lim
x→0ln(1 + x)
• 1 3x
lim 1 +
x→+∞ 2x
•
tan(2x)
lim
x→0 x
•
(1 + x)4 − 1
lim
x→0 x
8
Chapter 3: Functions Lecture notes Math
Definition of continuity
A function f (x) is continuous at x0 if and only if it meets all three of the following conditions:
• f (x0 ) exists;
• limx→x0 f (x) exists;
• limx→x0 f (x) = f (x0 ).
Continuity at an endpoint:
A function is continuos at a left endpoint a of its domain if limx→a+ f (x) = f (a).
A function is continuos at a right endpoint b of its domain if limx→b− f (x) = f (b).
A function is continuous if it is continuous at each point of its domain. If a function f is not continuous at a
point c, we say that f is discontinuous at c and call c a point of discontinuity of f .
Ex.1
Sine and Cosine are continuous at x = 0.
Ex.2
The following functions
1
• f (x) = 3x − 5x2 + x2 +2
• f (x) = 4x cos(x)
• f (x) = tan(x)
are continuous.
Ex.3
The function
x2 + x − 6
f (x) =
x2 − 4
is not defined at x = 2. Is x = 2 a removable discontinuity? If so, how can you extend the function to
make it continuous at x = 2?
9
Chapter 3: Functions Lecture notes Math
Ex.4
Solve the following problems:
• Compute
x2 − 7x + 12
lim
x→3 x−3
• Compute
x2 + x − 20
lim
x→4 x−4
• Compute
t2 − 3t + 2
lim
t→1 t−1
• Let
1 + x2 if x < 2
f (x) =
x3 if x ≥ 2
Find limx→2− f (x) and limx→2+ f (x). Does limx→2 f (x) exist?
• Let
−5x + 7 if x < 3
f (x) =
x2 − 16 if x ≥ 3
Does limx→3 f (x) exist?
• Let
−t if t < 1
f (t) =
t2 if t ≥ 1
Does limt→1 f (t) exist?
• Suppose the total cost C(Q) of producing a quantity Q of a product equals a fixed cost of $1000 plus
$3 times the quantity produced.
(1) Write C(Q).
(2) Find the average cost per unit quantity A(Q).
(3) Compute
lim A(Q)
Q→0+
.
10
Chapter 3: Functions Lecture notes Math
Connectivity
Suppose we want to graph a function y = f (x) that is continuous throughout some interval I on the x-axis.
The Intermediate Value Theorem tells us that the graph of f over I will never move from one y-value to
another without taking on the y-values in between. The graph of f over I will be connected, that is it will
consist of a single, unbroken curve.
Root finding
Suppose that f (x) is continuous at every point of a closed interval [a, b] and that f (a) and f (b) differ in sign.
Then zero lies between f (a) and f (b) differ in sign, so there is at least one number c between a and b where
f (c) = 0. In other words, if f (x) is continuous and f (a) and f (b) differ in sign, then the equation f (x) = 0
has at least one solution in the open interval (a, b). A point c where f (c) = 0 is called a zero or root of f .
Hence, the zeros of f are the points where the graph of f intersects the x-axis.
Ex.1
Is any real number exactly 1 less than its cube?
Ex.2
Show that x3 − x − 1 = 0 has a root somewhere in the interval [−1, 2].
11
Chapter 3: Functions Lecture notes Math
Ex.1
The function
x+4 if x<0
f (x) = x2 if 0<x<5
7 if x≥5
is piecewise continuous.
Ex.2
The function f (x) = 4x − 1 is uniformly continuous.
12
Chapter 3: Functions Lecture notes Math
Introduction
There are many natural examples of discontinuities from economics. In fact, economists often adopt conti-
nuous functions to represent economic relationships (that is, they build a continuous model) when the use
of discontinuous functions would be a more literal interpretation of reality. It is important to know when
the simplifying assumption of continuity can be safely made for the sake of convenience and when it is
likely to distort the true relationship between economic variables too much.
Ex.1
We illustrate a class of situations in which it is usual to use a continuous model even if this is a distortion of
reality. The first step in modeling the decisions of a firm is usually the analysis of the available technology.
This relationship between inputs used and outputs generated is generally presumed to be represented by
some production function: y = f (x). What does it mean to say that this function is continuous on some
domain (usually x ≥ 0)? To assume that f (x) is continuous at a point x = c implies that f (x) is defined on
some open interval of real numbers containing c. This means x must be infinitely divisible: one can choose
x to be a value that deviates even by infinitesimal amounts from x = c.
An example of input that would not be infinitely divisible would be bolts used in the production of a
car. Since one would not use a fraction like a half of a bolt, it would only make literal sense to treat bolts
as integer valued. Therefore, it does not make sense to contemplate an open interval of points including
some value x = c bolts. However, if we denote by x the number of bolts used and by y the number of cars
produced, we have
x
y=
1, 050
If one uses this continuous function in the process of solving some value of x that is not a multiple of 1, 050,
then using the closest value that is a multiple of 1, 050 would probably be reasonably accurate. Thus, even
if a commodity is not infinitely divisible, we may often assume that it is, without distorting realty very
much. Draw the graph of this liner function considering the domain of real numbers x ≥ 0.
Ex.2
Suppose that a salesperson receives a salary according to a contract that establishes a relationship between
pay and the level of sales made by the salesperson. In particular, suppose that the contract stipulates that
the salesperson’s monthly salary will be composed by three parts:
• a basic amount of $800,
• a commission of %10, and
• a lump-sum bonus of $500, if the salesperson’s sales for the month reach or exceed $20, 000.
Let S represent sales per month and P represent the salesperson’s pay for the month, it follows that the
function describing her salary-sales relationship is
800 + (0.1)S if S < 20, 000
P =
1, 300 + (0.1)S if S ≥ 20, 000
Draw the graph of the function. Is the function discontinuous at S = 20, 000? Can we remove the
discontinuity?
13
Chapter 3: Functions Lecture notes Math
Ex.3
Many welfare programs or income support programs offer individuals who are not employed a fixed
or lump-sum monthly payment that is made only if the individual does not earn any income. Once an
individual earns any income whatsoever, the payment is stopped. For example, suppose a single parent
of two preschool-aged children can collect a monthly welfare payment of $750 provided she doesn’t work.
However, once she earns any positive amount of income, the welfare payment stops. Assume she could
earn $15 per hour at some job for which the number hours worked per month is entirely flexible.
The income of this person, Y , as a function of hours worked, h, is given by the function:
750 if h = 0
Y (h) =
15h if h > 0
Sketch the graph of the function. It is discontinuous at h = 0. This type of discontinuity, which is a
property of many all-or-nothing income support programs, has been the subject of a great deal of debate.
One can see that a person in such a program would have to work 50 hours per month just to match
the income earned from the support payments. Since the person would face childcare and other costs
of working, the all-or-nothing property of this program presents a serious deterrent to the incentive to
work.
An alternative scheme would be to allow a person in this situation to keep a certain fraction of income
earned in addition to the $750 monthly payment. For example, suppose that the person was allowed to
retain 50% of any earnings, with the other 50% representing a payback of the income support up to the
level where the entire $750 is paid back. A person facing a wage rate of $15 per hour will have paid back
the full $750 only after working 100 hours or more per month. The 50% of 15 is 7.5.
Hence, the new function is
750 + 7.5h if 0 ≤ h ≤ 100
Y (h) =
15h if h > 100
Draw the graph of this function. Prove that it is continuous at h = 100.
Many economists prefer this second placeboes it avoids the discontinuity of the first plan. In the first plan
there is effectively a large penalty for working at all, since income drops from $750 per month to almost
zero if the individual chooses only a few hours of work. Under the second plan the person always earns
more income by choosing to work more. The result is that the person will be more likely to choose some
positive hours of work under the second plan making himself/herself better off and also reducing the
cost of the program to the government.
14
Chapter 3: Functions Lecture notes Math
Introduction
The Intermediate Value Theorem is a very powerful tool in the study of equilibrium, which is one of the
most important concepts in economics.
Theorem
Let QD and QS be the demand and the supply function respectively, and let z(P ) = QD −QS . If the demand
and supply functions are continuous and the following two conditions are satisfied:
• at zero price, demand exceeds supply, QD (0) > QS (0), meaning that z(0) > 0,
• there exists some price P̂ at which supply exceeds demand, QS (P̂ ) > QD (P̂ ), meaning that
z(P̂ ) < 0,
then there exists a positive equilibrium price in the market.
Ex.1
Consider the following market demand and supply functions:
QD = 100 − 2P
QS = 3P
Graph the demand and supply functions on one diagram and z = QD − QS on another. Find the equi-
librium price and quantity for this market and illustrate on both graphs. Show that these demand and
supply functions satisfy the conditions for the existence of a positive equilibrium price (look at the pre-
vious theorem!).
15
Chapter 3: Functions Lecture notes Math
16
Chapter 3: Functions Lecture notes Math
(l)
x2 + x + 1
lim−
x→1 x−1
(m)
2x
lim
x→−∞ x
(n)
4
lim
x→3+ x2 − 9
(o)
x−3
lim √ √
x→2− 2− x
(p)
tan(x) − 3
lim
x→π tan(x) − 1
(q)
−5 + 7x
lim
x→0− ex − 1
(r)
1
lim
x→+∞ 5x + 2
(s)
1
ex
lim+ 3
√
x→0 x + x
(t)
3 −x
lim 2 + 1 +
x→+∞ x
(u)
cos(x) + 2
lim+
x→π sin(x)
(v)
e3 + e−x
lim
x→0 3
(w) p p
lim ( 2x3 − 1 − 2x3 + 4)
x→+∞
(x)
3x2 − 4x4 + 2x5 − 1
lim
x→+∞ 14 − 3x5 + 3x
(y)
x3 − 64
lim−
x→4 x2 − 8x + 16
(z)
x2 + 2x − 15
lim
x→3 x−3
(25) Compute the following limits:
(a)
3(1 − cos(x))
lim
x→0 4x2 + sin(x2 )
18
Chapter 3: Functions Lecture notes Math
(b)
2
ex − 1
lim
x→0 x sin(x)
(c)
1 20x
lim 1+
x→+∞ 3x + 2
(d)
5x20 + 3ex
lim
x→+∞ 6x − ex
(26) Consider the function 1
x2 if x < −1
2
if −1 ≤ x < 1
f (x) = 3 if x=1
x+1
if 1<x≤2
−1
if x>2
(x−2)2
(a) Sketch the graph of f .
(b) Determine the following limits:
(i) limx→−1+ f (x)
(ii) limx→−1− f (x)
(iii) limx→−1 f (x)
(iv) limx→1+ f (x)
(v) limx→1− f (x)
(vi) limx→1 f (x)
(vii) limx→2+ f (x)
(viii) limx→2− f (x)
(ix) limx→2 f (x)
(x) limx→−3 f (x)
(xi) limx→5 f (x)
(27) Is there any value of k that will make the function
x2 −2x−8
x+2 if x 6= −2
f (x) =
k if x = −2
continuous at x = −2? If so, what is it? Give reasons for your answer.
(28) Is there any value of k that will make the function
x2 +2x−15
x−3 if x 6= 3
f (x) =
k if x = 3
continuous at x = 3? If so, what is it? Give reasons for your answer.
(29) Show that x2 − 6x + 5 = has a root somewhere in the interval [0, 2].
(30) Prove that the function f (x) = 2x + 5 is uniformly continuous.
(31) Consider the following market demand and supply functions:
QD = 50 − 2P
QS = −10 + P
Graph the demand and supply functions on one diagram and z = QD − QS on another. Find
the equilibrium price and quantity for this market and illustrate it on both graphs. Show that these
demand and supply functions satisfy the conditions for the existence of a positive equilibrium price.
19