Exponential, Logarithmic Functions and Logarithmic Differentiation
Exponential and Logarithmic Functions
The Exponential Function
For a positive base b>0,b=1, the exponential function is
y=bx.
In calculus, the most important base is the mathematical constant e≈2.718. The function
y=ex
is called the natural exponential function.
For y=ex:
Domain:R
Range:(0,∞)
Key properties
It always passes through (0,1) because e0=1.
It is always positive.
It is strictly increasing.
Its derivative is the function itself.
The Logarithmic Function
If b>0,b=1, then
logba=x⟺bx=a.
Thus, the logarithmic function is the inverse of the exponential function. When the base is e, it is called the natural logarithm, written as
lnxorlogex.
For y=lnx:
Domain:(0,∞)
Range:R
Key properties
It always passes through (1,0) because ln1=0.
It is defined only for positive real numbers.
It is strictly increasing.
It is the inverse of ex.
The graphs of y=ex and y=lnx are reflections of each other in the line y=x.
Properties of Logarithms
Let x,y>0 and let the base b satisfy b>0,b=1. Then:
Product rulelogb(xy)=logbx+logby
Quotient rulelogb(yx)=logbx−logby
Power rulelogb(xn)=nlogbx
Change of base formulalogap=logbalogbp
In particular,
logax=lnalnx.
Inverse relation with exponentialselnx=x(x>0),ln(ex)=x.
These identities are extremely important in differentiation, especially in logarithmic differentiation.
Important caution:log(A+B)=logA+logB.
This is one of the most common mistakes students make.
Note: In many calculus contexts, when the base is not specified, logx is taken to mean the natural logarithm lnx. In school-level problems, follow the convention being used in the chapter or textbook.
Derivatives of Exponential and Logarithmic Functions
The standard derivative formulas are:
Derivative of natural exponential functiondxd(ex)=ex
Derivative of natural logarithmdxd(lnx)=x1,x>0
Derivative of general exponential functiondxd(ax)=axlna,a>0,a=1
Derivative of logarithm to base adxd(logax)=xlna1,x>0
These formulas are often used together with the chain rule, product rule, and quotient rule. For example,
dxd(eu(x))=eu(x)u′(x),
and
dxd(ln(u(x)))=u(x)u′(x)
whenever u(x)>0.
Logarithmic Differentiation
Logarithmic differentiation is a powerful technique used when ordinary differentiation becomes long or awkward.
It is especially useful in the following situations:
when the function is of the form
y=[u(x)]v(x),
that is, a variable base raised to a variable exponent;
when the function is a product or quotient of many complicated factors;
when fractional powers, radicals, and multiple terms appear together in a form that can be simplified using logarithms.
Steps of logarithmic differentiation
Step 1: Let
y=f(x).
Take natural logarithm on both sides:
lny=ln(f(x)).
Step 2: Use logarithmic properties to simplify the right-hand side. Convert:
products into sums,
quotients into differences,
powers into multipliers.
Step 3: Differentiate both sides implicitly with respect to x.
Since
dxd(lny)=y1dxdy,
this produces an equation involving dxdy.
Step 4: Solve for dxdy.
Step 5: Replace y by its original expression so that the final answer is written purely in terms of x.
Important caution: Logarithmic differentiation cannot be applied directly to a sum such as
y=u+v
by writing lny=lnu+lnv, because that is false. In such cases, first split the function into separate terms and differentiate each part individually.
Solved Examples
Example 1: Chain Rule with Exponential Function
Differentiate y=e−x with respect to x.
Solution:
The function is a composition of the exponential function and the linear function −x.
Let
u(x)=−x.
Then
y=eu(x).
Using the chain rule,
dxdy=eu(x)⋅u′(x).
Now,
u′(x)=dxd(−x)=−1.
Therefore,
dxdy=e−x(−1)=−e−x.
Answer:−e−x
Example 2: Quotient Rule with Exponential Function
Find the derivative of y=sinxex.
Solution:
Let
u=ex,v=sinx.
Then
y=vu.
Using the quotient rule,
dxdy=v2u′v−uv′.
Now,
u′=ex,v′=cosx.
So,
dxdy=sin2xexsinx−excosx.
Factor out ex in the numerator:
dxdy=sin2xex(sinx−cosx).
Answer:sin2xex(sinx−cosx)
Example 3: Chain Rule with Logarithmic Function
Differentiate y=log(cosex) with respect to x.
Solution:
Assuming log denotes natural logarithm, we write
y=ln(cosex).
This is a composition of three functions:
outermost: lnu,
middle: cosv,
innermost: ex.
Using the chain rule,
dxdy=cosex1⋅dxd(cosex).
Now,
dxd(cosex)=−sin(ex)⋅dxd(ex).
Since
dxd(ex)=ex,
we get
dxd(cosex)=−sin(ex)ex.
Substitute back:
dxdy=cos(ex)−exsin(ex)=−extan(ex).
Answer:−extan(ex)
Example 4: Basic Logarithmic Differentiation
Differentiate y=xx with respect to x.
Solution:
Since both the base and exponent involve the variable x, ordinary power rules do not apply directly. So we use logarithmic differentiation.
Take natural logarithm on both sides:
lny=ln(xx).
Using the logarithmic power rule,
lny=xlnx.
Now differentiate both sides with respect to x.
On the left,
dxd(lny)=y1dxdy.
On the right, use the product rule:
dxd(xlnx)=x⋅x1+lnx⋅1=1+lnx.
So,
y1dxdy=1+lnx.
Multiply both sides by y:
dxdy=y(1+lnx).
Now substitute y=xx:
dxdy=xx(1+lnx).
Answer:xx(1+lnx)
Example 5: Logarithmic Differentiation for Complex Products
Differentiate y=(x−3)(x−4)(x−5)(x−1)(x−2) with respect to x.
Solution:
First rewrite the square root as power 21:
y=((x−3)(x−4)(x−5)(x−1)(x−2))1/2.
Take natural logarithm on both sides:
lny=21ln((x−3)(x−4)(x−5)(x−1)(x−2)).
Now expand using logarithmic rules:
lny=21[ln(x−1)+ln(x−2)−ln(x−3)−ln(x−4)−ln(x−5)].
Differentiate both sides:
y1dxdy=21[x−11+x−21−x−31−x−41−x−51].
Multiply through by y:
dxdy=2y[x−11+x−21−x−31−x−41−x−51].
Finally substitute the original value of y back:
dxdy=21(x−3)(x−4)(x−5)(x−1)(x−2)[x−11+x−21−x−31−x−41−x−51].
Solution:
A logarithm cannot be taken directly over a sum in the form
ln(A+B)=lnA+lnB,
which is false. So we must differentiate the two terms separately.
Let
u=xsinx,v=(sinx)cosx.
Then
y=u+v⟹dxdy=dxdu+dxdv.
First term:u=xsinx
Take logarithm:
lnu=sinxlnx.
Differentiate:
u1dxdu=cosxlnx+sinx⋅x1.
So,
dxdu=xsinx(cosxlnx+xsinx).
Second term:v=(sinx)cosx
Take logarithm:
lnv=cosxln(sinx).
Differentiate using product rule:
v1dxdv=(−sinx)ln(sinx)+cosx⋅sinxcosx.
Since
sinxcosx=cotx,
this becomes
v1dxdv=−sinxln(sinx)+cosxcotx.
Hence,
dxdv=(sinx)cosx(cosxcotx−sinxln(sinx)).
Add both parts:
dxdy=xsinx(xsinx+cosxlnx)+(sinx)cosx(cosxcotx−sinxln(sinx)).
Example 7: Implicit Equation with Logarithmic Differentiation
Find dxdy if yx=xy.
Solution:
Take natural logarithm on both sides:
ln(yx)=ln(xy).
Using power rule of logarithms,
xlny=ylnx.
Now differentiate both sides implicitly with respect to x.
On the left, using the product rule:
dxd(xlny)=lny+x⋅y1dxdy.
On the right:
dxd(ylnx)=dxdylnx+y⋅x1.
So,
lny+yxdxdy=lnxdxdy+xy.
Bring derivative terms to one side:
yxdxdy−lnxdxdy=xy−lny.
Factor out dxdy:
dxdy(yx−lnx)=xy−lny.
Hence,
dxdy=yx−lnxxy−lny.
Multiplying numerator and denominator suitably to remove fractions,
dxdy=x(x−ylnx)y(y−xlny).
Answer:x(x−ylnx)y(y−xlny)
Example 8: Derivative of a Function with Respect to Another Base
Differentiate y=ax with respect to x, where a is a positive constant, using logarithmic differentiation.
Solution:
Take natural logarithm of both sides:
lny=ln(ax)=xlna.
Differentiate both sides:
y1dxdy=lna.
Now multiply by y:
dxdy=ylna.
Substitute y=ax:
dxdy=axlna.
Answer:axlna
Example 9: Change of Base Formula
Find the derivative of y=log7(logx).
Solution:
Use the change-of-base formula:
log7(logx)=ln7ln(logx).
So,
y=ln71ln(logx).
Treat ln71 as a constant and differentiate:
dxdy=ln71⋅dxd[ln(logx)].
Now use the chain rule:
dxd[ln(logx)]=logx1⋅dxd(logx).
Assuming logx=lnx, we get
dxd(logx)=x1.
Therefore,
dxdy=ln71⋅logx1⋅x1=xln7logx1.
Answer:xln7logx1
Example 10: Inverse Trigonometry inside Exponents
Differentiate y=esin−1x.
Solution:
This is a composition of the exponential function and inverse sine function.
Using the chain rule,
dxdy=esin−1x⋅dxd(sin−1x).
Now use the standard derivative formula:
dxd(sin−1x)=1−x21.
Therefore,
dxdy=1−x2esin−1x.
Answer:1−x2esin−1x
Example 11: Complex Logarithmic Differentiation
Find dxdy if y=xx1.
Solution:
Since both base and exponent involve x, use logarithmic differentiation.
Take natural logarithm:
lny=ln(x1/x)=x1lnx.
Differentiate both sides:
y1dxdy=dxd(xlnx).
Use either product rule or quotient rule. Writing as x−1lnx,
dxd(x−1lnx)=x−1⋅x1+lnx⋅(−x−2).
So,
y1dxdy=x21−x2lnx=x21−lnx.
Multiply through by y:
dxdy=y⋅x21−lnx.
Now substitute y=x1/x:
dxdy=x1/x⋅x21−lnx.
Answer:x1/x(x21−lnx)
Ready to test your knowledge?
Take a quick interactive quiz on this topic —
free, works without login.