3.1 Derivative of A Function: Fah Fa H Fah Fa FX H

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 86

3.

1 Derivative of a Function
f  a  h  f  a
lim is called the derivative of f at a.
h 0 h

f  a  h  f  a
We write: f   x   lim
h 0 h
“The derivative of f with respect to x is …”

There are many ways to write the derivative of y  f  x


3.1 Derivative of a Function
f  x “f prime x” or “the derivative of f with respect
to x”
y “y prime”
dy
“dee why dee ecks” or “the derivative of y with
dx respect to x”
df
“dee eff dee ecks” or “the derivative of f with
dx respect to x”
d
f  x  “dee dee ecks uv eff uv ecks” or “the derivative
dx
( d dx of f of x ) of f of x”

3.1 Derivative of a Function

dx does not mean d times x !

dy does not mean d times y !


3.1 Derivative of a Function

dy
does not mean dy  dx !
dx
(except when it is convenient to think of it as division.)
df
does not mean df  dx !
dx
(except when it is convenient to think of it as division.)
3.1 Derivative of a Function

d d
f  x  does not mean times f  x  !
dx dx
(except when it is convenient to treat it that way.)
3.1 Derivative of a Function

The derivative is
the slope of the y  f  x
original function.

The derivative is defined


at the end points of a
function on a closed
interval. y  f  x
3.1 Derivative of a Function
y  x 3 2

y  lim
 x  h
2

 3  x2  3 
h 0 h

y   lim 2 x  h
h 0

y  2 x
3.1 Derivative of a Function

A function is differentiable if it has a


derivative everywhere in its domain. It
must be continuous and smooth.
Functions on closed intervals must have
one-sided derivatives defined at the end
points.
3.2 Differentiability
To be differentiable, a function must be continuous
and smooth.
Derivatives will fail to exist at:

f  x  x 2
f  x  x 3

corner cusp

 1, x  0
f  x  3
x f  x 
 1, x  0
vertical tangent discontinuity
3.2 Differentiability

Most of the functions we study in calculus will be differentiable.


3.2 Differentiability
There are two theorems on page 110:

If f has a derivative at x = a, then f is continuous at x = a.

Since a function must be continuous to have a derivative,


if it has a derivative then it is continuous.
3.2 Differentiability
Intermediate Value Theorem for Derivatives

If a and b are any two points in an interval on which f is


differentiable, then f takes on every value between f   a 

f  b
and .
f  b  3

1 Between a and b, f  must take


f  a  1
2
on every value between 2 and 3.
3.3 Rules for Differentiation

If the derivative of a function is its slope, then for a


constant function, the derivative must be zero.

d example: y 3
 c  0
dx y  0

The derivative of a constant is zero.


3.3 Rules for Differentiation
We saw that if y  x 2 , y  2 x .

This is part of a pattern.

examples:
d n
dx
 x   nx n 1

f  x  x 4 y  x8

f   x  4x 3 y  8 x 7

power rule
3.3 Rules for Differentiation
Proof:
d n
dx
 x   nx n 1
d n ( x  h) n  x n
x  lim
dx h0 h
d n x n  nx n1h  ...  h n  x n
x  lim
dx h0 h
d n nx n1h  ...  h n
x  lim
dx h 0 h
d n
x  lim nx n1
dx h0
3.3 Rules for Differentiation

constant multiple rule:


examples:
d du
 cu   c d n
cx  cnx n 1
dx dx
dx
d
7 x 5  7  5 x 4  35 x 4
dx
3.3 Rules for Differentiation
d du
constant multiple rule:  cu   c
dx dx
sum and difference rules:

d du dv d du dv
 u  v    u  v  
dx dx dx dx dx dx

y  x  12 x
4 y  x 4
 2 x 2
2
(Each term
dyis treated separately)
y  4 x  12
3
 4x  4x
3

dx
3.3 Rules for Differentiation
Find the horizontal tangents of:
dy
y  x  2x  2
4 2
 4 x3  4 x
dx
Horizontal tangents occur when slope = zero.
4 x3  4 x  0 Substituting the x values into the
x3  x  0 original equation, we get:
y  2, y  1, y  1
x  x  1  0
2

