Module 15 - Logarithmic Differentiation
Module 15 - Logarithmic Differentiation
Differential Calculus
SOS Math
LOGARITHMIC DIFFERENTIATION
and
2.) D { x } = x ( 2 x +3 ) (2) ln x
( 2 x+3 )
BOTH OF THESE SOLUTIONS ARE WRONG because the ordinary rules of differentiation
do not apply. Logarithmic differentiation will provide a way to differentiate a function of this
type. It requires deft algebra skills and careful use of the following unpopular, but well-
known, properties of logarithms. Though the following properties and methods are true for a
logarithm of any base, only the natural logarithm (base e), ln, will be used in this problem set.
1. ln 1 = 0
2. ln e = 1
3. ln ex = x
4. ln yx = x ln y
5. ln (xy) = ln x + ln y
6. ln (x/y) = ln x – ln y
1. ln (x + y) = ln x + ln y
2. ln (x – y) = ln x – ln y
3. ln (xy) = ln x ln y
4. ln (x/y) = ln x/ln y
5. ln x / ln y = ln x – ln y
SOLUTION 1:
Because a variable is raised to a variable power in this function, the ordinary rules of
differentiation DO NOT APPLY! The function must first be revised before a derivative can
be taken. Begin with
y = xx
ln y = x ln x
1 1
y ' = x + (1) ln x
y x
= 1 + ln x
y ' = y ( 1+ln x ) = x x ( 1+ln x )
x
y = xe
PROBLEM 2: Differentiate
SOLUTION 2:
Because a variable is raised to a variable power in this function, the ordinary rules of
differentiation DO NOT APPLY! The function must first be revised before a derivative can
be taken. Begin with
x
y = xe
Apply the natural logarithm to both sides of this equation getting
x
ln y = ln x e
= e x ln x
Differentiate both sides of this equation. The left-hand side requires the chain rule since y
represents a function of x. Use the product rule on the right-hand side. Thus, beginning with
y = e x ln x
and differentiating, we get
1
y {}
1
y ' = e x + e x ln x
x
x
e x
¿ + e x ln x
x x
x x
e +xe ln x
¿
x
e x (1+x ln x )
¿
x
SOLUTION 3:
Because a variable is raised to a variable power in this function, the ordinary rules of
differentiation DO NOT APPLY! The function must first be revised before a derivative can
be taken. Begin with
y = (3x2+5)1/x
Differentiate both sides of this equation. The left-hand side requires the chain rule since y
represents a function of x. Use the quotient rule and the chain rule on the right-hand side.
Thus, beginning with
ln ( 3 x 2 +5 )
ln y =
x
and differentiating, we get
1
y'=
x
{ 1
2
3 x +5 }
(6 x ) − ln ( 3 x +5 ) (1)
2
y x2
=
6 x2
3 x 2+ 5
− ln ( 3 x 2
+5 ) {
3 x2+ 5
3 x2+ 5 }
x2
6 x 2 −( 3 x 2 +5 ) ln ( 3 x 2 +5 ) 1
¿
3 x 2 +5 x2
6 x2 −( 3 x 2 +5 ) ln ( 3 x 2 + 5 )
y' = y
x 2 ( 3 x2+ 5 )
1/ x 6 x −( 3 x +5 ) ln ( 3 x +5 )
2 2 2
¿ ( 3 x 2 +5 )
x 2 ( 3 x 2 +5 )
( 3 x 2 +5 )( 1/x − 1 ) { 6 x 2 −( 3 x 2 +5 ) ln ( 3 x 2 +5 ) }
y '=
x2
3
y = ( sin x )x
PROBLEM 4: Differentiate
SOLUTION 4:
Because a variable is raised to a variable power in this function, the ordinary rules of
differentiation DO NOT APPLY! The function must first be revised before a derivative can
be taken. Begin with
x3
y = ( sin x )
1
y
y ' = x3
1
{ }
sin x
cos x + ( 3x 2 ) ln(sin x)
x/2
PROBLEM 5: Differentiate y = 7 x ( cos x )
SOLUTION 5:
Because a variable is raised to a variable power in this function, the ordinary rules of
differentiation DO NOT APPLY! The function must first be revised before a derivative can
be taken. Begin with
y = 7 x ( cos x )x/2
Apply the natural logarithm to both sides of this equation and use the algebraic properties of
logarithms, getting
ln y = ln {(7 x )(cos x )x /2 }
¿ ln(7 x ) + ln(cos x ) x /2
¿ ln (7 x ) + ( x /2 ) ln(cos x )
Differentiate both sides of this equation. The left-hand side requires the chain rule since y
represents a function of x. Use the product rule and the chain rule on the right-hand side.
Thus, beginning with
ln y = ln (7 x) + (x /2) ln(cos x )
1
y
y'=
1
7x{ }7 + ( x/2)
1
( )
cos x
(−sin x ) + (1/2) ln(cos x)
1 x sin x ln (cos x )
= − +
x 2 cos x 2
Multiply both sides of this equation by y, divide out a factor of x , combine the powers of (cos
x), we get
SOLUTION 6:
Because a variable is raised to a variable power in this function, the ordinary rules of
differentiation DO NOT APPLY! The function must first be revised before a derivative can
be taken. Begin with
y = √ x√ x ex
2
Apply the natural logarithm to both sides of this equation and use the algebraic properties of
logarithms, getting
ln y = ln ( √ x √ x e x )
2
= ln (√ x √ x ) + ln ( e x )
2
= √ x ln( √ x) + x2 ln e
ln y = √ x ln( √ x) + x
2
Differentiate both sides of this equation. The left-hand side requires the chain rule since y
represents a function of x. Use the product rule and the chain rule on the right-hand side.
Thus, beginning with
ln y = √ x ln( √ x) + x 2
1
y
y ' = √x( )
1
2√ x
x−1/2 + (1/2) x−1/2 ln( √ x) + 2 x
1 ln ( √ x)
¿ + +2 x
2 √ x 2 √x
1+ln( √ x ) + 4 x 3 /2
¿
2√x
Multiply both sides of this equation by y and combine the powers of √ x , we
1+ln( √ x ) + 4 x 3/2
y' =y
2√ x
x x 2 1+ ln( √ x ) + 4 x
3 /2
¿ √x e √
2√x
1 ( √ x−1) x 2
= √x e {1+ln( √ x ) + 4 x }
3 /2
2
y = x ln x (sec x)3 x
PROBLEM 7: Differentiate
SOLUTION 7:
Because a variable is raised to a variable power in this function, the ordinary rules of
differentiation DO NOT APPLY! The function must first be revised before a derivative can
be taken. Begin with
y = x ln x (sec x)3 x
Apply the natural logarithm to both sides of this equation and use the algebraic properties of
logarithms, getting
ln y = ln ( x ln x (sec x )3 x )
¿ ln x ( ln x ) + ln(sec x )3 x
¿ (ln x )(ln x ) + 3 x ln(sec x )
ln y = (ln x )2 + 3 x ln (sec x )
Differentiate both sides of this equation. The left-hand side requires the chain rule since y
represents a function of x. Use the product rule and the chain rule on the right-hand side.
Thus, beginning with
1
y () ( )
1
y ' = 2 ( ln x ) + 3 x
x
1
sec x
( sec x tan x ) + (3 )ln(sec x )
2 ln x
= + 3 x tan x + 3 ln(sec x)
x
2 ln x + 3 x 2 tan x + 3 x ln(sec x )
=
x
Multiply both sides of this equation by y, getting
2 ln x + 3 x 2 tan x + 3 x ln(sec x)
y' =y
x
2 ln x + 3 x 2 tan x + 3 x ln(sec x )
¿ x ln x (sec x )3 x
x
y' = x
( ln x − 1 )
( sec x )3 x {2 ln x + 3 x2 tan x + 3 x ln(sec x)}
( ln x ) x
y = 3 x +1
2
PROBLEM 8: Differentiate
SOLUTION 8:
Because a variable is raised to a variable power in this function, the ordinary rules of
differentiation DO NOT APPLY! The function must first be revised before a derivative can
be taken. Begin with
( ln x ) x
y=
23 x +1 .
Apply the natural logarithm to both sides of this equation and use the algebraic properties of
logarithms, getting
ln y = ln { }
( ln x )x
23 x +1
( )
¿ ln ( ln x ) x − ln 2 3 x +1
¿ x ln ( ln x ) − ( 3 x +1 ) ln 2
Differentiate both sides of this equation. The left-hand side requires the chain rule since y
represents a function of x. Use the product rule and the chain rule on the right-hand side.
Thus, beginning with
ln y= x ln ( ln x ) − ( 3 x+1 ) ln2
1
y
y'= x
1
( )( )
ln x x
1
+ ( 1 ) ln ( ln x ) − ( 3 ) ln 2
1
= + ln ( ln x ) − ln23
ln x
1 + ( ln x ) ln ( ln x ) − ( ln8 ) ln x
¿
ln x
1 + ( ln x ) ln ( ln x ) − ( ln 8 ) ln x
y' =y
ln x
( ln x )x 1 + ( ln x ) ln ( ln x ) − ( ln 8 ) ln x
= 3 x +1
2 ln x
( ln x )( x−1 ) { 1 + ( ln x ) ln ( ln x ) − ( ln 8 ) ln x }
¿ 3 x +1
2
x 2 x ( x−1 )3
y= 4
PROBLEM 9: Differentiate ( 3+5 x )
SOLUTION 9:
Because a variable is raised to a variable power in this function, the ordinary rules of
differentiation DO NOT APPLY! The function must first be revised before a derivative can
be taken. Begin with
x 2 x ( x−1 )3
y=
( 3+5 x )4
Apply the natural logarithm to both sides of this equation and use the algebraic properties of
logarithms, getting
ln y =ln
{
x 2 x ( x−1 )3
( 3+5 x )4 }
¿ ln ( x2 x ( x−1 )3 ) − ln ( 3+5 x )4
¿ ln x 2 x + ln ( x−1 )3 − ln ( 3+5x )4
ln y= 2 x ln x + 3 ln ( x−1 ) − 4 ln ( 3=5 x )
Differentiate both sides of this equation. The left-hand side requires the chain rule since y
represents a function of x. Use the product rule and the chain rule on the right-hand side.
Thus, beginning with
ln y= 2 x ln x + 3 ln ( x−1 ) − 4 ln ( 3=5 x )
1
y
y ' = 2x ()
1
x
+ ( 2 ) ln x + 3
1
x−1 ( ) ( 1) − 4( 1
3+5 x )
(5)
3 20
= 2 + 2 ln x + −
x−1 3+5 x
( 2+2 ln x ) ( x−1 ) ( 3+5 x ) + 3 ( 3+5 x ) − 20 ( x−1 )
=
( x−1 )( 3+5 x )
x 5 e x ( 4 x+3 )
f ( x )= 2
5 ln x ( 3−x )
PROBLEM 10: Consider the function . Find an equation of the line
tangent to the graph of f at x=1.
SOLUTION 10:
First note that
( 1 )5 e1 ( 4(1 )+3 ) 7 e
f (1) = 2
=
5 ln1 ( 3−(1 ) ) 4
x = 1 and y = (7/4)e .
Nowhere in the function f is a variable raised to a variable power. Thus, the ordinary rules of
differentiation DO APPLY! However, the function is so algebraically complicated that use of
the ordinary rules of differentiation would be somewhat unpleasant. Even though it is not
necessary, differentiation will be considerably easier if we FIRST APPLY THE NATURAL
LOGARITHM. Begin with
x 5 e x ( 4 x+3 )
f ( x )= 2
5 ln x ( 3−x )
Apply the natural logarithm to both sides of this equation and use the algebraic properties of
logarithms, getting
ln f ( x )= ln
{x 5 e x ( 4 x +3 )
5 ln x ( 3−x )
2 }
¿ ln { x5 e x ( 4 x +3 ) } − ln {5ln x ( 3−x ) }
2
¿ 5 ln x + x + ln ( 4 x +3 ) − ( ln 5 ) ln x − 2 ln (3−x )
Differentiate both sides of this equation. The left-hand side requires the chain rule since f(x)
represents a function of x. Use the chain rule on the right-hand side. Thus, beginning with
{ 5
f ' ( x) = f ( x ) + 1 +
x
4
4 x+3 x
−
ln 5 2
+
3−x }
Engr. Caesar Pobre Llapitan Page 10
Solved Problems
Differential Calculus
SOS Math
SOLUTION 11:
In this function the only term that requires logarithmic differentiation is x1/x. Begin with
y = x1/x
Apply the natural logarithm to both sides of this equation and use the algebraic properties of
logarithms, getting
ln y = ln x 1/ x
ln x
¿
x
Differentiate both sides of this equation. The left-hand side requires the chain rule since y
represents a function of x. Use the quotient rule on the right-hand side. Thus, beginning with
ln x
ln y =
x
1
y'= 2
x (1x ) − ( ln x ) (1)
y x
1−ln x
y '= y 2
x
1−ln x
¿ x 1/ x 2
x
1/ x
x ( 1−ln x )
¿ 2
x
2 x 2 1/x
Now return to the original function f ( x ) = π + 2 + x + x . Differentiating, we get
x 1/x ( 1−ln x )
f ' ( x ) = ( 0 ) + 2 x ln 2 + 2 x +
x2
x 1/x ( 1−ln x )
¿ 2 x ln 2 + 2 x + 2
x
SOLUTION 12:
Because a variable is raised to a variable power in this function, the ordinary rules of
differentiation DO NOT APPLY! The function must first be revised before a derivative can
be taken. Begin with
4
x
y = xx
Apply the natural logarithm to both sides of this equation and use the algebraic properties of
logarithms, getting
ln y = ln ( x )
4
xx
4
= x x ln x
We CANNOT yet differentiate this expression since a variable is still raised to a variable
power. Apply the natural logarithm AGAIN to both sides of this equation! Begin with
4
ln y = x x ln x
Apply the natural logarithm to both sides of this equation and use the algebraic properties of
logarithms, getting
ln ( ln y ) = ln ( x x ln x )
4
4
= ln x x + ln ( ln x )
ln ( ln y ) = x 4 ln x + ln ( ln x )
Differentiate both sides of this equation. The left-hand side requires the chain rule since y
represents a function of x. Use the product rule and the chain rule on the right-hand side.
Thus, beginning with
ln ( ln y ) = x 4 ln x + ln ( ln x )
and differentiating, we get
( )( )
1
ln y y
1 1
()
y ' = x 4 + ( 4 x3 ) ln x +
x
1 1
ln x x ( )
1
¿ ( x 3 +4 x 3 ln x ) +
x ln x
x 4 ( 1+4 ln x ) ln x + 1
y ' = y ln y
x ln x
4
x x ( 1+4 ln x ) ln x + 1
¿ x ln ( x )
4 4
x
xx
x ln x
x 4 ( 1+4 ln x ) ln x + 1
= x ( x ) ln x
4
x 4
x x
x ln x
( 4
+ x 4−1)
{ x 4 ( 1+4 ln x ) ln x + 1 }
x
y' = x x