Lecture 5 - Differentiation
Lecture 5 - Differentiation
Lecture 5 - Differentiation
Formulas
d/dx = dk/dx = 0 or ƒ’ = 0
d
c 0
dx
example: y 3 y 0
The derivative of a constant is zero.
Power Rule:
If n is any real number, then d n
dx
x nx n 1
Examples: f x x 4 f x 4 x3
y x8 y 8 x 7
d du
cu c
dx dx
d n n 1
Examples: cx cnx
dx
d
7 x 7 5 x 35 x
5 4 4
dx
Exercise 7.1 page152:
The Sum Rule:
d du dv
u v
dx dx dx
Example: y x 12 x
4
y 4 x 12
3
y x 2x 2
4 2 dy
Example: 4 x3 4 x
dx
Example
(1) d/dx (7x4 + 2x3 -3x +37)
= 28 x3 +6x2 -3 + 0
=28x3 + 6 x2 -3
= 2ax + b
The Product Rule:
d dv du
uv u v Notice that this is not just the
dx dx dx product of two derivatives.
6 x 4 5 x 2 18 x 2 15 4 x 4 10 x 2
10 x 4 33x 2 15
The Quotient Rule:
du dv
v u u v du u dv
d u dx dx d
or 2
dx v v2 v
v
Example:
d 2 x 5x
3
x 2 3 6 x 2 5 2 x3 5 x 2 x
x
2
dx x 3
2 2
3
Ex- 2
d/dx(2x -3)/(x + 1)
= 5/(x + 1 )2
Exercise 7.2
Ex -3 Page 160
d/dx [( ax2 + b)/cx] =
Example:
f(x) = 3x3 -6x2 + 2x -1
d/dx = f ‘ = 9x2 – 12x + 2
d2/dx2 = f ‘’ = 18 x - 12
Example of Using First and Second
Order Conditions
Suppose you have the following function:
f(x) = x3 – 6x2 + 9x
Then the first order condition to find the critical
points is:
f’(x) = 3x2 - 12x + 9 = 0
This implies that the critical points are at x = 1 and x =
4
3. 2
-2
-4
-6
-8
-0.5 0 0.5 1 1.5 2 2.5 3 3.5 4
Fin500J Topic 4 Fall 2010 Olin Business School 15
Example of Using First and Second
Order Conditions (Cont.)
The next step is to determine whether the critical points are
maximums or minimums.
These can be found by using the second order condition.
f “(x) = 6x – 12 = 6(x-2)
Testing x = 1 implies:
f ' '(1) = 6(1-2) = -6 < 0.
Hence at x =1, we have a maximum.
Testing x = 3 implies:
f ' '(3) = 6(3-2) = 6 > 0.
Hence at x =3, we have a minimum.
16
Local or Relative maxima and minima
When f” < 0 (negative) then local maximum
When f” > 0 (positive) then local minimum
Example-1:
f(x) = x3 –x
First derivative:
f’(x) =3x2 -1 and setting equal to zero
3x2 -1 =0 or, x2 =1/3 or, x= 1/√3
Second Derivative
f” =6x, check this is positive or negative,
f” =6/√3 is positive.
Therefore at x= 1/√3, the f(x) is minimum (local).
Example-2:
R = 1200Q -2Q2
dR/dQ = f’ = 1200 -4Q and setting equal to zero
Q = 300
d2R/dQ2 = -4
As f”(x) <0 then at Q = 300 the function is (relative or
local) maximum.
Conditions for a Minimum or a Maximum
Value of a Function of Several Variables
Correspondingly, for a function f(x) of several
independent variables x
Calculate f x and set it to zero. (Name is Nabla
but said as del). The del symbol can be interpreted as a
vector of partial derivative operators.
Solve the equation set to get a solution vector x*.
Calculate
Evaluate it at x*.
f x
2
Inspect the Hessian matrix at point x*.
H x 2 f x
19
Hessian Matrix of f(x)
f x is a C 2 function of n variables,
2 f x 2 f x
x1 2
x1xn
H x 2 f x .
2 f x 2 f x
xn x1 xn
2
When |H1| >0, |H2| >0 the Hessian |H| is called positive
definite. A positive definite Hessian fulfills the second
order conditions for minimum.
If the first principle minor |H1| = Zxx < 0 and the
second principle minor
f ( x, y ) x y 9 xy
3 3
f
x 3 x 2
9y
f ( x , y ) 0
f 3 y 2 9 x
y
critical points x*, y * is (0,0) and ( 3, -3 ).
2 f 2 f
2
x xy 6 x 9
f ( x, y ) 2 9 6 y .
2
f f
2
yx y 2
The first order leading principal minor is 6x and the second order
principal minor is -36xy-81.
At (0,0), these two minors are 0 and -81, respectively. Since the
second order leading principal minor is negative, (0,0) is a saddle
of f(x,y), i.e., neither a max nor a min.
At (3, -3), these two minors are 18 and 243. So, the Hessian is
positive definite and (3,-3) is a local min of f(x,y).