topic iv calculus - arizona state universityminiahn/ecn470/cn5.pdf · limx o 1 x limx 0 1 x iv-1...

29
lim xo 1 x lim x0 1 x IV-1 TOPIC IV CALCULUS [1] Limit Suppose that we have a function y = f(x). What would happen to y as x x? o Definition: Let y = f(x). Then, the limit value of y as x a is denoted by lim f(x). xa EX 1: y = 1 + 2x. As x 0, y 1. lim y = 1. x0 EX 2: y = 1/x, x 0. As x 0, y or - Limit does not exists. As x 0 from the right, y . . As x 0 from the left, y -. .

Upload: voliem

Post on 24-Dec-2018

227 views

Category:

Documents


0 download

TRANSCRIPT

limx�o�

1x� �

limx�0�1x� ��

IV-1

TOPIC IVCALCULUS

[1] Limit

• Suppose that we have a function y = f(x).

What would happen to y as x � x ?o

Definition:

Let y = f(x). Then, the limit value of y as x � a is denoted by lim f(x).x�a

EX 1: y = 1 + 2x.

As x � 0, y � 1. � lim y = 1.x�0

EX 2: y = 1/x, x � 0.

As x � 0, y � � or -� � Limit does not exists.

As x � 0 from the right, y � �.

� .

As x � 0 from the left, y � -�.

� .

1x�1

limx�1�y � � limx�1�y � ��

1�x 2

1�x

00

1�x 2

1�x(1�x)(1�x)

1�x

x 2

x

IV-2

EX 3: y = .

• lim y = 1;x�2

• ; • .

• lim y = 0; • lim y = 0.x�� x�-�

EX 4: y = , x � 1.

• lim y = = 0 (?)x�1

� Nope!!!.

� lim = lim = lim (1+x) = 2!!!x�1 x�1 x�1

EX 5: y = , x � 0.

• lim y = lim x = 0.x�0 x�0

• lim y = lim x = �.x�� x��

Note:

• Before computing a limit, better to simplify the function f.

• Although f(x) may not be defined at x = x , f(x) could have a limit.o

x�ax

ax

limx�xo

IV-3

EX 6: y = .

• lim y = lim (1 + ) = 1.x�� x��

Theorem:

Suppose that lim f(x) and lim g(x) exists. (Here, lim = .) Then,

(R1) lim [f(x) ± g(x)] = lim f(x) ± lim g(x).

(R2) lim[f(x)g(x)] = [lim f(x)][lim g(x)]

(R3) lim[f(x)/g(x)] = [lim f(x)]/[lim g(x)], if lim g(x) � 0.

EX: y = e /x .x 2

• lim y = [lim e ]/[lim x ] (?)x�� x�� x��x 2

� Nope!!!, since lim e and lim x do not exist.x�� x��x 2

� In fact, lim e /x = �.x��x 2

• lim y = [lim e ]/[lim x ] (?)x�0 x�0 x�0x 2

� Nope!!!, since lim x = 0.x�02

� In fact, lim y = �.x�0

EX: y = (x -1)/(x-1), x � 1.2

• lim y = [lim (x -1)]/[lim (x-1)] (?)x�12

� Nope!!!, since lim (x-1) = 0.x�1

� In fact, lim y = lim (x+1) = 2.x�1 x�1

x 2�2

x 2�2x�2

1�2/x2

1�2/x�2/x2

f(x)g(x)

f �(x)

g �(x)

IV-4

EX: y = (x +2)/(x +2x+2).2 2

• lim y = [lim (x +2)]/[lim (x +2x+2)] (?)x�� x�� x��2 2

� Nope!!!, since lim (x +2) does not exists.x��2

• lim = limx�� x��

= [lim (1+2/x )]/[lim (1+2/x+2/x )]2 2

= 1.

L'Hôpital's Theorem

Suppose that we have two functions f(x) and g(x). Suppose:

lim f(x) = 0 and lim g(x) = 0 ,

or, lim f(x) = ± � and lim g(x) = ± �.

Then, lim = lim .

�y�x

�y�x �� x�x0

f(x 0 � �x) � f(x 0)

�x

dydx

� y �� f �(x) lim

�x�0

f(x � �x) � f(x)�x

dydx �� x�x0

lim�x�0�

� lim�x�0�

IV-5

[2] Derivative

• y = f(x)

• We want to know changes in y (�y) when x changes by �x.

• rate of change =

• = .

� = derivative evaluated at x = f�(x )0 0

