MATH 140 Calculus 1 • McGill University, Montreal

Corrected exercises: derivatives of logarithms, logarithmic differentiation, growth and decay (MATH 140)

This is the corrected exercise set for the derivatives of logarithms, logarithmic differentiation and exponential growth and decay in MATH 140, Calculus 1, at McGill University, sections 3.6 and 3.8 of Stewart. It closes the differentiation rules: after this chapter, every elementary function can be differentiated, including the ones where the variable sits in the exponent. Every number is exact and chosen to be done by hand, and each solution names the rule it applies, the inner function of each chain rule, and the domain it works on.

The thread running through the whole set: the logarithm is a translator. It turns products into sums, quotients into differences and powers into products, so the gesture is to rewrite with ln⁡\ln BEFORE differentiating, keeping ln⁡\ln on positive inputs only, hence ln⁡∣x∣\ln|x| and ln⁡∣y∣\ln|y|. The same translation reads a growth law: y′=kyy' = ky says that the relative rate y′y\frac{y'}{y} is constant, and kk is that relative rate, never the percentage gained per period.

The traps named in the solutions: ddxln⁡(5x)=5x\frac{d}{dx}\ln(5x) = \frac{5}{x}, a log⁡b\log_b differentiated without ln⁡b\ln b, (ln⁡x)2(\ln x)^2 confused with ln⁡(x2)\ln(x^2), a derivative evaluated outside the domain, ln⁡y\ln y taken where y<0y < 0, stopping at y′y\frac{y'}{y} without multiplying by yy, the power rule or the exponential rule applied to xxx^x, answering 11 to a form 1∞1^\infty, k=1k = 1 for a population that doubles each hour, and Newton's law of cooling written without the room temperature.

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 140 chapter →

Self-checking set Type your answers under each question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points.

Course recap

  • • ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x} (x>0x > 0), ddxln⁡∣x∣=1x\frac{d}{dx}\ln|x| = \frac{1}{x} (x≠0x \ne 0), ddxln⁡u=u′u\frac{d}{dx}\ln u = \frac{u'}{u}, ddxlog⁡bx=1xln⁡b\frac{d}{dx}\log_b x = \frac{1}{x\ln b}.
  • • Laws, for a,b>0a, b > 0: ln⁡(ab)=ln⁡a+ln⁡b\ln(ab) = \ln a + \ln b, ln⁡ab=ln⁡a−ln⁡b\ln\frac{a}{b} = \ln a - \ln b, ln⁡(ar)=rln⁡a\ln(a^r) = r\ln a. With signs unknown: ln⁡∣ab∣=ln⁡∣a∣+ln⁡∣b∣\ln|ab| = \ln|a| + \ln|b|.
  • • Logarithmic differentiation: ln⁡∣y∣\ln|y|, expand, differentiate (y′y\frac{y'}{y} on the left), multiply by yy. Relative rates add under a product, subtract under a quotient.
  • • Variable base and exponent: ln⁡y=(exponent)ln⁡(base)\ln y = (\text{exponent})\ln(\text{base}); ddxxx=xx(ln⁡x+1)\frac{d}{dx}x^x = x^x(\ln x + 1).
  • • lim⁡h→0ln⁡(1+h)h=1\lim_{h\to 0}\frac{\ln(1 + h)}{h} = 1 (derivative of ln⁡\ln at 11), so lim⁡x→0(1+x)1/x=e\lim_{x\to 0}(1 + x)^{1/x} = e.
  • • y′=ky  ⟺  y=y0ekty' = ky \iff y = y_0e^{kt}; k=y′yk = \frac{y'}{y}; doubling time ln⁡2k\frac{\ln 2}{k}, half-life ln⁡2∣k∣\frac{\ln 2}{|k|}; cooling: T=Ts+(T0−Ts)ektT = T_s + (T_0 - T_s)e^{kt}.

Part A: the basics (/50)

Exercise 1: The derivative of ln: the inner function named, the domain first

Three formulas carry the whole chapter. ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x} for x>0x > 0; by the chain rule, ddxln⁡u=u′u\frac{d}{dx}\ln u = \frac{u'}{u} wherever u>0u > 0; and ddxln⁡∣x∣=1x\frac{d}{dx}\ln|x| = \frac{1}{x} for every x≠0x \ne 0. A logarithm in another base is a constant multiple of ln⁡\ln: log⁡bx=ln⁡xln⁡b\log_b x = \frac{\ln x}{\ln b}, so ddxlog⁡bx=1xln⁡b\frac{d}{dx}\log_b x = \frac{1}{x \ln b}.

Before any derivative, find where the function is DEFINED: a derivative computed at a point outside the domain is a number about nothing. The figure shows y=ln⁡∣x∣y = \ln|x|, its two branches, and its tangents at x=2x = 2 and x=−2x = -2.

-6-5-4-3-2-1123456-3-2-1123y = ln|x|y = ln|x|slope 1/2slope -1/2
  • a) Differentiate f(x)=ln⁡(x2+4x+5)f(x) = \ln(x^2 + 4x + 5), after explaining why its domain is all of R\mathbb{R}. Where is its tangent horizontal?
  • b) Differentiate g(x)=log⁡2(3x−1)g(x) = \log_2(3x - 1), give its domain, and compute g′(3)g'(3).
  • c) Differentiate h(x)=ln⁡(ln⁡x)h(x) = \ln(\ln x), give its domain, and compute h′(e)h'(e).
  • d) Differentiate k(x)=ln⁡∣cos⁡x∣k(x) = \ln|\cos x| and say where the formula holds.
  • e) Prove that ddxln⁡∣x∣=1x\frac{d}{dx}\ln|x| = \frac{1}{x} for x<0x < 0, then use it to explain the two slopes shown on the figure.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) f′(x)=2x+4x2+4x+5f'(x) = \frac{2x + 4}{x^2 + 4x + 5}; horizontal tangent at x=−2x = -2
  • b) Domain x>13x > \frac{1}{3}; g′(x)=3(3x−1)ln⁡2g'(x) = \frac{3}{(3x - 1)\ln 2}, g′(3)=38ln⁡2g'(3) = \frac{3}{8\ln 2}
  • c) Domain x>1x > 1; h′(x)=1xln⁡xh'(x) = \frac{1}{x \ln x}, h′(e)=1eh'(e) = \frac{1}{e}
  • d) k′(x)=−tan⁡xk'(x) = -\tan x, wherever cos⁡x≠0\cos x \ne 0
  • e) For x<0x < 0, ln⁡∣x∣=ln⁡(−x)\ln|x| = \ln(-x) has derivative −1−x=1x\frac{-1}{-x} = \frac{1}{x}; slopes 12\frac{1}{2} at x=2x = 2 and −12-\frac{1}{2} at x=−2x = -2.

a) Complete the square: x2+4x+5=(x+2)2+1≥1>0x^2 + 4x + 5 = (x + 2)^2 + 1 \ge 1 > 0 for every real xx, so the logarithm is always defined and the domain is R\mathbb{R}. Chain rule with inner function u=x2+4x+5u = x^2 + 4x + 5, u′=2x+4u' = 2x + 4: f′(x)=u′u=2x+4x2+4x+5f'(x) = \frac{u'}{u} = \frac{2x + 4}{x^2 + 4x + 5}. The denominator never vanishes, so f′(x)=0f'(x) = 0 exactly when 2x+4=02x + 4 = 0: the tangent is horizontal at x=−2x = -2, where f(−2)=ln⁡1=0f(-2) = \ln 1 = 0. The frequent loss is to write 1x2+4x+5\frac{1}{x^2 + 4x + 5}: the derivative of ln⁡\ln is one over the INSIDE, times the derivative of the inside.

b) The argument must be positive: 3x−1>03x - 1 > 0, so the domain is x>13x > \frac{1}{3}. Change of base first: g(x)=ln⁡(3x−1)ln⁡2g(x) = \frac{\ln(3x - 1)}{\ln 2}, and 1ln⁡2\frac{1}{\ln 2} is a CONSTANT factor. Chain rule with u=3x−1u = 3x - 1: g′(x)=1ln⁡2⋅33x−1=3(3x−1)ln⁡2g'(x) = \frac{1}{\ln 2} \cdot \frac{3}{3x - 1} = \frac{3}{(3x - 1)\ln 2}. At x=3x = 3: g′(3)=38ln⁡2g'(3) = \frac{3}{8 \ln 2}. Leave it exact; with ln⁡2≈0.69\ln 2 \approx 0.69 it is a little above 12\frac{1}{2}, a sanity check and not the answer. Forgetting ln⁡2\ln 2 costs the mark: the base of the logarithm only survives in that constant.

