Professional Documents
Culture Documents
'
Luiza Bdin
Department of Applied Mathematics,
Bucharest University of Economic Studies
&
'
Limits. Continuity
So far, we have studied functions of one variable, typically written as y = f (x),
which represented the variation that occurred in some (dependent) variable y, as
another (independent) variable x changed.
In the real world, however, it is unusual to deal with functions that depend on a
single variable, and instead of y = f (x), we often work with y = f (x1 , x2 ),
y = f (x1 , x2 , x3 ), or even the multivariate case y = f (x1 , x2 , ..., xn ).
Economic models are usually functions of more than one variable, assuming for
instance that output, Q = f (L, K), is a function of two inputs, labor and capital.
In order to understand the concept of limit and continuity in the general,
multivariate case, we have to start with the idea of closeness" in the
n-dimensional space.
In the univariate space, we measure the closeness of two arbitrary points by the
length of the segment joining the points.
In the n-dimensional space, the distance will be called Euclidian distance.
&
'
Limits. Continuity
Consider the set
Rn = {x = (x1 , x2 , . . . , xn )| xi Rn , i = 1, . . . , n} = |R R
{z. . . R}.
n times R
&
'
Limits. Continuity
Example 1. The function d : Rn Rn [0, ) defined by
v
u n
uX
d(x, y) = t (xi yi )2
i=1
&
'
Limits. Continuity
Definition 3. Consider x0 Rn and r > 0. The set Sr (x0 ) = {x Rn | d(x0 , x) < r}
is the open sphere centered at x0 with radius r.
The point x0 Rn is an interior point of the set A Rn if and only if r > 0 such
that Sr (x0 ) A.
An n-dimensional interval is I1 I2 . . . In = {(x1 , x2 , . . . , xn )|xk Ik , k = 1, . . . n}
where Ik = (ak , bk ), k = 1, . . . n.
Any open sphere centered at x0 contains an n-dimensional interval which includes x0
and conversely.
&
'
Limits. Continuity
For simplicity, all the results are presented for n = 2.
Consider A R2 , f : A R and (a, b) an interior point of A.
Definition 4. (Limit)
lim
(x,y)(a,b)
Equivalently, if l R,
lim
(x,y)(a,b)
= () > 0 such that for every (x, y) A with |x a| < , |y b| < we have
|f (x, y) l| < .
Definition 5. (Continuity) A function f is continuous at (a, b) if the limit
lim f (x, y) exists and it is equal to f (a, b):
lim f (x, y) = f (a, b).
(x,y)(a,b)
&
(x,y)(a,b)
'
Examples
1. Show that the function
f (x, y) =
0,
(1)
(x, y) = (0, 0)
is continuous at origin.
2. Show that the function
x2 y2 , (x, y) 6= (0, 0)
2
2
f (x, y) = x +y
0,
(x, y) = (0, 0)
(2)
&
'
Partial Derivatives
Consider a set A R2 , f : A R and (a, b) an interior point of A.
f (x, b) f (a, b)
Definition 6. If lim
exists and is finite, we say that f admits a
xa
xa
partial derivative with respect to x at the point (a, b) and we write:
f (x, b) f (a, b)
f
= fx0 (a, b) =
(a, b).
xa
xa
x
lim
f (a, y) f (a, b)
exists and is finite, we say that f admits a
yb
yb
partial derivative with respect to y at the point (a, b) and we write:
Definition 7. If lim
f (a, y) f (a, b)
f
= fy0 (a, b) =
(a, b).
yb
yb
y
lim
&
'
Multivariate case (n 2)
If A Rn and a = (a1 , a2 , . . . , an ) is an interior point of A, then for every i = 1, . . . , n
lim
xi ai
f (a1 , . . . , xi , . . . an ) f (a1 , . . . , ai , . . . an )
f
= fx0 i (a1 , . . . , an ) =
(a1 , a2 , . . . , an ).
x i ai
xi
fx00i xj (a1 , a2 , . . . , an )
2f
=
(a1 , a2 , . . . , an )
xj xi
10
'
Examples
00
00
Example 2. Find fx002 , fy002 , fxy
, fyx
for the next two-variable functions:
1. f (x, y) = x3 + 2xy 2 xy , y 6= 0;
2. f (x, y) = ln(1 + x2 + 2y 2 ).
&
11
'
Differentiability
A sufficient condition for the mixed second order partial derivatives of a two-variable
function to be equal is provided by the next theorem.
Theorem 1. (Schwartz Criterion) If f : A R2 R has second order partial
derivatives at any point of an open sphere centered at (a, b), Sr (a, b) A and these
are continuous at (a, b), then the mixed second order partial derivatives are equal:
00
00
fxy
(a, b) = fyx
(a, b).
(x, y) A,
12
'
xa
xa
Since
lim
xa,yb
(x, y) = 0 then
f (x, b) f (a, b)
|x a|
= + lim (x, b)
= fx0 (a, b) = .
xa
xa
xa
xa
lim
13
'
Therefore, if the two variable function f is differentiable at (a, b), then we have
f (x, y) f (a, b) = fx0 (a, b)(x a) + fy0 (a, b)(y b) + (x, y)(x, y).
&
14
'
xa,yb
lim
xa,yb
xa,yb
lim
xa,yb
0
0
fx (a, b)(x a) + fy (a, b)(y b) + (x, y)(x, y) = 0
f (x, y) = f (a, b), which is exactly the continuity of the function f at the
15
&
16
'
notation
notation
dy.
17
'
The second order total differential of the function f at the point (a, b) is
00
(a, b)dxdy.
d2 f(a,b) (x, y) = d(df )(a,b) (x, y) = fx002 (a, b)dx2 + fy002 (a, b)dy 2 + 2fxy
&
18
'
Examples
1. Find out the first and the second order partial derivatives of the following
functions:
(a) f : A = {(x, y) R2 |y 6= 0} R, f (x, y) = xy +
(b) f : A = R2 \ {(0, 0)} R, f (x, y) =
x
y
x
x2 +y 2
50
x
20
y
2
3, x 6= 0, y 6= 0;
xy x2 y2 , (x, y) 6= (0, 0)
x2 +y 2
f (x, y) =
0,
(x, y) = (0, 0)
(3)
.
&
19
'
xy x2 y2 , (x, y) 6= (0, 0)
x2 +y 2
f (x, y) =
0,
(x, y) = (0, 0)
differentiable at (0, 0)?
5. Consider the function f : R R R, f (x, y) = (x 2)46 (y 3)44 .
Then
82
f (26, 27)
x42 y 40
is equal to: a) 1650; b) 1560; c) 1272; d) 1722; e) 1982; f) 1892; g) 2700; h) 2070;
i) 2256; j) 2526; k) 2450; l) 2540; m) none of the previous.
&
20
'
&
21
'
&
22
'
&
23
'
Finding Extremes
Theorem 5. Consider a subset A R2 , f : A R and (a, b) a stationary point for
the function f . Assume that r > 0 such that the second order derivatives
00
00
fx002 , fy002 , fxy
, fyx
are continuous on Sr (a, b). Let H(a, b) = (fx00i xj (a, b))i,j=1,2 be the
hessian matrix and let 1 (a, b) = fx002 (a, b), 2 (a, b) = det H(a, b). Then:
if 2 (a, b) > 0, (a, b) is a local extreme point:
if 1 (a, b) > 0 then (a, b) is a local minimum;
if 1 (a, b) < 0 then (a, b) is a local maximum.
if 2 (a, b) < 0, then (a, b) is not an extreme point, is a saddle point.
&
24
'
Finding extremes
1. If 2 (a, b) = 0 we can conclude nothing and the investigation has to be
continued some other way. For instance we might check the sign of
f (x, y) f (a, b) on Sr (a, b).
2. We note that when 2 (a, b) > 0, the second order partial derivatives
fx002 (a, b), fy002 (a, b) have the same sign, since fx002 (a, b)fy002 (a, b) > 0, so we could as
well check whether fy002 is positive or negative if that were easier.
&
25
'
Multivariate case n 2
Consider A Rn , f : A R, a = (a1 , a2 , . . . , an ) A a stationary point for the
function f such as its second order partial derivatives are continuous on an open
sphere Sr (a). Then the Hessian matrix associated to f at a A is
H(a) = (fx00i xj (a))i,j=1,...,n .
Consider the following determinants:
1 (a) = fx002 (a),
1
00
fx2 (a) fx001 x2 (a)
1
2 (a) =
fx002 x1 (a) fx002 (a)
2
.........
= f 002 (a)f 002 (a) fx00 x (a)fx00 x (a),
1 2
2 1
x1
x2
26
'
Multivariate case n 2
The matrix H(a) is called positive definite if 1 (a) > 0, 2 (a) > 0, . . . , n (a) > 0
and negative definite if 1 (a) < 0, 2 (a) > 0, . . . , (1)n n (a) > 0.
Then if H(a) is
positive definite, then x = a is a local minimum.
negative definite, then x = a is a local maximum;
indefinite (neither positive nor negative definite), then x = a is a saddle point.
&
27
'
Examples
Find the local extreme points of the following functions:
Example 3. f : R2 R, f (x, y) = x2 + y 2
z = f(x,y)
0
2
1
2
1
1
y values
1
2
x values
Figure 1: f (x, y) = x2 + y 2
&
28
'
Examples
Example 4. f : R2 R, f (x, y) = x2 y 2
z = f(x,y)
4
2
1
0
1
y values
x values
Figure 2: f (x, y) = x2 y 2
&
29
'
Examples
Example 5. f : R2 R, f (x, y) = xe(x
2 +y 2 )
z = f(x,y)
0.5
0.5
2
1
2
1
1
y values
1
2
x values
2 +y 2 )
30
'
Examples
Example 6. f : R2 R, f (x, y) = xye(x
2 +y 2 )
0.2
z = f(x,y)
0.1
0.1
0.2
2
1
2
1
1
y values
1
2
x values
2 +y 2 )
31
'
Examples
Find the local extreme points of the following functions:
1. f : R2 R, f (x, y) = x3 + y 3 + 3xy;
2. f : R2 R, f (x, y) = x3 y 2 4x;
3. f : R2 R, f (x, y) = x3 + 3xy 2 12y 15x;
4. f (x, y) = xy +
50
x
20
y
3, x 6= 0, y 6= 0;
&
32
'
33
'
34
'
n
X
Sa (a, b) = 2
Sb (a, b) = 2
i=1
n
X
i=1
X
n
n
n
X
X
xi + b
xi =
xi y i
a
i=1
n
X
i=1
(4)
i=1
xi + nb =
i=1
n
X
(5)
yi .
i=1
The equation system (5) is called Gauss normal equations system and it can be
proved that it has a unique solution, which is the global minimum point for the sum
of squared residuals, S(a, b).
&
35
'
n
X
=n
x2i
i=1
Pn
Pn
i=1 xi yi
i=1 xi
a = Pn
n
i=1 yi
Pn 2 Pn
xi
i=1 xi yi
b = Pi=1
Pn
n
i=1 xi
i=1 yi
&
n
X
!2
xi
6= 0
i=1
n
n
n
X
X
X
=n
xi yi
xi
yi
i=1
i=1
i=1
n
n
n
n
X
X
X
X
=
yi
xi
xi y i
x2i
i=1
i=1
i=1
i=1
36
'
Pn
Pn
Pn
n
x
y
x
yi
a
i=1
i=1
Pn i i 2
Pn i i=1
a =
=
n i=1 xi ( i=1 xi )2
b
b =
=
&
Pn
Pn
Pn
2
x
y
x
i=1 i Pi=1 i
i=1 i
i=1 xi yi
P
n ni=1 x2i ( ni=1 xi )2
(6)
Pn
(7)
37
'
y(t)
10
12
12
12
14
15
15 15 17 18
10
i) Using the Least Squares Method, find parameters a and b such that equation
y(t) = a + bt provides the best linear fit for the given data.
ii) Using the result of (i), predict the sales for November (t=11) and December
(t=12).
Answer: a = 9, 6 and b = 0, 8.
&