Note:

If , then, we say that derivative does not exist.

Question: What is derivative?

y

x0

x

y=f(x)

IV-6

• / : tangent line at x = x0

• f�(x ) : measures slope of tangent line0

y

x

y = 6x

limx�x �

0

f(x) � limx�x �

0

f(x) � limx�x0

f(x)

limx�x0

f(x) � f(x 0)

IV-7

[3] Continuity vs. differentiability

Definition:

Consider a function y = f(x). Suppose:

1) f is defined at x ;0

2) ;

3) .

Then, f is called continuous at x = x .0

EX 1) y = f(x) = 6x, for all x.

• Is this function continuous at x = 1?

y

x

y = 1/x

limx�1

y � 6

limx�1

y � f(1)

y �1x

IV-8

1) f(1) = 6;

2) ;

3)

� Continuous.

EX 2)

• Is this function continuous at x = 0

1) f(0) not defined.

� y is not continuous at x = 0.

y

x

x+1

2

-2 1

y=x+2

x�1 if x � 1x�2 if x < 1

limx�1�

f(x) � 2 limx�1�

f(x) � 3

lim�x�0

f(x 0 � �x) � f(x 0)

�x

IV-9

EX 3) y =

1) f(1) = 2.

2) ;

� Not continuous.

Definition:

Suppose that at x0,

f�(x ) = exists.0

lim�x�0�

� lim�x�0�

f(x) � f(x 0)

x � x0

� (x � x0)

limx�x0

[f(x) � f(x 0)] limx�x0

f(x) � f(x 0)

x � x0

� (x � x0)

limx�x0

f(x) � f(x 0) � 0 limx�x0

f(x)

x�1 x � 1x�2 x < 1

IV-10

Then, we say thaty f is differentiable at x .0

Note:

• If , we say that derivative does not exist.

Theorem:

If f is differentiable at x , then, f is continuous at x .0 0

<proof>

Note that:

f(x) - f(x ) = .0

Then,

= = f�(x ) � 0 = 0.0

Thus, � = f(x ).o

Corollary:

If f is not continuous, then f is not differentiable.

EX 1) y =

• Not continuous at x = 1

a if a � 0�a if a < 0

x�1 if x � 2�x�3 if x < 2

limx�2�

f(x) � limx�2�

f(x) � 1

lim�x�0�

f(2 � �x) � f(2)�x

lim�x�0�

(2 � �x) � 1 � 1�x

lim�x�0�

�x�x

IV-11

� not differentiable.

Note:

• If a function is continuous, it may or may not be differentiable.

Definition:

|a| =

EX 1) |-4| = 4; |4| = 4

EX2) y = f(x) = |x-2| + 1

� y =

� Continuous?

1) f(2) defined and f(2) = 1

2)

3) lim f(x) = f(2).x�2

� So, f is continuous.

� Differentiable?

=

= = 1

lim�x�0�

f(2 � �x) � f(2)�x

lim�x�0�

�(2 � �x) � 3 � 1�x

lim�x�0�

��x�x

IV-12

=

= = -1

� not differentiable

dydx

� 0

3 x � 3x12

y �� 3 × 1

2× x

12�1 3

2x

�12 3

21

x12

�3

2 x

ddx

(f(x) � g(x)) ddx

f(x) � ddx

g(x) � f �(x) � g �(x)

dydx

� 4x � 1

IV-13

[4] Rules for Derivatives

(1) y = f(x) = k.

.

(2) y = axn

y� = anxn-1

EX 1) y = 3x6

� y� = 3 × 6 × x = 18x6-1 5

EX 2) y =

� = =

(3) =

EX) y = 2x + x2

� .

ddx

(f(x)g(x)) ddx

f(x) g(x) � f(x) ddx

g(x)

ddx

f(x)g(x)

ddx

f(x) g(x) � f(x) ddx

g(x)

[g(x)] 2

ddx

f(x) � g(x)

ddx

fg

(12x � 6)(3x 3� 6x 2) � (6x 2

� 6x)(9x 2� 12x)

(3x 3� 6x 2)2

IV-14

(4) =

(5) = .

EX) f(x) = 6x + 6x2

g(x) = 3x + 6x3 2

� f�(x) = 12x + 6; g�(x) = 9x + 12x2

� = (12x + 6)(3x + 6x ) + (6x + 6x)(9x + 12x)3 2 2 2

� =

dzdx

�dzdy

dydx

� f �(y) � g �(x)

