Ran Wei/ Calculus/Module 6
中文
Calculus · Part II · Derivatives

Module 6Exponentials, logarithms and implicit differentiation

Find out where the number e comes from and why e to the x is its own derivative. Then differentiate logarithms, inverse functions, the inverse trigonometric and hyperbolic functions and curves given by equations, and check the formulas of exponential growth and decay.

⏱ 270 minYou need: Modules 1 to 5, especially the chain rule

In this module you will

  • Explain how compound interest and the slope of axa^x at 0 both lead to the number e,e\mathclose{\text{,}} and what is proved and what is assumed
  • Differentiate exponential and logarithmic functions with any base
  • Find derivatives of inverse functions, including ln⁡x\ln x and the inverse trigonometric functions
  • Use implicit and logarithmic differentiation to find slopes and tangent lines
  • Work with the hyperbolic functions and their derivatives
  • Verify that CektCe^{kt} solves y′=ky,y' = ky\mathclose{\text{,}} and compute doubling times and half-lives
1

The number e

Module 1 introduced Euler’s number e≈2.71828,e \approx 2.71828\mathclose{\text{,}} and the natural logarithm ln⁡\ln as the inverse of ex,e^x\mathclose{\text{,}} and promised to show where ee comes from. It comes from two places at once. One is money: interest that is added to an account more and more often. The other is slopes: among all the exponential functions ax,a^x\mathclose{\text{,}} exactly one has slope 1 where it crosses the yy-axis. This section follows both routes, and Section 6.3 shows that they arrive at the same number.

Compound interest

Suppose a bank pays interest at 100% a year (an absurd rate, chosen to keep the numbers simple), and you deposit £1. If the interest is added once, at the end of the year, you then have £2. If instead the bank adds half the yearly rate, 50%, every six months, the interest earned in the first half-year earns interest itself in the second, and after a year you have (1+12)2=2.25(1 + \tfrac12)^2 = 2.25 pounds. With interest added nn times a year, at the rate 1n\tfrac1n each time, every addition multiplies the balance by 1+1n,1 + \tfrac1n\mathclose{\text{,}} so after a year you have

(1+1n)n pounds.\Big(1 + \frac1n\Big)^n \text{ pounds.}

Here it is with interest added yearly, every six months, every quarter, monthly, weekly, daily (n=365),n = 365\mathclose{\text{),}} hourly (n=8760)n = 8760\mathclose{\text{)}} and every minute (n=525,600):n = 525{,}600\mathclose{\text{):}}

nn(1+1n)n\Big(1 + \dfrac1n\Big)^n
1122
222.252.25
442.4414062.441406
12122.6130352.613035
52522.6925972.692597
3653652.7145672.714567
876087602.7181272.718127
5256005256002.7182792.718279

More frequent compounding helps, but less and less: going from daily to every minute gains less than half a penny. The amounts settle down to a limit, about 2.71828, which is what you would have if interest were added continually, at every instant: continuous compounding. Section 6.3 proves that this limit is e.e\mathclose{\text{.}}

The slope of axa^x at 0

Every exponential function axa^x passes through (0,1),(0, 1)\mathclose{\text{,}} since a0=1.a^0 = 1\mathclose{\text{.}} How steep is its graph there? By Module 4, the slope of the tangent line at x=0x = 0 is the limit, as h→0,h \to 0\mathclose{\text{,}} of the difference quotients

a0+h−a0h=ah−1h.\frac{a^{0+h} - a^0}{h} = \frac{a^h - 1}{h}.

For a=2a = 2 and a=3:a = 3\mathclose{\text{:}}

hh2h−1h\dfrac{2^h - 1}{h}3h−1h\dfrac{3^h - 1}{h}
0.10.10.7177350.7177351.161231.16123
0.010.010.6955550.6955551.104671.10467
0.0010.0010.6933870.6933871.099221.09922
0.00010.00010.6931710.6931711.098671.09867
−0.0001-0.00010.6931230.6931231.098551.09855
−0.001-0.0010.6929070.6929071.098011.09801
−0.01-0.010.6907500.6907501.092601.09260
−0.1-0.10.6696700.6696701.040421.04042

From both sides the quotients settle down: the slope of 2x2^x at 0 is about 0.6931, and that of 3x3^x about 1.0986. Write

m(a)=lim⁡h→0ah−1h,m(a) = \lim_{h\to0}\frac{a^h - 1}{h},

read “m of a”, for the slope of axa^x at x=0x = 0 (mm for slope, as in Module 1). The table suggests that m(2)≈0.6931m(2) \approx 0.6931 and m(3)≈1.0986.m(3) \approx 1.0986\mathclose{\text{.}} The slope at 0 decides the slope everywhere:

Theorem 6.1The derivative of an exponential

Let a>0,a > 0\mathclose{\text{,}} and suppose that the limit m(a)m(a) exists, that is, that axa^x is differentiable at x=0.x = 0\mathclose{\text{.}} Then axa^x is differentiable at every x,x\mathclose{\text{,}} and

ddx(ax)=m(a) ax.\frac{d}{dx}\big(a^x\big) = m(a)\,a^x.
Proof

Fix x.x\mathclose{\text{.}} By the law of exponents ax+h=axah,a^{x+h} = a^x a^h\mathclose{\text{,}}

ax+h−axh=axah−axh=ax⋅ah−1h.\frac{a^{x+h} - a^x}{h} = \frac{a^x a^h - a^x}{h} = a^x\cdot\frac{a^h - 1}{h}.

As h→0,h \to 0\mathclose{\text{,}} the factor axa^x does not change and the second factor approaches m(a),m(a)\mathclose{\text{,}} so by the limit law for products the difference quotient approaches ax m(a).a^x\,m(a)\mathclose{\text{.}}

∎
Key idea

The slope of an exponential at any point is its height there times its slope at 0. An exponential grows at a rate proportional to its own size; Section 6.8 shows what that means for populations, money and radioactive decay.

The base with slope 1

Since m(2)<1<m(3),m(2) < 1 < m(3)\mathclose{\text{,}} somewhere between 2 and 3 there should be a base whose exponential has slope exactly 1 at 0. To find it, see what raising the base to a power does to the slope at 0.

Theorem 6.2Changing the base

Let a>0,a > 0\mathclose{\text{,}} and suppose that m(a)m(a) exists. Then for every real number c,c\mathclose{\text{,}} m(ac)m(a^c) exists and

m(ac)=c m(a).m\big(a^c\big) = c\,m(a).
Proof

For c=0,c = 0\mathclose{\text{,}} a0=1a^0 = 1 and 1h=1,1^h = 1\mathclose{\text{,}} so every quotient is 0, and m(1)=0=0⋅m(a).m(1) = 0 = 0 \cdot m(a)\mathclose{\text{.}} For c≠0,c \ne 0\mathclose{\text{,}} (ac)h=ach(a^c)^h = a^{ch} by the laws of exponents, so for h≠0h \ne 0

(ac)h−1h=c⋅ach−1ch.\frac{(a^c)^h - 1}{h} = c\cdot\frac{a^{ch} - 1}{ch}.

Write k=ch.k = ch\mathclose{\text{.}} As h→0,h \to 0\mathclose{\text{,}} k→0,k \to 0\mathclose{\text{,}} and k≠0k \ne 0 when h≠0;h \ne 0\mathclose{\text{;}} so the fraction ak−1k\dfrac{a^k - 1}{k} approaches m(a),m(a)\mathclose{\text{,}} and the whole expression approaches c m(a).c\,m(a)\mathclose{\text{.}}

∎

Now choose c=1/m(2),c = 1/m(2)\mathclose{\text{,}} which is allowed because m(2),m(2)\mathclose{\text{,}} about 0.69, is not 0. By Theorem 6.2, the base 21/m(2)2^{1/m(2)} has slope 1m(2)⋅m(2)=1\dfrac{1}{m(2)}\cdot m(2) = 1 at 0. To find it, estimate m(2)m(2) more closely. The average of the two quotients of the table nearest to h=0,h = 0\mathclose{\text{,}} 0.693171 and 0.693123, is the central difference of Module 4, which is much more accurate than either: m(2)≈0.693147.m(2) \approx 0.693147\mathclose{\text{.}} Then 1/m(2)≈1.442695,1/m(2) \approx 1.442695\mathclose{\text{,}} and the base is about 21.442695≈2.718282:2^{1.442695} \approx 2.718282\mathclose{\text{:}} the digits of Module 1’s e.e\mathclose{\text{.}}

Definition 6.1The number e

Euler’s number ee is the base whose exponential has slope 1 at x=0:x = 0\mathclose{\text{:}}

lim⁡h→0eh−1h=1.\lim_{h\to0}\frac{e^h - 1}{h} = 1.

The natural logarithm is, as in Module 1, the inverse of ex:e^x\mathclose{\text{:}} for x>0,x > 0\mathclose{\text{,}} ln⁡x=y\ln x = y means ey=x.e^y = x\mathclose{\text{.}}

Good to know

What is proved and what is taken on trust. This section takes two things on trust. The first is Module 1’s powers axa^x for every real x,x\mathclose{\text{,}} with the properties that Module 1 listed: the laws of exponents (for an irrational x,x\mathclose{\text{,}} axa^x is the number that the powers with rational exponents close to xx approach), and, for a base a>1,a > 1\mathclose{\text{,}} that axa^x increases and takes every positive value exactly once, so that logarithms exist. The second is that the limit m(2)m(2) exists and is positive: the table leaves little doubt that it is about 0.6931, and the Going deeper box later in this section sketches how both facts can be proved. Everything else in this section is proved from these two. Theorem 6.2 shows that the base 21/m(2)2^{1/m(2)} has slope 1 at 0, so ee exists, and the next theorem shows that no other base does.

Theorem 6.3Derivatives of exe^x and axa^x

For every real x,x\mathclose{\text{,}}

ddx(ex)=ex.\frac{d}{dx}\big(e^x\big) = e^x.

For every base a>0:a > 0\mathclose{\text{:}} ax=exln⁡a,a^x = e^{x\ln a}\mathclose{\text{,}} the slope of axa^x at 0 is m(a)=ln⁡a,m(a) = \ln a\mathclose{\text{,}} and

ddx(ax)=axln⁡a.\frac{d}{dx}\big(a^x\big) = a^x\ln a.
Proof

By Definition 6.1, m(e)=1,m(e) = 1\mathclose{\text{,}} so Theorem 6.1 gives (ex)′=1⋅ex=ex.(e^x)' = 1 \cdot e^x = e^x\mathclose{\text{.}} Let a>0.a > 0\mathclose{\text{.}} Then a=eln⁡aa = e^{\ln a} (Module 1), so by the law (au)v=auv,(a^u)^v = a^{uv}\mathclose{\text{,}} ax=(eln⁡a)x=exln⁡a.a^x = \big(e^{\ln a}\big)^x = e^{x\ln a}\mathclose{\text{.}} Theorem 6.2, with base ee and c=ln⁡a,c = \ln a\mathclose{\text{,}} gives m(a)=m(eln⁡a)=ln⁡a⋅m(e)=ln⁡a,m(a) = m\big(e^{\ln a}\big) = \ln a \cdot m(e) = \ln a\mathclose{\text{,}} and Theorem 6.1 finishes the proof.

∎

So m(2)=ln⁡2m(2) = \ln 2 and m(3)=ln⁡3,m(3) = \ln 3\mathclose{\text{,}} the limits in the table, and ee is the only base with slope 1 at 0: m(a)=1m(a) = 1 means ln⁡a=1,\ln a = 1\mathclose{\text{,}} that is, a=e.a = e\mathclose{\text{.}} You can also reach (ax)′=axln⁡a(a^x)' = a^x\ln a with the chain rule of Module 5: the derivative of exln⁡ae^{x\ln a} is exln⁡a⋅ln⁡a=axln⁡a.e^{x\ln a}\cdot\ln a = a^x\ln a\mathclose{\text{.}}

Left: 2^x, e^x and 3^x all pass through (0, 1), where their tangent lines (dashed) have slopes ln 2 approx 0.69, exactly 1, and ln 3 approx 1.10. Right: the tangent lines to y = e^x at x = -1, 0 and 1. Each meets the x-axis 1 unit to the left of its point of contact, so its slope, rise over run, equals the height e^x there: the function is its own derivative.
Figure 6.1

Left: 2x,2^x\mathclose{\text{,}} exe^x and 3x3^x all pass through (0,1),(0, 1)\mathclose{\text{,}} where their tangent lines (dashed) have slopes ln⁡2≈0.69,\ln 2 \approx 0.69\mathclose{\text{,}} exactly 1, and ln⁡3≈1.10.\ln 3 \approx 1.10\mathclose{\text{.}} Right: the tangent lines to y=exy = e^x at x=−1,x = -1\mathclose{\text{,}} 0 and 1. Each meets the xx-axis 1 unit to the left of its point of contact, so its slope, rise over run, equals the height exe^x there: the function is its own derivative.

Try it

Move the slider, or type a base, until the orange tangent line at x=0x = 0 lies along the dashed line of slope 1. The readout estimates the slope at 0 with a difference quotient and tells you when it is within 0.001 of 1: how many digits of ee can you find? Then press Show ln a and compare the slope with ln⁡a\ln a for a few bases, and press Show e. The green line is the tangent at x=1;x = 1\mathclose{\text{;}} check that its slope is aa times the slope at 0, as Theorem 6.1 says.

Example 6.1Derivatives with exe^x and axa^x✓ Checked

Differentiate (a) e3x,e^{3x}\mathclose{\text{,}} (b) x2e−xx^2e^{-x} and (c) 10x,10^x\mathclose{\text{,}} and (d) find the tangent line to y=exy = e^x at x=1.x = 1\mathclose{\text{.}}

(a) By the chain rule with the inner function 3x,3x\mathclose{\text{,}} ddxe3x=e3x⋅3=3e3x.\dfrac{d}{dx}e^{3x} = e^{3x}\cdot 3 = 3e^{3x}\mathclose{\text{.}} In the same way, ddxekx=kekx\dfrac{d}{dx}e^{kx} = ke^{kx} for every constant k.k\mathclose{\text{.}}

(b) By the product rule, and (a) with k=−1:k = -1\mathclose{\text{:}}

ddx(x2e−x)=2x e−x+x2(−e−x)=(2x−x2)e−x.\begin{aligned} \frac{d}{dx}\big(x^2e^{-x}\big) &= 2x\,e^{-x} + x^2\big(-e^{-x}\big) \\ &= \big(2x - x^2\big)e^{-x}. \end{aligned}

(c) By Theorem 6.3 with a=10,a = 10\mathclose{\text{,}} ddx10x=10xln⁡10≈2.303⋅10x.\dfrac{d}{dx}10^x = 10^x\ln 10 \approx 2.303 \cdot 10^x\mathclose{\text{.}}

(d) At x=1x = 1 the height is ee and the slope is e1=e,e^1 = e\mathclose{\text{,}} so the tangent line is y−e=e(x−1),y - e = e(x - 1)\mathclose{\text{,}} that is, y=ex.y = ex\mathclose{\text{.}} It passes through the origin, as the right panel of Figure 6.1 shows.

Watch out

The power rule is for powers xn,x^n\mathclose{\text{,}} with the variable in the base. It does not apply to exe^x or 2x,2^x\mathclose{\text{,}} where the variable is in the exponent: ddxex\dfrac{d}{dx}e^x is not xex−1,xe^{x-1}\mathclose{\text{,}} and ddx2x\dfrac{d}{dx}2^x is neither x 2x−1x\,2^{x-1} nor 2x.2^x\mathclose{\text{.}} And e2≈7.39e^2 \approx 7.39 is a constant, so its derivative is 0.

Going deeperWhy the limit exists, and another road to e

