Differentiation of Logarithmic Functions 3
Differentiation of Logarithmic Functions 3
dy dy 1 1
y = ln x ⇐⇒ ey = x =⇒ ey = 1 =⇒ = y =
dx dx e x
Example We can combine these rules with the chain rule. For example:
d 1 d 2 2x
log4 ( x2 + 7) = 2 · ( x + 7) = 2
dx ( x + 7)(ln 4) dx ( x + 7)(ln 4)
Logarithmic Differentiation
This is a powerful technique, allowing us to use the log laws to simplify an expression before differ-
entiating. For example, suppose that you wanted to differentiate
3x2 + 1
g( x ) = ln √
1 + x2
Blindly applying the chain rule, we would treat g as ln(lump), then be stuck with a hideously un-
pleasant quotient rule calculation:
√
0 d 3x2 + 1 1 d 3x2 + 1 1 + x2 d 3x2 + 1
g (x) = ln √ = 3x2 +1 √ = √
dx 1 + x2 √
2
dx 1 + x2 3x2 + 1 dx 1 + x2
1+ x
√ √
1 + x 6x 1 + x2 − (3x2 + 1) · x (1 + x2 )−1/2
2
= ·
3x2 + 1 1 + x2
1 2 2
6x (1 + x ) − (3x + 1) · x x (3x2 + 5)
= 2 · =
3x + 1 1 + x2 (3x2 + 1)(1 + x2 )
1
Thankfully there is a better way: apply the logarithm laws first,
3x2 + 1 1
g( x ) = ln √ = ln(3x2 + 1) − ln(1 + x2 )
1+x 2 2
and then differentiate:
1 d 1 d
g0 ( x ) = (3x2 + 1) − (1 + x 2 )
3x2
+ 1 dx 2
2(1 + x ) dx
6x x
= 2 −
3x + 1 1 + x2
A little algebra shows that we have the same solution, in a much simpler way.
Logarithmic differentiation is so useful, that it is most often applied to expressions which do not
contain any logarithms at all. Suppose instead that we had wanted to differentiate
3x2 + 1
f (x) = √
1 + x2
Then g( x ) = ln f ( x ) is easy to differentiate and, since
f 0 (x)
g0 ( x ) = =⇒ f 0 ( x ) = f ( x ) g0 ( x )
f (x)
we can immediately write the derivative:
3x2 + 1 6x x
0
f (x) = √ −
1 + x2 3x2 + 1 1 + x2
dy
3. Solve for dx .
This is especially useful if the form of f ( x ) is something that simplifies nicely under the logarithm
laws: for example products, quotients and powers.
Examples
(2x + 1)1/3 (1 + x2 )
1. Let y = . Then
(2 + x4 )2/5
1 2
ln(2x + 1) + ln(1 + x2 ) − ln(2 + x4 )
ln y =
3 5
1 dy 2 2x 8x3
=⇒ = + −
y dx 3(2x + 1) 1 + x2 2 + x4
dy (2x + 1)1/3 (1 + x2 ) 2 2x 8x3
=⇒ = + −
dx (2 + x4 )2/5 3(2x + 1) 1 + x2 2 + x4
2
√
x.
√
2. Let y = (sin x ) Then ln y = x ln(sin x ), from which
1 dy 1 √ cos x
= x −1/2 ln(sin x ) + x · (product rule)
y dx 2 sin x
1
= √ [ln(sin x ) + 2 cot x ]
2 x
√
dy y (sin x ) x
=⇒ = √ [ln(sin x ) + 2 cot x ] = √ [ln(sin x ) + 2 cot x ]
dx 2 x 2 x
e as a limit
1 n
We have already seen the suggestion that lim 1 + = e when we discussed compound interest.
n→∞ n
Here is a proof, using the definition of derivative. Let f ( x ) = ln x, then
1/h
1 df ln( x + h) − ln x x+h
= = lim+ = lim+ ln
x dx h →0 h h →0 x
1 1
Now write n = h and y = x to obtain
y n y n y n
y = lim ln 1 + = ln lim 1 + =⇒ ey = lim 1 +
n→∞ n n→∞ n n→∞ n
This is usually written as
x n
lim (1 + x )1/x = e
e x = lim 1 + or
n→∞ n x →0
Homework
dy
1. If x y = y x , use implicit and logarithmic differentiation to find dx .
f ( x ) = a g( x )
d
( g( x ))h(x)
dx