dwdx

�dwdz

dzdy

dydx

dzdx

�dzdy

dydx

dzdx �� x�1

� 24 × 1 � 60 � 84

dTRdL

�dTRdQ

�dQdL

IV-15

[5] Chain Rule

• x � y � z

• z = f(y)

• y = g(x)

• x � y � z � w

• .

EX 1) z = 3y ; y = 2x + 52

� x � y � z

� = (6y) • 2 = 12y = 12(2x + 5) = 24x + 60

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

� Set z = 2x + 1.2

� Then, y = 3z ; z = 2x + 1.3 2

� dy/dx = (dy/dz)(dz/dx) = (9z )(4x) = 36xz = 36x(2x +1) .2 2 2 2

EX 3) TR = f(Q); Q = g(L)

� = MR • MP = MRPL L

IV-16

[6] Inverse Function

(EX 1) Consider the following example.

This is a function.

• Looking at the reversed relation:

(EX 2) Consider the following example.

IV-17

Now, look at the reversed relation:

Definition:

If the reversed relation is also a function, we say that there exists the inverse

function, and we denote it by f .-1

Definition:

A function y = f(x) is strictly increasing (decreasing) iff f(x ) > f(x ),1 2

whenever x > (<) x .1 2

Theorem:

If a function y = f(x) is strictly increasing or strictly decresing, then x = f (y)-1

(inverse function) exists.

Note:

dxdy

�1dydx

.

IV-18

(1) “Function”: If you know what happened yesterday (cause), you can

predict what will happen today (result).

(2) “Inverse function”: If you know what happens today (result), you can

figure out what happened yesterday (cause).

EX) y = f(x) = 5x + 25, -� < x < �.

� x = y/5 - 5 = f (y).--1

Theorem:

Suppose that a function y = f(x) has an inverse function. Then,

EX) For the above example,

• dy/dx = 5 ; dx/dy = 1/5.

• Clearly, dx/dy = 1/(dy/dx).

�y�x1

�dydx1

ceteris paribus� lim�x1 � �

�y�x1

.

y �

x1x22

x1�x2

.

IV-19

[7] Partial Differentiation

• Consider a function:

y = f(x ,x ,...,x ),1 2 n

where x ’s are independent variables and y is a dependent variables. i

Suppose we would like to know the rate of change of y when x changes.1

Definition:

(Here, we treat all other variables as constant!!!!)

EX 1) y = 3x + x x + 4x1 1 2 22 2

• �y/�x = 6x + x .1 1 2

• �y/�x = x + 8x .2 1 2

EX 2) y = (x + 4)(3x + 4x ) .1 1 2

• �y/�x = [�(x +4)/�x ](3x +4x ) 1 1 1 1 2

+ (x +4)[�(3x +4x )/�x ]1 1 2 1

= 3x + 4x + (x +4) 3 = 6x + 4x + 12.1 2 1 1 2

• �y/�x = 4x + 16 (Show this at home.)2 1

EX 3)

�y�x1

�(x1x22 )

�x1

(x1�x2) � (x1x22 )�(x1�x2)

�x1

(x1�x2)2

x22 (x1�x2) � x1x

22 (1)

(x1�x2)2

�x32

(x1�x2)2

.

IV-20

• Simliarly,

�y/�x = (2x x - x x )/(x -x ) .2 1 2 1 2 1 22 2 2

�y1

�x1

�y1

�x2

. . .�y1

�xn

�y2

�x1

�y2

�x2

. . .�y2

�xn

�yn

�x1

�yn

�x2

. . .�yn

�xn

IV-21

[8] Jacobian Determinant

• There are n equations:

y = f (x , x , ... x , x , x , ... x )1 1 2 n n+1 n+2 m1

y = f (x , x , .... , x , x , x , ... , x )2 1 2 n n+1 n+2 m2

y = f (x , x , .... , x , x , x , ... , x ).n 1 2 n n+1 n+2 mn

• Let’s treat x , ... x as given. (Treat them as constants)n+1 m

• Sometimes, we wish to know whether all the functions are distinctive,

that is, whether there are redundant functions or not.

• For this case, we use Jacobian matrix:

J =

• If |J| = 0, we say that the functions are functionally dependent.

• If |J| � 0, we say that the functions are functionally independent.

y1 � 2x 21 � x 3

2 y2 � x 21 x2

�y1

�x1

� 2 × 2x1 � 0�y1

�x2

� 3x 22

�y2