(The function is even, so we


x  x  1  x  1  0 only get two horizontal
x  0, 1, 1 tangents.)
3.3 Rules for Differentiation

y  x4  2x2  2

y2

y 1
3.3 Rules for Differentiation

y  x4  2 x2  2

dy
 4 x3  4 x
dx

First derivative
(slope) is zero at:
x  0, 1, 1
3.3 Rules for Differentiation
product rule:
d dv du
 uv   u v Notice that this is not just the
dx dx dx
product of two derivatives.
This is sometimes memorized as: d  uv   u dv  v du
d  2
dx  x 3  
2 x3  5 x 

 x 2  3  6x 2

 5  2 x  5 x
3
  2x 
d
dx
 2 x 5  5 x 3  6 x 3  15 x 

d
dx

2 x 5  11x 3  15 x  6 x 4  5 x 2  18 x 2  15  4 x 4  10 x 2

10 x 4  33 x 2  15 10 x 4  33 x 2  15
3.3 Rules for Differentiation
product rule:
d u ( x  h)v ( x  h )  u ( x )v ( x )
d
 uv   u
dv
v
du (uv)  lim
dx dx dx dx h 0 h

Proof add and subtract u(x+h)v(x)


in the denominator
d u ( x  h ) v ( x  h )  u ( x ) v ( x )  u ( x  h )v ( x )  u ( x  h )v ( x )
(uv)  lim
dx h0 h
d  u ( x  h ) v ( x  h )  v ( x )   v ( x ) u ( x  h )  u ( x )  
(uv)  lim 
dx h 0
 h 
d dv du
(uv)  u  v
dx dx dx
3.3 Rules for Differentiation
quotient rule:

du dv
v u  u  v du  u dv
d u dx dx d 
   or 2
dx  v  v 2 v
  v

d 2x  5x
3


   
x 2  3 6 x 2  5  2 x3  5 x  2 x  
dx x  3
x 
2 2
2
3
3.3 Rules for Differentiation
Higher Order Derivatives:
dy
y  is the first derivative of y with respect to x.
dx
dy d dy d 2 y is the second derivative.
y   
dx dx dx dx 2 (y double prime)
dy 
y   is the third derivative.
dx We will learn
 4 d later what these
y  y is the fourth derivative. higher order
dx
derivatives are
used for.
3.3 Rules for Differentiation
Suppose u and v are functions that are differentiable at
x = 3, and that u(3) = 5, u’(3) = -7, v(3) = 1, and v’(3)= 4.
Find the following at x = 3 :
d d
1. (uv) (uv)  uv' vu ' 5(3)  (1)(7)  8
dx dx
d u d  u  vu 'uv' (1)(7)  (5)(4)
2.     2
 27
dx  v  dx  v  v2 1
d v d  v  uv'vu ' (5)(4)  (1)(7) 27
3.     
dx  u  dx  u  u2 52 25
3.3 Rules for Differentiation

d  ho 
 
dx  hi 

(hi )d (ho)  (ho)d (hi )


(ho)(ho)
3.3 Rules for Differentiation
3.4 Velocity and other Rates
of Change
Consider a graph of displacement (distance traveled) vs. time.
Average velocity can be found by
taking:
B change in position s
distance 
(miles) s change in time t
A
t s f  t  t   f  t 
Vave  
t t
time (hours)

The speedometer in your car does not measure average


velocity, but instantaneous velocity.
ds f  t  t   f  t  (The velocity at one
V  t   lim
dt t  0 t moment in time.)
3.4 Velocity and other Rates
of Change

Velocity is the first derivative of position.

Acceleration is the second derivative


of position.
3.4 Velocity and other Rates
of Change
Gravitational
Example: Free Fall Equation Constants:

ft
g  32
1 2 1 sec 2
s g t s   32 t 2
2 2
m
g  9.8
ds sec 2
s  16 t 2 V  32 t
dt
cm
Speed is the absolute value of velocity. g  980
sec 2
3.4 Velocity and other Rates
of Change
Acceleration is the derivative of velocity.

dv d 2s v  32t
a  2 example:
dt dt a  32
If distance is in: feet

