MAT1051 · Week 7 · The Derivative of Logarithmic, Exponential and Inverse Trigonometric Functions
Derivatives of logarithmic, exponential and inverse trigonometric functions
Derivatives of e^x, a^x, ln x, log_a x and arcsin, arccos, arctan, logarithmic differentiation and the derivative of an inverse function. How to solve questions like x^x that seem to have 'no rule'.
natural exponential functionnatural logarithmlogarithmic differentiationderivative of an inverse functioninverse trigonometric functionsarcsinarctanarcsec
This week the derivative table is completed. Once the derivatives of exponential, logarithmic and inverse trigonometric functions combine with the chain rule, you can differentiate every function in Calculus I. Some of these are pure memorization; the places that really earn points are logarithmic differentiation and the derivative of an inverse function. First a short list:
The derivative of ex is itself. For eu it is eu⋅u′.
(lnu)′=uu′. Before differentiating, break the expression apart with log rules.
When the exponent is a variable (xx) or there are many factors, take lny, then differentiate.
In inverse trigonometric derivatives, a root or 1+u2 is in the denominator. For the chain rule, u′ goes in the numerator.
(f−1)′(b)=f′(a)1, where f(a)=b.
Exponential functions
The number e is the base chosen so that the slope of the tangent to ex at x=0 is exactly 1. Therefore:
dxdex=ex
The slope of the function at every point equals its own value. For another base, write ax=exlna and apply the chain rule:
dxdax=axlna
Example 1.y=ex2−3x: y′=(2x−3)ex2−3x. The exponent stays as it is, and the derivative of the exponent goes in front.
Example 2.y=x2e−x: y′=2xe−x+x2(−e−x)=e−x(2x−x2). After the product rule, factor out e−x; in week 9 the sign analysis is easy in this form.
Example 3.y=2sinx: y′=2sinxln2⋅cosx.
PITFALL · applying the power rule to an exponential.(2x)′=x⋅2x−1 is wrong. The power rule holds when the base is the variable and the exponent is constant (x2). When the base is constant and the exponent is a variable (2x), use the exponential rule: 2xln2.
Logarithmic functions
If y=lnx, then ey=x. Implicit derivative: eyy′=1⇒y′=ey1=x1.
dxdlnx=x1,dxdln∣x∣=x1(x=0),dxdlogax=xlna1
The most used form is the one with the chain rule: dxdlnu=uu′.
Example 4.y=ln(sinx): y′=sinxcosx=cotx.
Example 5 (break it apart first).y=ln(2x−1)2x3x+1.
Don’t bother with the quotient rule. Expand first with log rules:
y=3lnx+21ln(x+1)−2ln(2x−1)
Then term by term:
y′=x3+2(x+1)1−2x−14
In the last term the 2 came from the chain rule: −2⋅2x−12.
Logarithmic differentiation
Use it in three situations:
The base and the exponent are both variable: xx, xsinx, (lnx)x.
Many factors in the numerator and denominator: (x+2)4(x2+1)3x−1.
Roots and powers nested together.
Algorithm:
1. ln y = ln(right side) take ln of both sides2. expand with log rules exponents to the front, products to sums3. differentiate both sides left side: y'/y4. y' = y · (derivative of the right side) write y' with the original formula
PITFALL · choosing one of the two rules for xx. The power rule gives x⋅xx−1=xx, the exponential rule gives xxlnx. Both are wrong; the correct answer is the sum of the two: xx(1+lnx). This is not a coincidence, logarithmic differentiation accounts for both variabilities.
The derivative of an inverse function
If f is one-to-one and differentiable, f(a)=b and f′(a)=0:
(f−1)′(b)=f′(a)1
Graphically: if the tangent slope of f at the point (a,b) is m, then under reflection in y=x the slope at the point (b,a) is m1.
You don’t need to find the formula of the inverse. This is the route the exam expects.
Inverse trigonometric functions
If y=arcsinx, then siny=x and y∈[−2π,2π]. Implicit derivative:
cosy⋅y′=1⇒y′=cosy1=1−sin2y1=1−x21
The sign of the root is +, because cosy≥0 on that interval. The others come out the same way:
Function
Derivative
Domain
arcsinx
1−x21
∣x∣<1
arccosx
−1−x21
∣x∣<1
arctanx
1+x21
every x
arcsecx
∣x∣x2−11
∣x∣>1
The derivatives of arcsin and arccos differ only in sign. This is a consequence of arcsinx+arccosx=2π being constant.
Example 8.y=arctanx: y′=1+(x)21⋅2x1=2x(1+x)1.
Example 9.y=arcsin2x: y′=1−4x22.
The real importance of these derivatives shows up in weeks 12-14: the integrals ∫1+x2dx=arctanx+C and ∫1−x2dx=arcsinx+C are this table read backwards.
Mixed examples: which rule when?
On exams functions don’t come alone; three rules work together inside one question. Ask yourself these questions in order:
Question
If yes
Do both the base and the exponent contain x?
Logarithmic differentiation
Is there a product, quotient or power inside ln?
Expand first with log rules
Are two functions multiplied or divided?
Product / quotient rule
Is there a function inside another function?
Chain rule
Example 10.y=e−2xarctan(x2).
The outer structure is a product. The derivative of the first factor is −2e−2x (chain rule). The derivative of the second is 1+x42x (chain rule, u=x2, u2=x4). Combine:
An expression that looks long reduces to a single term. This result will come back in week 14 as the answer to the integral ∫x2+1dx.
Why does ln∣x∣ matter?
lnx is defined only for x>0. ln∣x∣ is defined everywhere x=0, and its derivative is x1 on both sides: for x<0, ln∣x∣=ln(−x), and by the chain rule its derivative is −x−1=x1. That is why, when integrating, you write ∫xdx=ln∣x∣+C; forgetting the absolute value leaves the answer undefined for negative x.
Exponential growth
For y=Cekt, y′=kCekt=ky. That is, the rate of change is proportional to the current amount. Population, interest and radioactive decay are all modeled with this equation. If you write the “doubles every 3 hours” model from week 1 with base e, you get k=3ln2.
The limit definition of e
The derivative of lnx at x=1 is 1. From the definition:
1=limh→0hln(1+h)=limh→0ln(1+h)1/h
Since ex is continuous, exponentiate both sides: h→0lim(1+h)1/h=e. This is the continuous version of the limit (1+n1)n→e you saw in week 1.
Common mistakes
Wrong thinking
Correct
(e3x)′=e3x
3e3x, chain rule
(2x)′=x2x−1
2xln2
(xx)′=x⋅xx−1
xx(lnx+1), logarithmic differentiation
(ln5x)′=x5
5x5=x1
(lnx2)′=x21
x22x=x2
(ln2)′=21
A constant, its derivative is 0
(arctan3x)′=1+3x23
1+9x23
(arcsinx)′=1+x21
1−x21
(f−1)′(b)=f′(b)1
f′(a)1, f(a)=b
sin−1x=sinx1
sin−1x=arcsinx; sinx1=cscx
Test yourself
Exam-style questions. Solve them on paper first, then reveal the answer.
(lnu)′=uu′. u=x2+4x+5, u′=2x+4. Note: x2+4x+5=(x+2)2+1>0, so the function is defined everywhere.
Question 3medium
Use logarithmic differentiation to find dxdy for y=xx(x>0). Then evaluate y′(2).
Show answer
y′=xx(lnx+1), y′(2)=4(ln2+1)≈6.773
Both the base and the exponent are variable; neither the power rule nor the exponential rule fits. lny=xlnx. Derivative: yy′=lnx+x⋅x1=lnx+1. y′=xx(lnx+1). At x=2: 4(ln2+1)≈6.773.
Question 4easy
Differentiate y=5x2.
Show answer
y′=2xln5⋅5x2
(au)′=aulna⋅u′. u=x2: y′=5x2ln5⋅2x.
Question 5easy
Differentiate y=log3(2x+1).
Show answer
y′=(2x+1)ln32
log3u=ln3lnu, and ln3 is a constant. y′=ln31⋅2x+12.
Question 6easy
Differentiate y=arctan(3x).
Show answer
y′=1+9x23
(arctanu)′=1+u2u′. u=3x: 1+(3x)23=1+9x23. Writing the square as 3x2 is a common mistake.
The first term is a product: arccosx+x⋅1−x2−1. The second term: (1−x2)′=21−x2−2x=1−x2−x, with a minus sign in front: +1−x2x. Total: arccosx−1−x2x+1−x2x=arccosx. (In week 13 this will come up as the answer to ∫arccosxdx.)
Question 9hard
Let y=(x+2)4(x2+1)3x−1. Use logarithmic differentiation to find y′(2).
Show answer
512475≈0.9277
lny=3ln(x2+1)+21ln(x−1)−4ln(x+2). Derivative: yy′=x2+16x+2(x−1)1−x+24. At x=2: y=256125⋅1, the bracket is 512+21−1=1019. y′(2)=256125⋅1019=512475.
Question 10medium
Find the equation of the tangent line to y=lnx at x=e.
Show answer
y=ex
The point is (e,lne)=(e,1). The slope is e1. Line: y−1=e1(x−e)=ex−1, that is y=ex. It passes through the origin.
Question 11hard
Let f(x)=x3+2x+1. Find (f−1)′(4).
Show answer
51
First find the a with f(a)=4: a3+2a+1=4, by trial a=1. f′(x)=3x2+2, f′(1)=5. Derivative of the inverse function: (f−1)′(4)=f′(1)1=51. Computing f′(4) would be wrong.
Question 12hard
Show that dxdln(1−sinx1+sinx)=2secx.
Show answer
Split the log; the derivative simplifies to 2/cos x.
First the log rule: ln(1+sinx)−ln(1−sinx). Derivative: 1+sinxcosx+1−sinxcosx=cosx⋅1−sin2x(1−sinx)+(1+sinx)=cos2x2cosx=cosx2=2secx.
Verification: All derivatives were checked with node (verify/MAT1051/07.mjs): the symbolic answer was compared with the central-difference derivative at four points; inverse function derivatives by computing the inverse numerically with Newton's method and differentiating it; the Q9 value directly with a numerical derivative.
Review card
(e^x)' = e^x (e^u)' = e^u · u'
(a^x)' = a^x ln a (a^u)' = a^u ln a · u'
(ln x)' = 1/x (ln|x|)' = 1/x (ln u)' = u'/u
(log_a x)' = 1/(x ln a)
BEFORE differentiating, expand with log rules: ln(AB/C) = ln A + ln B - ln C
x^x, x^(sin x), a fraction with many factors -> LOGARITHMIC DIFFERENTIATION: write ln y, differentiate, multiply by y
(arcsin u)' = u'/√(1-u^2) (arccos u)' = -u'/√(1-u^2)
(arctan u)' = u'/(1+u^2) (arcsec x)' = 1/(|x|√(x^2-1))
Inverse function: (f^-1)'(b) = 1/f'(a), a: f(a) = b (find a first)
e = lim (1+x)^(1/x), x -> 0