math.wiki
Calculus › Derivatives › Derivatives of trig, exponential and log functions › Derivatives of logarithms and logarithmic differentiation
Open on the map
Calculus 1

Derivatives of logarithms and logarithmic differentiation

The logarithm undoes the exponential, and the exponential is its own derivative. What is the slope of y = \ln x, and how does that one fact let us differentiate long products and powers such as x^x, where the variable sits in both the base and the exponent?

Where you are 3 in Derivatives of trig, exponential and log functions

Why this exists

The derivative rules so far cover powers of x, the exponentials e^x and a^x, and the trigonometric functions, with sums, products, quotients and compositions of them. The logarithm is missing, though it is just as basic: y = \ln x means exactly e^y = x. The limit definition does not hand over its derivative easily, because \ln(x + h) does not split into anything simpler. Implicit differentiation goes around the difficulty: the equation e^y = x involves only the exponential, whose derivative is known.

The answer is surprising. The derivative of a logarithm is not a logarithm or an exponential but the rational function \displaystyle \frac{1}{x}. That fact, joined to the laws of logarithms, then reaches functions no earlier rule touches. A product of six factors becomes a sum of six logarithms, and x^x, which is neither a power function (its exponent moves) nor an exponential (its base moves), becomes x \ln x, a plain product.

Definition

Day 1: the derivative of a logarithm

For x > 0 the natural logarithm \ln x is the number y with e^y = x. So \ln\left(e^x\right) = x for every real x and e^{\ln x} = x for every x > 0. The laws of logarithms (Laws of logarithms) hold for positive A and B and every real r:

\begin{aligned} \ln(AB) &= \ln A + \ln B, \\ \ln\frac{A}{B} &= \ln A - \ln B, \\ \ln\left(A^r\right) &= r \ln A. \end{aligned}

For a base a > 0 with a \ne 1, \log_a x is the power of a that gives x, and the change of base formula writes it with natural logarithms: \log_a x = \dfrac{\ln x}{\ln a}.

Day 2: logarithmic differentiation

To differentiate y = f(x) logarithmically is to take the natural logarithm of both sides, expand the right side with the laws of logarithms, differentiate both sides with respect to x, and multiply through by y. The left side, \ln y, differentiates to \dfrac{y'}{y} by the chain rule. Where f(x) may be negative, \ln|y| is used, with the same left side. The quotient \dfrac{f'(x)}{f(x)} is called the logarithmic derivative of f: the rate of change of f per unit of its own size.

Intuition

The graph of y = \ln x is the mirror image of y = e^x in the line y = x, because (a, b) lies on one exactly when (b, a) lies on the other. Mirroring swaps run and rise, so a tangent of slope m on one curve becomes a tangent of slope \displaystyle \frac{1}{m} on the other. The exponential’s slope equals its height, so at (1, e) its slope is e, and at the mirror point (e, 1) the logarithm’s slope is \displaystyle \frac{1}{e}. In general the point (a, e^a) has slope e^a, its mirror is (x, \ln x) with x = e^a, and the slope there is \displaystyle \frac{1}{e^a} = \frac{1}{x}. The derivative of an inverse function makes this picture a theorem for every invertible function.

x
y
(1, e)
(e, 1)
y = e^x
y = \ln x
y = x
Figure 1Mirroring in y = x swaps rise and run. The tangent to y = e^x at (1, e) has slope e; the tangent to y = \ln x at (e, 1) has slope \displaystyle \frac{1}{e}.