The limit m(2).m(2)\mathclose{\text{.}} For h≠0h \ne 0 let q(h)=2h−1h,q(h) = \dfrac{2^h - 1}{h}\mathclose{\text{,}} the slope of the chord of the graph of 2x2^x from (0,1)(0, 1) to (h,2h).(h, 2^h)\mathclose{\text{.}} The graph of 2x2^x bends upwards (it is convex), so this slope grows as hh moves to the right: qq increases on each side of 0, and every value with h<0h < 0 is below every value with h>0.h > 0\mathclose{\text{.}} So as hh decreases to 0, q(h)q(h) decreases but stays above q(−1)=12,q(-1) = \tfrac12\mathclose{\text{,}} and a quantity that decreases but stays above a fixed number approaches a limit: this is a basic property of the real numbers, made precise for sequences in Module 14. In the same way q(h)q(h) increases to a limit as hh increases to 0, staying below q(1)=1.q(1) = 1\mathclose{\text{.}} The two one-sided limits are equal, because q(−h)=2−hq(h)q(-h) = 2^{-h}q(h) and 2−h→1.2^{-h} \to 1\mathclose{\text{.}} So m(2)m(2) exists, and it lies between 12\tfrac12 and 1; in particular it is positive. The step left out here is the proof that 2x2^x is convex, which takes more work with real exponents.

Another road: start from the logarithm. Module 10 makes possible a route that takes nothing about powers on trust; it rests instead on a theorem that Module 9 uses without proof, that a continuous function has an integral. Define, for x>0,x > 0\mathclose{\text{,}}

ln⁡x=∫1xdtt,\ln x = \int_1^x \frac{dt}{t},

the area under the curve y=1/ty = 1/t from 1 to xx (counted as negative when x<1).x < 1\mathclose{\text{).}} The Fundamental Theorem of Calculus gives (ln⁡x)′=1/x(\ln x)' = 1/x at once; the laws of logarithms follow from it, with a theorem of Module 8; ln⁡\ln increases and takes every real value, so it has an inverse function, exp⁡;{\exp}\mathclose{\text{;}} ee is exp⁡(1),\exp(1)\mathclose{\text{,}} the number for which the area from 1 to ee is exactly 1; and for a>0a > 0 and every real xx one defines ax=exp⁡(xln⁡a),a^x = \exp(x\ln a)\mathclose{\text{,}} which also settles what irrational powers mean. Theorem 6.4 below then gives exp⁡′=exp⁡.\exp' = {\exp}\mathclose{\text{.}} The functions are the same as in this section; only the order of the proofs changes.

Compute itHunting for e

Python can estimate the slope of axa^x at 0 with a difference quotient. The symmetric quotient ah−a−h2h,\dfrac{a^h - a^{-h}}{2h}\mathclose{\text{,}} the central difference of Module 4, is much more accurate than ah−1h\dfrac{a^h - 1}{h} for the same h:h\mathclose{\text{:}}

Python
import math
def slope_at_0(a, h=1e-6):
    return (a**h - a**(-h))/(2*h)      # central difference at x = 0
for a in [2, 2.5, 2.7, 2.72, 2.8, 3]:
    print(f"a = {a}: slope at 0 ≈ {slope_at_0(a):.6f}")
Output
a = 2: slope at 0 ≈ 0.693147
a = 2.5: slope at 0 ≈ 0.916291
a = 2.7: slope at 0 ≈ 0.993252
a = 2.72: slope at 0 ≈ 1.000632
a = 2.8: slope at 0 ≈ 1.029619
a = 3: slope at 0 ≈ 1.098612

The slope passes 1 between 2.7 and 2.72. The bisection method of Module 3 closes in on the crossing, keeping at each step the half of the interval where the slope passes 1:

Python
lo, hi = 2.0, 3.0
for step in range(30):
    mid = (lo + hi)/2
    if slope_at_0(mid) < 1:
        lo = mid
    else:
        hi = mid
print(f"e lies between {lo:.10f} and {hi:.10f}")
print(f"math.e is      {math.e:.10f}")
Output
e lies between 2.7182818279 and 2.7182818288
math.e is      2.7182818285

Thirty halvings shrink the interval to a width of 2−30,2^{-30}\mathclose{\text{,}} less than 10−9,10^{-9}\mathclose{\text{,}} and pin ee down to eight decimal places, 2.71828182. Compound interest is a poor way to compute ee on a computer:

Python
for k in [4, 8, 12, 15, 16]:
    n = 10**k
    print(f"n = 10^{k}: {(1 + 1/n)**n}")
Output
n = 10^4: 2.7181459268249255
n = 10^8: 2.7182817983473577
n = 10^12: 2.7185234960372378
n = 10^15: 3.035035206549262
n = 10^16: 1.0

Up to n=108n = 10^8 the values approach e,e\mathclose{\text{,}} but then they go wrong, and for n=1016n = 10^{16} the answer is 1. The computer stores 1+1/n1 + 1/n rounded to about 16 significant digits: for n=1016n = 10^{16} it stores exactly 1, and 1n=1;1^n = 1\mathclose{\text{;}} for n=1015n = 10^{15} it stores 1+1.11×10−15,1 + 1.11 \times 10^{-15}\mathclose{\text{,}} 11% too far from 1, and the power turns that error into e1.11≈3.035.e^{1.11} \approx 3.035\mathclose{\text{.}} The cause is the one behind the cancellation error of Module 2: a floating-point number keeps only about 16 significant digits.

2

Derivatives of inverse functions

By Module 1, the graph of an inverse function f−1f^{-1} is the mirror image of the graph of ff in the line y=x.y = x\mathclose{\text{.}} Reflection carries tangent lines to tangent lines, so it should also tell you the slopes of f−1.f^{-1}\mathclose{\text{.}} Reflection in y=xy = x swaps the two coordinates, so it swaps rise and run: a line with slope riserun=m\dfrac{\text{rise}}{\text{run}} = m becomes a line with slope runrise=1m\dfrac{\text{run}}{\text{rise}} = \dfrac1m (Figure 6.2). So if the graph of ff has slope mm at (a,b),(a, b)\mathclose{\text{,}} the graph of f−1f^{-1} should have slope 1/m1/m at the mirror point (b,a).(b, a)\mathclose{\text{.}}

y = e^x and its inverse y = ln x are mirror images in the line y = x (dashed). The tangent line to e^x at big(tfrac12, e^{1/2}big) has slope e^{1/2} approx 1.65: run 1, rise 1.65. Its mirror image is the tangent line to ln x at big(e^{1/2}, tfrac12big), with run 1.65 and rise 1: slope 1/e^{1/2} approx 0.61.
Figure 6.2

y=exy = e^x and its inverse y=ln⁡xy = \ln x are mirror images in the line y=xy = x (dashed). The tangent line to exe^x at (12,e1/2)\big(\tfrac12, e^{1/2}\big) has slope e1/2≈1.65:e^{1/2} \approx 1.65\mathclose{\text{:}} run 1, rise 1.65. Its mirror image is the tangent line to ln⁡x\ln x at (e1/2,12),\big(e^{1/2}, \tfrac12\big)\mathclose{\text{,}} with run 1.65 and rise 1: slope 1/e1/2≈0.61.1/e^{1/2} \approx 0.61\mathclose{\text{.}}

To turn the picture into a theorem you need one fact about continuity, which this series uses without proof.

Good to know

A fact about inverse functions. If ff is continuous and one-to-one on an open interval I,I\mathclose{\text{,}} then ff is strictly increasing on II or strictly decreasing on I,I\mathclose{\text{,}} its values form an open interval J,J\mathclose{\text{,}} and f−1f^{-1} is continuous on J.J\mathclose{\text{.}} The idea: if ff went up and then down, the Intermediate Value Theorem of Module 3 would make it take some value twice; and, as Module 3 noted, the mirror image of an unbroken graph that only rises (or only falls) is again unbroken.

Theorem 6.4The derivative of an inverse function

Let ff be continuous and one-to-one on an open interval I,I\mathclose{\text{,}} and let aa be a point of II where ff is differentiable with f′(a)≠0.f'(a) \ne 0\mathclose{\text{.}} Then f−1f^{-1} is differentiable at b=f(a),b = f(a)\mathclose{\text{,}} and

(f−1)′(b)=1f′(a)=1f′(f−1(b)).(f^{-1})'(b) = \frac{1}{f'(a)} = \frac{1}{f'\big(f^{-1}(b)\big)}.
Proof

Let JJ be the interval of values of f,f\mathclose{\text{,}} as in the fact above. For y≠by \ne b in J,J\mathclose{\text{,}} let x=f−1(y).x = f^{-1}(y)\mathclose{\text{.}} Then f(x)=y,f(x) = y\mathclose{\text{,}} and x≠a,x \ne a\mathclose{\text{,}} because f−1f^{-1} is one-to-one. So

f−1(y)−f−1(b)y−b=x−af(x)−f(a)=1f(x)−f(a)x−a.\begin{aligned} \frac{f^{-1}(y) - f^{-1}(b)}{y - b} &= \frac{x - a}{f(x) - f(a)} \\ &= \frac{1}{\dfrac{f(x) - f(a)}{x - a}}. \end{aligned}

As y→b,y \to b\mathclose{\text{,}} x=f−1(y)x = f^{-1}(y) approaches f−1(b)=a,f^{-1}(b) = a\mathclose{\text{,}} because f−1f^{-1} is continuous, and x≠a.x \ne a\mathclose{\text{.}} So the difference quotient in the denominator approaches f′(a),f'(a)\mathclose{\text{,}} which is not 0, and by the limit law for quotients the whole expression approaches 1/f′(a).1/f'(a)\mathclose{\text{.}}

∎

The hypothesis f′(a)≠0f'(a) \ne 0 is needed. f(x)=x3f(x) = x^3 is one-to-one with f′(0)=0,f'(0) = 0\mathclose{\text{,}} and its inverse x3\sqrt[3]{x} has a vertical tangent at 0: for y>0y > 0 its difference quotient y3−0y−0=y−2/3\dfrac{\sqrt[3]{y} - 0}{y - 0} = y^{-2/3} grows without bound as y→0.y \to 0\mathclose{\text{.}} The other hypotheses make sure that f−1f^{-1} exists and is continuous.

Tip

To remember the formula, suppose that f−1f^{-1} is differentiable, and differentiate both sides of f(f−1(x))=xf\big(f^{-1}(x)\big) = x with the chain rule: f′(f−1(x))⋅(f−1)′(x)=1,f'\big(f^{-1}(x)\big)\cdot(f^{-1})'(x) = 1\mathclose{\text{,}} then divide. This derivation assumes what the theorem proves, that f−1f^{-1} is differentiable, so it is a memory aid, not a proof.

Example 6.2An inverse without a formula✓ Checked

In Module 1’s Exercise 1.10 you showed that f(x)=x3+xf(x) = x^3 + x is strictly increasing on R,\R\mathclose{\text{,}} so it has an inverse, although solving x3+x=yx^3 + x = y for xx is hard. Find (f−1)′(2)(f^{-1})'(2) and (f−1)′(10),(f^{-1})'(10)\mathclose{\text{,}} and the tangent line to the graph of f−1f^{-1} at (2,1).(2, 1)\mathclose{\text{.}}

ff is a polynomial, so it is differentiable, hence continuous, on R,\R\mathclose{\text{,}} with f′(x)=3x2+1≥1:f'(x) = 3x^2 + 1 \ge 1\mathclose{\text{:}} never 0. To use Theorem 6.4 at b=2,b = 2\mathclose{\text{,}} you need a=f−1(2),a = f^{-1}(2)\mathclose{\text{,}} the solution of x3+x=2.x^3 + x = 2\mathclose{\text{.}} Try small whole numbers: x=1x = 1 works. So

(f−1)′(2)=1f′(1)=13+1=14.(f^{-1})'(2) = \frac{1}{f'(1)} = \frac{1}{3 + 1} = \frac14.

In the same way f(2)=8+2=10,f(2) = 8 + 2 = 10\mathclose{\text{,}} so (f−1)′(10)=1f′(2)=113.(f^{-1})'(10) = \dfrac{1}{f'(2)} = \dfrac{1}{13}\mathclose{\text{.}} The tangent line to the graph of f−1f^{-1} at (2,1)(2, 1) has slope 14:\tfrac14\mathclose{\text{:}} it is y=1+14(x−2),y = 1 + \tfrac14(x - 2)\mathclose{\text{,}} that is, y=14x+12.y = \tfrac14 x + \tfrac12\mathclose{\text{.}}

Watch out

The slope of f−1f^{-1} at bb is the reciprocal of the slope of ff at the mirror point a=f−1(b),a = f^{-1}(b)\mathclose{\text{,}} not at b.b\mathclose{\text{.}} In Example 6.2, (f−1)′(2)=14,(f^{-1})'(2) = \tfrac14\mathclose{\text{,}} not 1f′(2)=113.\dfrac{1}{f'(2)} = \dfrac{1}{13}\mathclose{\text{.}} First find a,a\mathclose{\text{,}} then compute 1/f′(a).1/f'(a)\mathclose{\text{.}}

3

Logarithms

The derivative of ln x

Theorem 6.5The derivative of the logarithm

For every x>0,x > 0\mathclose{\text{,}}

ddxln⁡x=1x,\frac{d}{dx}\ln x = \frac1x,

and for every x≠0,x \ne 0\mathclose{\text{,}}

ddxln⁡∣x∣=1x.\frac{d}{dx}\ln\abs{x} = \frac1x.
Proof

Apply Theorem 6.4 to f(x)=exf(x) = e^x on the open interval I=R.I = \R\mathclose{\text{.}} It is differentiable, hence continuous, and one-to-one (Module 1); its derivative exe^x is never 0; its values form J=(0,∞);J = (0, \infty)\mathclose{\text{;}} and its inverse is ln⁡.{\ln}\mathclose{\text{.}} For b>0b > 0 let a=ln⁡b.a = \ln b\mathclose{\text{.}} Then

(ln⁡)′(b)=1f′(a)=1eln⁡b=1b.(\ln)'(b) = \frac{1}{f'(a)} = \frac{1}{e^{\ln b}} = \frac1b.

For x>0,x > 0\mathclose{\text{,}} ln⁡∣x∣=ln⁡x,\ln\abs{x} = \ln x\mathclose{\text{,}} with derivative 1x.\tfrac1x\mathclose{\text{.}} For x<0,x < 0\mathclose{\text{,}} ln⁡∣x∣=ln⁡(−x),\ln\abs{x} = \ln(-x)\mathclose{\text{,}} and by the chain rule its derivative is 1−x⋅(−1)=1x.\dfrac{1}{-x}\cdot(-1) = \dfrac1x\mathclose{\text{.}}

∎

The graph of ln⁡x\ln x (Figure 6.2) climbs steeply near 0, where 1/x1/x is large, and flattens out as xx grows; but its slope 1/x1/x stays positive, so ln⁡x\ln x keeps increasing, more and more slowly. At x=1x = 1 its slope is 1, the mirror image of the slope 1 of exe^x at 0. With the chain rule, for a differentiable function uu of x,x\mathclose{\text{,}}

ddxln⁡u=u′uwhere u>0,ddxln⁡∣u∣=u′uwhere u≠0.\begin{aligned} \frac{d}{dx}\ln u &= \frac{u'}{u} \quad \text{where } u > 0, \\ \frac{d}{dx}\ln\abs{u} &= \frac{u'}{u} \quad \text{where } u \ne 0. \end{aligned}
Example 6.3Derivatives with logarithms✓ Checked

Differentiate (a) ln⁡(x2+1),\ln(x^2 + 1)\mathclose{\text{,}} (b) ln⁡∣cos⁡x∣,\ln{\abs{\cos x}}\mathclose{\text{,}} where cos⁡x≠0,\cos x \ne 0\mathclose{\text{,}} and (c) ln⁡x3x2+1,\ln\dfrac{x^3}{\sqrt{x^2 + 1}}\mathclose{\text{,}} for x>0.x > 0\mathclose{\text{.}}

(a) Here u=x2+1>0,u = x^2 + 1 > 0\mathclose{\text{,}} so ddxln⁡(x2+1)=2xx2+1.\dfrac{d}{dx}\ln(x^2 + 1) = \dfrac{2x}{x^2 + 1}\mathclose{\text{.}}

(b) Here u=cos⁡x,u = \cos x\mathclose{\text{,}} so ddxln⁡∣cos⁡x∣=−sin⁡xcos⁡x=−tan⁡x.\dfrac{d}{dx}\ln\abs{\cos x} = \dfrac{-\sin x}{\cos x} = -\tan x\mathclose{\text{.}}

(c) Use the laws of logarithms first: they turn the quotient and the powers into a sum. For x>0,x > 0\mathclose{\text{,}}

ln⁡x3x2+1=3ln⁡x−12ln⁡(x2+1),\ln\frac{x^3}{\sqrt{x^2 + 1}} = 3\ln x - \tfrac12\ln(x^2 + 1),

