AP Calculus AB and BC

Derivative of 3^x: Answer, Proof, and Mistakes

The derivative of 3^x is 3^x ln 3, roughly 1.0986 times 3^x. In prime notation, if f(x) = 3^x then f'(x) = 3^x ln 3. Rewrite 3^x as e^(x ln 3) and the chain rule multiplies by the inner derivative ln 3, which is the general rule that a^x differentiates to a^x ln a.

ddx[3x]=3xln⁡3\frac{d}{dx}\left[3^x\right] = 3^x\ln 3

How to differentiate 3^x

Convert the base to ee first. Since 3=eln⁡33 = e^{\ln 3}, the function is 3x=exln⁡33^{x} = e^{x\ln 3}, an exponential with the constant ln⁡3\ln 3 inside. Now the chain rule applies, with inner derivative ln⁡3\ln 3.

ddx3x=ddxexln⁡3=exln⁡3⋅ln⁡3=3xln⁡3\frac{d}{dx}3^{x} = \frac{d}{dx}e^{x\ln 3} = e^{x\ln 3}\cdot\ln 3 = 3^{x}\ln 3

Nothing about the base 33 mattered except that it is positive, so the same argument gives the general exponential rule.

ddxax=axln⁡a(a>0)\frac{d}{dx}a^{x} = a^{x}\ln a \quad (a>0)

Why base e is the special case

The derivative of 3x3^{x} is a fixed multiple of the function itself, and ln⁡3≈1.0986\ln 3\approx 1.0986 is that multiplier, so the slope is always about 9.99.9 percent larger than the height. Base ee is the one case where ln⁡a=1\ln a = 1 and the derivative equals the function exactly.

f′(0)=30ln⁡3=ln⁡3≈1.0986f'(0) = 3^{0}\ln 3 = \ln 3 \approx 1.0986

That number is the slope of y=3xy = 3^{x} as it crosses the yy-axis at height 11, and comparing it with the slope 11 of y=exy = e^{x} at the same height is the cleanest way to see why ee is the natural base for calculus.

Common mistakes with the derivative of 3^x

  • Using the power rule and answering x⋅3x−1x\cdot 3^{x-1}. The power rule needs a variable base and a constant exponent; here it is the other way around.
  • Answering 3x3^{x} with no logarithm. Only base ee has a derivative equal to itself.
  • Writing 3xln⁡x3^{x}\ln x. The logarithm takes the base 33, a constant, not the variable.
  • Turning the rule upside down as 3xln⁡3\frac{3^{x}}{\ln 3}, which is the antiderivative, not the derivative.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of 3x3^{x}?

It is 3xln⁡33^{x}\ln 3. The factor ln⁡3≈1.0986\ln 3\approx 1.0986 comes from writing 3x3^{x} as exln⁡3e^{x\ln 3}.

Why does ln⁡3\ln 3 appear in the answer?

Because the chain rule multiplies by the derivative of the exponent in exln⁡3e^{x\ln 3}, and that exponent is xln⁡3x\ln 3, whose derivative is the constant ln⁡3\ln 3.

What is the derivative of axa^{x} in general?

For any a>0a>0 it is axln⁡aa^{x}\ln a. Base ee is the case where ln⁡a=1\ln a = 1, so the derivative reproduces the function.