�x1

� 2x1x2

�y2

�x2

� x 21

|J| � ������4x1 3x 2

2

2x1x2 x 21

������� 4x 3

1 � 6x1x32 � 0

y2 � x 21 � 4x1x2 � 4x 2

2

|J| � ������1 2

2x1 � 4x2 4x1 � 8x2

������� 4x1 � 8x2 � 2(2x1 � 4x2) � 0

IV-22

EX 1) ;

;

;

EX 2) y = x + 2x1 1 2

� = (x + 2x )1 22

dydx

dydx

� f �(x) � dy � f �(x)dx

dydx

� f �(x) � 6x � 7

% changes in demand% changes in price

�Qd

Qd

�PP

dQd

Qd

dPP

dQdP

�P

Qd

IV-23

[9] Differentials

• : derivatives

• dy, dx : differentials (small changes)

EX) y = 3x + 7x2

� dy = (6x + 7)dx

One important application of differentials:

• � (price-elasticity of demand) d

=

= % changes in demand when price changes by 1%

= =

EX) Q = 100 - 2Pd

dQd

dP� �2

PQd

�P

100 � 2P

(�2) × P100 � 2P

�P

P � 50

1010 � 50

� �14

f j ��y�xj

dy�� dx2 � � � �� dxn� 0� f 1dx1

dU ��U�x1

dx1 ��U�x2

dx2

IV-24

� � = d

� When P = 10, � = = -0.25d

Total differentiation:

• y = f(x , . . . x )1 n

• Denote

• Then,

• dy = f dx + f dx + . . . + f dx1 1 2 2 n n

• .

EX) U = U(x , x )1 2

� = U dx + U dx1 1 2 2

dx2

dx1�� dU � 0

� �

U1

U2

y � x 21 � 2x1x2 � 4x 2

2

IV-25

� Suppose that dU = 0. Then, U dx + U dx = 01 1 2 2

� (slope of indifference curve)

EX)

� dy = (2x + 2x )dx + (2x + 8x )dx21 2 1 1 2

dydw

��y�x1

dx1

dw�

�y�x2

dx2

dw

y � x 21 x 3

2

dydw

��y�x1

dx1

dw�

�y�x2

dx2

dw

(2x1x32 )6 � (3x 2

1 x 22 ) (6w � 4)

dydw

��y�x1

dx1

dw�

�y�x2

dx2

dw

IV-26

[10] Total derivatives

• CASE I: y = f(x ,x ) ; x = g(w) ; x = h(w)1 2 1 2

EX 1) ; x = 6w + 6; x = 3w + 4w1 22

=

= 12(6w+6)(3w +4w) + 3(6w+6) (3w +4w) (6w+4)2 2 2 2

= 72(w+1)(3w +4w) + 108(w+1) (3w +4w) (6w+4).2 2 2 2

EX 2) y = (6w+6) (3w +4w)2 2 3

� Set x = 6w + 6; x = 3w + 4w.1 22

dydw

��f�x1

dx1

dw�

�f�x2

dx2

dw�

�f�w

y � x 21 � x2 � w

dydw

��y�x1

dx1

dw�

�y�x2

dx2

dw�

�y�w

IV-27

• CASE II:

y = f(x , x , w) — �1 2

x = g(w) — �1

x = h(w) — �2

Note:

• dy/dw = total derivative.

• �f/�w = partial derivative from �

EX 1) ; x = 6w; x = 3w1 22

= (2x ) × 6 + 1 × 6w + 1 = 12(6w) + 6w + 1 = 78w + 1.1

dydw

dydz1

���� dz2 � 0

��y�z1

�y�z1

�y�z1

��f�x1

�x1

�z1

��f�x2

�x2

�z1

��f�z1

IV-28

EX 2) y = 3x - w ; x = 2w + w + 42 2

Show that = 10w + 3.

Total Partial Derivatives:

y = f(x , x , z , z ) — �1 2 1 2

x = g(z , z ) — �1 1 2

x = h(z , z ) — �2 1 2

• Want to know (in textbook, )

fr.� fr. � fr.� fr.� fr.�

EX 3) w = ax + bxy + cu; x = �u + �v; y = �u2

�w�u

��f�x

�x�u

��f�y

�y�u

��f�u

�w�v

��w�x

�x�v

�w�u

du ��w�v

dv

IV-29

.

= (2ax + by)� + (bx)� + c

= 2a�x + b�y + b�x + c

= (2ax + by) • �

dw =