feet
Velocity would be in:
sec
ft
ft
Acceleration would be in:
sec 
sec sec 2
3.4 Velocity and other Rates
of Change
acc neg acc neg
vel pos & vel neg &
decreasing decreasing acc zero
vel neg &
acc zero constant
vel pos &
constant acc pos
distance
vel neg &
increasing
velocity
acc pos
zero
vel pos &
increasing
acc zero,
velocity zero

time
3.4 Velocity and other Rates
of Change
Rates of Change:
f  x  h  f  x
Average rate of change =
h
f  x  h  f  x
Instantaneous rate of change = f   x   lim
h 0 h

These definitions are true for any function.

( x does not have to represent time. )


3.4 Velocity and other Rates
of Change

For a circle: A   r2
dA d
  r2
dr dr
dA
 2 r
dr
Instantaneous rate of change of the area with
dA  2 r dr
respect to the radius.
For tree ring growth, if the change in area is constant then dr
must get smaller as r gets larger.
3.4 Velocity and other Rates
of Change

from Economics:
Marginal cost is the first derivative of the cost function, and
represents an approximation of the cost of producing one
more unit.
3.4 Velocity and other Rates
of Change
Suppose it costs:  
Example 13:
c x  x 3
 6 x 2
 15 x
to produce x stoves. c   x   3 x 2
 12 x  15
If you are currently producing 10 stoves,
the 11th stove will cost approximately:
c  10   3 10 2  12 10  15
 300  120  15
The actual cost is: C  11  C  10 
 $195
  113  6  112  15 11   103  6 10 2  15 10  marginal cost

 770  550  $220 actual cost


3.4 Velocity and other Rates
of Change

Note that this is not a


great approximation –
Don’t let that bother you.

Marginal cost is a linear approximation of a curved


function. For large values it gives a good approximation
of the cost of producing the next item.
3.4 Velocity and other Rates
of Change
3.5 Derivatives of
Trigonometric Functions
Consider the function y  sin   
 slope
We could make a graph of the slope:
 1

 0
2
0 1

0
2
Now we connect the dots!
The resulting curve is a cosine curve.  1

d
sin  x   cos x
dx
3.5 Derivatives of
Trigonometric Functions
Proof

d sin( x  h)  sin x
sin x  lim
dx h 0 h
d sin x cos h  sin h cos x  sin x
sin x  lim
dx h0 h
d sin x (cos h  1)  sin h cos x
sin x  lim
dx h 0 h
d sin x (cos h  1) sin h cos x
sin x  lim  lim
dx h 0 h h 0 h
3.5 Derivatives of
Trigonometric Functions
=0 =1

d sin x (cos h  1) sin h cos x


sin x  lim  lim
dx h 0 h h 0 h

d
sin  x   cos x
dx
3.5 Derivatives of
Trigonometric Functions
Find the derivative of cos x

d cos( x  h)  cos x
cos x  lim
dx h0 h
d cos x cos h  sin h sin x  cos x
cos x  lim
dx h0 h
d cos x (cos h  1)  sin h sin x
cos x  lim
dx h0 h
d cos x (cos h  1) sin h sin x
cos x  lim  lim
dx h0 h h0 h
3.5 Derivatives of
Trigonometric Functions
=0 =1

d cos x (cos h  1) sin h sin x


cos x  lim  lim
dx h0 h h0 h

d
cos  x    sin x
dx
3.5 Derivatives of
Trigonometric Functions
We can find the derivative of tangent x by using the
quotient rule.
d cos 2 x  sin 2 x
tan x
dx cos 2 x
d sin x 1
dx cos x cos 2 x
cos x  cos x  sin x    sin x 
sec 2 x
cos 2 x
d
tan  x   sec 2 x
dx
3.5 Derivatives of
Trigonometric Functions
Derivatives of the remaining trig functions can
be determined the same way.
d d
sin x  cos x cot x   csc 2 x
dx dx

d d
cos x   sin x sec x  sec x  tan x
dx dx

d d
tan x  sec 2 x csc x   csc x  cot x
dx dx
3.5 Derivatives of
Trigonometric Functions

Jerk A sudden change in acceleration

Definition Jerk
Jerk is the derivative of acceleration. If a body’s position
at time t is s(t), the body’s jerk at time t is