so the derivative is

3x−12⋅2xx2+1=3x−xx2+1.\frac3x - \frac12\cdot\frac{2x}{x^2 + 1} = \frac3x - \frac{x}{x^2 + 1}.
Watch out

The derivative of ln⁡u\ln u is u′u,\dfrac{u'}{u}\mathclose{\text{,}} not 1u:\dfrac1u\mathclose{\text{:}} ddxln⁡(x2+1)\dfrac{d}{dx}\ln(x^2 + 1) is not 1x2+1.\dfrac{1}{x^2 + 1}\mathclose{\text{.}} And ddxln⁡(5x)=55x=1x,\dfrac{d}{dx}\ln(5x) = \dfrac{5}{5x} = \dfrac1x\mathclose{\text{,}} the same as the derivative of ln⁡x.\ln x\mathclose{\text{.}} That is no accident: ln⁡(5x)=ln⁡5+ln⁡x,\ln(5x) = \ln 5 + \ln x\mathclose{\text{,}} so the two functions differ by a constant.

Other bases

For a base a>0a > 0 with a≠1,a \ne 1\mathclose{\text{,}} log⁡ax=ln⁡xln⁡a\log_a x = \dfrac{\ln x}{\ln a} (Module 1), and ln⁡a\ln a is a constant, so for x>0x > 0

ddxlog⁡ax=1xln⁡a.\frac{d}{dx}\log_a x = \frac{1}{x\ln a}.

For example ddxlog⁡10x=1xln⁡10≈0.4343x\dfrac{d}{dx}\log_{10} x = \dfrac{1}{x\ln 10} \approx \dfrac{0.4343}{x} and ddxlog⁡2x=1xln⁡2≈1.4427x.\dfrac{d}{dx}\log_2 x = \dfrac{1}{x\ln 2} \approx \dfrac{1.4427}{x}\mathclose{\text{.}} Only the natural logarithm has the factor 1. That is why calculus uses ln⁡,{\ln}\mathclose{\text{,}} as it uses ex:e^x\mathclose{\text{:}} the formulas ddxax=axln⁡a\dfrac{d}{dx}a^x = a^x\ln a and ddxlog⁡ax=1xln⁡a\dfrac{d}{dx}\log_a x = \dfrac{1}{x\ln a} both lose their factor ln⁡a\ln a exactly when a=e.a = e\mathclose{\text{.}}

The two routes meet

Now the compound interest table can be explained. The derivative of ln⁡\ln at 1 is 11=1,\tfrac11 = 1\mathclose{\text{,}} and ln⁡1=0,\ln 1 = 0\mathclose{\text{,}} so

lim⁡h→0ln⁡(1+h)h=lim⁡h→0ln⁡(1+h)−ln⁡1h=1.\lim_{h\to0}\frac{\ln(1 + h)}{h} = \lim_{h\to0}\frac{\ln(1 + h) - \ln 1}{h} = 1.
Theorem 6.6ee as a limit

For every real number x,x\mathclose{\text{,}}

lim⁡n→∞(1+xn)n=ex,\lim_{n\to\infty}\Big(1 + \frac{x}{n}\Big)^n = e^x,

and in particular

lim⁡n→∞(1+1n)n=e.\lim_{n\to\infty}\Big(1 + \frac1n\Big)^n = e.
Proof

For x=0x = 0 both sides are 1. Let x≠0,x \ne 0\mathclose{\text{,}} and take n>∣x∣,n > {\abs{x}}\mathclose{\text{,}} so that 1+x/n>0.1 + x/n > 0\mathclose{\text{.}} Every positive number pp is eln⁡p,e^{\ln p}\mathclose{\text{,}} so pn=enln⁡p,p^n = e^{n\ln p}\mathclose{\text{,}} and

(1+xn)n=e nln⁡(1+x/n).\Big(1 + \frac{x}{n}\Big)^n = e^{\,n\ln(1 + x/n)}.

Write h=x/n,h = x/n\mathclose{\text{,}} so that n=x/h.n = x/h\mathclose{\text{.}} Then

nln⁡(1+xn)=x⋅ln⁡(1+h)h.n\ln\Big(1 + \frac{x}{n}\Big) = x\cdot\frac{\ln(1 + h)}{h}.

As n→∞,n \to \infty\mathclose{\text{,}} h→0h \to 0 with h≠0,h \ne 0\mathclose{\text{,}} so this approaches x⋅1=x.x \cdot 1 = x\mathclose{\text{.}} Finally, eue^u is continuous (it is differentiable, and Module 4 showed that differentiable functions are continuous), so e nln⁡(1+x/n)e^{\,n\ln(1 + x/n)} approaches ex.e^x\mathclose{\text{.}}

∎

So the two routes lead to the same number: the limit of compound interest is the base whose exponential has slope 1 at 0.

Example 6.4Continuous compounding✓ Checked

Suppose you invest £1000 at an interest rate of 5% a year. Compare the balance after one year when interest is added yearly, quarterly, monthly, daily and continuously, and find how long the money takes to double with continuous compounding.

With interest added nn times a year, each addition multiplies the balance by 1+0.05n,1 + \dfrac{0.05}{n}\mathclose{\text{,}} so after one year the balance is 1000(1+0.05n)n1000\Big(1 + \dfrac{0.05}{n}\Big)^n pounds:

nn1000(1+0.05n)n1000\Big(1 + \dfrac{0.05}{n}\Big)^n
111050.001050.00
441050.951050.95
12121051.161051.16
3653651051.271051.27

By Theorem 6.6 with x=0.05,x = 0.05\mathclose{\text{,}} continuous compounding gives 1000e0.05≈1051.271000e^{0.05} \approx 1051.27 pounds after a year: the same as daily compounding, to the penny. After tt years with interest added nn times a year, the balance is

1000(1+0.05n)nt=1000[(1+0.05n)n]t,\begin{aligned} &1000\Big(1 + \frac{0.05}{n}\Big)^{nt} \\ &\quad= 1000\Big[\Big(1 + \frac{0.05}{n}\Big)^n\Big]^t, \end{aligned}

which approaches 1000(e0.05)t=1000e0.05t1000\big(e^{0.05}\big)^t = 1000e^{0.05t} as n→∞.n \to \infty\mathclose{\text{.}} It doubles when e0.05t=2,e^{0.05t} = 2\mathclose{\text{,}} that is, when 0.05t=ln⁡2:0.05t = \ln 2\mathclose{\text{:}}

t=ln⁡20.05≈13.86 years.t = \frac{\ln 2}{0.05} \approx 13.86 \text{ years}.
4

Implicit differentiation

The circle x2+y2=25,x^2 + y^2 = 25\mathclose{\text{,}} of radius 5 centred at the origin, is not the graph of a function: it fails the vertical line test of Module 1. But near the point (3,4)(3, 4) it is one: the upper half of the circle is the graph of y=25−x2,y = \sqrt{25 - x^2}\mathclose{\text{,}} and the chain rule gives its slope,

dydx=−2x225−x2=−x25−x2,\frac{dy}{dx} = \frac{-2x}{2\sqrt{25 - x^2}} = -\frac{x}{\sqrt{25 - x^2}},

which at x=3x = 3 is −316=−34.-\tfrac{3}{\sqrt{16}} = -\tfrac34\mathclose{\text{.}}

You can find this slope without solving for y.y\mathclose{\text{.}} Near (3,4),(3, 4)\mathclose{\text{,}} think of yy as a function of x,x\mathclose{\text{,}} y=y(x),y = y(x)\mathclose{\text{,}} whose graph is that part of the circle. Then x2+y(x)2=25x^2 + y(x)^2 = 25 for every xx near 3: the two sides are the same function of x,x\mathclose{\text{,}} so they have the same derivative. Differentiate both sides with respect to x,x\mathclose{\text{,}} with the chain rule on y2:y^2\mathclose{\text{:}}

2x+2y dydx=0,sodydx=−xy(y≠0).2x + 2y\,\frac{dy}{dx} = 0, \quad\text{so}\quad \frac{dy}{dx} = -\frac{x}{y} \quad (y \ne 0).

At (3,4)(3, 4) this gives −34-\tfrac34 again. The same formula works at every point of the circle with y≠0:y \ne 0\mathclose{\text{:}} at (3,−4),(3, -4)\mathclose{\text{,}} on the lower half, the slope is +34.+\tfrac34\mathclose{\text{.}} This is implicit differentiation: the equation defines yy as a function of xx only implicitly, and you differentiate the equation as it stands. The answer has a geometric meaning (Figure 6.3, left): the radius from the origin to (x,y)(x, y) has slope y/xy/x (when x≠0),x \ne 0\mathclose{\text{),}} and the product of the two slopes is (y/x)(−x/y)=−1,(y/x)(-x/y) = -1\mathclose{\text{,}} so the tangent line is perpendicular to the radius, as school geometry says it must be.

Left: the circle x^2 + y^2 = 25 and its tangent line at (3, 4), perpendicular to the radius. Right: the folium of Descartes, x^3 + y^3 = 6xy, with its tangent line at (3, 3), of slope -1, and the horizontal tangent line at the top of the loop, big(2^{4/3}, 2^{5/3}big) approx (2.52, 3.17). At the origin the curve crosses itself, and has no single tangent line. Its two arms approach the dashed line x + y = -2.
Figure 6.3

Left: the circle x2+y2=25x^2 + y^2 = 25 and its tangent line at (3,4),(3, 4)\mathclose{\text{,}} perpendicular to the radius. Right: the folium of Descartes, x3+y3=6xy,x^3 + y^3 = 6xy\mathclose{\text{,}} with its tangent line at (3,3),(3, 3)\mathclose{\text{,}} of slope −1,-1\mathclose{\text{,}} and the horizontal tangent line at the top of the loop, (24/3,25/3)≈(2.52,3.17).\big(2^{4/3}, 2^{5/3}\big) \approx (2.52, 3.17)\mathclose{\text{.}} At the origin the curve crosses itself, and has no single tangent line. Its two arms approach the dashed line x+y=−2.x + y = -2\mathclose{\text{.}}

Key idea

Implicit differentiation. To find dydx\dfrac{dy}{dx} on a curve given by an equation in xx and y:y\mathclose{\text{:}}

  1. Differentiate both sides with respect to x,x\mathclose{\text{,}} treating yy as a function of x.x\mathclose{\text{.}} Every term with yy needs the chain rule, as in ddxyn=nyn−1dydx,\dfrac{d}{dx}y^n = ny^{n-1}\dfrac{dy}{dx}\mathclose{\text{,}} and products such as xyxy need the product rule.
  2. Collect the terms with dydx\dfrac{dy}{dx} on one side, and factor it out.
  3. Divide by its coefficient, where that coefficient is not 0. The answer usually contains both xx and y:y\mathclose{\text{:}} evaluate it at a point of the curve.

The method assumes that near the point the equation does define yy as a differentiable function of x.x\mathclose{\text{.}} A theorem of several-variable calculus, the implicit function theorem, guarantees this at a point of the curve where the coefficient of dy/dxdy/dx in step 3 is not 0, provided that the equation is built from functions with continuous derivatives near the point, as the equations of this module are near the points where they are used. This series uses the theorem without proof; Module 17 states it precisely. Where the coefficient is 0, look more closely: the circle has vertical tangent lines at (±5,0),(\pm5, 0)\mathclose{\text{,}} where y=0.y = 0\mathclose{\text{.}}

Example 6.5The folium of Descartes✓ Checked

The curve x3+y3=6xyx^3 + y^3 = 6xy (Figure 6.3, right) is called the folium (Latin for “leaf”) of Descartes. Show that (3,3)(3, 3) lies on it, find the tangent line there, and find the points where the tangent line is horizontal.

At (3,3),(3, 3)\mathclose{\text{,}} x3+y3=27+27=54x^3 + y^3 = 27 + 27 = 54 and 6xy=6⋅3⋅3=54,6xy = 6 \cdot 3 \cdot 3 = 54\mathclose{\text{,}} so the point is on the curve. Differentiate both sides, with the chain rule on y3y^3 and the product rule on 6xy:6xy\mathclose{\text{:}}

3x2+3y2 y′=6y+6x y′.3x^2 + 3y^2\,y' = 6y + 6x\,y'.

Collect the terms with y′y' on the left and factor, then divide by 3y2−6x=3(y2−2x)3y^2 - 6x = 3\big(y^2 - 2x\big) where it is not 0:

(3y2−6x) y′=6y−3x2,y′=2y−x2y2−2x(y2≠2x).\begin{aligned} \big(3y^2 - 6x\big)\,y' &= 6y - 3x^2, \\ y' &= \frac{2y - x^2}{y^2 - 2x} \quad \big(y^2 \ne 2x\big). \end{aligned}

At (3,3),(3, 3)\mathclose{\text{,}} y′=6−99−6=−1,y' = \dfrac{6 - 9}{9 - 6} = -1\mathclose{\text{,}} and the tangent line is y−3=−(x−3),y - 3 = -(x - 3)\mathclose{\text{,}} that is, y=6−x.y = 6 - x\mathclose{\text{.}}

The tangent line is horizontal where y′=0:y' = 0\mathclose{\text{:}} where the numerator 2y−x22y - x^2 is 0 and the denominator is not. Substitute y=x2/2y = x^2/2 into the equation of the curve, subtract x3x^3 from both sides, and multiply by 8:

x3+x68=6x⋅x22=3x3,x6=16x3,x3(x3−16)=0.\begin{aligned} x^3 + \frac{x^6}{8} &= 6x\cdot\frac{x^2}{2} = 3x^3, \\ x^6 &= 16x^3, \\ x^3\big(x^3 - 16\big) &= 0. \end{aligned}

The root x=0x = 0 gives the origin, where the denominator y2−2xy^2 - 2x is 0 too, so the formula says nothing there: the curve crosses itself. The other root, x3=16,x^3 = 16\mathclose{\text{,}} gives x=161/3=24/3≈2.520x = 16^{1/3} = 2^{4/3} \approx 2.520 and y=12x2=12⋅28/3=25/3≈3.175.y = \tfrac12 x^2 = \tfrac12 \cdot 2^{8/3} = 2^{5/3} \approx 3.175\mathclose{\text{.}} There the denominator is 210/3−2⋅24/3=210/3−27/3=27/3,2^{10/3} - 2 \cdot 2^{4/3} = 2^{10/3} - 2^{7/3} = 2^{7/3}\mathclose{\text{,}} which is not 0. So the tangent line is horizontal at exactly one point, (24/3,25/3),\big(2^{4/3}, 2^{5/3}\big)\mathclose{\text{,}} the top of the loop. Swapping xx and yy leaves the equation unchanged, so the mirror point (25/3,24/3)\big(2^{5/3}, 2^{4/3}\big) has a vertical tangent line.

Watch out

When you differentiate an equation implicitly, yy is a function of x:x\mathclose{\text{:}} ddxy2=2y y′,\dfrac{d}{dx}y^2 = 2y\,y'\mathclose{\text{,}} not 2y,2y\mathclose{\text{,}} and ddx(xy)=y+x y′\dfrac{d}{dx}(xy) = y + x\,y' by the product rule, not y′.y'\mathclose{\text{.}} Differentiate both sides: the derivative of the constant 25 is 0, not 25.

5

Inverse trigonometric functions

To solve sin⁡θ=12\sin\theta = \tfrac12 for an angle you need an inverse of the sine. But the sine is not one-to-one: sin⁡θ=12\sin\theta = \tfrac12 for θ=π/6,\theta = \pi/6\mathclose{\text{,}} 5π/6,5\pi/6\mathclose{\text{,}} 13π/613\pi/6 and infinitely many other angles. As with x2x^2 in Module 1, restrict the domain to an interval on which the function is one-to-one and takes each of its values once. For the sine the standard choice is [−π/2,π/2],[-\pi/2, \pi/2]\mathclose{\text{,}} where it increases from −1-1 to 1; for the cosine, [0,π],[0, \pi]\mathclose{\text{,}} where it decreases from 1 to −1;-1\mathclose{\text{;}} and for the tangent, (−π/2,π/2),(-\pi/2, \pi/2)\mathclose{\text{,}} where it increases through every real value (Figure 6.4).