c) Two conditions stack: ln⁡x\ln x needs x>0x > 0, and the outer ln⁡\ln needs ln⁡x>0\ln x > 0, that is x>1x > 1. Domain: (1,∞)(1, \infty). Chain rule with inner function u=ln⁡xu = \ln x, u′=1xu' = \frac{1}{x}: h′(x)=1/xln⁡x=1xln⁡xh'(x) = \frac{1/x}{\ln x} = \frac{1}{x \ln x}. At x=ex = e: h′(e)=1e⋅1=1eh'(e) = \frac{1}{e \cdot 1} = \frac{1}{e}. Note that the formula 1xln⁡x\frac{1}{x \ln x} also makes sense at x=12x = \frac{1}{2}, where hh does not exist: the domain is read on hh, never on h′h'.

d) The rule ddxln⁡∣u∣=u′u\frac{d}{dx}\ln|u| = \frac{u'}{u} holds wherever u≠0u \ne 0, whatever the sign of uu. With u=cos⁡xu = \cos x, u′=−sin⁡xu' = -\sin x: k′(x)=−sin⁡xcos⁡x=−tan⁡xk'(x) = \frac{-\sin x}{\cos x} = -\tan x, valid wherever cos⁡x≠0\cos x \ne 0, that is for x≠π2+nπx \ne \frac{\pi}{2} + n\pi. The absolute value is what makes kk defined on all these intervals, including those where cos⁡x<0\cos x < 0; without it, ln⁡(cos⁡x)\ln(\cos x) would exist only where cos⁡x>0\cos x > 0, and the same formula −tan⁡x-\tan x would hold there.

e) For x<0x < 0, ∣x∣=−x|x| = -x, so ln⁡∣x∣=ln⁡(−x)\ln|x| = \ln(-x). Chain rule with u=−xu = -x, u′=−1u' = -1: ddxln⁡(−x)=−1−x=1x\frac{d}{dx}\ln(-x) = \frac{-1}{-x} = \frac{1}{x}. Together with the case x>0x > 0, ddxln⁡∣x∣=1x\frac{d}{dx}\ln|x| = \frac{1}{x} for every x≠0x \ne 0. On the figure, the tangent at x=2x = 2 has slope 12\frac{1}{2}, and at x=−2x = -2 slope 1−2=−12\frac{1}{-2} = -\frac{1}{2}: the graph of ln⁡∣x∣\ln|x| is symmetric about the yy axis, so the slopes are opposite, and the left branch decreases as xx increases toward 00. A negative derivative on the left branch is exactly what 1x\frac{1}{x} predicts.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks from one visit to the next and tells you which chapter to tackle next. Create your space, an email is enough.

Exercise 2: Simplify with the laws of logarithms BEFORE differentiating

The laws ln⁡(ab)=ln⁡a+ln⁡b\ln(ab) = \ln a + \ln b, ln⁡ab=ln⁡a−ln⁡b\ln\frac{a}{b} = \ln a - \ln b and ln⁡(ar)=rln⁡a\ln(a^r) = r \ln a, valid for a>0a > 0 and b>0b > 0, turn one hard quotient rule into several easy terms. The gesture is always the same: expand the logarithm first, differentiate term by term second.

The laws have a price: they hold for POSITIVE aa and bb. Applied to factors that can be negative, they must be written with absolute values, ln⁡∣ab∣=ln⁡∣a∣+ln⁡∣b∣\ln|ab| = \ln|a| + \ln|b|. The figure shows y=ln⁡(x2)y = \ln(x^2) and y=2ln⁡xy = 2 \ln x.

-5-4-3-2-112345-4-3-2-11234ln(x²) and 2 ln xln(x²) only
  • a) For x>0x > 0, differentiate f(x)=ln⁡x3(2x+1)4x2+1f(x) = \ln\frac{x^3 (2x + 1)^4}{\sqrt{x^2 + 1}} and compute f′(1)f'(1).
  • b) On (−1,1)(-1, 1), differentiate g(x)=ln⁡1+x1−xg(x) = \ln\sqrt{\frac{1 + x}{1 - x}} and simplify.
  • c) Differentiate h(x)=ln⁡(e3x(x2+1))h(x) = \ln\left(e^{3x}(x^2 + 1)\right).
  • d) Are ln⁡(x2)\ln(x^2) and 2ln⁡x2 \ln x the same function? Compare their domains and their derivatives, using the figure.
  • e) Let k(x)=ln⁡(x+1)2(x+3)3(x+2)5k(x) = \ln\frac{(x + 1)^2 (x + 3)^3}{(x + 2)^5}. Expand kk near x=0x = 0 with the correct absolute values, then compute k′(0)k'(0).

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) f′(x)=3x+82x+1−xx2+1f'(x) = \frac{3}{x} + \frac{8}{2x + 1} - \frac{x}{x^2 + 1}, f′(1)=316f'(1) = \frac{31}{6}
  • b) g′(x)=11−x2g'(x) = \frac{1}{1 - x^2}
  • c) h′(x)=3+2xx2+1h'(x) = 3 + \frac{2x}{x^2 + 1}
  • d) No: ln⁡(x2)\ln(x^2) is defined for x≠0x \ne 0, 2ln⁡x2\ln x for x>0x > 0 only. Derivatives 2x\frac{2}{x} on their domains.
  • e) k=2ln⁡∣x+1∣+3ln⁡∣x+3∣−5ln⁡∣x+2∣k = 2\ln|x + 1| + 3\ln|x + 3| - 5\ln|x + 2|, k′(0)=12k'(0) = \frac{1}{2}

a) For x>0x > 0 every factor is positive, so the laws apply without absolute values: f(x)=3ln⁡x+4ln⁡(2x+1)−12ln⁡(x2+1)f(x) = 3 \ln x + 4 \ln(2x + 1) - \frac{1}{2}\ln(x^2 + 1), the square root being the power 12\frac{1}{2}. Differentiate term by term, the chain rule acting on the last two with inner functions 2x+12x + 1 and x2+1x^2 + 1: f′(x)=3x+4⋅22x+1−12⋅2xx2+1=3x+82x+1−xx2+1f'(x) = \frac{3}{x} + \frac{4 \cdot 2}{2x + 1} - \frac{1}{2} \cdot \frac{2x}{x^2 + 1} = \frac{3}{x} + \frac{8}{2x + 1} - \frac{x}{x^2 + 1}. At x=1x = 1: 3+83−12=18+16−36=3163 + \frac{8}{3} - \frac{1}{2} = \frac{18 + 16 - 3}{6} = \frac{31}{6}. Differentiating the quotient directly works too, and takes half a page, with a product rule inside a quotient rule inside a chain rule.

b) On (−1,1)(-1, 1), 1+x>01 + x > 0 and 1−x>01 - x > 0: g(x)=12[ln⁡(1+x)−ln⁡(1−x)]g(x) = \frac{1}{2}\left[\ln(1 + x) - \ln(1 - x)\right]. Chain rule on the second term, inner function 1−x1 - x with derivative −1-1: g′(x)=12[11+x+11−x]=12⋅(1−x)+(1+x)1−x2=11−x2g'(x) = \frac{1}{2}\left[\frac{1}{1 + x} + \frac{1}{1 - x}\right] = \frac{1}{2} \cdot \frac{(1 - x) + (1 + x)}{1 - x^2} = \frac{1}{1 - x^2}. The sign of the second term is the trap: −ln⁡(1−x)-\ln(1 - x) differentiates to −−11−x=+11−x-\frac{-1}{1 - x} = +\frac{1}{1 - x}, and losing one of the two minus signs gives x1−x2\frac{x}{1 - x^2} instead.

c) ln⁡(e3x(x2+1))=ln⁡e3x+ln⁡(x2+1)=3x+ln⁡(x2+1)\ln(e^{3x}(x^2 + 1)) = \ln e^{3x} + \ln(x^2 + 1) = 3x + \ln(x^2 + 1), since ln⁡\ln and exp⁡\exp undo each other. Then h′(x)=3+2xx2+1h'(x) = 3 + \frac{2x}{x^2 + 1}. Without the simplification one needs the chain rule, the product rule and a fraction to simplify at the end: 3e3x(x2+1)+2xe3xe3x(x2+1)\frac{3e^{3x}(x^2 + 1) + 2x e^{3x}}{e^{3x}(x^2 + 1)}, which reduces to the same thing. Simplifying first is not an elegance, it removes the places where marks are lost.

d) No. ln⁡(x2)\ln(x^2) is defined wherever x2>0x^2 > 0, that is for all x≠0x \ne 0, while 2ln⁡x2 \ln x needs x>0x > 0. The correct law is ln⁡(x2)=2ln⁡∣x∣\ln(x^2) = 2\ln|x|: the two functions agree for x>0x > 0 (the blue branch) and only ln⁡(x2)\ln(x^2) has the orange branch on the left. Their derivatives: ddxln⁡(x2)=2xx2=2x\frac{d}{dx}\ln(x^2) = \frac{2x}{x^2} = \frac{2}{x} for all x≠0x \ne 0, and ddx2ln⁡x=2x\frac{d}{dx}2\ln x = \frac{2}{x} for x>0x > 0. The same formula, on different domains: at x=−1x = -1, the first has derivative −2-2 and the second does not exist.

e) At x=0x = 0 the fraction equals 1⋅2732>0\frac{1 \cdot 27}{32} > 0, so kk is defined near 00. In general the three factors do not have a fixed sign, so the law is written with absolute values: k(x)=2ln⁡∣x+1∣+3ln⁡∣x+3∣−5ln⁡∣x+2∣k(x) = 2\ln|x + 1| + 3\ln|x + 3| - 5\ln|x + 2|, valid wherever the fraction is positive. By ddxln⁡∣u∣=u′u\frac{d}{dx}\ln|u| = \frac{u'}{u}: k′(x)=2x+1+3x+3−5x+2k'(x) = \frac{2}{x + 1} + \frac{3}{x + 3} - \frac{5}{x + 2}, so k′(0)=2+1−52=12k'(0) = 2 + 1 - \frac{5}{2} = \frac{1}{2}. Near x=0x = 0 the absolute values are harmless, but at x=−4x = -4, where the fraction equals 9⋅(−1)−32=932>0\frac{9 \cdot (-1)}{-32} = \frac{9}{32} > 0 and kk is defined, writing ln⁡(x+1)\ln(x + 1) would be the logarithm of −3-3.

Exercise 3: Logarithmic differentiation of a heavy product or quotient

Logarithmic differentiation, in four steps: take ln⁡∣y∣\ln|y| of both sides; expand the right side with the laws of logarithms; differentiate both sides, the left side giving y′y\frac{y'}{y} by the chain rule; multiply by yy. The absolute value makes the method valid wherever y≠0y \ne 0, even where yy is negative.

The method replaces the product and quotient rules by a sum of RELATIVE rates u′u\frac{u'}{u}, one per factor.

  • a) For x>0x > 0, let y=x (x+3)2(x+1)3y = \frac{\sqrt{x}\,(x + 3)^2}{(x + 1)^3}. Find y′y\frac{y'}{y} by logarithmic differentiation.
  • b) Compute y(1)y(1) and y′(1)y'(1), and give the tangent line to this curve at x=1x = 1.
  • c) Let y=(x−2)3(x+1)2y = \frac{(x - 2)^3}{(x + 1)^2}. Why must you use ln⁡∣y∣\ln|y| here? Compute y′(0)y'(0) by logarithmic differentiation, then check it with the quotient rule.
  • d) For the function of c), write y′y' as a single fraction and find every point where the tangent is horizontal. Why is x=2x = 2 invisible in the formula y′=y(3x−2−2x+1)y' = y\left(\frac{3}{x - 2} - \frac{2}{x + 1}\right)?
  • e) For positive differentiable ff and gg, use logarithmic differentiation to prove the product rule and the quotient rule.

Type your answers, the page tells you right or wrong 0/8

b)
c)
d)
Show the solution

Answers

  • a) y′y=12x+2x+3−3x+1\frac{y'}{y} = \frac{1}{2x} + \frac{2}{x + 3} - \frac{3}{x + 1}
  • b) y(1)=2y(1) = 2, y′(1)=−1y'(1) = -1; tangent y=−x+3y = -x + 3
  • c) y<0y < 0 for x<2x < 2 (x≠−1x \ne -1), so ln⁡y\ln y is undefined there; y′(0)=28y'(0) = 28
  • d) y′=(x−2)2(x+7)(x+1)3y' = \frac{(x - 2)^2 (x + 7)}{(x + 1)^3}; horizontal tangents at (−7,−814)(-7, -\frac{81}{4}) and (2,0)(2, 0)
  • e) (fg)′fg=f′f+g′g\frac{(fg)'}{fg} = \frac{f'}{f} + \frac{g'}{g} gives (fg)′=f′g+fg′(fg)' = f'g + fg'; (f/g)′f/g=f′f−g′g\frac{(f/g)'}{f/g} = \frac{f'}{f} - \frac{g'}{g} gives (fg)′=f′g−fg′g2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}

a) For x>0x > 0, y>0y > 0, and ln⁡y=12ln⁡x+2ln⁡(x+3)−3ln⁡(x+1)\ln y = \frac{1}{2}\ln x + 2\ln(x + 3) - 3\ln(x + 1). Differentiate both sides with respect to xx. On the left, ln⁡y\ln y is a composition whose inner function is y(x)y(x), so the chain rule gives y′y\frac{y'}{y}; on the right, term by term: y′y=12x+2x+3−3x+1\frac{y'}{y} = \frac{1}{2x} + \frac{2}{x + 3} - \frac{3}{x + 1}. Each term is the relative rate of one factor, multiplied by its exponent: the square root contributes 12\frac{1}{2}, the denominator contributes with a minus sign.

b) y(1)=1⋅168=2y(1) = \frac{1 \cdot 16}{8} = 2. From a): y′(1)y(1)=12+24−32=−12\frac{y'(1)}{y(1)} = \frac{1}{2} + \frac{2}{4} - \frac{3}{2} = -\frac{1}{2}, so y′(1)=2⋅(−12)=−1y'(1) = 2 \cdot \left(-\frac{1}{2}\right) = -1. Tangent: y=2−(x−1)=−x+3y = 2 - (x - 1) = -x + 3. The most common loss here is to stop at y′y=−12\frac{y'}{y} = -\frac{1}{2} and call it the slope: the last step, multiplying by yy, is part of the method, and forgetting it gives the relative rate instead of the derivative.

c) For x<2x < 2, (x−2)3<0(x - 2)^3 < 0 while (x+1)2>0(x + 1)^2 > 0, so y<0y < 0 on that whole region (except at x=−1x = -1, excluded): ln⁡y\ln y does not exist there, in particular at x=0x = 0 where y=−8y = -8. Use ln⁡∣y∣=3ln⁡∣x−2∣−2ln⁡∣x+1∣\ln|y| = 3\ln|x - 2| - 2\ln|x + 1|; differentiating, y′y=3x−2−2x+1\frac{y'}{y} = \frac{3}{x - 2} - \frac{2}{x + 1}, valid wherever y≠0y \ne 0. At x=0x = 0: y′y=−32−2=−72\frac{y'}{y} = -\frac{3}{2} - 2 = -\frac{7}{2}, so y′(0)=−8⋅(−72)=28y'(0) = -8 \cdot \left(-\frac{7}{2}\right) = 28. Quotient rule check: y′=3(x−2)2(x+1)2−2(x+1)(x−2)3(x+1)4y' = \frac{3(x - 2)^2 (x + 1)^2 - 2(x + 1)(x - 2)^3}{(x + 1)^4}, and at 00: 3⋅4⋅1−2⋅1⋅(−8)1=12+16=28\frac{3 \cdot 4 \cdot 1 - 2 \cdot 1 \cdot (-8)}{1} = 12 + 16 = 28. The two methods agree, as they must.

d) Put the bracket over a common denominator: 3x−2−2x+1=3(x+1)−2(x−2)(x−2)(x+1)=x+7(x−2)(x+1)\frac{3}{x - 2} - \frac{2}{x + 1} = \frac{3(x + 1) - 2(x - 2)}{(x - 2)(x + 1)} = \frac{x + 7}{(x - 2)(x + 1)}. Then y′=(x−2)3(x+1)2⋅x+7(x−2)(x+1)=(x−2)2(x+7)(x+1)3y' = \frac{(x - 2)^3}{(x + 1)^2} \cdot \frac{x + 7}{(x - 2)(x + 1)} = \frac{(x - 2)^2 (x + 7)}{(x + 1)^3}. This simplified formula is valid for every x≠−1x \ne -1, including x=2x = 2. It vanishes at x=2x = 2 and at x=−7x = -7: horizontal tangents at (2,0)(2, 0) and at (−7,(−9)336)=(−7,−814)(-7, \frac{(-9)^3}{36}) = (-7, -\frac{81}{4}). The formula y′=y(… )y' = y(\dots) was derived by dividing by yy, which is illegal where y=0y = 0: the point x=2x = 2 is lost by the method and recovered only by simplifying. The figure shows the curve negative on the whole left part, and flat at both points.