da d 2v d 3s
j (t )   2  3
dt dt dt
3.5 Derivatives of
Trigonometric Functions
3.6 Chain Rule
Consider a simple composite function:
y  6 x  10 y  6 x  10 y  2u u  3x  5
y  2  3x  5
dy dy du
6 2 3
If u  3 x  5 dx du dx
then y  2u
6  23

dy dy du
 
dx du dx
3.6 Chain Rule
dy dy du
Chain Rule:  
dx du dx
If f  g is the composite of y  f  u  and u  g  x  ,
then:

 f  g    f at u  g  x   g at x  f ' ( g ( x))  g ' ( x)


example: f  x   sin x g  x   x2  4 Find:  f  g   at x  2

f   x   cos x g x   2x g  2  4  4  0

f   0  g   2 cos  0    2  2  1 4 4
3.6 Chain Rule
f  g  x    sin  x 2  4  dy
 cos  x 2  4   2 x
y  sin  x 2  4  dx

y  sin u u  x2  4
dy
dy du  cos  22  4   2  2
 cos u  2x dx
du dx
dy
 cos  0   4
dy dy du dx
 
dx du dx
dy dy
 cos u  2 x 4
dx dx
3.6 Chain Rule
Here is a faster way to find the derivative:

y  sin  x 2  4 

d 2
y  cos  x  4    x  4 
2
Differentiate the outside function...
dx

y  cos  x 2  4   2 x …then the inside function

At x  2, y  4
3.6 Chain Rule
d d
cos  3x  
2
cos 2  3 x 
dx dx
d
2 cos  3 x    cos  3 x 
dx
d The chain rule can be used
2 cos  3 x    sin  3 x    3 x  more than once.
dx
2 cos  3x   sin  3 x   3 (That’s what makes the
“chain” in the “chain rule”!)
6 cos  3 x  sin  3 x 
3.6 Chain Rule
Derivative formulas include the chain rule!

d n n 1 du d du
u  nu sin u  cos u
dx dx dx dx

d du d du
cos u   sin u tan u  sec u
2

dx dx dx dx

etcetera…
3.6 Chain Rule
Find dy
dx
dy
y  cos(3x 2  x)   sin(3 x 2  x)(6 x  1)
dx
dy
y  sin(cos(x))  cos(cos x)( sin x)
dx
dy
y  cos3 (4 x3  2 x)  3 cos2 (4 x3  2 x)( sin(4 x3  2 x))(12 x 2  2)
dx
dy
 (36 x 2  6) cos2 (4 x 3  2 x)( sin(4 x 3  2 x))
dx
3.6 Chain Rule
The chain rule enables us to find the slope of
parametrically defined curves:

The slope of a parametrized


dy dy dx curve is given by:
 
dt dx dt
dy
dy
dy
dt  dy  dt
dx dx
dx dx
dt
dt
3.6 Chain Rule

Example: These are the equations for


an ellipse.

x  3cos t y  2sin t

dx dy dy 2 cos t 2
 3sin t  2 cos t    cot t
dt dt dx 3sin t 3
3.7 Implicit Differentiation
This is not a function,
x2  y 2  1 but it would still be
nice to be able to find
the slope.
d 2 d 2 d
x  y  1 Do the same thing to both sides.
dx dx dx
Note use of chain rule.
dy
2x  2 y 0 dy 2 x
dx  dy x
dx 2 y 
dx y
dy
2y  2 x
dx
3.7 Implicit Differentiation
2 y  x 2  sin y This can’t be solved for y.
d d 2 d dy 2x
2y  x  sin y 
dx dx dx dx 2  cos y
dy dy
2  2 x  cos y This technique is called
dx dx implicit differentiation.
dy dy
2  cos y  2x
dx dx 1 Differentiate both sides w.r.t. x.
dy
 2  cos y   2 x 2 Solve for
dy
.
dx dx
3.7 Implicit Differentiation

Implicit Differentiation Process

1. Differentiate both sides of the equation with respect to x.


2. Collect the terms with dy/dx on one side of the equation.
3. Factor out dy/dx .
4. Solve for dy/dx .
3.7 Implicit Differentiation
Find the equations of the lines tangent and normal to the
  7 at (1, 2) .