The formula \displaystyle \frac{1}{x} also says how the logarithm grows. From x = 100 to x = 101 it rises by about \displaystyle \frac{1}{100}; from x = 1000 to x = 1001, by about \displaystyle \frac{1}{1000}. A change \Delta x raises \ln x by about \displaystyle \frac{\Delta x}{x}, the change measured as a fraction of x. So the logarithm responds to proportional change, which is why Logarithmic scales such as the Richter scale use it, and why \displaystyle \frac{f'}{f} is the rate of growth of f in proportion to its size.

Results

The natural logarithm. For every x > 0,

\frac{d}{dx}\big[\ln x\big] = \frac{1}{x}.

With an absolute value. For every x \ne 0,

\frac{d}{dx}\big[\ln |x|\big] = \frac{1}{x}.

Other bases. For a > 0, a \ne 1 and x > 0,

\frac{d}{dx}\big[\log_a x\big] = \frac{1}{x \ln a}.

A logarithm of a function. If g is differentiable at x and g(x) \ne 0,

\frac{d}{dx}\big[\ln|g(x)|\big] = \frac{g'(x)}{g(x)}.

Logarithmic differentiation. If f is differentiable at x and f(x) \ne 0, then f'(x) = f(x) \cdot \dfrac{d}{dx}\big[\ln|f(x)|\big].

A variable power. If u = g(x) > 0 and v = h(x) are differentiable, then u^v = e^{v \ln u} and

\frac{d}{dx}\big[u^v\big] = u^v\left(v' \ln u + \frac{v\,u'}{u}\right).

In particular \dfrac{d}{dx}\big[x^x\big] = x^x(\ln x + 1) for x > 0.

Why it is true

The natural logarithm, by implicit differentiation. Let y = \ln x for x > 0, so that e^y = x, and take for the moment that \ln is differentiable (proved in the next paragraph). Differentiate both sides with respect to x. On the left, the chain rule treats y as a function of x, exactly as in Implicit differentiation:

e^y \frac{dy}{dx} = 1, \quad \text{so} \quad \frac{dy}{dx} = \frac{1}{e^y} = \frac{1}{x}.

The last step replaces e^y by x, which is the equation itself.

A check from the limit definition, which also proves differentiability. Fix x > 0 and take h \ne 0 small enough that x + h > 0. The quotient law gives

\frac{\ln(x + h) - \ln x}{h} = \frac{1}{h}\ln\left(1 + \frac{h}{x}\right).

Put \displaystyle k = \ln\left(1 + \frac{h}{x}\right). Then \displaystyle 1 + \frac{h}{x} = e^k, so h = x\left(e^k - 1\right), and the quotient becomes

\frac{k}{x\left(e^k - 1\right)} = \frac{1}{x} \cdot \frac{1}{\left(\dfrac{e^k - 1}{k}\right)}.

As h \to 0, k \to 0, because \ln is continuous at 1; and k \ne 0 whenever h \ne 0, because \ln is one-to-one. The quotient \displaystyle \frac{e^k - 1}{k} tends to 1, the slope of e^x at 0 (Derivatives of exponential functions). So the difference quotient tends to \displaystyle \frac{1}{x}: the logarithm is differentiable, and its derivative is \displaystyle \frac{1}{x}, as the implicit argument found.

With an absolute value. For x > 0, \ln|x| = \ln x. For x < 0, \ln|x| = \ln(-x), and the chain rule gives \displaystyle \frac{1}{-x} \cdot (-1) = \frac{1}{x}.

Other bases. \displaystyle \log_a x = \frac{1}{\ln a} \cdot \ln x with \ln a a nonzero constant, so its derivative is \displaystyle \frac{1}{x \ln a}. Running the same idea on a^x = e^{x \ln a} gives \big(a^x\big)' = a^x \ln a, already derived in Derivatives of exponential functions and The chain rule.

A logarithm of a function. The outer function is \ln|u|, with derivative \displaystyle \frac{1}{u}, and the chain rule multiplies by u' = g'(x).

Logarithmic differentiation. If f is differentiable at x and f(x) \ne 0, the previous result gives \displaystyle \frac{d}{dx}\ln|f(x)| = \frac{f'(x)}{f(x)}; multiply by f(x). The method assumes f is differentiable. For a variable power this is guaranteed by writing u^v = e^{v \ln u}, which holds because e^{\ln u} = u; it is a composition of differentiable functions, and the chain and product rules give \displaystyle e^{v \ln u}\left(v' \ln u + v \cdot \frac{u'}{u}\right). Logarithmic differentiation of y = u^v, from \ln y = v \ln u, gives the same.

What is stated, not proved. That \ln is continuous, which holds because it is the inverse of the continuous one-to-one function e^x; the general fact belongs with Derivatives of inverse functions.

Worked examples

Example 1

Day 1: reading off derivatives

Find the derivative of each function for x > 0: f(x) = \ln(7x), g(x) = \log_{10} x and h(x) = x^4 \ln x.

Solution

By the product law, \ln(7x) = \ln 7 + \ln x, and \ln 7 is a constant, so f'(x) = \dfrac{1}{x}. The chain rule agrees: \displaystyle \frac{1}{7x} \cdot 7 = \frac{1}{x}. The factor 7 lifts the graph of \ln x by \ln 7 without changing any slope.

By change of base, \displaystyle g(x) = \frac{\ln x}{\ln 10}, a constant multiple of \ln x, so g'(x) = \dfrac{1}{x \ln 10}. Since \ln 10 \approx 2.303, the common logarithm climbs less than half as fast as the natural one at every x.

The product rule gives \displaystyle h'(x) = 4x^3 \ln x + x^4 \cdot \frac{1}{x}, so h'(x) = x^3(4\ln x + 1).

Example 2

Day 1: the inside function

Find the derivative of each function, and say where it is defined: (a) \ln(x^2 + 6x + 10), (b) \ln|\cos x|, (c) \ln(\ln x).

Solution

(a) Completing the square, x^2 + 6x + 10 = (x + 3)^2 + 1 \ge 1, so the inside is positive and the function is defined for every x. With u = x^2 + 6x + 10 and u' = 2x + 6, the derivative is \dfrac{u'}{u} = \dfrac{2x + 6}{x^2 + 6x + 10}. It is zero only at x = -3, where the inside is smallest; since \ln only goes up, \ln u is smallest where u is.

(b) Defined wherever \cos x \ne 0. With u = \cos x, u' = -\sin x, the derivative is \dfrac{-\sin x}{\cos x} = -\tan x. The absolute value lets this hold also on intervals where \cos x < 0, such as \displaystyle \left(\frac{\pi}{2}, \frac{3\pi}{2}\right). Read backward, it gives an antiderivative of \tan x, which returns in Antiderivatives of trig, exponential and log functions.

(c) The outer logarithm needs \ln x > 0, so x > 1. With u = \ln x, \displaystyle u' = \frac{1}{x}, the derivative is \dfrac{1/x}{\ln x} = \dfrac{1}{x \ln x}.

Example 3

Day 1: a tangent line and a level point on y = x ln x

For y = x \ln x, find the tangent line at x = e and the point where the tangent is horizontal.

Solution

The product rule gives \displaystyle y' = 1 \cdot \ln x + x \cdot \frac{1}{x} = \ln x + 1.

At x = e, y = e \ln e = e and the slope is \ln e + 1 = 2. The point-slope form (Tangent lines and normal lines) gives y - e = 2(x - e), that is, y = 2x - e.

The tangent is horizontal where \ln x + 1 = 0, so \ln x = -1 and \displaystyle x = e^{-1} = \frac{1}{e}. There \displaystyle y = \frac{1}{e} \cdot (-1) = -\frac{1}{e}, so the point is \displaystyle \left(\frac{1}{e}, -\frac{1}{e}\right). To its left \ln x + 1 < 0, so the slope is negative; to its right the slope is positive. That a negative slope makes a graph fall and a positive one makes it rise is proved later, in Increasing, decreasing, constant, positive and negative intervals.

Example 4

Day 1: Ainur’s earthquake energies

Seismologists use the Gutenberg-Richter energy relation, taken here as a given model, to link the magnitude M of an earthquake to the energy E it releases, in joules: \log_{10} E = 1.5M + 4.8. Ainur writes M as a function of E, finds \dfrac{dM}{dE} and evaluates it at E = 10^{15} joules. Then she uses the rate to estimate how much the magnitude grows when the energy grows by 10\%, and compares the estimate with the exact change.

Solution

Solving for M, M = \dfrac{\log_{10} E - 4.8}{1.5} = \dfrac{2}{3}\log_{10} E - 3.2. The derivative of \log_{10} E is \displaystyle \frac{1}{E \ln 10}, so

\frac{dM}{dE} = \frac{2}{3E \ln 10}.

At E = 10^{15}, \displaystyle M = \frac{2}{3}(15) - 3.2 = 6.8, and \dfrac{dM}{dE} = \dfrac{2}{3 \cdot 10^{15} \ln 10} \approx 2.895 \times 10^{-16} magnitude units per joule. The rate is tiny because one joule is tiny beside 10^{15}.

A 10\% increase is \Delta E = 10^{14}. The rate times the change estimates \Delta M \approx 2.895 \times 10^{-16} \cdot 10^{14} \approx 0.029. Exactly, \displaystyle M(1.1E) - M(E) = \frac{2}{3}\log_{10} 1.1 \approx 0.028. The estimate is close because the rate changes little between E and 1.1E.

The product \displaystyle E \cdot \frac{dM}{dE} = \frac{2}{3 \ln 10} \approx 0.290 does not depend on E. So a 10\% increase in energy adds about 0.029 to the magnitude of a small earthquake and a large one alike: the derivative \displaystyle \frac{1}{x} at work as proportional change.

Example 5

Day 2: a quotient of many factors

Find y' for \displaystyle y = \dfrac{x^3 \sqrt{x^2 + 9}}{(x + 1)^2}, and evaluate y'(4).

Solution

The quotient rule, with a product on top and a chain rule inside it, would work but is long. Instead take \ln|y| wherever y \ne 0, that is, for x \ne 0 and x \ne -1. The laws of logarithms split it into three terms:

\ln|y| = 3\ln|x| + \frac{1}{2}\ln(x^2 + 9) - 2\ln|x + 1|.

Differentiate both sides. The left side gives \displaystyle \frac{y'}{y}, and each term on the right is the logarithm of a function:

\frac{y'}{y} = \frac{3}{x} + \frac{x}{x^2 + 9} - \frac{2}{x + 1}.

Multiply by y:

y' = \frac{x^3 \sqrt{x^2 + 9}}{(x + 1)^2}\left(\frac{3}{x} + \frac{x}{x^2 + 9} - \frac{2}{x + 1}\right).

At x = 4, \displaystyle y(4) = \frac{64 \cdot 5}{25} = \frac{64}{5} and the bracket is \displaystyle \frac{3}{4} + \frac{4}{25} - \frac{2}{5} = \frac{75 + 16 - 40}{100} = \frac{51}{100}. So \displaystyle y'(4) = \frac{64}{5} \cdot \frac{51}{100} = \frac{816}{125} = 6.528. The absolute values make the formula hold for negative x as well.

Example 6

Day 2: x to the power x

Find the derivative of y = x^x for x > 0, its slope at x = 1, and the point where its tangent is horizontal.

Solution

The power rule needs a constant exponent and the exponential rule a constant base, so neither applies. Take logarithms: by the power law, \ln y = x \ln x. Differentiating, with the derivative of x \ln x from Example 3,

\frac{y'}{y} = \ln x + 1, \quad \text{so} \quad y' = x^x(\ln x + 1).

A second route: x^x = e^{x \ln x}, and the chain rule gives e^{x \ln x}(\ln x + 1), the same.

At x = 1, y' = 1 \cdot (0 + 1) = 1. Since x^x > 0, y' = 0 only where \ln x = -1, at \displaystyle x = \frac{1}{e}, where \displaystyle y = \left(\frac{1}{e}\right)^{1/e} = e^{-1/e} \approx 0.692. The slope is negative on \displaystyle \left(0, \frac{1}{e}\right), where \ln x < -1, and positive after, and the figure shows the graph dipping to this level point. That such a sign change makes it the lowest point of the graph is proved later, by the The first and second derivative tests. As x \to 0^+, x^x \to 1 (Comparing growth rates at infinity).

x
y
1
2
1
4
\left(\tfrac{1}{e}, e^{-1/e}\right)
(1, 1)
y = x^x
Figure 2The graph of y = x^x (Example 6). The tangent is horizontal at \displaystyle x = \frac{1}{e} and has slope 1 at (1, 1). The open circle marks (0, 1), the value approached as x \to 0^+; the function is not defined at 0.
Example 7

Day 2: the compounding function

Let f(x) = \left(1 + \dfrac{1}{x}\right)^x for x > 0. Find f'(x), the tangent line at x = 1, and f'(2).

Solution

Take logarithms: \displaystyle \ln f(x) = x \ln\left(1 + \frac{1}{x}\right) = x\big[\ln(x + 1) - \ln x\big]. The product rule gives

\begin{aligned} \frac{f'(x)}{f(x)} &= \ln(x + 1) - \ln x + x\left(\frac{1}{x + 1} - \frac{1}{x}\right) \\ &= \ln\left(1 + \frac{1}{x}\right) - \frac{1}{x + 1}, \end{aligned}

since \displaystyle \frac{x}{x + 1} - 1 = -\frac{1}{x + 1}. So

f'(x) = \left(1 + \frac{1}{x}\right)^x \left[\ln\left(1 + \frac{1}{x}\right) - \frac{1}{x + 1}\right].

At x = 1, f(1) = 2 and \displaystyle f'(1) = 2\left(\ln 2 - \frac{1}{2}\right) = 2\ln 2 - 1 \approx 0.386, so the tangent line is y = 2 + (2\ln 2 - 1)(x - 1). At x = 2, \displaystyle f(2) = \frac{9}{4} and \displaystyle f'(2) = \frac{9}{4}\left(\ln\frac{3}{2} - \frac{1}{3}\right) \approx 0.162.

At a whole number n, f(n) is the growth factor of a year’s interest at 100\% compounded n times (Compound interest and compounding periods), and it approaches e as x \to \infty, a limit that L’Hopital’s rule evaluates through \ln f. That f'(x) > 0 for every x > 0 follows from the inequality \ln(1 + u) < u of The mean value theorem, taken at \displaystyle u = -\frac{1}{x + 1}.

Boundaries

  • \ln x is defined only for x > 0, and \displaystyle \frac{d}{dx}[\ln x] = \frac{1}{x} holds only there. For x < 0, \displaystyle \frac{1}{x} is the derivative of \ln|x|, not of \ln x. Nothing covers x = 0, and y = \ln|x| is two separate pieces.
  • \log_a x needs a > 0 and a \ne 1, so that \ln a \ne 0.
  • \displaystyle \frac{d}{dx}\ln|g(x)| = \frac{g'(x)}{g(x)} needs g differentiable and g(x) \ne 0.
  • Logarithmic differentiation needs y \ne 0 at the point and y differentiable. At a zero of y the logarithm is undefined, as at x = 0 in Example 5; there y' must come another way, here from the definition: y(0) = 0 and \displaystyle \frac{y(h)}{h} = \frac{h^2\sqrt{h^2 + 9}}{(h + 1)^2} \to 0, so y'(0) = 0.
  • A variable power u^v needs u > 0. The expression x^x has a value at some negative numbers, such as (-1)^{-1} = -1, but not on any interval of them, so it has no derivative there.

Where this goes next

Read backward, \displaystyle \frac{d}{dx}\ln|x| = \frac{1}{x} says that \ln|x| + C is an antiderivative of \displaystyle \frac{1}{x}, the one power the rule for antiderivatives of powers misses, and Example 2(b) gives the antiderivative of \tan x in Antiderivatives of trig, exponential and log functions. With \displaystyle \frac{1}{x} as the derivative of a factor, integration by parts integrates \ln x itself. Taking a logarithm turns a power into a product, which is how L’Hopital’s rule handles limits such as \displaystyle \left(1 + \frac{1}{x}\right)^x and x^x. The implicit argument of this lesson, applied to f(y) = x, gives the derivative of any inverse function and the derivatives of the inverse trigonometric functions. A function whose logarithmic derivative \displaystyle \frac{f'}{f} is constant is an exponential, the subject of Exponential growth and decay.

Exercises

Day 1: derivatives with logarithms

Find the derivative of each function on its domain.

  1. f(x) = \ln(3x^2)
  2. g(x) = \log_3(x^2 + 1)
  3. h(x) = x \ln x - x
  4. p(t) = \dfrac{\ln t}{t^2}
  5. q(x) = \ln(\sin x) for 0 < x < \pi
  6. r(x) = \ln|2x - 5|
  7. s(x) = (\ln x)^3
  8. \displaystyle f(x) = \ln\left(x + \sqrt{x^2 + 1}\right), simplified as far as possible.
  9. y = \ln\dfrac{x^2}{x^2 + 4}. Expand with the laws of logarithms first, then combine into one fraction.

Day 1: tangent lines and rates

  1. Find the tangent line to y = \ln(x^2 - 3) at x = 2.
  2. Find the tangent line to y = \log_2 x at x = 8.
  3. At what point is the tangent to y = \ln x parallel to the line \displaystyle y = \frac{x}{3}? Write that tangent line.
  4. Serik uses the model \displaystyle M = \frac{2}{3}\log_{10} E - 3.2 from Example 4. Find \dfrac{dM}{dE} at E = 10^{13} joules, and how many times larger the rate is at E = 10^{13} than at E = 10^{14}.

Day 2: products and quotients

  1. Use logarithmic differentiation to find y' for y = \dfrac{(x + 2)^3 (x - 1)^4}{(x + 5)^2}, then evaluate y'(2).
  2. Use logarithmic differentiation to find y' for \displaystyle y = x^2 \sqrt[3]{x^2 + 4}\, e^{3x}, x > 0.
  3. Find y' for \displaystyle y = \sqrt{\dfrac{x - 1}{x + 1}}, x > 1, and write it as a single fraction of powers of x + 1 and x - 1.

Day 2: variable powers

  1. Find the derivative of y = x^{\sin x} for x > 0, and its value at \displaystyle x = \frac{\pi}{2}.
  2. Find y' for y = x^{1/x}, x > 0, and the point where the tangent is horizontal.
  3. Find y' for y = (\ln x)^x, x > 1, and its value at x = e.
  4. Find y'(1) for y = (x^2 + 1)^x.
  5. Find the tangent line to y = x^x at x = 3.

Reasoning

  1. Explain in two ways, once with a law of logarithms and once with the chain rule, why \ln(kx) has derivative \displaystyle \frac{1}{x} for every constant k > 0. What does this say about the graphs of y = \ln(kx) for different k?
  2. Let f and g be differentiable and positive. Apply logarithmic differentiation to y = f(x)g(x) and show that the result is the product rule. Do the same for y = \dfrac{f(x)}{g(x)} and the quotient rule.
  3. Show that for every real number r and every x > 0, \dfrac{d}{dx}\big[x^r\big] = r x^{r - 1}, starting from \ln y = r \ln x. Why does \displaystyle r = \sqrt{2} need this argument rather than the earlier power rules?
  4. Show that the derivative of x^x is the sum of two pieces, x \cdot x^{x - 1} and x^x \ln x. Explain where each piece comes from: which is the rate of change when the exponent is held fixed, and which when the base is held fixed? Evaluate each piece and the derivative at x = 2.
Answers
  1. f'(x) = \dfrac{2}{x} for x \ne 0. \ln(3x^2) = \ln 3 + 2\ln|x|, and \displaystyle \big(\ln|x|\big)' = \frac{1}{x}.
  2. g'(x) = \dfrac{2x}{(x^2 + 1)\ln 3}. \displaystyle g(x) = \frac{\ln(x^2 + 1)}{\ln 3}, and the chain rule gives \displaystyle \frac{2x}{x^2 + 1} on top.
  3. h'(x) = \ln x. The product rule gives \displaystyle \ln x + x \cdot \frac{1}{x} - 1.
  4. p'(t) = \dfrac{1 - 2\ln t}{t^3}. The quotient rule gives \displaystyle \frac{t^2 \cdot \frac{1}{t} - 2t\ln t}{t^4}; divide top and bottom by t.
  5. q'(x) = \cot x. \displaystyle \frac{u'}{u} = \frac{\cos x}{\sin x}.
  6. r'(x) = \dfrac{2}{2x - 5} for \displaystyle x \ne \frac{5}{2}. With u = 2x - 5, \displaystyle \frac{u'}{u}; the absolute value covers \displaystyle x < \frac{5}{2}.
  7. s'(x) = \dfrac{3(\ln x)^2}{x}. The power rule with the chain rule: \displaystyle 3(\ln x)^2 \cdot \frac{1}{x}.
  8. \displaystyle f'(x) = \dfrac{1}{\sqrt{x^2 + 1}} for every x (the inside is positive, since \displaystyle \sqrt{x^2 + 1} > |x|). \displaystyle u' = 1 + \frac{x}{\sqrt{x^2 + 1}} = \frac{\sqrt{x^2 + 1} + x}{\sqrt{x^2 + 1}}, and dividing by \displaystyle u = x + \sqrt{x^2 + 1} cancels that factor.
  9. y' = \dfrac{8}{x(x^2 + 4)} for x \ne 0. y = 2\ln|x| - \ln(x^2 + 4), so \displaystyle y' = \frac{2}{x} - \frac{2x}{x^2 + 4} = \frac{2(x^2 + 4) - 2x^2}{x(x^2 + 4)}.
  10. y = 4x - 8. y(2) = \ln 1 = 0 and \displaystyle y' = \frac{2x}{x^2 - 3} = 4 at x = 2.
  11. y = 3 + \dfrac{x - 8}{8 \ln 2}. \log_2 8 = 3, and the slope is \displaystyle \frac{1}{8 \ln 2} \approx 0.180.
  12. At (3, \ln 3); the tangent is y = \dfrac{x}{3} - 1 + \ln 3. The slope \displaystyle \frac{1}{x} equals \displaystyle \frac{1}{3} only at x = 3; then \displaystyle y - \ln 3 = \frac{1}{3}(x - 3).
  13. \dfrac{dM}{dE} = \dfrac{2}{3 \cdot 10^{13} \ln 10} \approx 2.895 \times 10^{-14} per joule, and the rate is 10 times larger. The rate \displaystyle \frac{2}{3E \ln 10} is inversely proportional to E, so ten times the energy gives a tenth of the rate.
  14. y' = \dfrac{(x + 2)^3 (x - 1)^4}{(x + 5)^2}\left(\dfrac{3}{x + 2} + \dfrac{4}{x - 1} - \dfrac{2}{x + 5}\right) and y'(2) = \dfrac{2000}{343}. \displaystyle y(2) = \frac{64}{49} and the bracket is \displaystyle \frac{3}{4} + 4 - \frac{2}{7} = \frac{125}{28}.
  15. \displaystyle y' = x^2 \sqrt[3]{x^2 + 4}\, e^{3x}\left(\dfrac{2}{x} + \dfrac{2x}{3(x^2 + 4)} + 3\right). From \displaystyle \ln y = 2\ln x + \frac{1}{3}\ln(x^2 + 4) + 3x.
  16. y' = \dfrac{1}{(x + 1)^{3/2}(x - 1)^{1/2}}. \displaystyle \ln y = \frac{1}{2}\big[\ln(x - 1) - \ln(x + 1)\big], so \displaystyle \frac{y'}{y} = \frac{1}{2} \cdot \frac{2}{x^2 - 1} = \frac{1}{x^2 - 1}; multiply by \displaystyle y = \frac{(x - 1)^{1/2}}{(x + 1)^{1/2}}.
  17. y' = x^{\sin x}\left(\cos x \ln x + \dfrac{\sin x}{x}\right), and the value is 1. From \ln y = \sin x \ln x; at \displaystyle \frac{\pi}{2}, \displaystyle y = \frac{\pi}{2} and the bracket is \displaystyle 0 + \frac{2}{\pi}.
  18. y' = x^{1/x} \cdot \dfrac{1 - \ln x}{x^2}; horizontal at \left(e, e^{1/e}\right) \approx (2.718, 1.445). From \displaystyle \ln y = \frac{\ln x}{x} and the quotient rule; x^{1/x} > 0, so y' = 0 only where \ln x = 1.
  19. y' = (\ln x)^x\left(\ln(\ln x) + \dfrac{1}{\ln x}\right) and y'(e) = 1. From \ln y = x\ln(\ln x), whose derivative is \displaystyle \ln(\ln x) + x \cdot \frac{1}{x \ln x}; at e, 1^e(0 + 1) = 1.
  20. y'(1) = 2\ln 2 + 2 \approx 3.386. \displaystyle \frac{y'}{y} = \ln(x^2 + 1) + \frac{2x^2}{x^2 + 1}; at x = 1, y = 2 and the bracket is \ln 2 + 1.
  21. y = 27 + 27(1 + \ln 3)(x - 3). y(3) = 27 and y'(3) = 27(\ln 3 + 1) \approx 56.66.
  22. By the product law, \ln(kx) = \ln k + \ln x, and the constant \ln k has derivative 0. By the chain rule, \displaystyle \frac{1}{kx} \cdot k = \frac{1}{x}. The graphs of y = \ln(kx) are vertical shifts of y = \ln x by \ln k, so at each x they all have the same slope.
  23. \ln y = \ln f + \ln g gives \displaystyle \frac{y'}{y} = \frac{f'}{f} + \frac{g'}{g}, and multiplying by y = fg gives f'g + fg'. For the quotient, \displaystyle \frac{y'}{y} = \frac{f'}{f} - \frac{g'}{g}, and multiplying by \displaystyle \frac{f}{g} gives \displaystyle \frac{f'}{g} - \frac{fg'}{g^2} = \frac{f'g - fg'}{g^2}.
  24. Differentiating \ln y = r \ln x gives \displaystyle \frac{y'}{y} = \frac{r}{x}, so \displaystyle y' = x^r \cdot \frac{r}{x} = r x^{r - 1}; y is differentiable because x^r = e^{r \ln x}. The earlier rules cover integer powers and, through implicit differentiation, rational ones. No root or integer power defines \displaystyle x^{\sqrt{2}}: it is defined as \displaystyle e^{\sqrt{2}\ln x}, so its derivative must go through the logarithm.
  25. The derivative is x^x(\ln x + 1) = x^x + x^x \ln x, and x \cdot x^{x - 1} = x^x, so it is the sum of the two pieces. Holding the exponent fixed at a constant r, the power rule gives \displaystyle \frac{d}{dx}x^r = r x^{r - 1}, which at r = x is x \cdot x^{x - 1}. Holding the base fixed at a constant a, the exponential rule gives \displaystyle \frac{d}{dx}a^x = a^x \ln a, which at a = x is x^x \ln x. In \ln y = x \ln x the product rule produces the same two terms: 1 \cdot \ln x from the moving exponent and \displaystyle x \cdot \frac{1}{x} from the moving base. At x = 2 the pieces are 4 and 4\ln 2 \approx 2.77, and the derivative is 4 + 4\ln 2 \approx 6.77.
kg1128 · updated 2026-10-21 · CC-BY-SA-4.0