Math (P) Refresher Lecture 1: Functions
Math (P) Refresher Lecture 1: Functions
Functions
September 2006
1 R1 and Rn
• R1 is the set of all real numbers extending from −∞ to +∞ — i.e., the real number line.
• Rn is an n-dimensional space (often referred to as Euclidean space), where each of the n axes
extends from −∞ to +∞.
• Examples:
1. R1 is a line.
2. R2 is a plane.
3. R3 is a 3-D space.
4. R4 could be 3-D plus time.
• Points in Rn are ordered n-tuples, where each element of the n-tuple represents the coordinate
along that dimension.
• In many areas of math, we need a formal construct for what it means to be “near” a point c in
Rn . This is generally called the neighborhood of c and is represented by an open interval,
disk, or ball, depending on whether Rn is of one, two, or more dimensions, respectively. Given
the point c, these are defined as
∗
Much of the material and examples for this lecture are taken from Simon & Blume (1994) Mathematics for
Economists, Boyce & Diprima (1988) Calculus, and Protter & Morrey (1991) A First Course in Real Analysis
Math (P)refresher: Functions 2
1. ²-interval in R1 : {x : |x − c| < ²}
The open interval (c − ², c + ²).
2. ²-disk in R2 : {x : ||x − c|| < ²}
The open interior of the circle centered at c with radius ².
3. ²-ball in Rn : {x : ||x − c|| < ²}
The open interior of the sphere centered at c with radius ².
• Interior Point: The point x is an interior point of the set S if x is in S and if there is
some ²-ball around x that contains only points in S. The interior of S is the collection of
all interior points in S. The interior can also be defined as the union of all open sets in S.
Example: The interior of the set {(x, y) : x2 + y 2 ≤ 4} is {(x, y) : x2 + y 2 < 4} .
• Boundary Point: The point x is a boundary point of the set S if every ²-ball around x
contains both points that are in S and points that are outside S. The boundary is the
collection of all boundary points.
Example: The boundary of {(x, y) : x2 + y 2 ≤ 4} is {(x, y) : x2 + y 2 = 4}.
• Open: A set S is open if for each point x in S, there exists an open ²-ball around x completely
contained in S.
Example: {(x, y) : x2 + y 2 < 4}
• Closure: The closure of set S is the smallest closed set that contains S.
Example: The closure of {(x, y) : x2 + y 2 < 4} is {(x, y) : x2 + y 2 ≤ 4}
5 Introduction to Functions
• Examples:
1. f (x) = x + 1
For each x in R1 , f (x) assigns the number x + 1.
2. f (x, y) = x2 + y 2
For each ordered pair (x, y) in R2 , f (x, y) assigns the number x2 + y 2 .
• Input variable also called independent variable. Output variable also called dependent
variable.
f (X) = {y : y = f (x), x ∈ X}
• Image: same as range, but more often used when talking about a function f : Rn → R1 .
• Examples:
3
1. f (x) = 1+x2
Domain X = R1
Range f (X) = (0, 3]
x + 1, 1≤x≤2
2. f (x) = 0, x=0
1−x −2 ≤ x ≤ −1
Domain X = [−2, −1] ∪ {0} ∪ [1, 2]
Range f (X) = [2, 3] ∪ {0}
3. f (x) = 1/x
Domain X = R1 − {0}
Range f (X) = R1 − {0}
Math (P)refresher: Functions 4
4. f (x, y) = x2 + y 2
Domain X = R2
Image f (X, Y ) = R1+
y = loga (x) ⇐⇒ ay = x
The log function can be thought of as an inverse for exponential functions. a is referred to as
the “base” of the logarithm.
Math (P)refresher: Functions 5
• Examples:
√
1. log( 10) = 1/2
2. log(1) = 0
3. log(10) = 1
4. log(100) = 2
5. ln(1) = 0
6. ln(e) = 1
1. ax ay = ax+y
2. a−x = 1/ax
3. ax /ay = ax−y
4. (ax )y = axy
5. a0 = 1
• Use the change of base formula to switch bases as necessary: logb (x) = loga (x)/ loga (b)
9 Graphing Functions
• Sometimes we’re given a function y = f (x) and we want to find how x varies as a function of
y.
• Use algebra and relationships identified above to move x to the LHS of the equation and so
that the RHS is only a function of y.
1. y = 3x + 2 =⇒ y − 2 = 3x =⇒ x = 13 (y − 2)
2. y = 3x − 4z + 2 =⇒ y + 4z − 2 = 3x =⇒ x = 31 (y + 4z − 2)
3. y = ex + 4 =⇒ y − 4 = ex =⇒ ln(y − 4) = ln(ex ) =⇒ x = ln(y − 4)
11 Finding Roots
• Solving for variables is especially important when we want to find the roots of an equation:
those values of variables that cause an equation to equal zero.
√
−b± b2 −4ac
• For quadratic equations ax2 + bx + c = 0, use x = 2a .
• Examples:
Math (P)refresher: Functions 7
1. f (x) = 3x + 2 =⇒ 3x + 2 = 0 =⇒ x = − 23
2. f (x) = e−x − 10 =⇒ e−x − 10 = 0 =⇒ e−x = 10 =⇒ x = − ln(10)
3. f (x) = x2 + 3x − 4 = 0 =⇒ x = {1, −4}.
P
n P
n
1. cxi = c xi
i=1 i=1
Pn P
n P
n
2. (xi + yi ) = xi + yi
i=1 i=1 i=1
Pn
3. c = nc
i=1
Q
n
• Product: xi = x1 x2 x3 · · · xn
i=1
Q
n Q
n
1. cxi = cn xi
i=1 i=1
Q
n
2. (xi + yi ) = a mess
i=1
Q
n
3. c = cn
i=1
• We’re often interested in determining if a function f approaches some number L as its inde-
pendent variable x moves to some number c (usually 0 or ±∞). If it does, we say that f (x)
approaches L as x approaches c, or limx→c f (x) = L.
• Limit of a function. Let f be defined at each point in some open interval containing
the point c, although possibly not defined at c itself. Then lim f (x) = L if for any (small
x→c
positive) number ², there exists a corresponding number δ > 0 such that if 0 < |x − c| < δ,
then |f (x) − L| < ².
• Examples:
1. lim k = k
x→c
2. lim x = c
x→c
Math (P)refresher: Functions 8
3. lim |x| = 0
x→0
¡ 1
¢
4. lim 1 + x2
=∞
x→0
• Properties: Let f and g be functions with lim f (x) = A and lim g(x) = B.
x→c x→c
• Examples:
√
Example: lim x=0
x→0+
14 Continuity
• Continuity: Suppose that the domain of the function f includes an open interval containing
the point c. Then f is continuous at c if lim f (x) exists and if lim f (x) = f (c). Further, f is
x→c x→c
continuous on an open interval (a, b) if it is continuous at each point in the interval.
√
f (x) = x f (x) = ex
1
f (x) = floor(x) f (x) = 1 + x2
• Properties: