Differentiating aˣ and logₐ x

Every base is e in disguise.

Any positive base is a power of e

Let a > 0. Then ln a is defined: it is the power to which e must be raised to give a. So a = e^(ln a). For example, ln 2 = 0.6931 to four decimal places, and e^(ln 2) = 2.

Raise both sides to the power x: aˣ = (e^(ln a))ˣ = e^(x ln a). So 2ˣ = e^(x ln 2), which is about e^(0.6931x). The base must be positive, because ln a has no value for a ≤ 0.

The chain rule on e^(x ln a)

In e^(x ln a), the inner function is x ln a, where ln a is a constant, so its derivative is ln a. The outer function is eᵘ, which is its own derivative. The chain rule gives e^(x ln a) × ln a.

Written back with base a, e^(x ln a) is aˣ. So the derivative of aˣ is aˣ ln a.

Check 2ˣ at x = 3: the rule gives 8 ln 2 = 5.5452, and the chord from 3 to 3.001 has gradient 5.5471. Check 3ˣ at x = 2: the rule gives 9 ln 3 = 9.8875, and a chord with a step of 0.000001 gives 9.8875.

The multiplier is ln a

The gradient of aˣ is its height aˣ times the constant ln a. Chords at x = 0 give that constant as about 0.6931 for 2ˣ and 1.0986 for 3ˣ, and those are ln 2 and ln 3.

ln 2 = 0.6931 is less than 1, so 2ˣ has a gradient less than its height at every point, and from the same start at (0, 1) it climbs more slowly than eˣ. ln 3 = 1.0986 is more than 1, so 3ˣ climbs faster than its height. For 10ˣ the multiplier is ln 10 = 2.3026.

xy

The gold curve y = 2ˣ and the dashed curve y = eˣ, both through (0, 1). The gold line is the tangent to 2ˣ there, with gradient ln 2 = 0.6931; the dashed line is the tangent to eˣ, with gradient 1. At x = 2 the heights are 4 and 7.389.

Checks with other bases

With a = e, ln e = 1, and the rule gives eˣ × 1 = eˣ: eˣ is its own derivative, as before.

With a = 1, ln 1 = 0, and the rule gives 0. That is right: 1ˣ = 1 for every x, a horizontal line.

With 0 < a < 1, ln a is negative, and aˣ falls. For (1/2)ˣ at x = 1, the gradient is (1/2) × ln(1/2) = 0.5 × (−0.6931) = −0.3466.

logₐ x

By the change of base, logₐ x = ln x / ln a, for x > 0 and a positive base a ≠ 1. Here 1/(ln a) is a constant multiplier, so the derivative of logₐ x is (1/ln a) × (1/x) = 1/(x ln a).

For log₂ x at x = 4 that is 1/(4 ln 2) = 0.3607, and a chord with a step of 0.000001 gives 0.3607. For log₁₀ x at x = 10 it is 1/(10 ln 10) = 0.04343.

At x = 1, log₂ x has gradient 1/(ln 2) = 1.4427, steeper than ln x, whose gradient there is 1. The graph of log₂ x is the graph of ln x stretched vertically by the factor 1.4427.

A coefficient in the exponent

For 2^(3x) = e^(3x ln 2), the inner function is 3x ln 2, with derivative 3 ln 2, so the derivative is 3 ln 2 × 2^(3x). At x = 1 that is 24 ln 2 = 16.636.

For 10^(−x), the inner derivative is −ln 10, so the derivative is −ln 10 × 10^(−x): the function falls at 2.3026 times its own height.

The usual mistakes

Using the power rule, as x · 2ˣ⁻¹. The power rule needs the variable in the base and a fixed power; in 2ˣ the base is fixed and the variable is in the exponent.

Giving 2ˣ as its own derivative. Only base e has a gradient equal to its height; 2ˣ has ln 2 times its height.

Dividing by ln a instead of multiplying. The derivative of aˣ is aˣ ln a.

Giving 1/x as the derivative of log₂ x. That is the derivative of ln x; log₂ x is ln x divided by ln 2, so its derivative is 1/(x ln 2).

A tracer that halves every six hours

In the application below, a tracer’s activity is 800 × 2^(−x/6). Its derivative needs the factor ln 2, and writing the same activity with base e shows where the ln 2 comes from.