2 2
curve x xy y
x 2  xy  y 2  7 Note product rule. dy y  2 x

dx 2 y  x
 dy  dy
2x   x  y  2 y 0
 dx  dx
dy dy 2  2  1 22 4
2x  x  y  2 y 0 m  
dx dx 2  2   1 4 1 5
dy
 2 y  x  y  2x
dx
3.7 Implicit Differentiation

Find the equations of the lines tangent and normal to the


curve x 2  xy  y 2  7 at (1, 2) .
4 tangent: normal:
m 5
5 4 y  2    x  1
y  2   x  1
5 4
4 4 5 5
y2 x y2  x
5 5 4 4

4 14 5 3
y  x y  x
5 5 4 4
3.7 Implicit Differentiation
3.7 Implicit Differentiation
d2y
Find 2 if 2 x 3
 3 y 2
7 .
dx
y  2 x  x 2 y
y  
2x  3y  7
3 2
y2
6 x  6 y y  0
2 2x x 2
y   2 y
y y
6 y y  6 x 2 Substitute y
2 2
2x x x
6 x 2 y   2
y  y y y back into the
6 y equation.
x2 2x x 4
y  y   3
y y y
3.7 Implicit Differentiation

Rational Powers of Differentiable Functions

Power Rule for Rational Powers of x

If n is any rational number, then


d n
x  nx n1
dx
3.7 Implicit Differentiation
Proof: Let p and q be integers with q > 0.
p

yx q
Raise both sides to the q power

y x
q p
Differentiate with respect to x

q 1 dy p 1
qy  px Solve for dy/dx
dx
3.7 Implicit Differentiation
dy px p1 Substitute for y
 q1
dx qy
dy px p1
 Remove parenthesis
dx q( x p / q ) q1
p 1
dy px
 p p / q Subtract exponents
dx qx
dy px p1( p p / q ) dy p ( p / q )1
  x
dx q dx q
3.8 Derivatives of Inverse
Trigonometric Functions
Slopes are
y  x2
reciprocals.
Because x and y are
reversed to find the  2, 4  m4
reciprocal function, the
following pattern always  4, 2  1 y x
m
holds: 4

Derivative Formula for Inverses: The derivative of f 1 ( x)

1
evaluated at f (a )
df 1
 is equal to the reciprocal of
dx x f (a)
df
the derivative of f ( x)
dx x a
evaluated at a .
3.8 Derivatives of Inverse
Trigonometric Functions
We can use implicit d y  sin 1 x
sin 1 x
differentiation to find: dx
y  sin x

y  sin 1 x

sin y  x d d
sin y  x
dx dx

dy dy 1
cos y 1 
dx dx cos y
3.8 Derivatives of Inverse
Trigonometric Functions
We can use implicit d
differentiation to find: sin 1 x sin 2 y  cos 2 y  1
dx
y  sin 1 x
d d cos 2 y  1  sin 2 y
sin y  x sin y  x
dx dx cos y   1  sin 2 y
dy dy 1  
cos y 1  But   y 
dx dx 2 2
1  sin 2 y
so cos y is positive.
dy 1
 dy 1
dx cos y   cos y  1  sin 2 y
dx 1  x2
3.8 Derivatives of Inverse
Trigonometric Functions

y  sin 1 x dy 1
 1
sin y  x
dx cos(sin 1 x) x
dy sin 1 x
cos y 1 dy 1
dx  1  x2
dx 1  x2
dy 1

dx cos y
3.8 Derivatives of Inverse
Trigonometric Functions
d
Find tan 1 x
dx

y  tan 1 x dy 1 1  x2

tan y  x dx sec2 (tan 1 x) x
dy tan 1 x
2
sec y 1 dy 1
dx  1
dx 1  x 2
dy 1

dx sec2 y
3.8 Derivatives of Inverse
Trigonometric Functions
d
Find sec 1 x
dx

y  sec 1 x dy 1

dx sec(sec 1 x) tan(sec 1 x)
sec y  x
dy 1
dy 
sec y tan y  1 dx | x | x 2  1 x
dx
dy 1 x2 1
 sec 1 x
