A516 of 56
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A5 · Lesson 16 · Logarithms and inverses

The slope of ln x is 1/x

A diode's voltage is a logarithm of its current, V=VTln⁡(I/Is). A decibel meter reads a logarithm of power. A phase meter reports an arctangent. To know how sensitive any of these is to a small change, you need the derivative of a logarithm or an inverse trig function. They all follow from one idea: the slope of an inverse function is the reciprocal of the original's slope, at the matching point.

  • The curves are ex and its inverse ln⁡x, mirror images in the dashed line y=x.
  • The point on ex is at x=a; its mirror on ln⁡x is at x=ea. Compare the two slopes in the strip.
  • How are they related, and why?

Predict

The slope of ex at x=1 is e≈2.718. What is the slope of ln⁡x at x=e?

Name it

Inverse functions

If y=f−1(x), then f(y)=x. Differentiating implicitly, f′(y)y′=1, so

ddxf−1(x)=1f′(f−1(x))

The slope of the inverse is one over the slope of the original, at the mirrored point.

Logarithms

With f=ex, f′=ex, and eln⁡x=x:

ddxln⁡x=1xddxln⁡|x|=1xddxlogb⁡x=1xln⁡b

and with the chain rule, ddxln⁡g(x)=g′(x)g(x). Other exponentials follow from bx=exln⁡b:

ddxbx=bxln⁡b

Inverse trig functions

ddxsin−1⁡x=11−x2ddxcos−1⁡x=−11−x2ddxtan−1⁡x=11+x2

The arctangent's derivative is how a phase measurement's sensitivity is found: the phase of an RC low-pass is −tan−1⁡(ωRC), so it changes fastest, at −RC per rad/s, right at the corner.

Logarithmic differentiation

For products and powers, take logs first. If y=xx, then ln⁡y=xln⁡x, and y′y=ln⁡x+1, so y′=xx(ln⁡x+1). The same trick gives relative sensitivities: for P=V2/R, ln⁡P=2ln⁡V−ln⁡R, so dPP=2dVV−dRR, exactly the rule A1 stated for small changes.

Worked example

How sensitive is a diode's voltage to its current at 1 mA, and at 10 mA? Use V=VTln⁡(I/Is) with VT = 25.85 mV.

Show the solution
  1. Differentiate. dVdI=VT⋅1I
  2. At 1 mA. dVdI=25.85mV1mA=25.85Ω
  3. At 10 mA. dVdI=25.85mV10mA=2.585Ω
  4. In relative terms. dV=VTdII so a 1% change in current changes the voltage by 0.26 mV, at any current.
  5. Doubling the current. ΔV=VTln⁡2=17.9mV the familiar "18 mV per octave" of a diode.

Answer dV/dI is 25.85 Ω at 1 mA and 2.585 Ω at 10 mA.

Worked example

Differentiate y=tan−1⁡(2x) and find the slope at x=0.5.

Show the solution
  1. Chain rule. y′=11+(2x)2⋅2=21+4x2
  2. Evaluate at x=0.5. y′(0.5)=21+1=1
  3. Check with the inverse rule. tan−1⁡(1)=π/4, and the slope of tan⁡(u)/2 at u=π/4 is 12sec2⁡(π/4)=1 The reciprocal is 1.

Answer y′=21+4x2, and the slope at x=0.5 is 1.

Worked example

Differentiate y=xx and find its slope at x=2.

Show the solution
  1. Take logs first. Neither the power rule nor the exponential rule fits, since both the base and the exponent vary: ln⁡y=xln⁡x
  2. Differentiate both sides. y′y=ln⁡x+1 so y′=xx(ln⁡x+1)
  3. Evaluate at x=2. y′(2)=4(ln⁡2+1)=4×1.693=6.77

Answer y′=xx(ln⁡x+1), and the slope at x=2 is 6.77.

Check

Differentiate ln⁡(3x2+1).

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

A diode follows V=VTln⁡(I/Is) with VT = 25.85 mV. What is dV/dI at I = 0.5 mA?

Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.

Check

What is the slope of log2⁡x at x = 2?

Check

What is the slope of tan−1⁡(2x) at x = 0.5?

Check

An RC low-pass (R = 1 kΩ, C = 10 nF) has phase φ=−tan−1⁡(ωRC). What is dφ/dω at the corner, ω=1/(RC), in seconds (radians per rad/s)?

Write units the way you normally would: 1.5 s and 1500 ms are the same answer.

Check

Differentiate these at x = 0.5.

(a)

ln⁡(2x)

(b)

sin−1⁡(x/10)

(c)

x2ex, by logarithmic differentiation

Check

Derive the derivative of tan−1⁡x from tan⁡y=x.

Step 1

Differentiating tan⁡y=x gives sec2⁡y⋅y′=1. Write sec2⁡y in terms of x.

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why is the slope of an inverse function the reciprocal of the original function's slope?

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.