Worked example: A Radioactive Tracer That Halves Every Six Hours: the Same Decay Written with Base Two and with Base e

Question A hospital's radioactive tracer halves in activity every 6 hours, so its activity x hours after it is made is A = 800 × 2−x/6 becquerel. (a) At what rate is the activity falling after 6 hours? (b) The same activity can be written A = 800e−kx. Find k, and check that it gives the same rate.

  1. 1.Let x be the number of hours. Every 6 hours the index −x6 falls by 1 and the activity halves, so A = 800 × 2−x/6 becquerel.

    020040060080006121824hours, xactivity, becquerel(6, 400)A = 800 × 2−x/6every 6 hours the activity halves
    020040060080006121824hours, xactivity, becquerel(6, 400)A = 800 × 2−x/6every 6 hours the activity halves
    The activity halves every 6 hours: 800, 400, 200, 100 becquerel at 0, 6, 12 and 18 hours.
  2. 2.Differentiate au as au ln a × dudx, with a = 2 and u = −x6, so dudx = −16. This gives dAdx = −ln 26 × 800 × 2−x/6.

    020040060080006121824hours, xactivity, becquerel(6, 400)d(au)/dx = auln a × du/dxdA/dx = −(ln 2)A/6
    020040060080006121824hours, xactivity, becquerel(6, 400)d(au)/dx = auln a × du/dxdA/dx = −(ln 2)A/6
    A power of 2 differentiates to itself times ln 2 times the derivative of the index, and here that index is −x6.
  3. 3.After 6 hours the activity is 800 × 2−1 = 400 becquerel.

    020040060080006121824hours, xactivity, becquerel(6, 400)x = 6: A = 800 × 2−1= 400
    020040060080006121824hours, xactivity, becquerel(6, 400)x = 6: A = 800 × 2−1= 400
    After 6 hours the activity is 800 × 2−1 = 400 becquerel, the point the tangent is drawn at.
  4. 4.(a) dAdx = −400ln 26 ≈ −46.21, so the activity is falling at about 46.21 becquerel an hour.

    020040060080006121824hours, xactivity, becquerelrun 4fall 185(6, 400)dA/dx = −400 ln 2/6about −46.21 becquerel an hour
    020040060080006121824hours, xactivity, becquerelrun 4fall 185(6, 400)dA/dx = −400 ln 2/6about −46.21 becquerel an hour
    (a) dAdx = −400ln 26 ≈ −46.21: the tangent falls about 185 becquerel in 4 hours.
  5. 5.Every base is e in disguise: 2−x/6 = e−xln 2/6, so A = 800e−kx with k = ln 26 ≈ 0.1155 per hour.

    020040060080006121824hours, xactivity, becquerelrun 4fall 185(6, 400)2−x/6= e−x ln 2/6k = ln 2/6 ≈ 0.1155 per hour
    020040060080006121824hours, xactivity, becquerelrun 4fall 185(6, 400)2−x/6= e−x ln 2/6k = ln 2/6 ≈ 0.1155 per hour
    The same decay with base e: 2−x/6 = e−xln 2/6, so k = ln 26 ≈ 0.1155 per hour.
  6. 6.(b) Then dAdx = −kA = −0.1155 × 400 ≈ −46.21, the same rate. Check: between 6 and 6.1 hours the activity falls from 400 to about 395.4 becquerel.

    020040060080006121824hours, xactivity, becquerel(6, 400)dA/dx = −kA = −0.1155 × 400about −46.21, the same rate
    020040060080006121824hours, xactivity, becquerel(6, 400)dA/dx = −kA = −0.1155 × 400about −46.21, the same rate
    (b) dAdx = −kA = −0.1155 × 400 ≈ −46.21 becquerel an hour, the rate found before.

Answer: (a) The activity is falling at about 46.21 becquerel an hour; (b) k = ln 26 ≈ 0.1155 per hour

Common mistakes

  • Differentiating 2−x/6 by the power rule, as though the index were fixed and the base were the variable. The variable is in the index here, so the rule for ax applies and a factor of ln 2 appears.
  • Taking k to be 16 because the activity halves every 6 hours. The index of e carries a factor of ln 2, so k = ln 26, which is about 0.1155 rather than 0.1667.

More rules of differentiation problems, worked step by step →

Practice Differentiating aˣ and logₐ x in the app