e) Let P=fg>0P = fg > 0. Then ln⁡P=ln⁡f+ln⁡g\ln P = \ln f + \ln g, and differentiating, P′P=f′f+g′g\frac{P'}{P} = \frac{f'}{f} + \frac{g'}{g}. Multiply by P=fgP = fg: P′=f′g+fg′P' = f'g + fg', the product rule. With Q=fgQ = \frac{f}{g}: ln⁡Q=ln⁡f−ln⁡g\ln Q = \ln f - \ln g, so Q′Q=f′f−g′g\frac{Q'}{Q} = \frac{f'}{f} - \frac{g'}{g}, and Q′=fg(f′f−g′g)=f′g−fg′g2=f′g−fg′g2Q' = \frac{f}{g}\left(\frac{f'}{f} - \frac{g'}{g}\right) = \frac{f'}{g} - \frac{fg'}{g^2} = \frac{f'g - fg'}{g^2}, the quotient rule. In words: relative rates ADD under a product and SUBTRACT under a quotient. That sentence is the whole method.

-12-10-8-6-4-2246-40-30-20-1010(-7, -20.25)(2, 0)x = -1

Exercise 4: A variable in the base AND in the exponent: x to the x and its relatives

The power rule ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1} needs a CONSTANT exponent. The exponential rule ddxex=ex\frac{d}{dx}e^x = e^x, and its cousin for bxb^x, need a CONSTANT base. When the variable sits in both places, neither rule applies, and the logarithm is the only way in: ln⁡y=(exponent)⋅ln⁡(base)\ln y = (\text{exponent}) \cdot \ln(\text{base}) turns the power into a product.

Two students differentiate y=xxy = x^x for x>0x > 0. The first writes y′=x⋅xx−1=xxy' = x \cdot x^{x-1} = x^x, the second writes y′=xxln⁡xy' = x^x \ln x.

  • a) Find the correct y′y' by logarithmic differentiation, then show that both students are wrong by comparing the three answers at x=1x = 1 and at x=ex = e.
  • b) Find the point where the tangent to y=xxy = x^x is horizontal, and the tangent line at x=1x = 1.
  • c) On (0,π)(0, \pi), differentiate y=(sin⁡x)xy = (\sin x)^x and show that its tangent at x=π2x = \frac{\pi}{2} is horizontal.
  • d) For x>0x > 0, differentiate y=xln⁡xy = x^{\ln x} and compute y′(e)y'(e).
  • e) Differentiate xex^e, exe^x, eee^e and xxx^x, naming the rule each time, and evaluate the four derivatives at x=ex = e.

Type your answers, the page tells you right or wrong 0/13

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) y′=xx(ln⁡x+1)y' = x^x(\ln x + 1); at x=1x = 1 it equals 11, while the students get 11 and 00: the first is right only by accident at x=1x = 1 and wrong at x=ex = e (eee^e against 2ee2e^e).
  • b) Horizontal tangent at (1e,e−1/e)\left(\frac{1}{e}, e^{-1/e}\right); tangent at x=1x = 1: y=xy = x
  • c) y′=(sin⁡x)x(ln⁡(sin⁡x)+xcot⁡x)y' = (\sin x)^x\left(\ln(\sin x) + x\cot x\right); at π2\frac{\pi}{2}: 1⋅(0+0)=01 \cdot (0 + 0) = 0
  • d) y′=2ln⁡xx xln⁡xy' = \frac{2\ln x}{x}\,x^{\ln x}, y′(e)=2y'(e) = 2
  • e) exe−1ex^{e-1}, exe^x, 00, xx(ln⁡x+1)x^x(\ln x + 1); at x=ex = e: eee^e, eee^e, 00, 2ee2e^e

a) For x>0x > 0, y>0y > 0, and ln⁡y=xln⁡x\ln y = x \ln x. Differentiate both sides: on the left the chain rule gives y′y\frac{y'}{y}; on the right the PRODUCT rule gives 1⋅ln⁡x+x⋅1x=ln⁡x+11 \cdot \ln x + x \cdot \frac{1}{x} = \ln x + 1. So y′=y(ln⁡x+1)=xx(ln⁡x+1)y' = y(\ln x + 1) = x^x(\ln x + 1). At x=1x = 1: y′(1)=1⋅(0+1)=1y'(1) = 1 \cdot (0 + 1) = 1. The second student gets 11ln⁡1=01^1 \ln 1 = 0: wrong. The first gets 11=11^1 = 1, right by accident; test at x=ex = e instead, where the correct value is ee(1+1)=2eee^e(1 + 1) = 2e^e and the first student's is eee^e. Each student applied a rule outside its hypotheses: the first treated the exponent as a constant, the second treated the base as a constant. The correct answer is exactly the SUM of their two answers, one term per place where xx appears.

b) y′=xx(ln⁡x+1)y' = x^x(\ln x + 1) and xx>0x^x > 0, so y′=0y' = 0 exactly when ln⁡x=−1\ln x = -1, that is x=e−1=1ex = e^{-1} = \frac{1}{e}. There y=(1e)1/e=e−1/ey = \left(\frac{1}{e}\right)^{1/e} = e^{-1/e}: the horizontal tangent is at (1e,e−1/e)\left(\frac{1}{e}, e^{-1/e}\right). At x=1x = 1: y(1)=1y(1) = 1 and y′(1)=1y'(1) = 1, so the tangent is y=1+(x−1)=xy = 1 + (x - 1) = x. The figure shows both tangents: the curve dips to its low point at x=1ex = \frac{1}{e}, then crosses back up through (1,1)(1, 1) with slope 11.

c) On (0,π)(0, \pi), sin⁡x>0\sin x > 0, so ln⁡y=xln⁡(sin⁡x)\ln y = x \ln(\sin x) is defined. Product rule on the right, with the chain rule on ln⁡(sin⁡x)\ln(\sin x), inner function sin⁡x\sin x: y′y=ln⁡(sin⁡x)+x⋅cos⁡xsin⁡x\frac{y'}{y} = \ln(\sin x) + x \cdot \frac{\cos x}{\sin x}. Hence y′=(sin⁡x)x(ln⁡(sin⁡x)+xcot⁡x)y' = (\sin x)^x\left(\ln(\sin x) + x \cot x\right). At x=π2x = \frac{\pi}{2}: sin⁡π2=1\sin\frac{\pi}{2} = 1, so ln⁡1=0\ln 1 = 0, and cot⁡π2=0\cot\frac{\pi}{2} = 0: y′=1⋅(0+0)=0y' = 1 \cdot (0 + 0) = 0. The tangent is horizontal at (π2,1)\left(\frac{\pi}{2}, 1\right). Outside (0,π)(0, \pi) the base is negative or zero and (sin⁡x)x(\sin x)^x is not even defined for most xx: the interval is part of the question.

d) For x>0x > 0: ln⁡y=ln⁡x⋅ln⁡x=(ln⁡x)2\ln y = \ln x \cdot \ln x = (\ln x)^2. Chain rule on the right, outer function the square, inner function ln⁡x\ln x: y′y=2ln⁡x⋅1x\frac{y'}{y} = 2\ln x \cdot \frac{1}{x}. So y′=2ln⁡xx xln⁡xy' = \frac{2 \ln x}{x}\,x^{\ln x}. At x=ex = e: y(e)=eln⁡e=e1=ey(e) = e^{\ln e} = e^1 = e and y′y=2e\frac{y'}{y} = \frac{2}{e}, so y′(e)=e⋅2e=2y'(e) = e \cdot \frac{2}{e} = 2. Note that (ln⁡x)2(\ln x)^2 is NOT ln⁡(x2)=2ln⁡x\ln(x^2) = 2\ln x: confusing them here gives y′y=2x\frac{y'}{y} = \frac{2}{x}, and y′(e)=2y'(e) = 2 by coincidence at x=ex = e but a wrong derivative almost everywhere else: at x=e2x = e^2 the true value is 4e2⋅e4=4e2\frac{4}{e^2} \cdot e^4 = 4e^2 against 2e2⋅e4=2e2\frac{2}{e^2} \cdot e^4 = 2e^2.

e) xex^e: constant exponent ee, power rule, exe−1ex^{e-1}. exe^x: its own derivative, exe^x. eee^e: a CONSTANT, a number close to 1515, derivative 00. xxx^x: variable base and exponent, logarithmic differentiation, xx(ln⁡x+1)x^x(\ln x + 1). At x=ex = e: e⋅ee−1=eee \cdot e^{e-1} = e^e, then eee^e, then 00, then ee⋅2=2eee^e \cdot 2 = 2e^e. The first two coincide at x=ex = e, a nice fact and nothing more; the third is the one most often got wrong, by students who apply the power rule to a number. Before differentiating any power, ask two questions: does the base contain xx? Does the exponent contain xx? Two yes answers mean: take the logarithm.

0.511.520.511.522.5x = 1/etangent y = xy = xˣx

Exercise 5: The number e as a limit, read as the derivative of ln at 1

By the definition of the derivative, ddxln⁡x∣x=1=lim⁡h→0ln⁡(1+h)−ln⁡1h\frac{d}{dx}\ln x \Big|_{x=1} = \lim_{h\to 0}\frac{\ln(1 + h) - \ln 1}{h}, and this derivative is known: it equals 11=1\frac{1}{1} = 1. Read backwards, a derivative that is already known EVALUATES a limit, with no new tool. The exponential is continuous, so a limit can be passed through it: if g(x)→Lg(x) \to L, then eg(x)→eLe^{g(x)} \to e^L.

The figure shows y=ln⁡xy = \ln x, its tangent at (1,0)(1, 0), and a secant from (1,0)(1, 0) to (1+h,ln⁡(1+h))(1 + h, \ln(1 + h)) with h=2h = 2.

0.511.522.533.54-2-1.5-1-0.50.511.52tangent, slope 1secant, slope ln(1+h)/hy = ln x
  • a) Explain, on the figure, why lim⁡h→0ln⁡(1+h)h=1\lim_{h\to 0}\frac{\ln(1 + h)}{h} = 1, then prove it from the definition of the derivative.
  • b) Deduce that lim⁡x→0(1+x)1/x=e\lim_{x\to 0}(1 + x)^{1/x} = e.
  • c) Find lim⁡x→0(1+3x)1/x\lim_{x\to 0}(1 + 3x)^{1/x} and lim⁡x→0(1−2x)1/x\lim_{x\to 0}(1 - 2x)^{1/x}.
  • d) Recognize each limit as a derivative and evaluate it: lim⁡h→0ln⁡(e+h)−1h\lim_{h\to 0}\frac{\ln(e + h) - 1}{h} and lim⁡h→0log⁡10(1+h)h\lim_{h\to 0}\frac{\log_{10}(1 + h)}{h}.
  • e) A student writes: (1+x)1/x(1 + x)^{1/x} and (1+x2)1/x(1 + x^2)^{1/x} both have the form 1∞1^\infty as x→0x \to 0, so they have the same limit. Find lim⁡x→0(1+x2)1/x\lim_{x\to 0}(1 + x^2)^{1/x} and conclude.

