2.4, 3.4 - Differentiating exponentials and logarithms

2.4, 3.4 - Differentiating exponentials and logarithms

The height of an exponential curve also tells you its gradient. You will use that special property of exe^x, differentiate natural logarithms and apply the chain rule to find rates of change and tangent equations.

The derivatives of exp and ln

Which curve has gradient equal to its height at every point? For y=exy=e^x, the gradient is 11 at height 11, ee at height ee, and so on. This is the special calculus property of the base ee.

A small horizontal change near x=0x=0 gives (e0.001−1)/0.001≈1.0005(e^{0.001}-1)/0.001\approx1.0005. The limiting gradient is 11. More generally, the difference quotient for exe^x contains the factor exe^x, giving the same limiting factor at every xx.

Exponential and logarithmic derivatives

ddxex=ex(x∈R),ddxln⁡x=1x(x>0).\frac{\mathrm d}{\mathrm dx}e^x=e^x\quad(x\in\mathbb R), \qquad \frac{\mathrm d}{\mathrm dx}\ln x=\frac1x\quad(x>0).

These derivatives are in the formula booklet.

Why does the logarithm have derivative 1/x1/x? If y=ln⁡xy=\ln x, then x=eyx=e^y. A small change gives dx/dy=ey=x\mathrm dx/\mathrm dy=e^y=x, so the reciprocal gradient is dy/dx=1/x\mathrm dy/\mathrm dx=1/x. Here x>0x>0: that is the domain of ln⁡x\ln x, even though the expression 1/x1/x also exists for negative xx.

[DIAGRAM: asset_name: Height and gradient; asset_slug: exponential-logarithm-tangents; caption: The exponential gets steeper as it rises, while the logarithm gets less steep; description: Two coordinate panels show y equals e to the x with tangents at zero comma one and one comma e, and y equals natural log x with tangents at one comma zero and e comma one. The tangent gradients are labelled one and e in the exponential panel, and one and one over e in the logarithm panel.]
The exponential gets steeper as it rises, while the logarithm gets less steep

Worked example 1: an exponential in a sum

Question. Differentiate y=3ex−2x2+5y=3e^x-2x^2+5.

Plan. Differentiate each term and keep its constant multiplier.

dydx=3ex−4x+0.\frac{\mathrm dy}{\mathrm dx}=3e^x-4x+0.

The exponential stays unchanged; the power rule applies to the quadratic.

Answer. dy/dx=3ex−4x\mathrm dy/\mathrm dx=3e^x-4x, for every real xx.

Check. At x=0x=0, the exponential contributes gradient 33 and the quadratic contributes 00, giving 33.

Replace the exponential with a logarithm. The linearity of differentiation stays the same; its domain changes.

Worked example 2: a logarithm in a sum

Question. Differentiate y=3ln⁡x−2x2+5y=3\ln x-2x^2+5, stating the domain.

Plan. Differentiate term by term, retaining x>0x>0 from the logarithm.

dydx=3x−4x.\frac{\mathrm dy}{\mathrm dx}=\frac3x-4x.

Answer. dy/dx=3/x−4x\mathrm dy/\mathrm dx=3/x-4x, for x>0x>0.

Check. Near x=1x=1, the central difference [y(1.001)−y(0.999)]/0.002≈−0.999999[y(1.001)-y(0.999)]/0.002\approx-0.999999, agreeing with 3−4=−13-4=-1.

The derivative formula does not extend the original function's domain.

Watch out

d(ln⁡x)/dx≠ln⁡x/x\mathrm d(\ln x)/\mathrm dx\ne\ln x/x. Its derivative is 1/x1/x. For x<0x<0, ln⁡x\ln x is not real; the different function ln⁡∣x∣\ln|x| has derivative 1/x1/x on each interval avoiding 00, because ln⁡∣x∣=ln⁡(−x)\ln|x|=\ln(-x) there and the chain rule gives (−1)/(−x)(-1)/(-x).

Apply the two basic derivatives in one expression.

Chain-rule derivatives

An exponential or logarithm can contain a whole function of xx. For e3xe^{3x}, increasing xx by a small amount changes the exponent three times as quickly. The derivative therefore needs the factor 33.

You already know

The chain rule differentiates the outside function, keeping the inside intact, then multiplies by the derivative of the inside. If y=F(u)y=F(u) and u=f(x)u=f(x), then dy/dx=(dy/du)(du/dx)\mathrm dy/\mathrm dx=(\mathrm dy/\mathrm du)(\mathrm du/\mathrm dx).

Apply that reasoning to the two new outside functions.

Composite exponentials and logarithms

For differentiable u=u(x)u=u(x),

ddxeu=u′eu,ddxln⁡u=u′u(u>0).\frac{\mathrm d}{\mathrm dx}e^u=u'e^u, \qquad \frac{\mathrm d}{\mathrm dx}\ln u=\frac{u'}u\quad(u>0).

The basic derivatives are in the formula booklet; these composite forms follow by the chain rule.

The denominator in the logarithmic derivative is the whole inside function.

Worked example 3: a quadratic exponent

Question. Differentiate y=4ex2−3xy=4e^{x^2-3x}.

Plan. Keep the exponential, then multiply by the derivative of x2−3xx^2-3x.

u=x2−3x,u′=2x−3dydx=4euu′chain rule=4(2x−3)ex2−3x\begin{aligned} u&=x^2-3x,& u'&=2x-3\\ \frac{\mathrm dy}{\mathrm dx}&=4e^u u'&&\text{chain rule}\\ &=4(2x-3)e^{x^2-3x} \end{aligned}

Answer. 4(2x−3)ex2−3x4(2x-3)e^{x^2-3x}, for every real xx.

Check. At x=3/2x=3/2, the exponent has its minimum. The exponential increases with its input, so the composite also has a horizontal tangent there; the derivative is indeed 00.

Keep a quadratic inside, but change the outside function to a logarithm. Now checking its domain is essential.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account