Definition 6.2Inverse trigonometric functions
  • For −1≤x≤1,-1 \le x \le 1\mathclose{\text{,}} arcsin⁡x\arcsin x is the number yy in [−π/2,π/2][-\pi/2, \pi/2] with sin⁡y=x.\sin y = x\mathclose{\text{.}}
  • For −1≤x≤1,-1 \le x \le 1\mathclose{\text{,}} arccos⁡x\arccos x is the number yy in [0,π][0, \pi] with cos⁡y=x.\cos y = x\mathclose{\text{.}}
  • For every real x,x\mathclose{\text{,}} arctan⁡x\arctan x is the number yy in (−π/2,π/2)(-\pi/2, \pi/2) with tan⁡y=x.\tan y = x\mathclose{\text{.}}

They are read “arc sine of x”, “arc cosine of x” and “arc tangent of x”. Their domains are [−1,1],[-1, 1]\mathclose{\text{,}} [−1,1][-1, 1] and R,\R\mathclose{\text{,}} and their ranges [−π/2,π/2],[-\pi/2, \pi/2]\mathclose{\text{,}} [0,π][0, \pi] and (−π/2,π/2).(-\pi/2, \pi/2)\mathclose{\text{.}}

The name says what arcsin⁡x\arcsin x is: the arc, that is, the angle in radians, whose sine is x.x\mathclose{\text{.}} Since arcsin⁡\arcsin undoes the restricted sine, sin⁡(arcsin⁡x)=x\sin(\arcsin x) = x for every xx in [−1,1];[-1, 1]\mathclose{\text{;}} but arcsin⁡(sin⁡θ)=θ\arcsin(\sin\theta) = \theta only for θ\theta in [−π/2,π/2][-\pi/2, \pi/2] (Example 6.6). The same holds for the other two, with their own intervals.

The inverse trigonometric functions. In each panel the part of the trigonometric function that is inverted (orange) and its inverse (blue) are mirror images in the line y = x (dashed). Left: sin x on [-pi/2, pi/2] and arcsin x. Middle: cos x on [0, pi] and arccos x. Right: tan x on (-pi/2, pi/2) and arctan x, whose graph has the horizontal asymptotes y = pmpi/2.
Figure 6.4

The inverse trigonometric functions. In each panel the part of the trigonometric function that is inverted (orange) and its inverse (blue) are mirror images in the line y=xy = x (dashed). Left: sin⁡x\sin x on [−π/2,π/2][-\pi/2, \pi/2] and arcsin⁡x.\arcsin x\mathclose{\text{.}} Middle: cos⁡x\cos x on [0,π][0, \pi] and arccos⁡x.\arccos x\mathclose{\text{.}} Right: tan⁡x\tan x on (−π/2,π/2)(-\pi/2, \pi/2) and arctan⁡x,\arctan x\mathclose{\text{,}} whose graph has the horizontal asymptotes y=±π/2.y = \pm\pi/2\mathclose{\text{.}}

Watch out

Many books and calculators write sin⁡−1x\sin^{-1}x for arcsin⁡x\arcsin x (and cos⁡−1x,\cos^{-1}x\mathclose{\text{,}} tan⁡−1x).\tan^{-1}x\mathclose{\text{).}} This −1-1 means “inverse function”, as in f−1;f^{-1}\mathclose{\text{;}} it is not an exponent, so sin⁡−1x\sin^{-1}x is not (sin⁡x)−1=1sin⁡x.(\sin x)^{-1} = \dfrac{1}{\sin x}\mathclose{\text{.}} The notation clashes with sin⁡2x,\sin^2 x\mathclose{\text{,}} which does mean (sin⁡x)2.(\sin x)^2\mathclose{\text{.}} For x=12:x = \tfrac12\mathclose{\text{:}} arcsin⁡12=π6≈0.524,\arcsin\tfrac12 = \tfrac{\pi}{6} \approx 0.524\mathclose{\text{,}} while 1sin⁡(1/2)≈2.086.\dfrac{1}{\sin(1/2)} \approx 2.086\mathclose{\text{.}} This series writes arcsin⁡.{\arcsin}\mathclose{\text{.}}

Example 6.6Values of the inverse trigonometric functions✓ Checked

Find (a) arcsin⁡12,\arcsin\tfrac12\mathclose{\text{,}} (b) arccos⁡(−12),\arccos\big(-\tfrac12\big)\mathclose{\text{,}} (c) arctan⁡(−1)\arctan(-1) and (d) arcsin⁡(sin⁡3π4).\arcsin\big(\sin\tfrac{3\pi}{4}\big)\mathclose{\text{.}}

(a) The angle in [−π/2,π/2][-\pi/2, \pi/2] whose sine is 12\tfrac12 is π/6\pi/6 (Module 1’s table): arcsin⁡12=π6.\arcsin\tfrac12 = \tfrac{\pi}{6}\mathclose{\text{.}}

(b) cos⁡π3=12\cos\tfrac{\pi}{3} = \tfrac12 and cos⁡(π−θ)=−cos⁡θ,\cos(\pi - \theta) = -\cos\theta\mathclose{\text{,}} so cos⁡2π3=−12;\cos\tfrac{2\pi}{3} = -\tfrac12\mathclose{\text{;}} and 2π3\tfrac{2\pi}{3} is in [0,π].[0, \pi]\mathclose{\text{.}} So arccos⁡(−12)=2π3.\arccos\big(-\tfrac12\big) = \tfrac{2\pi}{3}\mathclose{\text{.}}

(c) tan⁡(−π4)=−tan⁡π4=−1,\tan\big(-\tfrac{\pi}{4}\big) = -\tan\tfrac{\pi}{4} = -1\mathclose{\text{,}} and −π4-\tfrac{\pi}{4} is in (−π/2,π/2):(-\pi/2, \pi/2)\mathclose{\text{:}} arctan⁡(−1)=−π4.\arctan(-1) = -\tfrac{\pi}{4}\mathclose{\text{.}}

(d) sin⁡3π4=22,\sin\tfrac{3\pi}{4} = \tfrac{\sqrt2}{2}\mathclose{\text{,}} so arcsin⁡(sin⁡3π4)=arcsin⁡22=π4,\arcsin\big(\sin\tfrac{3\pi}{4}\big) = \arcsin\tfrac{\sqrt2}{2} = \tfrac{\pi}{4}\mathclose{\text{,}} not 3π4:\tfrac{3\pi}{4}\mathclose{\text{:}} arcsin⁡\arcsin always returns an angle in [−π/2,π/2],[-\pi/2, \pi/2]\mathclose{\text{,}} and 3π4\tfrac{3\pi}{4} is not one.

Theorem 6.7Derivatives of the inverse trigonometric functions
ddxarcsin⁡x=11−x2,ddxarccos⁡x=−11−x2,ddxarctan⁡x=11+x2,\begin{aligned} \frac{d}{dx}\arcsin x &= \frac{1}{\sqrt{1 - x^2}}, \\ \frac{d}{dx}\arccos x &= -\frac{1}{\sqrt{1 - x^2}}, \\ \frac{d}{dx}\arctan x &= \frac{1}{1 + x^2}, \end{aligned}

the first two for −1<x<1,-1 < x < 1\mathclose{\text{,}} the third for every real x.x\mathclose{\text{.}}

Proof

The sine is differentiable, hence continuous, and one-to-one on the open interval (−π/2,π/2),(-\pi/2, \pi/2)\mathclose{\text{,}} with derivative cos⁡y>0\cos y > 0 there, and its values there form (−1,1).(-1, 1)\mathclose{\text{.}} By Theorem 6.4, arcsin⁡\arcsin is differentiable at every xx in (−1,1),(-1, 1)\mathclose{\text{,}} and with y=arcsin⁡x,y = \arcsin x\mathclose{\text{,}}

ddxarcsin⁡x=1cos⁡y.\frac{d}{dx}\arcsin x = \frac{1}{\cos y}.

To write this in terms of x:x\mathclose{\text{:}} cos⁡2y=1−sin⁡2y=1−x2,\cos^2 y = 1 - \sin^2 y = 1 - x^2\mathclose{\text{,}} and cos⁡y>0\cos y > 0 because yy is in (−π/2,π/2),(-\pi/2, \pi/2)\mathclose{\text{,}} so cos⁡y\cos y is the positive square root, 1−x2.\sqrt{1 - x^2}\mathclose{\text{.}}

For arccos⁡,{\arccos}\mathclose{\text{,}} use the cosine on (0,π),(0, \pi)\mathclose{\text{,}} with derivative −sin⁡y<0;-\sin y < 0\mathclose{\text{;}} there sin⁡y>0,\sin y > 0\mathclose{\text{,}} so sin⁡y=1−cos⁡2y=1−x2\sin y = \sqrt{1 - \cos^2 y} = \sqrt{1 - x^2} and (arccos⁡x)′=−1/1−x2.(\arccos x)' = -1/\sqrt{1 - x^2}\mathclose{\text{.}} For arctan⁡,{\arctan}\mathclose{\text{,}} use the tangent on (−π/2,π/2),(-\pi/2, \pi/2)\mathclose{\text{,}} with derivative sec⁡2y\sec^2 y (Module 5). Dividing cos⁡2y+sin⁡2y=1\cos^2 y + \sin^2 y = 1 by cos⁡2y\cos^2 y gives sec⁡2y=1+tan⁡2y=1+x2,\sec^2 y = 1 + \tan^2 y = 1 + x^2\mathclose{\text{,}} so (arctan⁡x)′=1/(1+x2).(\arctan x)' = 1/(1 + x^2)\mathclose{\text{.}}

∎

At x=±1x = \pm1 Theorem 6.4 does not apply: the derivative of the sine at ±π/2,\pm\pi/2\mathclose{\text{,}} cos⁡(±π/2),\cos(\pm\pi/2)\mathclose{\text{,}} is 0, and so is the derivative of the cosine at 0 and at π.\pi\mathclose{\text{.}} The graphs of arcsin⁡\arcsin and arccos⁡\arccos have vertical tangent lines there (Figure 6.4), and 1/1−x21/\sqrt{1 - x^2} grows without bound as xx approaches ±1.\pm1\mathclose{\text{.}} The derivatives of arcsin⁡\arcsin and arccos⁡\arccos add up to 0 because arcsin⁡x+arccos⁡x=π/2\arcsin x + \arccos x = \pi/2 for every xx in [−1,1]:[-1, 1]\mathclose{\text{:}} if y=arcsin⁡x,y = \arcsin x\mathclose{\text{,}} then π/2−y\pi/2 - y lies in [0,π][0, \pi] and cos⁡(π/2−y)=sin⁡y=x\cos(\pi/2 - y) = \sin y = x by the addition formula, so arccos⁡x=π/2−y.\arccos x = \pi/2 - y\mathclose{\text{.}}

Example 6.7The angle of a rising balloon✓ Checked

A balloon rises vertically from a point on level ground 100 metres from you. When it is hh metres up, you see it at the angle of elevation θ=arctan⁡h100\theta = \arctan\dfrac{h}{100} radians. How fast does θ\theta change with h,h\mathclose{\text{,}} at h=0h = 0 and at h=100?h = 100\mathclose{\text{?}}

By the chain rule, with the inner function h/100,h/100\mathclose{\text{,}}

dθdh=11+(h/100)2⋅1100=1001002+h2,\begin{aligned} \frac{d\theta}{dh} &= \frac{1}{1 + (h/100)^2}\cdot\frac{1}{100} \\ &= \frac{100}{100^2 + h^2}, \end{aligned}

after multiplying the top and the bottom by 1002.100^2\mathclose{\text{.}} At h=0h = 0 this is 10010,000=0.01\dfrac{100}{10{,}000} = 0.01 radians per metre. At h=100,h = 100\mathclose{\text{,}} where θ=arctan⁡1=π/4,\theta = \arctan 1 = \pi/4\mathclose{\text{,}} it is 10020,000=0.005\dfrac{100}{20{,}000} = 0.005 radians per metre, about 0.29∘0.29^\circ per metre. Each metre of height changes the angle less as the balloon climbs. Module 7 brings in time, and asks how fast the angle changes per second.

Good to know

Three more inverse functions, arccot⁡,{\arccot}\mathclose{\text{,}} arcsec⁡\arcsec and arccsc⁡,{\arccsc}\mathclose{\text{,}} are used less, and books disagree about their ranges. The values of the secant are the numbers xx with ∣x∣≥1.\abs{x} \ge 1\mathclose{\text{.}} For such x,x\mathclose{\text{,}} this series takes arcsec⁡x,\arcsec x\mathclose{\text{,}} read “arc secant of x”, to be the angle yy in [0,π/2)∪(π/2,π][0, \pi/2) \cup (\pi/2, \pi] with sec⁡y=x,\sec y = x\mathclose{\text{,}} that is, arcsec⁡x=arccos⁡(1/x).\arcsec x = \arccos(1/x)\mathclose{\text{.}} For ∣x∣>1\abs{x} > 1 the chain rule then gives

ddxarcsec⁡x=−11−1/x2⋅(−1x2)=1x21−1/x2=1∣x∣x2−1,\begin{aligned} &\frac{d}{dx}\arcsec x \\ &\quad= -\frac{1}{\sqrt{1 - 1/x^2}}\cdot\Big(-\frac{1}{x^2}\Big) \\ &\quad= \frac{1}{x^2\sqrt{1 - 1/x^2}} = \frac{1}{\abs{x}\sqrt{x^2 - 1}}, \end{aligned}

because x2=∣x∣x2x^2 = \abs{x}\sqrt{x^2} (Module 1) and x21−1/x2=x2−1.\sqrt{x^2}\sqrt{1 - 1/x^2} = \sqrt{x^2 - 1}\mathclose{\text{.}} The absolute value matters: arcsec⁡\arcsec increases on both pieces of its domain, so its slope is positive for x<−1x < -1 too. Other books choose the range [0,π/2)∪[π,3π/2),[0, \pi/2) \cup [\pi, 3\pi/2)\mathclose{\text{,}} and then the derivative is 1xx2−1,\dfrac{1}{x\sqrt{x^2 - 1}}\mathclose{\text{,}} negative for x<−1.x < -1\mathclose{\text{.}} When you meet one of these functions elsewhere, check which range the book uses.

6

Logarithmic differentiation

The power rule for real exponents

Modules 4 and 5 proved that ddxxn=nxn−1\dfrac{d}{dx}x^n = nx^{n-1} for every integer n,n\mathclose{\text{,}} positive, negative or zero. With exe^x and ln⁡x\ln x the rule extends to every real exponent.

Theorem 6.8The power rule for real exponents

For every real number rr and every x>0,x > 0\mathclose{\text{,}}

ddxxr=r xr−1.\frac{d}{dx}x^r = r\,x^{r-1}.
Proof

For x>0,x > 0\mathclose{\text{,}} x=eln⁡x,x = e^{\ln x}\mathclose{\text{,}} so by the law (au)v=auv,(a^u)^v = a^{uv}\mathclose{\text{,}} xr=erln⁡x.x^r = e^{r\ln x}\mathclose{\text{.}} By the chain rule and Theorem 6.5,

ddxxr=erln⁡x⋅rx=xr⋅rx=r xr−1.\frac{d}{dx}x^r = e^{r\ln x}\cdot\frac{r}{x} = x^r\cdot\frac{r}{x} = r\,x^{r-1}.
∎

So ddxx=ddxx1/2=12x−1/2=12x,\dfrac{d}{dx}\sqrt{x} = \dfrac{d}{dx}x^{1/2} = \dfrac{1}{2}x^{-1/2} = \dfrac{1}{2\sqrt x}\mathclose{\text{,}} and ddxx2=2 x2−1.\dfrac{d}{dx}x^{\sqrt2} = \sqrt2\,x^{\sqrt2 - 1}\mathclose{\text{.}} Where xrx^r is also defined for negative x,x\mathclose{\text{,}} as x1/3=x3x^{1/3} = \sqrt[3]{x} is, the same formula holds there too: for x<0x < 0 write x3=−−x3\sqrt[3]{x} = -\sqrt[3]{-x} and use the chain rule.

Four functions look alike:

Function What it is Derivative
e2e^2 a constant 00
xex^e a power: variable base, constant exponent e xe−1e\,x^{e-1}
exe^x an exponential: constant base, variable exponent exe^x
xxx^x variable base and variable exponent Example 6.8

For xxx^x neither the power rule nor the rule for exponentials applies. Taking logarithms turns the exponent into a factor.

Example 6.8The derivative of xxx^x✓ Checked