Type your answers, the page tells you right or wrong 0/6

c)
d)
e)
Show the solution

Answers

  • a) ln⁡(1+h)h\frac{\ln(1 + h)}{h} is the slope of the secant, which tends to the slope of the tangent, ddxln⁡x∣x=1=1\frac{d}{dx}\ln x\big|_{x=1} = 1.
  • b) ln⁡[(1+x)1/x]=ln⁡(1+x)x→1\ln\left[(1 + x)^{1/x}\right] = \frac{\ln(1 + x)}{x} \to 1, so (1+x)1/x→e1=e(1 + x)^{1/x} \to e^1 = e
  • c) e3e^3 and e−2e^{-2}
  • d) 1e\frac{1}{e} (derivative of ln⁡\ln at ee) and 1ln⁡10\frac{1}{\ln 10} (derivative of log⁡10\log_{10} at 11)
  • e) (1+x2)1/x→e0=1≠e(1 + x^2)^{1/x} \to e^0 = 1 \ne e: the same form, two different limits.

a) ln⁡(1+h)−ln⁡1(1+h)−1=ln⁡(1+h)h\frac{\ln(1 + h) - \ln 1}{(1 + h) - 1} = \frac{\ln(1 + h)}{h} is the slope of the secant drawn in green, from (1,0)(1, 0) to (1+h,ln⁡(1+h))(1 + h, \ln(1 + h)). As h→0h \to 0, from either side, the secant turns into the tangent at (1,0)(1, 0), whose slope is the derivative of ln⁡\ln at 11. By definition of the derivative, lim⁡h→0ln⁡(1+h)−ln⁡1h=ddxln⁡x∣x=1\lim_{h\to 0}\frac{\ln(1 + h) - \ln 1}{h} = \frac{d}{dx}\ln x\Big|_{x=1}, and since ddxln⁡x=1x\frac{d}{dx}\ln x = \frac{1}{x}, this equals 11. Nothing else is needed: the limit is a derivative in disguise. On the figure, with h=2h = 2 the secant slope is ln⁡32\frac{\ln 3}{2}, about 0.550.55, smaller than 11 because the curve bends down.

b) Let F(x)=(1+x)1/xF(x) = (1 + x)^{1/x}, defined for x>−1x > -1, x≠0x \ne 0. Its logarithm is ln⁡F(x)=1xln⁡(1+x)=ln⁡(1+x)x\ln F(x) = \frac{1}{x}\ln(1 + x) = \frac{\ln(1 + x)}{x}, which tends to 11 as x→0x \to 0 by a), from both sides. Since F(x)=eln⁡F(x)F(x) = e^{\ln F(x)} and the exponential is continuous at 11, F(x)→e1=eF(x) \to e^1 = e. The last step is the one that earns the mark: a student who stops at ln⁡F→1\ln F \to 1 and answers 11 has found the limit of the LOGARITHM. Never answer 11 because the base tends to 11: the exponent 1x\frac{1}{x} blows up at the same time, and it is the logarithm that measures the contest.

c) ln⁡[(1+3x)1/x]=ln⁡(1+3x)x=3⋅ln⁡(1+3x)3x\ln\left[(1 + 3x)^{1/x}\right] = \frac{\ln(1 + 3x)}{x} = 3 \cdot \frac{\ln(1 + 3x)}{3x}. With u=3xu = 3x, u→0u \to 0 as x→0x \to 0, and ln⁡(1+u)u→1\frac{\ln(1 + u)}{u} \to 1 by a). So the logarithm tends to 33 and the limit is e3e^3. Similarly ln⁡(1−2x)x=−2⋅ln⁡(1+u)u\frac{\ln(1 - 2x)}{x} = -2 \cdot \frac{\ln(1 + u)}{u} with u=−2x→0u = -2x \to 0, which tends to −2-2: the limit is e−2e^{-2}. The coefficient of xx inside the parenthesis moves to the exponent of ee, sign included. Forgetting to multiply and divide by 33 gives ee for both, a very common answer.

d) lim⁡h→0ln⁡(e+h)−1h=lim⁡h→0ln⁡(e+h)−ln⁡eh\lim_{h\to 0}\frac{\ln(e + h) - 1}{h} = \lim_{h\to 0}\frac{\ln(e + h) - \ln e}{h}, since ln⁡e=1\ln e = 1: it is the derivative of ln⁡\ln at a=ea = e, that is 1e\frac{1}{e}. For the second, log⁡101=0\log_{10} 1 = 0, so log⁡10(1+h)h=log⁡10(1+h)−log⁡101h\frac{\log_{10}(1 + h)}{h} = \frac{\log_{10}(1 + h) - \log_{10} 1}{h} is the difference quotient of log⁡10\log_{10} at 11, and ddxlog⁡10x=1xln⁡10\frac{d}{dx}\log_{10}x = \frac{1}{x\ln 10} gives 1ln⁡10\frac{1}{\ln 10}. The skill is to spot the three ingredients: a function, a point aa, and f(a)f(a) subtracted, sometimes hidden as 11 or 00.

e) ln⁡[(1+x2)1/x]=ln⁡(1+x2)x=x⋅ln⁡(1+x2)x2\ln\left[(1 + x^2)^{1/x}\right] = \frac{\ln(1 + x^2)}{x} = x \cdot \frac{\ln(1 + x^2)}{x^2}. With u=x2→0u = x^2 \to 0, ln⁡(1+u)u→1\frac{\ln(1 + u)}{u} \to 1, and the factor x→0x \to 0, so the logarithm tends to 0⋅1=00 \cdot 1 = 0 and the limit is e0=1e^0 = 1. The form 1∞1^\infty is the same as in b), and the limit is 11 instead of ee: the form alone decides nothing. What decides is how fast the base approaches 11 compared with how fast the exponent grows, and only the logarithm computes that. The student's rule would give a single answer to all these limits, and they have three different ones already in this exercise.

Part B: problems and reasoning (/50)

Exercise 6: Bacterial growth: the constant k is a relative rate, not a percentage