dx sec y tan y
1
3.8 Derivatives of Inverse
Trigonometric Functions
  
cos x   sin x cot x   tan x csc x   sec 1 x
1 1 1 1 1

2 2 2

d 1 du d 1 1 du
1
sin u  cos u  
dx dx 1  u 2 dx
1  u 2 dx
d 1 du d 1 du
tan 1 u  1
cot u  
dx 1  u 2 dx dx 1  u 2 dx
d 1 1 du d 1 1 du
sec u  csc u  
dx u u 2  1 dx dx u u 2  1 dx
3.8 Derivatives of Inverse
Trigonometric Functions
Your calculator contains all
1 1
1
six inverse trig functions. sec x  cos  
However it is occasionally  x
still useful to know the
following:

cot x   tan 1 x
1

1 1
1
csc x  sin  
 x
3.8 Derivatives of Inverse
Trigonometric Functions
dy
Find
dx
dy 1 6x
1
y  cos (3 x ) 2  (6 x )  
dx (1  (3x )
2 2
1  9x4

1
1 dy 1  1 1
y  cot     2   2
 x dx 1  x  x 1
1 2
x
dy 1
y  x sec 1 x x  (sec1 x)(1)
dx | x | x2 1
3.9 Derivatives of Exponential
and Logarithmic Functions
Look at the graph of ye x

If we assume this to be
The slope at x = 0 true, then:
appears to be 1. 0 h
e e 0
lim 1
h 0 h

definition of derivative
3.9 Derivatives of Exponential
and Logarithmic Functions
Now we attempt to find a general formula for the
derivative of y  e x
using the definition.

d x e xh  e x  h
1 
dx
 
e  lim
h
 e  lim 
x e

 h 
h 0 h 0

e x  eh  e x
 lim
h 0 h This is the slope at x = 0, which
we have assumed to be 1.
 x eh  1 
 lim  e  
h 0
 h   e 1
x
e x
d x
dx
 
e e x


3.9 Derivatives of Exponential
and Logarithmic Functions

x
e is its own derivative!

If we incorporate the chain rule: d u u du


e e
dx dx
x
We can now use this formula to find the derivative of a
3.9 Derivatives of Exponential
and Logarithmic Functions
d x
dx
 
a d x
a  a ln a
x

dx
dx

d ln a x
e  Incorporating the chain rule:

d x ln a
 e  d u du
dx
dx
 
a  a ln a
u

dx
d
e   x ln a 
x ln a

dx
3.9 Derivatives of Exponential
and Logarithmic Functions

So far today we have:

d u u du d du
e e
dx
 
a  a ln a
u u

dx
dx dx

Now it is relatively easy to find the derivative of ln x .


3.9 Derivatives of Exponential
and Logarithmic Functions
dy 1
y  ln x  y
dx e
e x
y

d 1
d y d ln x 
dx
 e   x
dx
dx x

y dy
d 1 du
e 1 ln u 
dx dx u dx
3.9 Derivatives of Exponential
and Logarithmic Functions
To find the derivative of a common log function, you
could just use the change of base rule for logs:

d d ln x 1 d 1 1
log x   ln x  
dx dx ln10 ln10 dx ln10 x
The formula for the derivative of a log of any base
other than e is:

d 1 du
log a u 
dx u ln a dx
3.9 Derivatives of Exponential
and Logarithmic Functions
d u u du d du
e e
dx
 
a  a ln a
u u

dx
dx dx

d 1 du d 1 du
ln u  log a u 
dx u dx dx u ln a dx
3.9 Derivatives of Exponential
and Logarithmic Functions
Find y’

ye 2x
y ' 2e 2x

x2
y3 x2
y '  3 ln(3)(2 x)
1 3
y  ln x 3
y '  3 (3 x ) 
2

x x
1 1
y  sin (e ) 4x
y'  4x
(e )(4)
1  (e )
4x 2
3.9 Derivatives of Exponential
and Logarithmic Functions
Logarithmic differentiation

Used when the variable is in the base and the exponent

dy
y = xx  y 1 ln x 
dx
ln y = ln xx
dy
ln y = x ln x  x x 1 ln x 
dx
1 dy 1
 x   ln x
y dx  x

You might also like