Differentiate y=xxy = x^x for x>0,x > 0\mathclose{\text{,}} and find where its tangent line is horizontal.

Since y>0,y > 0\mathclose{\text{,}} you may take ln⁡\ln of both sides: ln⁡y=ln⁡(xx)=xln⁡x.\ln y = \ln\big(x^x\big) = x\ln x\mathclose{\text{.}} The function yy is differentiable, because xx=exln⁡x,x^x = e^{x\ln x}\mathclose{\text{,}} as in the proof of Theorem 6.8. So you may differentiate both sides with respect to x:x\mathclose{\text{:}} on the left with the chain rule and Theorem 6.5, as in implicit differentiation, and on the right with the product rule:

y′y=1⋅ln⁡x+x⋅1x=ln⁡x+1.\frac{y'}{y} = 1\cdot\ln x + x\cdot\frac1x = \ln x + 1.

Multiply by y=xx:y = x^x\mathclose{\text{:}}

ddxxx=xx(ln⁡x+1).\frac{d}{dx}x^x = x^x(\ln x + 1).

The factor xxx^x is never 0, so the tangent line is horizontal exactly where ln⁡x=−1:\ln x = -1\mathclose{\text{:}} at x=e−1=1/e≈0.368,x = e^{-1} = 1/e \approx 0.368\mathclose{\text{,}} where y=(1/e)1/e=e−1/e≈0.692.y = (1/e)^{1/e} = e^{-1/e} \approx 0.692\mathclose{\text{.}}

Key idea

Logarithmic differentiation. To differentiate a function yy built from products, quotients and powers, perhaps with the variable in an exponent: take ln⁡∣y∣,\ln{\abs{y}}\mathclose{\text{,}} expand it with the laws of logarithms, differentiate (the left side gives y′/y,y'/y\mathclose{\text{,}} by Theorem 6.5), and multiply by y.y\mathclose{\text{.}} It works wherever y≠0y \ne 0 and the pieces that yy is built from are differentiable; where y>0,y > 0\mathclose{\text{,}} ln⁡y\ln y will do in place of ln⁡∣y∣.\ln{\abs{y}}\mathclose{\text{.}}

Example 6.9A product and a quotient✓ Checked

Find y′(1)y'(1) for

y=x2(x+1)3x2+3,x>0.y = \frac{x^2(x + 1)^3}{\sqrt{x^2 + 3}}, \quad x > 0.

For x>0x > 0 every factor is positive, so y>0,y > 0\mathclose{\text{,}} and by the laws of logarithms

ln⁡y=2ln⁡x+3ln⁡(x+1)−12ln⁡(x2+3).\begin{aligned} \ln y = {} & 2\ln x + 3\ln(x + 1) \\ & - \tfrac12\ln\big(x^2 + 3\big). \end{aligned}

Differentiate both sides:

y′y=2x+3x+1−xx2+3.\frac{y'}{y} = \frac2x + \frac{3}{x + 1} - \frac{x}{x^2 + 3}.

At x=1,x = 1\mathclose{\text{,}} y(1)=1⋅84=4y(1) = \dfrac{1 \cdot 8}{\sqrt4} = 4 and y′y=2+32−14=134,\dfrac{y'}{y} = 2 + \dfrac32 - \dfrac14 = \dfrac{13}{4}\mathclose{\text{,}} so y′(1)=4⋅134=13.y'(1) = 4 \cdot \dfrac{13}{4} = 13\mathclose{\text{.}} The product and quotient rules give the same answer, with much more algebra.

Watch out

ddxxx\dfrac{d}{dx}x^x is not x⋅xx−1x \cdot x^{x-1} (the power rule, which needs a constant exponent), and not xxln⁡xx^x\ln x (the rule for exponentials, which needs a constant base). The right answer, xxln⁡x+xx,x^x\ln x + x^x\mathclose{\text{,}} is the sum of the two: each rule accounts for one of the places where xx appears. And take the logarithm only of a positive quantity: ln⁡y\ln y needs y>0;y > 0\mathclose{\text{;}} otherwise use ln⁡∣y∣.\ln{\abs{y}}\mathclose{\text{.}}

Compute itDerivatives with SymPy

SymPy knows every derivative of this module. Declaring xx positive lets it use the rules that need x>0:x > 0\mathclose{\text{:}}

Python
import sympy as sp
x = sp.symbols('x', positive=True)
for f in [2**x, sp.log(x, 10), x**sp.E, x**x, sp.asin(x), sp.tanh(x)]:
    print(f, '  ->  ', sp.diff(f, x))
Output
2**x   ->   2**x*log(2)
log(x)/log(10)   ->   1/(x*log(10))
x**E   ->   E*x**E/x
x**x   ->   x**x*(log(x) + 1)
asin(x)   ->   1/sqrt(1 - x**2)
tanh(x)   ->   1 - tanh(x)**2

SymPy writes log for ln⁡,{\ln}\mathclose{\text{,}} E for ee and asin for arcsin⁡,{\arcsin}\mathclose{\text{,}} and its forms can differ from the page’s. It turns log(x, 10) into log(x)/log(10) before differentiating; E*x**E/x is e xe−1;e\,x^{e-1}\mathclose{\text{;}} and 1 - tanh(x)**2 equals 1/cosh⁡2x1/\cosh^2 x (Section 6.7). idiff does implicit differentiation:

Python
X, Y = sp.symbols('x y')
slope = sp.idiff(X**3 + Y**3 - 6*X*Y, Y, X)     # dy/dx on the folium of Descartes
print(slope)
print(slope.subs({X: 3, Y: 3}))
Output
(x**2 - 2*y)/(2*x - y**2)
-1

The fraction x2−2y2x−y2\dfrac{x^2 - 2y}{2x - y^2} is Example 6.5’s 2y−x2y2−2x\dfrac{2y - x^2}{y^2 - 2x} with its top and bottom multiplied by −1.-1\mathclose{\text{.}}

7

Hyperbolic functions

A chain hanging between two posts (Figure 6.5, right) looks like a parabola, but its shape is built from exe^x and e−x,e^{-x}\mathclose{\text{,}} as the end of this section shows. Two combinations of exe^x and e−xe^{-x} turn up so often in science and engineering that they have names.

Definition 6.3Hyperbolic functions

For every real x,x\mathclose{\text{,}}

sinh⁡x=ex−e−x2,cosh⁡x=ex+e−x2,tanh⁡x=sinh⁡xcosh⁡x=ex−e−xex+e−x.\begin{aligned} \sinh x &= \frac{e^x - e^{-x}}{2}, \\ \cosh x &= \frac{e^x + e^{-x}}{2}, \\ \tanh x &= \frac{\sinh x}{\cosh x} = \frac{e^x - e^{-x}}{e^x + e^{-x}}. \end{aligned}

They are the hyperbolic sine, hyperbolic cosine and hyperbolic tangent, read “hyperbolic sine of x” and so on.

Their graphs are in Figure 6.5 (left). cosh⁡x\cosh x is even, with lowest value cosh⁡0=1;\cosh 0 = 1\mathclose{\text{;}} sinh⁡x\sinh x is odd and increasing, with sinh⁡0=0;\sinh 0 = 0\mathclose{\text{;}} tanh⁡x\tanh x is odd and increasing, and lies between −1-1 and 1, approaching 1 as x→∞x \to \infty and −1-1 as x→−∞.x \to -\infty\mathclose{\text{.}} For large x,x\mathclose{\text{,}} e−xe^{-x} is tiny, so cosh⁡x\cosh x and sinh⁡x\sinh x are both close to 12ex.\tfrac12 e^x\mathclose{\text{.}} The S-shaped tanh⁡\tanh is one of the standard activation functions of neural networks.

Theorem 6.9Hyperbolic identity and derivatives

For every real x,x\mathclose{\text{,}}

cosh⁡2x−sinh⁡2x=1,\cosh^2 x - \sinh^2 x = 1,

and

ddxsinh⁡x=cosh⁡x,ddxcosh⁡x=sinh⁡x,ddxtanh⁡x=1cosh⁡2x=1−tanh⁡2x.\begin{aligned} \frac{d}{dx}\sinh x &= \cosh x, \\ \frac{d}{dx}\cosh x &= \sinh x, \\ \frac{d}{dx}\tanh x &= \frac{1}{\cosh^2 x} = 1 - \tanh^2 x. \end{aligned}
Proof

Expand the squares, using exe−x=1:e^x e^{-x} = 1\mathclose{\text{:}}

cosh⁡2x=e2x+2+e−2x4,sinh⁡2x=e2x−2+e−2x4.\begin{aligned} \cosh^2 x &= \frac{e^{2x} + 2 + e^{-2x}}{4}, \\ \sinh^2 x &= \frac{e^{2x} - 2 + e^{-2x}}{4}. \end{aligned}

In the difference cosh⁡2x−sinh⁡2x\cosh^2 x - \sinh^2 x everything cancels except 24−(−24)=1.\tfrac24 - \big(-\tfrac24\big) = 1\mathclose{\text{.}}

Since ddxe−x=−e−x,\dfrac{d}{dx}e^{-x} = -e^{-x}\mathclose{\text{,}} the derivative of sinh⁡x\sinh x is ex+e−x2=cosh⁡x,\dfrac{e^x + e^{-x}}{2} = \cosh x\mathclose{\text{,}} and that of cosh⁡x\cosh x is ex−e−x2=sinh⁡x.\dfrac{e^x - e^{-x}}{2} = \sinh x\mathclose{\text{.}} By the quotient rule and the identity,

ddxtanh⁡x=cosh⁡2x−sinh⁡2xcosh⁡2x=1cosh⁡2x,\begin{aligned} \frac{d}{dx}\tanh x &= \frac{\cosh^2 x - \sinh^2 x}{\cosh^2 x} \\ &= \frac{1}{\cosh^2 x}, \end{aligned}

and dividing the identity by cosh⁡2x\cosh^2 x gives 1−tanh⁡2x=1cosh⁡2x.1 - \tanh^2 x = \dfrac{1}{\cosh^2 x}\mathclose{\text{.}}

∎

The identity explains the name. The point (cos⁡t,sin⁡t)(\cos t, \sin t) lies on the circle x2+y2=1;x^2 + y^2 = 1\mathclose{\text{;}} the point (cosh⁡t,sinh⁡t)(\cosh t, \sinh t) lies on the hyperbola x2−y2=1,x^2 - y^2 = 1\mathclose{\text{,}} on its right-hand branch, since cosh⁡t≥1.\cosh t \ge 1\mathclose{\text{.}} The formulas mirror those of trigonometry with changes of sign: cos⁡′=−sin⁡\cos' = -\sin but cosh⁡′=sinh⁡,\cosh' = {\sinh}\mathclose{\text{,}} and cos⁡2+sin⁡2=1\cos^2 + \sin^2 = 1 but cosh⁡2−sinh⁡2=1.\cosh^2 - \sinh^2 = 1\mathclose{\text{.}} The other three hyperbolic functions, sech⁡x=1/cosh⁡x,\sech x = 1/\cosh x\mathclose{\text{,}} csch⁡x=1/sinh⁡x\csch x = 1/\sinh x and coth⁡x=cosh⁡x/sinh⁡x\coth x = \cosh x/\sinh x (the last two for x≠0),x \ne 0\mathclose{\text{),}} are used less. With them, (tanh⁡x)′=sech⁡2x,(\tanh x)' = \sech^2 x\mathclose{\text{,}} and the quotient rule gives, in the same way, (coth⁡x)′=−csch⁡2x,(\coth x)' = -\csch^2 x\mathclose{\text{,}} (sech⁡x)′=−sech⁡xtanh⁡x(\sech x)' = -\sech x\tanh x and (csch⁡x)′=−csch⁡xcoth⁡x.(\csch x)' = -\csch x\coth x\mathclose{\text{.}}

The hanging chain

A chain or cable hanging freely between two supports, under its own weight, takes the shape of a catenary (from the Latin for “chain”): with its lowest point at (0,a),(0, a)\mathclose{\text{,}} its equation is

y=acosh⁡xa,y = a\cosh\frac{x}{a},

where the constant a>0a > 0 is the horizontal tension in the chain divided by its weight per unit length. Deriving it needs arc length (Module 12) and a differential equation (Module 13), and this series does not do it. Figure 6.5 (right) compares a catenary with a parabola: they look alike, but they are different curves.

Left: the graphs of cosh x, sinh x and tanh x. For large x, cosh x and sinh x both approach tfrac12 e^x (dotted), and tanh x approaches 1. Right: the catenary y = cosh x for -2 le x le 2 (blue), the shape of a chain hanging between two supports, and the parabola through its lowest point and its two ends (orange, dashed). The catenary is flatter at the bottom and steeper at the ends.
Figure 6.5

Left: the graphs of cosh⁡x,\cosh x\mathclose{\text{,}} sinh⁡x\sinh x and tanh⁡x.\tanh x\mathclose{\text{.}} For large x,x\mathclose{\text{,}} cosh⁡x\cosh x and sinh⁡x\sinh x both approach 12ex\tfrac12 e^x (dotted), and tanh⁡x\tanh x approaches 1. Right: the catenary y=cosh⁡xy = \cosh x for −2≤x≤2-2 \le x \le 2 (blue), the shape of a chain hanging between two supports, and the parabola through its lowest point and its two ends (orange, dashed). The catenary is flatter at the bottom and steeper at the ends.

What you can check now is the differential equation that the catenary satisfies.

Example 6.10The hanging chain✓ Checked

Show that y=acosh⁡(x/a),y = a\cosh(x/a)\mathclose{\text{,}} with a>0,a > 0\mathclose{\text{,}} satisfies

y′′=1a1+(y′)2,y'' = \frac1a\sqrt{1 + (y')^2},

the equation that a hanging chain obeys.

By the chain rule and Theorem 6.9, y′=asinh⁡xa⋅1a=sinh⁡xa,y' = a\sinh\dfrac{x}{a}\cdot\dfrac1a = \sinh\dfrac{x}{a}\mathclose{\text{,}} and y′′=1acosh⁡xa.y'' = \dfrac1a\cosh\dfrac{x}{a}\mathclose{\text{.}} On the other side, by the identity, 1+(y′)2=1+sinh⁡2xa=cosh⁡2xa,1 + (y')^2 = 1 + \sinh^2\dfrac{x}{a} = \cosh^2\dfrac{x}{a}\mathclose{\text{,}} and since cosh⁡\cosh is positive, 1+(y′)2=cosh⁡xa.\sqrt{1 + (y')^2} = \cosh\dfrac{x}{a}\mathclose{\text{.}} So both sides equal 1acosh⁡xa.\dfrac1a\cosh\dfrac{x}{a}\mathclose{\text{.}}

Watch out

Two sign slips. ddxcosh⁡x=+sinh⁡x,\dfrac{d}{dx}\cosh x = +\sinh x\mathclose{\text{,}} unlike ddxcos⁡x=−sin⁡x;\dfrac{d}{dx}\cos x = -\sin x\mathclose{\text{;}} and the identity is cosh⁡2x−sinh⁡2x=1,\cosh^2 x - \sinh^2 x = 1\mathclose{\text{,}} with a minus sign. To test a formula, try x=ln⁡2,x = \ln 2\mathclose{\text{,}} where cosh⁡x=54\cosh x = \tfrac54 and sinh⁡x=34:\sinh x = \tfrac34\mathclose{\text{:}} (54)2−(34)2=1,\big(\tfrac54\big)^2 - \big(\tfrac34\big)^2 = 1\mathclose{\text{,}} while (54)2+(34)2=178.\big(\tfrac54\big)^2 + \big(\tfrac34\big)^2 = \tfrac{17}{8}\mathclose{\text{.}}

8

Exponential growth and decay

By Theorem 6.1, an exponential changes at a rate proportional to its size. Many quantities behave like that: a population with plenty of food and space grows at a rate proportional to its size, money earning continuous interest grows at a rate proportional to the balance, and a radioactive substance decays at a rate proportional to the amount left. Each is described by the equation

dydt=ky,\frac{dy}{dt} = ky,

where kk is a constant. This is a differential equation: an equation for an unknown function y(t)y(t) that involves its derivative. A solution is a function that makes the equation true for every t.t\mathclose{\text{.}}

Theorem 6.10Exponential growth and decay

For any constants CC and k,k\mathclose{\text{,}} the function y(t)=Cekty(t) = Ce^{kt} satisfies

dydt=kyfor every t,y(0)=C.\begin{aligned} \frac{dy}{dt} &= ky \quad \text{for every } t, \\ y(0) &= C. \end{aligned}
Proof

By the chain rule, ddt(Cekt)=C⋅kekt=k⋅Cekt=ky,\dfrac{d}{dt}\big(Ce^{kt}\big) = C\cdot ke^{kt} = k\cdot Ce^{kt} = ky\mathclose{\text{,}} and y(0)=Ce0=C.y(0) = Ce^0 = C\mathclose{\text{.}}

∎

This checks that a formula is a solution; it is not a method for finding solutions. Module 13 solves differential equations, and shows that these are the only solutions of y′=ky:y' = ky\mathclose{\text{:}} a quantity whose rate of change is kk times its size is y(0)ekt.y(0)e^{kt}\mathclose{\text{.}}

Doubling time and half-life

If k>0k > 0 and C>0,C > 0\mathclose{\text{,}} y=Cekty = Ce^{kt} grows. It doubles in the time TT with ekT=2,e^{kT} = 2\mathclose{\text{,}} that is,

T=ln⁡2k,T = \frac{\ln 2}{k},

the doubling time, whatever the starting value and whenever you start the clock: y(t+T)=CektekT=2y(t).y(t + T) = Ce^{kt}e^{kT} = 2y(t)\mathclose{\text{.}} If k<0,k < 0\mathclose{\text{,}} yy decays, and it halves in the half-life

T1/2=ln⁡2∣k∣.T_{1/2} = \frac{\ln 2}{\abs{k}}.

Since ln⁡2≈0.693,\ln 2 \approx 0.693\mathclose{\text{,}} a quantity that grows continuously at pp% per unit of time, so that k=p/100,k = p/100\mathclose{\text{,}} doubles in about 69.3/p69.3/p units of time. This is the “rule of 70” of finance: at 5% a year, money doubles in about 70/5=1470/5 = 14 years (Example 6.4 found 13.86).

Example 6.11The bacteria of Module 1✓ Checked

Module 1’s Example 1.6 modelled a colony of bacteria by N(t)=1000⋅2t/3N(t) = 1000 \cdot 2^{t/3} cells after tt hours. Write NN in the form Cekt,Ce^{kt}\mathclose{\text{,}} check its doubling time, and find how fast the colony grows at t=0t = 0 and at t=6.t = 6\mathclose{\text{.}}

Since 2=eln⁡2,2 = e^{\ln 2}\mathclose{\text{,}} 2t/3=e(ln⁡2/3)t,2^{t/3} = e^{(\ln 2/3)t}\mathclose{\text{,}} and N(t)=1000ektN(t) = 1000e^{kt} with

k=ln⁡23≈0.2310 per hour.k = \frac{\ln 2}{3} \approx 0.2310 \text{ per hour}.

The doubling time is ln⁡2k=3\dfrac{\ln 2}{k} = 3 hours, as before. By Theorem 6.10, N′(t)=kN(t).N'(t) = kN(t)\mathclose{\text{.}} At t=0t = 0 the colony grows at 1000k≈231.01000k \approx 231.0 cells per hour; at t=6,t = 6\mathclose{\text{,}} when N=1000⋅22=4000,N = 1000 \cdot 2^2 = 4000\mathclose{\text{,}} it grows at 4000k≈924.24000k \approx 924.2 cells per hour, four times as fast.

Example 6.12Half-life✓ Checked

Suppose a radioactive isotope has a half-life of 8 days. (a) Find the constant kk in its law of decay, y=y0ekt,y = y_0e^{kt}\mathclose{\text{,}} with tt in days. (b) What fraction of a sample is left after 30 days? (c) When is only 1% left?

(a) ln⁡2∣k∣=8\dfrac{\ln 2}{\abs{k}} = 8 and k<0,k < 0\mathclose{\text{,}} so k=−ln⁡28≈−0.08664k = -\dfrac{\ln 2}{8} \approx -0.08664 per day.

(b) The amount after tt days is y(t)=y0ekt=y0e−(ln⁡2/8)t=y0 2−t/8,y(t) = y_0e^{kt} = y_0e^{-(\ln 2/8)t} = y_0\,2^{-t/8}\mathclose{\text{,}} where y0y_0 is the amount at t=0.t = 0\mathclose{\text{.}} After 30 days the fraction left is 2−30/8=2−3.75≈0.0743,2^{-30/8} = 2^{-3.75} \approx 0.0743\mathclose{\text{,}} about 7.4%.

(c) Solve 2−t/8=0.01.2^{-t/8} = 0.01\mathclose{\text{.}} Take ln⁡\ln of both sides: −t8ln⁡2=ln⁡0.01=−ln⁡100,-\dfrac{t}{8}\ln 2 = \ln 0.01 = -\ln 100\mathclose{\text{,}} so

t=8ln⁡100ln⁡2≈53.15 days.t = \frac{8\ln 100}{\ln 2} \approx 53.15 \text{ days}.
Watch out

Two slips with exponential models. The rate kk and the time tt must use the same unit: a rate per day needs tt in days. And a quantity that halves every 8 days does not vanish after 16 days: after 16 days a quarter is left, and after 8m8m days a fraction (12)m,\big(\tfrac12\big)^m\mathclose{\text{,}} never zero.

Compute itGrowth and decay with SymPy

With symbols, SymPy checks that CektCe^{kt} solves y′=ky,y' = ky\mathclose{\text{,}} and that CtektCte^{kt} does not:

Python
import sympy as sp
t, k, C = sp.symbols('t k C')
y = C*sp.exp(k*t)
print(sp.diff(y, t) - k*y)                    # 0: y' = ky for every t
w = C*t*sp.exp(k*t)
print(sp.simplify(sp.diff(w, t) - k*w))       # not 0: w is not a solution
print(sp.solve(sp.Eq(sp.exp(k*t), 2), t))     # the doubling time
Output
0
C*exp(k*t)
[log(2)/k]

The call sp.solve(equation, t) returns a list of solutions for t here. To find the doubling time, sp.Eq builds the equation ekt=2.e^{kt} = 2\mathclose{\text{.}}

Then the numbers of Example 6.12:

Python
k8 = -sp.log(2)/8
print(sp.N(k8, 4), sp.N(sp.exp(30*k8), 3), sp.N(sp.log(sp.Rational(1, 100))/k8, 4))
Output
-0.08664 0.0743 53.15

They are k≈−0.08664,k \approx -0.08664\mathclose{\text{,}} the fraction 0.0743 left after 30 days, and 53.15 days until 1% is left.

9

What you learned

  • Compound interest, (1+1n)n,\big(1 + \tfrac1n\big)^n\mathclose{\text{,}} and the slope of axa^x at 0 lead to the same number, e≈2.71828.e \approx 2.71828\mathclose{\text{.}} The series defines ee by lim⁡h→0(eh−1)/h=1,\lim_{h\to0}(e^h - 1)/h = 1\mathclose{\text{,}} taking on trust Module 1’s real powers and that 2x2^x has a slope at 0, and proves that (1+xn)n→ex.\big(1 + \tfrac{x}{n}\big)^n \to e^x\mathclose{\text{.}}
  • The derivative of axa^x is its slope at 0 times ax,a^x\mathclose{\text{,}} and the slope at 0 is ln⁡a:\ln a\mathclose{\text{:}} (ex)′=ex(e^x)' = e^x and (ax)′=axln⁡a.(a^x)' = a^x\ln a\mathclose{\text{.}}
  • If ff is continuous and one-to-one on an open interval and f′(a)≠0,f'(a) \ne 0\mathclose{\text{,}} then (f−1)′(f(a))=1/f′(a):(f^{-1})'\big(f(a)\big) = 1/f'(a)\mathclose{\text{:}} reflection in y=xy = x turns slope mm into slope 1/m.1/m\mathclose{\text{.}}
  • (ln⁡x)′=1/x(\ln x)' = 1/x for x>0,x > 0\mathclose{\text{,}} (ln⁡∣x∣)′=1/x(\ln\abs{x})' = 1/x for x≠0,x \ne 0\mathclose{\text{,}} (ln⁡∣u∣)′=u′/u(\ln\abs{u})' = u'/u where u≠0,u \ne 0\mathclose{\text{,}} and (log⁡ax)′=1/(xln⁡a).(\log_a x)' = 1/(x\ln a)\mathclose{\text{.}}
  • Implicit differentiation: differentiate the equation of a curve with y=y(x),y = y(x)\mathclose{\text{,}} using the chain rule on every term with y,y\mathclose{\text{,}} then solve for y′.y'\mathclose{\text{.}} Where the coefficient of y′y' is not 0, the implicit function theorem guarantees that yy is a differentiable function of x.x\mathclose{\text{.}}
  • arcsin⁡,{\arcsin}\mathclose{\text{,}} arccos⁡\arccos and arctan⁡\arctan invert sin⁡\sin on [−π/2,π/2],[-\pi/2, \pi/2]\mathclose{\text{,}} cos⁡\cos on [0,π][0, \pi] and tan⁡\tan on (−π/2,π/2).(-\pi/2, \pi/2)\mathclose{\text{.}} Their derivatives are 1/1−x2,1/\sqrt{1 - x^2}\mathclose{\text{,}} −1/1−x2-1/\sqrt{1 - x^2} and 1/(1+x2).1/(1 + x^2)\mathclose{\text{.}} sin⁡−1x\sin^{-1}x means arcsin⁡x,\arcsin x\mathclose{\text{,}} not 1/sin⁡x.1/\sin x\mathclose{\text{.}}
  • Logarithmic differentiation handles products, quotients and variable exponents, as in (xx)′=xx(ln⁡x+1);(x^x)' = x^x(\ln x + 1)\mathclose{\text{;}} the power rule (xr)′=rxr−1(x^r)' = rx^{r-1} holds for every real rr and x>0.x > 0\mathclose{\text{.}}
  • cosh⁡2x−sinh⁡2x=1,\cosh^2 x - \sinh^2 x = 1\mathclose{\text{,}} sinh⁡′=cosh⁡,\sinh' = {\cosh}\mathclose{\text{,}} cosh⁡′=sinh⁡,\cosh' = {\sinh}\mathclose{\text{,}} tanh⁡′=1/cosh⁡2;\tanh' = 1/\cosh^2\mathclose{\text{;}} a hanging chain is a catenary, y=acosh⁡(x/a).y = a\cosh(x/a)\mathclose{\text{.}}
  • y=Cekty = Ce^{kt} solves y′=kyy' = ky with y(0)=C;y(0) = C\mathclose{\text{;}} the doubling time is ln⁡2/k\ln 2/k and the half-life ln⁡2/∣k∣.\ln 2/{\abs{k}}\mathclose{\text{.}} Module 13 solves such equations.
10

Exercises

Exercise 6.1★Derivatives of exponentials and logarithms

Differentiate:

  • (a) e−4xe^{-4x}
  • (b) 5x5^x
  • (c) x3e2xx^3e^{2x}
  • (d) ln⁡(3x2+1)\ln\big(3x^2 + 1\big)
  • (e) log⁡2x,\log_2 x\mathclose{\text{,}} for x>0x > 0
  • (f) cosh⁡(x2)\cosh\big(x^2\big)
Show solution✓ Checked

(a) By the chain rule with the inner function −4x:-4x\mathclose{\text{:}} −4e−4x.-4e^{-4x}\mathclose{\text{.}}

(b) By Theorem 6.3: 5xln⁡5≈1.609⋅5x.5^x\ln 5 \approx 1.609 \cdot 5^x\mathclose{\text{.}} The common wrong answer, x 5x−1,x\,5^{x-1}\mathclose{\text{,}} uses the power rule, which is for a variable base.

(c) By the product rule:

3x2e2x+x3⋅2e2x=x2e2x(3+2x).\begin{aligned} &3x^2e^{2x} + x^3\cdot 2e^{2x} \\ &\quad= x^2e^{2x}(3 + 2x). \end{aligned}

(d) With u=3x2+1>0:u = 3x^2 + 1 > 0\mathclose{\text{:}} u′u=6x3x2+1.\dfrac{u'}{u} = \dfrac{6x}{3x^2 + 1}\mathclose{\text{.}} The answer is not 13x2+1:\dfrac{1}{3x^2 + 1}\mathclose{\text{:}} that leaves out the factor u′=6x.u' = 6x\mathclose{\text{.}}

(e) log⁡2x=ln⁡xln⁡2,\log_2 x = \dfrac{\ln x}{\ln 2}\mathclose{\text{,}} so its derivative is 1xln⁡2.\dfrac{1}{x\ln 2}\mathclose{\text{.}}

(f) By the chain rule with the inner function x2,x^2\mathclose{\text{,}} and cosh⁡′=sinh⁡:\cosh' = {\sinh}\mathclose{\text{:}}

ddxcosh⁡(x2)=sinh⁡(x2)⋅2x=2xsinh⁡(x2).\begin{aligned} \frac{d}{dx}\cosh\big(x^2\big) &= \sinh\big(x^2\big)\cdot 2x \\ &= 2x\sinh\big(x^2\big). \end{aligned}
Exercise 6.2★Values of the inverse trigonometric functions
  • (a) Find arcsin⁡32,\arcsin\dfrac{\sqrt3}{2}\mathclose{\text{,}} arccos⁡(−22)\arccos\Big(-\dfrac{\sqrt2}{2}\Big) and arctan⁡(−3).\arctan\big(-\sqrt3\big)\mathclose{\text{.}}
  • (b) Find arccos⁡(cos⁡(−π4)).\arccos\Big(\cos\Big(-\dfrac{\pi}{4}\Big)\Big)\mathclose{\text{.}}
  • (c) A calculator in radian mode shows sin⁡−1(0.5)=0.5236\sin^{-1}(0.5) = 0.5236 (rounded). What is this number, and why is it different from 1sin⁡0.5≈2.0858?\dfrac{1}{\sin 0.5} \approx 2.0858\mathclose{\text{?}}
Show solution✓ Checked

(a) In each case, find an angle with the right sine, cosine or tangent, and check that it lies in the range of the inverse function.

  • sin⁡π3=32,\sin\tfrac{\pi}{3} = \tfrac{\sqrt3}{2}\mathclose{\text{,}} and π3\tfrac{\pi}{3} lies in [−π/2,π/2]:[-\pi/2, \pi/2]\mathclose{\text{:}} arcsin⁡32=π3.\arcsin\tfrac{\sqrt3}{2} = \tfrac{\pi}{3}\mathclose{\text{.}}
  • cos⁡3π4=cos⁡(π−π4)=−cos⁡π4=−22,\cos\tfrac{3\pi}{4} = \cos\big(\pi - \tfrac{\pi}{4}\big) = -\cos\tfrac{\pi}{4} = -\tfrac{\sqrt2}{2}\mathclose{\text{,}} and 3π4\tfrac{3\pi}{4} lies in [0,π]:[0, \pi]\mathclose{\text{:}} arccos⁡(−22)=3π4.\arccos\big({-\tfrac{\sqrt2}{2}}\big) = \tfrac{3\pi}{4}\mathclose{\text{.}}
  • The tangent is odd, so tan⁡(−π3)=−tan⁡π3=−3,\tan\big({-\tfrac{\pi}{3}}\big) = -\tan\tfrac{\pi}{3} = -\sqrt3\mathclose{\text{,}} and −π3-\tfrac{\pi}{3} lies in (−π/2,π/2):(-\pi/2, \pi/2)\mathclose{\text{:}} arctan⁡(−3)=−π3.\arctan\big({-\sqrt3}\big) = -\tfrac{\pi}{3}\mathclose{\text{.}}

(b) cos⁡(−π4)=cos⁡π4=22,\cos\Big(-\dfrac{\pi}{4}\Big) = \cos\dfrac{\pi}{4} = \dfrac{\sqrt2}{2}\mathclose{\text{,}} and arccos⁡22=π4.\arccos\dfrac{\sqrt2}{2} = \dfrac{\pi}{4}\mathclose{\text{.}} The answer is π4,\dfrac{\pi}{4}\mathclose{\text{,}} not −π4:-\dfrac{\pi}{4}\mathclose{\text{:}} arccos⁡\arccos returns angles in [0,π][0, \pi] only.

(c) sin⁡−1\sin^{-1} on the calculator is arcsin⁡:{\arcsin}\mathclose{\text{:}} arcsin⁡0.5=π6≈0.5236,\arcsin 0.5 = \dfrac{\pi}{6} \approx 0.5236\mathclose{\text{,}} the angle (in radians) whose sine is 0.5. The number 1sin⁡0.5\dfrac{1}{\sin 0.5} is the reciprocal of the sine of the angle 0.5, that is, csc⁡0.5:\csc 0.5\mathclose{\text{:}} the −1-1 in sin⁡−1\sin^{-1} is not an exponent.

Exercise 6.3★A tangent line by implicit differentiation

Show that (1,2)(1, 2) lies on the curve x2+xy+y2=7.x^2 + xy + y^2 = 7\mathclose{\text{.}} Find dydx\dfrac{dy}{dx} by implicit differentiation, and the equation of the tangent line at (1,2).(1, 2)\mathclose{\text{.}}

Show solution✓ Checked

At (1,2),(1, 2)\mathclose{\text{,}} x2+xy+y2=1+2+4=7,x^2 + xy + y^2 = 1 + 2 + 4 = 7\mathclose{\text{,}} so the point is on the curve. Differentiate both sides with respect to x,x\mathclose{\text{,}} using the product rule on xyxy and the chain rule on y2:y^2\mathclose{\text{:}}

2x+(y+x y′)+2y y′=0.2x + \big(y + x\,y'\big) + 2y\,y' = 0.

Collect the terms with y′:y'\mathclose{\text{:}} (x+2y) y′=−(2x+y),(x + 2y)\,y' = -(2x + y)\mathclose{\text{,}} so

y′=−2x+yx+2y(x+2y≠0).y' = -\frac{2x + y}{x + 2y} \quad (x + 2y \ne 0).

At (1,2):(1, 2)\mathclose{\text{:}} y′=−2+21+4=−45.y' = -\dfrac{2 + 2}{1 + 4} = -\dfrac45\mathclose{\text{.}} The tangent line is

y−2=−45(x−1),y - 2 = -\frac45(x - 1),

that is, y=−45x+145.y = -\tfrac45x + \tfrac{14}{5}\mathclose{\text{.}}

Exercise 6.4★★Slopes of an inverse function

Let f(x)=x+ex.f(x) = x + e^x\mathclose{\text{.}}

  • (a) Show that ff is one-to-one on R.\R\mathclose{\text{.}}
  • (b) Find (f−1)′(1)(f^{-1})'(1) and (f−1)′(1+e).(f^{-1})'(1 + e)\mathclose{\text{.}}
  • (c) Find the equation of the tangent line to the graph of f−1f^{-1} at the point (1,0).(1, 0)\mathclose{\text{.}}
Show solution✓ Checked

(a) Let x1<x2.x_1 < x_2\mathclose{\text{.}} Then ex1<ex2,e^{x_1} < e^{x_2}\mathclose{\text{,}} because exe^x increases (e>1),e > 1\mathclose{\text{),}} so x1+ex1<x2+ex2:x_1 + e^{x_1} < x_2 + e^{x_2}\mathclose{\text{:}} ff is strictly increasing, and so one-to-one (Exercise 1.10). It is also differentiable, hence continuous, on R,\R\mathclose{\text{,}} with f′(x)=1+ex,f'(x) = 1 + e^x\mathclose{\text{,}} which is never 0, so Theorem 6.4 applies at every point.

(b) f(0)=0+1=1f(0) = 0 + 1 = 1 and f(1)=1+e,f(1) = 1 + e\mathclose{\text{,}} while f′(0)=1+1=2f'(0) = 1 + 1 = 2 and f′(1)=1+e.f'(1) = 1 + e\mathclose{\text{.}} So

(f−1)′(1)=1f′(0)=12,(f−1)′(1+e)=1f′(1)=11+e,\begin{aligned} (f^{-1})'(1) &= \frac{1}{f'(0)} = \frac12, \\ (f^{-1})'(1 + e) &= \frac{1}{f'(1)} = \frac{1}{1 + e}, \end{aligned}

and 1/(1+e)≈0.2689.1/(1 + e) \approx 0.2689\mathclose{\text{.}}

The common slip is to write (f−1)′(1)=1f′(1):(f^{-1})'(1) = \dfrac{1}{f'(1)}\mathclose{\text{:}} the slope of ff must be taken at the mirror point f−1(1)=0.f^{-1}(1) = 0\mathclose{\text{.}}

(c) The point (1,0)(1, 0) is on the graph of f−1f^{-1} because f(0)=1,f(0) = 1\mathclose{\text{,}} and the slope there is 12\tfrac12 by (b). The tangent line is y−0=12(x−1),y - 0 = \tfrac12(x - 1)\mathclose{\text{,}} that is, y=x−12.y = \dfrac{x - 1}{2}\mathclose{\text{.}}

Exercise 6.5★★Logarithmic differentiation
  • (a) Differentiate y=xsin⁡x,y = x^{\sin x}\mathclose{\text{,}} for x>0.x > 0\mathclose{\text{.}}
  • (b) Differentiate y=x1/x,y = x^{1/x}\mathclose{\text{,}} for x>0,x > 0\mathclose{\text{,}} and find the point where its tangent line is horizontal.
  • (c) Find y′(0)y'(0) for y=(x+1)2(x+2)3(x+3)4.y = (x + 1)^2(x + 2)^3(x + 3)^4\mathclose{\text{.}}
Show solution✓ Checked

(a) y>0,y > 0\mathclose{\text{,}} and ln⁡y=sin⁡x ln⁡x.\ln y = \sin x\,\ln x\mathclose{\text{.}} By the product rule,

y′y=cos⁡x ln⁡x+sin⁡xx,y′=xsin⁡x(cos⁡x ln⁡x+sin⁡xx).\begin{aligned} \frac{y'}{y} &= \cos x\,\ln x + \frac{\sin x}{x}, \\ y' &= x^{\sin x}\Big(\cos x\,\ln x + \frac{\sin x}{x}\Big). \end{aligned}

(b) ln⁡y=ln⁡xx.\ln y = \dfrac{\ln x}{x}\mathclose{\text{.}} By the quotient rule,

y′y=1x⋅x−ln⁡x⋅1x2=1−ln⁡xx2,y′=x1/x 1−ln⁡xx2.\begin{aligned} \frac{y'}{y} &= \frac{\tfrac1x\cdot x - \ln x\cdot 1}{x^2} = \frac{1 - \ln x}{x^2}, \\ y' &= x^{1/x}\,\frac{1 - \ln x}{x^2}. \end{aligned}

Since x1/x>0x^{1/x} > 0 and x2>0,x^2 > 0\mathclose{\text{,}} y′=0y' = 0 exactly when ln⁡x=1,\ln x = 1\mathclose{\text{,}} that is, at x=e,x = e\mathclose{\text{,}} where y=e1/e≈1.4447.y = e^{1/e} \approx 1.4447\mathclose{\text{.}} The horizontal tangent line is at (e,e1/e).\big(e, e^{1/e}\big)\mathclose{\text{.}} (With the methods of Module 8 you can show that this is the highest point of the graph: no number x1/xx^{1/x} exceeds e1/e.)e^{1/e}\mathclose{\text{.)}}

(c) Near x=0x = 0 every factor is positive, so

ln⁡y=2ln⁡(x+1)+3ln⁡(x+2)+4ln⁡(x+3),\begin{aligned} \ln y = {} & 2\ln(x + 1) + 3\ln(x + 2) \\ & + 4\ln(x + 3), \end{aligned}
y′y=2x+1+3x+2+4x+3.\frac{y'}{y} = \frac{2}{x + 1} + \frac{3}{x + 2} + \frac{4}{x + 3}.

At x=0:x = 0\mathclose{\text{:}} y(0)=1⋅8⋅81=648y(0) = 1 \cdot 8 \cdot 81 = 648 and y′y=2+32+43=296,\dfrac{y'}{y} = 2 + \dfrac32 + \dfrac43 = \dfrac{29}{6}\mathclose{\text{,}} so y′(0)=648⋅296=3132.y'(0) = 648 \cdot \dfrac{29}{6} = 3132\mathclose{\text{.}}

Where a factor is negative, for example at x=−2.5,x = -2.5\mathclose{\text{,}} where y<0,y < 0\mathclose{\text{,}} start from ln⁡∣y∣=2ln⁡∣x+1∣+3ln⁡∣x+2∣+4ln⁡∣x+3∣\ln\abs{y} = 2\ln\abs{x + 1} + 3\ln\abs{x + 2} + 4\ln\abs{x + 3} instead. Since (ln⁡∣u∣)′=u′/u,(\ln\abs{u})' = u'/u\mathclose{\text{,}} the same formula for y′/yy'/y comes out. So it holds wherever y≠0,y \ne 0\mathclose{\text{,}} that is, for every xx except −1,-1\mathclose{\text{,}} −2-2 and −3.-3\mathclose{\text{.}}

Exercise 6.6★★Derivatives of inverse trigonometric functions
  • (a) Differentiate arcsin⁡x3,\arcsin\dfrac{x}{3}\mathclose{\text{,}} for −3<x<3.-3 < x < 3\mathclose{\text{.}}
  • (b) Differentiate xarctan⁡x.x\arctan x\mathclose{\text{.}}
  • (c) Show that ddx(arctan⁡x+arctan⁡1x)=0\dfrac{d}{dx}\Big(\arctan x + \arctan\dfrac1x\Big) = 0 for every x≠0.x \ne 0\mathclose{\text{.}} Evaluate arctan⁡x+arctan⁡1x\arctan x + \arctan\dfrac1x at x=1x = 1 and at x=−1.x = -1\mathclose{\text{.}} What do you conclude?
Show solution✓ Checked

(a) By the chain rule, for −3<x<3-3 < x < 3 (so that −1<x/3<1),-1 < x/3 < 1\mathclose{\text{),}}

ddxarcsin⁡x3=11−x2/9⋅13=19−x2,\begin{aligned} \frac{d}{dx}\arcsin\frac{x}{3} &= \frac{1}{\sqrt{1 - x^2/9}}\cdot\frac13 \\ &= \frac{1}{\sqrt{9 - x^2}}, \end{aligned}

since 31−x2/9=9(1−x2/9)=9−x2.3\sqrt{1 - x^2/9} = \sqrt{9(1 - x^2/9)} = \sqrt{9 - x^2}\mathclose{\text{.}}

(b) By the product rule: arctan⁡x+x1+x2.\arctan x + \dfrac{x}{1 + x^2}\mathclose{\text{.}}

(c) By the chain rule,

ddxarctan⁡1x=11+1/x2⋅−1x2=−1x2+1,\begin{aligned} \frac{d}{dx}\arctan\frac1x &= \frac{1}{1 + 1/x^2}\cdot\frac{-1}{x^2} \\ &= -\frac{1}{x^2 + 1}, \end{aligned}

which cancels the derivative 11+x2\dfrac{1}{1 + x^2} of arctan⁡x:\arctan x\mathclose{\text{:}} the sum has derivative 0. At x=1x = 1 the sum is π4+π4=π2;\tfrac{\pi}{4} + \tfrac{\pi}{4} = \tfrac{\pi}{2}\mathclose{\text{;}} at x=−1x = -1 it is −π4−π4=−π2.-\tfrac{\pi}{4} - \tfrac{\pi}{4} = -\tfrac{\pi}{2}\mathclose{\text{.}} A function with derivative 0 on an interval is constant there (Module 8 proves this), so arctan⁡x+arctan⁡(1/x)\arctan x + \arctan(1/x) equals π/2\pi/2 for every x>0,x > 0\mathclose{\text{,}} and −π/2-\pi/2 for every x<0.x < 0\mathclose{\text{.}} The two constants differ because the domain, (−∞,0)∪(0,∞),(-\infty, 0) \cup (0, \infty)\mathclose{\text{,}} is not one interval.

Exercise 6.7★★A growing culture

Suppose a culture of yeast cells grows exponentially, N(t)=N0ekt,N(t) = N_0e^{kt}\mathclose{\text{,}} from 2000 cells to 3000 cells in 5 hours.

  • (a) Find k.k\mathclose{\text{.}}
  • (b) Find the doubling time.
  • (c) How many cells are there after 12 hours?
  • (d) How fast is the culture growing at t=5?t = 5\mathclose{\text{?}}
Show solution✓ Checked

(a) N0=N(0)=2000N_0 = N(0) = 2000 and N(5)=2000e5k=3000,N(5) = 2000e^{5k} = 3000\mathclose{\text{,}} so e5k=1.5,e^{5k} = 1.5\mathclose{\text{,}} 5k=ln⁡1.55k = \ln 1.5 and

k=ln⁡1.55≈0.08109 per hour.k = \frac{\ln 1.5}{5} \approx 0.08109 \text{ per hour}.

(b) T=ln⁡2k=5ln⁡2ln⁡1.5≈8.548T = \dfrac{\ln 2}{k} = \dfrac{5\ln 2}{\ln 1.5} \approx 8.548 hours.

(c) ek=1.51/5,e^{k} = 1.5^{1/5}\mathclose{\text{,}} so N(12)=2000 e12k=2000⋅1.512/5=2000⋅1.52.4≈5292N(12) = 2000\,e^{12k} = 2000 \cdot 1.5^{12/5} = 2000 \cdot 1.5^{2.4} \approx 5292 cells.

(d) By Theorem 6.10, N′(5)=kN(5)=3000k≈243.3N'(5) = kN(5) = 3000k \approx 243.3 cells per hour.

Exercise 6.8★★The second derivative on a circle

For the circle x2+y2=25,x^2 + y^2 = 25\mathclose{\text{,}} Section 6.4 found y′=−x/y.y' = -x/y\mathclose{\text{.}}

  • (a) Differentiate again, implicitly, to show that y′′=−25y3y'' = -\dfrac{25}{y^3} wherever y≠0.y \ne 0\mathclose{\text{.}}
  • (b) Check the value at (3,4)(3, 4) by differentiating y=25−x2y = \sqrt{25 - x^2} twice.
  • (c) What does the sign of y′′y'' say about the upper and lower halves of the circle?
Show solution✓ Checked

(a) Differentiate y′=−xyy' = -\dfrac{x}{y} with the quotient rule, remembering that yy is a function of x:x\mathclose{\text{:}}

y′′=−1⋅y−x y′y2=−y−x(−x/y)y2=−y2+x2y3=−25y3,\begin{aligned} y'' &= -\frac{1\cdot y - x\,y'}{y^2} \\ &= -\frac{y - x(-x/y)}{y^2} \\ &= -\frac{y^2 + x^2}{y^3} \\ &= -\frac{25}{y^3}, \end{aligned}

where the second step substitutes y′=−x/y,y' = -x/y\mathclose{\text{,}} the third multiplies the top and the bottom by y,y\mathclose{\text{,}} and the last uses x2+y2=25x^2 + y^2 = 25 on the curve.

(b) On the upper half, y=(25−x2)1/2,y = (25 - x^2)^{1/2}\mathclose{\text{,}} so y′=−x(25−x2)−1/2y' = -x(25 - x^2)^{-1/2} and, by the product and chain rules,

y′′=−(25−x2)−1/2−x2(25−x2)−3/2=−(25−x2)+x2(25−x2)3/2=−25(25−x2)3/2.\begin{aligned} y'' &= -(25 - x^2)^{-1/2} \\ &\qquad - x^2(25 - x^2)^{-3/2} \\ &= -\frac{(25 - x^2) + x^2}{(25 - x^2)^{3/2}} \\ &= -\frac{25}{(25 - x^2)^{3/2}}. \end{aligned}

At x=3,x = 3\mathclose{\text{,}} (25−9)3/2=163/2=64,(25 - 9)^{3/2} = 16^{3/2} = 64\mathclose{\text{,}} so y′′=−2564;y'' = -\dfrac{25}{64}\mathclose{\text{;}} and (a) gives −2543=−2564-\dfrac{25}{4^3} = -\dfrac{25}{64} too.

(c) On the upper half y>0,y > 0\mathclose{\text{,}} so y′′<0:y'' < 0\mathclose{\text{:}} the slope decreases as xx increases, and the curve bends downwards. On the lower half y<0,y < 0\mathclose{\text{,}} so y′′>0,y'' > 0\mathclose{\text{,}} and the curve bends upwards. Module 8 calls this concavity.

Exercise 6.9★★★A hanging cable

A cable hangs between two poles 20 metres apart, with its ends at the same height. Take the lowest point of the cable as (0,10),(0, 10)\mathclose{\text{,}} in metres, and suppose that its shape is the catenary y=10cosh⁡x10y = 10\cosh\dfrac{x}{10} for −10≤x≤10.-10 \le x \le 10\mathclose{\text{.}}

  • (a) How far below its ends does the cable sag?
  • (b) What is the slope of the cable at the poles, and at what angle to the horizontal does it meet them?
  • (c) The parabola through the lowest point and the two ends is p(x)=10+s(x10)2,p(x) = 10 + s\Big(\dfrac{x}{10}\Big)^2\mathclose{\text{,}} where ss is the sag of (a). How far apart are the parabola and the catenary at x=5?x = 5\mathclose{\text{?}}
Show solution✓ Checked

(a) The ends are at height y(±10)=10cosh⁡1y(\pm10) = 10\cosh 1 and the lowest point at height 10, so the sag is

s=10cosh⁡1−10=10(cosh⁡1−1)≈5.431 m.\begin{aligned} s &= 10\cosh 1 - 10 \\ &= 10(\cosh 1 - 1) \approx 5.431 \text{ m}. \end{aligned}

(b) y′=10sinh⁡x10⋅110=sinh⁡x10,y' = 10\sinh\dfrac{x}{10}\cdot\dfrac{1}{10} = \sinh\dfrac{x}{10}\mathclose{\text{,}} so at x=10x = 10 the slope is sinh⁡1≈1.175\sinh 1 \approx 1.175 (and −1.175-1.175 at x=−10).x = -10\mathclose{\text{).}} A line of slope mm makes the angle arctan⁡m\arctan m with the horizontal, since tan⁡\tan of that angle is rise over run. So the cable meets the poles at arctan⁡(sinh⁡1)≈0.8658\arctan(\sinh 1) \approx 0.8658 radians, about 49.6∘,49.6^\circ\mathclose{\text{,}} to the horizontal.

(c) p(5)=10+s⋅14≈10+1.358=11.358,p(5) = 10 + s \cdot \dfrac14 \approx 10 + 1.358 = 11.358\mathclose{\text{,}} while the catenary has y(5)=10cosh⁡0.5≈11.276.y(5) = 10\cosh 0.5 \approx 11.276\mathclose{\text{.}} They differ by about 0.081 m, 8 cm, with the cable below the parabola. Over a sag of 5.4 m the difference is small, which is why a hanging cable looks like a parabola; but it is not one.

Exercise 6.10★★★The inverse hyperbolic sine
  • (a) Show that sinh⁡\sinh is strictly increasing on R.\R\mathclose{\text{.}} Then solve sinh⁡y=x\sinh y = x for y,y\mathclose{\text{,}} to show that sinh⁡\sinh takes every real value exactly once and that its inverse, the inverse hyperbolic sine, is
arsinh⁡x=ln⁡(x+x2+1).\operatorname{arsinh} x = \ln\big(x + \sqrt{x^2 + 1}\big).
  • (b) Use Theorem 6.4 to show that ddxarsinh⁡x=11+x2.\dfrac{d}{dx}\operatorname{arsinh} x = \dfrac{1}{\sqrt{1 + x^2}}\mathclose{\text{.}}
  • (c) Differentiate ln⁡(x+x2+1)\ln\big(x + \sqrt{x^2 + 1}\big) directly, and check that you get the same answer.
Show solution✓ Checked

(a) Let x1<x2.x_1 < x_2\mathclose{\text{.}} Then ex1<ex2e^{x_1} < e^{x_2} and e−x1>e−x2,e^{-x_1} > e^{-x_2}\mathclose{\text{,}} so ex1−e−x1<ex2−e−x2,e^{x_1} - e^{-x_1} < e^{x_2} - e^{-x_2}\mathclose{\text{,}} that is, sinh⁡x1<sinh⁡x2.\sinh x_1 < \sinh x_2\mathclose{\text{.}} Now let xx be any real number, and solve sinh⁡y=x\sinh y = x for y:y\mathclose{\text{:}} multiply ey−e−y2=x\dfrac{e^y - e^{-y}}{2} = x by 2ey2e^y to get

e2y−1=2xey.e^{2y} - 1 = 2xe^y.

With u=eyu = e^y this is the quadratic u2−2xu−1=0,u^2 - 2xu - 1 = 0\mathclose{\text{,}} whose roots are u=x±x2+1.u = x \pm \sqrt{x^2 + 1}\mathclose{\text{.}} Since x2+1>x2=∣x∣,\sqrt{x^2 + 1} > \sqrt{x^2} = {\abs{x}}\mathclose{\text{,}} the root x−x2+1x - \sqrt{x^2 + 1} is negative and cannot be ey,e^y\mathclose{\text{,}} while x+x2+1x + \sqrt{x^2 + 1} is positive. So there is exactly one solution,

y=ln⁡(x+x2+1).y = \ln\big(x + \sqrt{x^2 + 1}\big).

Every real xx is a value of sinh⁡,{\sinh}\mathclose{\text{,}} taken once, and this yy is arsinh⁡x.\operatorname{arsinh} x\mathclose{\text{.}}

(b) sinh⁡\sinh is differentiable, hence continuous, and one-to-one on the open interval R,\R\mathclose{\text{,}} and its derivative cosh⁡y≥1\cosh y \ge 1 is never 0. By Theorem 6.4, with y=arsinh⁡x,y = \operatorname{arsinh} x\mathclose{\text{,}}

ddxarsinh⁡x=1cosh⁡y.\frac{d}{dx}\operatorname{arsinh} x = \frac{1}{\cosh y}.

By the identity, cosh⁡2y=1+sinh⁡2y=1+x2,\cosh^2 y = 1 + \sinh^2 y = 1 + x^2\mathclose{\text{,}} and cosh⁡y>0,\cosh y > 0\mathclose{\text{,}} so cosh⁡y=1+x2.\cosh y = \sqrt{1 + x^2}\mathclose{\text{.}}

(c) By the chain rule, ddxx2+1=xx2+1,\dfrac{d}{dx}\sqrt{x^2 + 1} = \dfrac{x}{\sqrt{x^2 + 1}}\mathclose{\text{,}} so

ddxln⁡(x+x2+1)=1+x/x2+1x+x2+1=x2+1+xx2+1 (x+x2+1)=1x2+1,\begin{aligned} &\frac{d}{dx}\ln\big(x + \sqrt{x^2 + 1}\big) \\ &\quad= \frac{1 + x/\sqrt{x^2 + 1}}{x + \sqrt{x^2 + 1}} \\ &\quad= \frac{\sqrt{x^2 + 1} + x}{\sqrt{x^2 + 1}\,\big(x + \sqrt{x^2 + 1}\big)} \\ &\quad= \frac{1}{\sqrt{x^2 + 1}}, \end{aligned}

the same as (b). Python and SymPy call this function asinh; many books write sinh⁡−1x.\sinh^{-1}x\mathclose{\text{.}}

Exercise 6.11★★★The astroid and the sliding ladder

The astroid is the curve x2/3+y2/3=1.x^{2/3} + y^{2/3} = 1\mathclose{\text{.}} Consider the part of it with x>0x > 0 and y>0.y > 0\mathclose{\text{.}}

  • (a) Find dydx\dfrac{dy}{dx} by implicit differentiation.
  • (b) Show that the tangent line at a point (x0,y0)(x_0, y_0) of this part meets the axes at (x01/3,0)\big(x_0^{1/3}, 0\big) and (0,y01/3).\big(0, y_0^{1/3}\big)\mathclose{\text{.}}
  • (c) Show that the piece of every such tangent line between the axes has length 1.
Show solution✓ Checked

(a) Differentiate both sides, with the power rule for real exponents (Theorem 6.8) and the chain rule on y2/3:y^{2/3}\mathclose{\text{:}}

23x−1/3+23y−1/3 y′=0,\frac23x^{-1/3} + \frac23y^{-1/3}\,y' = 0,

so

y′=−x−1/3y−1/3=−y1/3x1/3.y' = -\frac{x^{-1/3}}{y^{-1/3}} = -\frac{y^{1/3}}{x^{1/3}}.

(b) The tangent line at (x0,y0)(x_0, y_0) is

y−y0=−y01/3x01/3(x−x0).y - y_0 = -\frac{y_0^{1/3}}{x_0^{1/3}}(x - x_0).

Put y=0,y = 0\mathclose{\text{,}} and multiply both sides by −x01/3/y01/3:-x_0^{1/3}/y_0^{1/3}\mathclose{\text{:}} x−x0=y0⋅x01/3/y01/3=x01/3y02/3,x - x_0 = y_0 \cdot x_0^{1/3}/y_0^{1/3} = x_0^{1/3}y_0^{2/3}\mathclose{\text{,}} so

x=x0+x01/3y02/3=x01/3(x02/3+y02/3)=x01/3,\begin{aligned} x &= x_0 + x_0^{1/3}y_0^{2/3} \\ &= x_0^{1/3}\big(x_0^{2/3} + y_0^{2/3}\big) = x_0^{1/3}, \end{aligned}

because x02/3+y02/3=1x_0^{2/3} + y_0^{2/3} = 1 on the curve. Put x=0x = 0 instead:

y=y0+y01/3x01/3 x0=y0+y01/3x02/3=y01/3(y02/3+x02/3)=y01/3.\begin{aligned} y &= y_0 + \frac{y_0^{1/3}}{x_0^{1/3}}\,x_0 = y_0 + y_0^{1/3}x_0^{2/3} \\ &= y_0^{1/3}\big(y_0^{2/3} + x_0^{2/3}\big) = y_0^{1/3}. \end{aligned}

(c) By Pythagoras, the distance between (x01/3,0)\big(x_0^{1/3}, 0\big) and (0,y01/3)\big(0, y_0^{1/3}\big) is

(x01/3)2+(y01/3)2=x02/3+y02/3=1=1.\begin{aligned} &\sqrt{\big(x_0^{1/3}\big)^2 + \big(y_0^{1/3}\big)^2} \\ &\quad= \sqrt{x_0^{2/3} + y_0^{2/3}} = \sqrt1 = 1. \end{aligned}

Conversely, if p>0,p > 0\mathclose{\text{,}} q>0q > 0 and p2+q2=1,p^2 + q^2 = 1\mathclose{\text{,}} the point (p3,q3)\big(p^3, q^3\big) is on the astroid, and by (b) its tangent line meets the axes at (p,0)(p, 0) and (0,q).(0, q)\mathclose{\text{.}} So a ladder of length 1 sliding down a wall, with its foot on the floor, touches the astroid in every position: the astroid is the edge of the region that the ladder sweeps across.

Exercise 6.12★★★Two routes, one number

Section 6.1 wrote m(a)m(a) for the slope of axa^x at x=0,x = 0\mathclose{\text{,}} and Section 6.3 proved that (1+xn)n→ex\big(1 + \tfrac{x}{n}\big)^n \to e^x as n→∞.n \to \infty\mathclose{\text{.}}

  • (a) Let a>0a > 0 and b>0,b > 0\mathclose{\text{,}} and suppose that m(a)m(a) and m(b)m(b) exist. Show, without using logarithms, that m(ab)m(ab) exists and m(ab)=m(a)+m(b).m(ab) = m(a) + m(b)\mathclose{\text{.}} (Hint: (ab)h=ahbh.(ab)^h = a^hb^h\mathclose{\text{.}} Why does aha^h approach 1 as h→0?)h \to 0\mathclose{\text{?)}}
  • (b) Use (a), Theorem 6.2 and the estimates m(2)≈0.6931m(2) \approx 0.6931 and m(3)≈1.0986m(3) \approx 1.0986 of Section 6.1 to estimate m(6)m(6) and m(32)m\big(\tfrac32\big) without a calculator. Which law of logarithms does (a) look like, and why is that no accident?
  • (c) Bank A pays interest at 6% a year, added monthly; bank B pays 5.9% a year, added continuously. Which turns £1000 into more in one year, and by how much?
Show solution✓ Checked

(a) For h≠0,h \ne 0\mathclose{\text{,}} subtract and add aha^h in the numerator, and split the fraction:

(ab)h−1h=ahbh−ah+ah−1h=ah⋅bh−1h+ah−1h.\begin{aligned} &\frac{(ab)^h - 1}{h} \\ &\quad= \frac{a^hb^h - a^h + a^h - 1}{h} \\ &\quad= a^h\cdot\frac{b^h - 1}{h} + \frac{a^h - 1}{h}. \end{aligned}

As h→0,h \to 0\mathclose{\text{,}} the two fractions on the right approach m(b)m(b) and m(a).m(a)\mathclose{\text{.}} The factor aha^h approaches a0=1:a^0 = 1\mathclose{\text{:}} since m(a)m(a) exists, axa^x is differentiable at 0, and so continuous there (Module 4). By the limit laws for sums and products, the right side approaches 1⋅m(b)+m(a).1\cdot m(b) + m(a)\mathclose{\text{.}} So m(ab)m(ab) exists, and m(ab)=m(a)+m(b).m(ab) = m(a) + m(b)\mathclose{\text{.}}

(b) By (a), m(6)=m(2⋅3)=m(2)+m(3)≈0.6931+1.0986=1.7917.m(6) = m(2 \cdot 3) = m(2) + m(3) \approx 0.6931 + 1.0986 = 1.7917\mathclose{\text{.}} By Theorem 6.2 with c=−1,c = -1\mathclose{\text{,}} m(12)=−m(2),m\big(\tfrac12\big) = -m(2)\mathclose{\text{,}} so by (a) again

m(32)=m(3)+m(12)=m(3)−m(2)≈0.4055.\begin{aligned} m\big(\tfrac32\big) &= m(3) + m\big(\tfrac12\big) \\ &= m(3) - m(2) \approx 0.4055. \end{aligned}

A calculator gives ln⁡6≈1.7918\ln 6 \approx 1.7918 and ln⁡1.5≈0.4055:\ln 1.5 \approx 0.4055\mathclose{\text{:}} the same, apart from the last digit of m(6),m(6)\mathclose{\text{,}} where the rounding errors of the two estimates add up. Part (a) has the form of the first law of logarithms, ln⁡(xy)=ln⁡x+ln⁡y,\ln(xy) = \ln x + \ln y\mathclose{\text{,}} and Theorem 6.2 that of the third, ln⁡(xr)=rln⁡x.\ln\big(x^r\big) = r\ln x\mathclose{\text{.}} That is no accident: by Theorem 6.3, m(a)=ln⁡am(a) = \ln a for every base a.a\mathclose{\text{.}}

(c) Bank A multiplies the balance by 1+0.0612=1.0051 + \tfrac{0.06}{12} = 1.005 each month, so in a year £1000 becomes 1000⋅1.00512≈1061.681000 \cdot 1.005^{12} \approx 1061.68 pounds. For bank B, Theorem 6.6 with x=0.059x = 0.059 gives 1000e0.059≈1060.781000e^{0.059} \approx 1060.78 pounds, as in Example 6.4. Bank A pays about £0.90 more. Adding interest continuously instead of monthly is worth less than the extra 0.1% a year: at 5.9%, it gains only about £0.15.

11

Check yourself

1
ddx(2x)\dfrac{d}{dx}\big(2^x\big) equals
2
ddxcosh⁡x\dfrac{d}{dx}\cosh x equals
3
ddxln⁡(x2+1)\dfrac{d}{dx}\ln\big(x^2 + 1\big) equals
4
ff is continuous and one-to-one on R,\R\mathclose{\text{,}} with f(1)=3f(1) = 3 and f′(1)=4.f'(1) = 4\mathclose{\text{.}} Then (f−1)′(3)(f^{-1})'(3) equals
5
arcsin⁡(sin⁡5π6)\arcsin\Big(\sin\dfrac{5\pi}{6}\Big) equals
6
On the circle x2+y2=25,x^2 + y^2 = 25\mathclose{\text{,}} the slope dydx\dfrac{dy}{dx} at (−3,4)(-3, 4) is
7
For x>0,x > 0\mathclose{\text{,}} ddx(xx)\dfrac{d}{dx}\big(x^x\big) equals
8
A quantity is y=50e−0.2ty = 50e^{-0.2t} after tt years. Its half-life is
Finished this module?