A quantity grows exponentially when its rate of change is proportional to its size: dPdt=kP\frac{dP}{dt} = kP. The course takes as given that the solutions of this equation are exactly the functions P(t)=P0ektP(t) = P_0 e^{kt}, where P0=P(0)P_0 = P(0). Dividing by PP, the law says P′P=k\frac{P'}{P} = k: the RELATIVE growth rate is constant.

A bacterial culture grows at a rate proportional to its size, tt in hours. It contains 500500 bacteria at t=0t = 0 and 20002000 at t=2t = 2. The figure shows the two counts on the growth curve.

0.511.522.5350010001500200025003000350040004500P(0) = 500P(2) = 2000t (hours)P
  • a) Find kk exactly, with its unit.
  • b) Find the population at t=5t = 5 hours.
  • c) Find the rate of growth of the population at t=5t = 5, with its unit.
  • d) When does the population reach 64 00064\,000 bacteria?
  • e) The culture doubles every hour. A student concludes that k=1k = 1, since the population gains 100%100\% per hour. Explain why k=ln⁡2k = \ln 2, and what kk measures.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) k=ln⁡42=ln⁡2k = \frac{\ln 4}{2} = \ln 2 per hour
  • b) P(5)=500⋅25=16 000P(5) = 500 \cdot 2^5 = 16\,000 bacteria
  • c) P′(5)=16 000ln⁡2P'(5) = 16\,000 \ln 2 bacteria per hour (about 11 00011\,000)
  • d) t=7t = 7 hours
  • e) k=P′Pk = \frac{P'}{P} is the instantaneous relative rate; doubling in one hour means ek=2e^k = 2, so k=ln⁡2<1k = \ln 2 < 1.

a) P(t)=500ektP(t) = 500e^{kt}. The second datum: 500e2k=2000500e^{2k} = 2000, so e2k=4e^{2k} = 4, and taking ln⁡\ln of both sides, 2k=ln⁡4=2ln⁡22k = \ln 4 = 2\ln 2. Hence k=ln⁡2k = \ln 2 per hour, and the model is P(t)=500etln⁡2=500⋅2tP(t) = 500e^{t\ln 2} = 500 \cdot 2^t. The unit of kk is the inverse of the time unit, here per hour, since ktkt must be a pure number. Keep ln⁡2\ln 2: a decimal k=0.69k = 0.69 would propagate a rounding error through every later answer, and the exact form gives the powers of 22 that make the rest computable by hand.

b) P(5)=500e5ln⁡2=500⋅25=500⋅32=16 000P(5) = 500e^{5\ln 2} = 500 \cdot 2^5 = 500 \cdot 32 = 16\,000 bacteria. The law of logarithms e5ln⁡2=eln⁡(25)=25e^{5\ln 2} = e^{\ln(2^5)} = 2^5 does the work: with kk kept exact, no calculator is needed.

c) The rate of growth is the derivative, and the model gives it without differentiating anything new: P′(t)=kP(t)P'(t) = kP(t), so P′(5)=ln⁡2⋅16 000=16 000ln⁡2P'(5) = \ln 2 \cdot 16\,000 = 16\,000 \ln 2 bacteria per hour. With ln⁡2≈0.69\ln 2 \approx 0.69 that is about 11 00011\,000 bacteria per hour, which is plausible: the population is growing by about two thirds of its current size per hour at that instant. A common slip is to answer P(5)=16 000P(5) = 16\,000: the question asks for a RATE, and a rate has the unit bacteria per hour.

d) 500⋅2t=64 000500 \cdot 2^t = 64\,000 gives 2t=128=272^t = 128 = 2^7, so t=7t = 7 hours. In general, take ln⁡\ln: tln⁡2=ln⁡128=7ln⁡2t\ln 2 = \ln 128 = 7\ln 2, the same answer. Check: from 500500, seven doublings give 500⋅128=64 000500 \cdot 128 = 64\,000.

e) Doubling in one hour means P(t+1)=2P(t)P(t + 1) = 2P(t), that is ek(t+1)=2ekte^{k(t + 1)} = 2e^{kt}, so ek=2e^k = 2 and k=ln⁡2k = \ln 2, about 0.690.69, not 11. The two numbers answer different questions. The 100%100\% is the gain over one whole hour, compared with the size at the START of that hour. The constant k=P′Pk = \frac{P'}{P} is the INSTANTANEOUS relative rate: at each moment the population grows at ln⁡2\ln 2 times its current size per hour, and since the size keeps increasing during the hour, a smaller instantaneous rate is enough to double it. With k=1k = 1 the population would be multiplied by e≈2.72e \approx 2.72 each hour, not by 22. This confusion is the most frequent error of the chapter, and it contaminates every numerical answer that follows.

Exercise 7: Radioactive decay: the rate of decay and the tangent that always lands 30/ln 2 later

A radioactive isotope decays at a rate proportional to the mass present: dmdt=km\frac{dm}{dt} = km, with k<0k < 0, so m(t)=m0ektm(t) = m_0e^{kt} by the result of the course. The HALF-LIFE is the time after which half of any sample remains; it does not depend on the size of the sample.

A sample contains 8080 mg of an isotope whose half-life is 3030 years, tt in years.

  • a) Find kk exactly, and explain its sign.
  • b) Find the mass left after 9090 years.
  • c) At what rate is the sample losing mass when 2020 mg remain? When does that happen?
  • d) When will 55 mg remain? When will 11 mg remain? Give exact answers.
  • e) Show that the tangent line to the graph of mm at ANY time aa meets the tt axis at t=a+30ln⁡2t = a + \frac{30}{\ln 2}.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
Show the solution

Answers

  • a) k=−ln⁡230k = -\frac{\ln 2}{30} per year, negative because the mass decreases
  • b) m(90)=10m(90) = 10 mg
  • c) m′=−2ln⁡23m' = -\frac{2\ln 2}{3} mg per year, at t=60t = 60 years
  • d) 55 mg at t=120t = 120 years; 11 mg at t=30ln⁡80ln⁡2t = \frac{30\ln 80}{\ln 2} years (about 190190)
  • e) Tangent y=m(a)[1+k(t−a)]y = m(a)\left[1 + k(t - a)\right] vanishes at t=a−1k=a+30ln⁡2t = a - \frac{1}{k} = a + \frac{30}{\ln 2}, for every aa.

a) m(30)=40m(30) = 40: 80e30k=4080e^{30k} = 40, so e30k=12e^{30k} = \frac{1}{2} and 30k=ln⁡12=−ln⁡230k = \ln\frac{1}{2} = -\ln 2. Hence k=−ln⁡230k = -\frac{\ln 2}{30} per year, and m(t)=80e−tln⁡2/30=80⋅2−t/30m(t) = 80e^{-t\ln 2/30} = 80 \cdot 2^{-t/30}. The sign is forced: dmdt=km\frac{dm}{dt} = km with m>0m > 0 and a decreasing mass requires k<0k < 0. A positive kk here is a model of growth, and every answer below would come out above 8080 mg, which a quick look catches.

b) m(90)=80⋅2−90/30=80⋅2−3=10m(90) = 80 \cdot 2^{-90/30} = 80 \cdot 2^{-3} = 10 mg. Ninety years are three half-lives, and each one halves the mass: 80,40,20,1080, 40, 20, 10.

c) The rate of change is m′(t)=km(t)m'(t) = km(t). When m=20m = 20: m′=−ln⁡230⋅20=−2ln⁡23m' = -\frac{\ln 2}{30} \cdot 20 = -\frac{2\ln 2}{3} mg per year, about −0.46-0.46 mg per year. The sample loses mass at 2ln⁡23\frac{2\ln 2}{3} mg per year; the negative sign of m′m' says it is a loss, and writing the rate as positive without saying losing is a sign error. It happens when 80⋅2−t/30=2080 \cdot 2^{-t/30} = 20, 2−t/30=2−22^{-t/30} = 2^{-2}, t=60t = 60 years. The rate is proportional to the mass: at t=0t = 0 it was four times larger, −8ln⁡23-\frac{8\ln 2}{3} mg per year.

d) 80⋅2−t/30=580 \cdot 2^{-t/30} = 5 gives 2−t/30=116=2−42^{-t/30} = \frac{1}{16} = 2^{-4}, so t=120t = 120 years. For 11 mg: 2−t/30=1802^{-t/30} = \frac{1}{80}; take ln⁡\ln: −t30ln⁡2=−ln⁡80-\frac{t}{30}\ln 2 = -\ln 80, so t=30ln⁡80ln⁡2t = \frac{30\ln 80}{\ln 2} years. That is the exact answer. As an order of magnitude, 8080 lies between 26=642^6 = 64 and 27=1282^7 = 128, so tt is between 180180 and 210210 years, about 190190. Answering 80⋅30=240080 \cdot 30 = 2400 years or 8030\frac{80}{30} confuses decay by halving with decay by subtraction.

e) At t=at = a the point is (a,m(a))(a, m(a)) and the slope is m′(a)=km(a)m'(a) = km(a). Tangent: y=m(a)+km(a)(t−a)=m(a)[1+k(t−a)]y = m(a) + km(a)(t - a) = m(a)\left[1 + k(t - a)\right]. Since m(a)>0m(a) > 0, it vanishes when 1+k(t−a)=01 + k(t - a) = 0, that is t=a−1k=a+30ln⁡2t = a - \frac{1}{k} = a + \frac{30}{\ln 2}, about a+43a + 43 years. The delay −1k-\frac{1}{k} does not depend on aa: the figure shows three tangents, at t=0t = 0, 3030 and 6060, each reaching the axis the same 30ln⁡2\frac{30}{\ln 2} years later. This is the geometric face of m′m=k\frac{m'}{m} = k: at every point the curve falls at the same RELATIVE rate, so its tangents are copies of each other scaled vertically.

306090120150102030405060708090each tangent reaches 030/ln 2 years latert (years)m (mg)

Exercise 8: Five statements to correct

Each statement below was written by a student on a MATH 140 assignment, and each is false. Say what is wrong, give the correct result, and check it on a value.

  • a) ddxln⁡(5x)=5x\frac{d}{dx}\ln(5x) = \frac{5}{x}.
  • b) ddxlog⁡3x=13x\frac{d}{dx}\log_3 x = \frac{1}{3x}.
  • c) ddx(ln⁡x)2=ddxln⁡(x2)=2x\frac{d}{dx}(\ln x)^2 = \frac{d}{dx}\ln(x^2) = \frac{2}{x}.
  • d) If f(x)=ln⁡(x−3)f(x) = \ln(x - 3), then f′(x)=1x−3f'(x) = \frac{1}{x - 3}, so f′(1)=−12f'(1) = -\frac{1}{2}.
  • e) If y′=0.05 yy' = 0.05\,y, the quantity yy grows by exactly 5%5\% per unit of time.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) False: ln⁡(5x)=ln⁡5+ln⁡x\ln(5x) = \ln 5 + \ln x, derivative 1x\frac{1}{x}.
  • b) False: 1xln⁡3\frac{1}{x\ln 3}.
  • c) False: ddx(ln⁡x)2=2ln⁡xx\frac{d}{dx}(\ln x)^2 = \frac{2\ln x}{x}; only ln⁡(x2)\ln(x^2) has derivative 2x\frac{2}{x}.
  • d) False: 11 is not in the domain x>3x > 3, so f′(1)f'(1) does not exist.
  • e) False: yy is multiplied by e0.05e^{0.05} per unit of time, a gain slightly MORE than 5%5\%.

a) FALSE. The chain rule with inner function u=5xu = 5x gives u′u=55x=1x\frac{u'}{u} = \frac{5}{5x} = \frac{1}{x}: the 55 cancels. Faster: ln⁡(5x)=ln⁡5+ln⁡x\ln(5x) = \ln 5 + \ln x, and ln⁡5\ln 5 is a constant with derivative 00. The graph of ln⁡(5x)\ln(5x) is the graph of ln⁡x\ln x shifted UP by ln⁡5\ln 5, so both have the same slope at every xx; at x=1x = 1 both slopes are 11, not 55. Correct: ddxln⁡(cx)=1x\frac{d}{dx}\ln(cx) = \frac{1}{x} for any constant c>0c > 0.

b) FALSE. log⁡3x=ln⁡xln⁡3\log_3 x = \frac{\ln x}{\ln 3}, so its derivative is 1xln⁡3\frac{1}{x\ln 3}. The base enters through ln⁡3\ln 3, not through a factor 33. Check at x=1x = 1: log⁡3\log_3 grows from 00 at x=1x = 1 to 11 at x=3x = 3, an average slope of 12\frac{1}{2} on [1,3][1, 3], and the slope at 11 must be larger, since the curve bends down; 1ln⁡3\frac{1}{\ln 3} is a little below 11, while 13\frac{1}{3} is smaller than the average slope. Correct: ddxlog⁡bx=1xln⁡b\frac{d}{dx}\log_b x = \frac{1}{x\ln b}.

c) FALSE. (ln⁡x)2(\ln x)^2 is the square of the logarithm, while ln⁡(x2)\ln(x^2) is the logarithm of the square; the law ln⁡(ar)=rln⁡a\ln(a^r) = r\ln a applies only to the second. By the chain rule, outer function the square and inner function ln⁡x\ln x: ddx(ln⁡x)2=2ln⁡x⋅1x=2ln⁡xx\frac{d}{dx}(\ln x)^2 = 2\ln x \cdot \frac{1}{x} = \frac{2\ln x}{x}. At x=1x = 1 it is 00, while 2x=2\frac{2}{x} = 2. Correct: ddx(ln⁡x)2=2ln⁡xx\frac{d}{dx}(\ln x)^2 = \frac{2\ln x}{x} and ddxln⁡(x2)=2x\frac{d}{dx}\ln(x^2) = \frac{2}{x}.

d) FALSE. ln⁡(x−3)\ln(x - 3) is defined only for x>3x > 3, so ff does not exist at x=1x = 1, and neither does f′(1)f'(1). The formula 1x−3\frac{1}{x - 3} is a correct derivative, but only on the domain of ff, and plugging a number outside that domain produces a value about nothing. Correct: f′(x)=1x−3f'(x) = \frac{1}{x - 3} for x>3x > 3, and f′(1)f'(1) is undefined. By contrast, ln⁡∣x−3∣\ln|x - 3| is defined at 11 and its derivative there is indeed −12-\frac{1}{2}.

e) FALSE. y′=0.05 yy' = 0.05\,y gives y=y0e0.05ty = y_0e^{0.05t}, so after one unit of time yy is multiplied by e0.05e^{0.05}, not by 1.051.05. The constant 0.050.05 is the instantaneous relative rate y′y\frac{y'}{y}, and since the quantity it applies to keeps growing during the unit of time, the gain over the whole unit is larger: ex>1+xe^x > 1 + x for every x≠0x \ne 0, because the graph of exe^x lies above its tangent line y=1+xy = 1 + x at 00. So the gain is slightly more than 5%5\%, about 5.1%5.1\%. Correct: yy grows at the relative rate of 5%5\% per unit of time, and by a factor e0.05e^{0.05} per unit.

Exercise 9: Newton's law of cooling: the gap with the room decays, not the temperature

Newton's law of cooling says that an object cools at a rate proportional to the DIFFERENCE between its temperature and that of its surroundings: dTdt=k(T−Ts)\frac{dT}{dt} = k(T - T_s). The difference D=T−TsD = T - T_s then satisfies D′=kDD' = kD, so it decays exponentially, and we take as given the formula T(t)=Ts+(T0−Ts)ektT(t) = T_s + (T_0 - T_s)e^{kt}.

A bowl of soup at 8585 °C is left in a room at 2121 °C, tt in minutes. Five minutes later it is at 5353 °C. The figure shows the two readings and the room temperature.

5101520253010203040506070809085 °C at t = 053 °C at t = 5room temperature 21 °Ct (min)T (°C)
  • a) Find kk exactly.
  • b) Find the temperature of the soup at t=15t = 15 minutes.
  • c) Find the rate of cooling at t=0t = 0 and at t=15t = 15, and compare them.
  • d) When does the soup reach 2525 °C?
  • e) A classmate models the soup by T(t)=85ectT(t) = 85e^{ct} and fits cc on the reading at t=5t = 5. Find what her model predicts at t=15t = 15, and explain the two mistakes.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) k=−ln⁡25k = -\frac{\ln 2}{5} per minute
  • b) T(15)=21+64⋅18=29T(15) = 21 + 64 \cdot \frac{1}{8} = 29 °C
  • c) T′(0)=−64ln⁡25T'(0) = -\frac{64\ln 2}{5} and T′(15)=−8ln⁡25T'(15) = -\frac{8\ln 2}{5} °C per minute: eight times slower
  • d) t=20t = 20 minutes
  • e) Her model predicts 533852=148 8777225<21\frac{53^3}{85^2} = \frac{148\,877}{7225} < 21 °C at t=15t = 15, colder than the room: it ignores TsT_s and assumes a constant relative rate for TT instead of T−TsT - T_s.

a) Here Ts=21T_s = 21 and T0−Ts=85−21=64T_0 - T_s = 85 - 21 = 64, so T(t)=21+64ektT(t) = 21 + 64e^{kt}. At t=5t = 5: 21+64e5k=5321 + 64e^{5k} = 53, so 64e5k=3264e^{5k} = 32, e5k=12e^{5k} = \frac{1}{2}, and 5k=−ln⁡25k = -\ln 2: k=−ln⁡25k = -\frac{\ln 2}{5} per minute. The model becomes T(t)=21+64⋅2−t/5T(t) = 21 + 64 \cdot 2^{-t/5}: the GAP with the room halves every 55 minutes. The classic loss is to write 85e5k=5385e^{5k} = 53, forgetting that the exponential carries the gap and not the temperature.

b) T(15)=21+64⋅2−3=21+8=29T(15) = 21 + 64 \cdot 2^{-3} = 21 + 8 = 29 °C. Three halvings of the gap: 64,32,16,864, 32, 16, 8.

c) By the law itself, T′(t)=k(T(t)−21)T'(t) = k(T(t) - 21), no new differentiation needed. At t=0t = 0: T′(0)=−ln⁡25⋅64=−64ln⁡25T'(0) = -\frac{\ln 2}{5} \cdot 64 = -\frac{64\ln 2}{5} °C per minute, about −8.9-8.9. At t=15t = 15: T′(15)=−ln⁡25⋅8=−8ln⁡25T'(15) = -\frac{\ln 2}{5} \cdot 8 = -\frac{8\ln 2}{5} °C per minute, about −1.1-1.1. The ratio is 88, the ratio of the gaps: the soup cools fast when it is much hotter than the room, and slower and slower as the gap closes, which is the flattening of the curve toward the dashed line on the figure.

d) 21+64⋅2−t/5=2521 + 64 \cdot 2^{-t/5} = 25 gives 2−t/5=464=116=2−42^{-t/5} = \frac{4}{64} = \frac{1}{16} = 2^{-4}, so t5=4\frac{t}{5} = 4 and t=20t = 20 minutes. Note that the soup NEVER reaches 2121 °C in this model: the gap halves forever without vanishing, and a question asking when it reaches 2121 °C has no answer.

e) From 85e5c=5385e^{5c} = 53: e5c=5385e^{5c} = \frac{53}{85}, so T(15)=85(5385)3=533852=148 8777225T(15) = 85\left(\frac{53}{85}\right)^3 = \frac{53^3}{85^2} = \frac{148\,877}{7225}. Since 21⋅7225=151 725>148 87721 \cdot 7225 = 151\,725 > 148\,877, her prediction is BELOW 2121 °C: the soup would be colder than the room after a quarter of an hour, which is impossible. First mistake: her model tends to 00 °C as t→∞t \to \infty, as if the room were at 00; it ignores the surroundings. Second mistake, the same one seen from the derivative: she assumes T′T\frac{T'}{T} constant, while the law says T′T−21\frac{T'}{T - 21} is constant. The exponential describes the quantity whose RELATIVE rate is constant, and here that quantity is the gap.

Exercise 10: Continuous compounding: real growth, doubling times and two accounts that meet

An account compounded continuously at the annual rate rr satisfies dAdt=rA\frac{dA}{dt} = rA, so, as given in the course, A(t)=A0ertA(t) = A_0e^{rt}, tt in years. The rate rr is the relative growth rate A′A\frac{A'}{A} of the balance.

Rates are given as decimals: 5%5\% means r=0.05r = 0.05. All answers exact, as on the final.

  • a) 10001000 dollars are invested at 5%5\% compounded continuously. Find the doubling time and the balance after 2020 years.
  • b) How fast is this balance growing when it reaches 40004000 dollars? And at t=0t = 0?
  • c) What continuous rate would triple an investment in 2020 years?
  • d) Prices rise with a continuous inflation rate of 2%2\%, so a price index is I(t)=e0.02tI(t) = e^{0.02t}. By logarithmic differentiation, find the relative growth rate of the REAL value R=AIR = \frac{A}{I} of the account of a), and the time it takes to double in real terms.
  • e) Account 1 holds 10001000 dollars at 6%6\%, account 2 holds 20002000 dollars at 4%4\%, both compounded continuously. When do they hold the same amount, and which one is growing faster at that moment, by what factor?

Type your answers, the page tells you right or wrong 0/11

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Doubling time 20ln⁡220\ln 2 years (about 13.913.9); A(20)=1000eA(20) = 1000e dollars
  • b) 200200 dollars per year; 5050 dollars per year at t=0t = 0
  • c) r=ln⁡320r = \frac{\ln 3}{20} (about 5.5%5.5\%)
  • d) R′R=0.05−0.02=0.03\frac{R'}{R} = 0.05 - 0.02 = 0.03; real doubling time 100ln⁡23\frac{100\ln 2}{3} years (about 2323)
  • e) At t=50ln⁡2t = 50\ln 2 years, both at 80008000 dollars; account 1 grows 1.51.5 times faster (480480 against 320320 dollars per year).

a) 1000e0.05t=20001000e^{0.05t} = 2000 gives e0.05t=2e^{0.05t} = 2, 0.05t=ln⁡20.05t = \ln 2, t=ln⁡20.05=20ln⁡2t = \frac{\ln 2}{0.05} = 20\ln 2 years, about 13.913.9. The doubling time does not depend on the amount invested, only on rr: in general it is ln⁡2r\frac{\ln 2}{r}. After 2020 years: A(20)=1000e0.05⋅20=1000eA(20) = 1000e^{0.05 \cdot 20} = 1000e dollars, about 27182718 dollars. Leaving ee in the answer is the exact form; 1000⋅1.05201000 \cdot 1.05^{20} would be ANNUAL compounding, a different account.

b) A′=rAA' = rA, so when A=4000A = 4000: A′=0.05⋅4000=200A' = 0.05 \cdot 4000 = 200 dollars per year. At t=0t = 0: A′(0)=0.05⋅1000=50A'(0) = 0.05 \cdot 1000 = 50 dollars per year. The growth rate in dollars per year is proportional to the balance, while the relative rate stays 5%5\%: that is exactly what continuous compounding means.

c) e20r=3e^{20r} = 3, so 20r=ln⁡320r = \ln 3 and r=ln⁡320r = \frac{\ln 3}{20}. With ln⁡3≈1.10\ln 3 \approx 1.10, that is about 0.0550.055, or 5.5%5.5\%. The answer 320=15%\frac{3}{20} = 15\% divides the target factor by the time, as if growth were linear, and a quick check kills it: at 15%15\% the doubling time would be ln⁡20.15\frac{\ln 2}{0.15}, under five years.

d) ln⁡R=ln⁡A−ln⁡I=ln⁡1000+0.05t−0.02t\ln R = \ln A - \ln I = \ln 1000 + 0.05t - 0.02t. Differentiate: R′R=0.05−0.02=0.03\frac{R'}{R} = 0.05 - 0.02 = 0.03. Relative rates SUBTRACT under a quotient, which is the whole content of logarithmic differentiation, so the real value grows at 3%3\%: R(t)=1000e0.03tR(t) = 1000e^{0.03t}. Its doubling time is ln⁡20.03=100ln⁡23\frac{\ln 2}{0.03} = \frac{100\ln 2}{3} years, about 2323 years instead of 13.913.9. Inflation does not remove a fixed number of dollars per year; it removes 22 points of relative rate.

e) 1000e0.06t=2000e0.04t1000e^{0.06t} = 2000e^{0.04t} gives e0.02t=2e^{0.02t} = 2, so t=ln⁡20.02=50ln⁡2t = \frac{\ln 2}{0.02} = 50\ln 2 years, about 3535. Both hold 2000e0.04⋅50ln⁡2=2000e2ln⁡2=2000⋅4=80002000e^{0.04 \cdot 50\ln 2} = 2000e^{2\ln 2} = 2000 \cdot 4 = 8000 dollars. At that moment A1′=0.06⋅8000=480A_1' = 0.06 \cdot 8000 = 480 and A2′=0.04⋅8000=320A_2' = 0.04 \cdot 8000 = 320 dollars per year: equal balances, so the rates are in the ratio of the relative rates, 0.060.04=1.5\frac{0.06}{0.04} = 1.5. Account 1 started with half as much and catches up because its relative rate is larger; from then on it pulls ahead for good, as the figure shows.

5101520253035404550300060009000120001500018000210001000 dollars at 6%2000 dollars at 4%t = 50 ln 2t (years)A (dollars)

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/math140-logarithmic-differentiation. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Struggling with MATH 140?

I tutor first-year calculus at McGill and Concordia, in English or in French, in Montreal or online. Get in touch for a first session.

Site by Studio Squalli