Tutorials › AP Calculus › Derivatives of Exponential Functions with Other Bases

Trigonometric and Exponential Derivatives · Tutorial 147 of 999

Derivatives of Exponential Functions with Other Bases

Learn why the derivative of \(a^x\) is \(a^x\ln a\) for every positive base, and how to use the formula accurately.

Intermediate 9 min read

What You'll Learn

  • Rewrite a positive-base exponential as a natural exponential.
  • Derive the derivative formula using the natural exponential limit.
  • Explain why the base must be positive for a real-valued function of every real input.
  • Differentiate exponentials with integer, fractional, and reciprocal bases.
  • Apply the formula when an exponential is multiplied by a constant.
  • Identify and correct common errors involving the power rule and the factor ln a.

Why the Base Changes the Derivative

The functions \(2^x\), \(5^x\), and \(e^x\) all grow exponentially, but they do not grow at the same rate. Their derivatives reflect that difference: the base affects not only the value of the function but also the factor multiplying it in the derivative.

The natural exponential \(e^x\) has the special property that its derivative is itself. For a different positive base, the derivative is still proportional to the original exponential, but the proportionality factor is \(\ln a\), where \(a\) is the base. This tutorial derives that factor and uses the result in calculations.

Key formula: For a constant \(a>0\), the derivative of \(a^x\) is \(a^x\ln a\). The factor \(\ln a\) records how the growth rate depends on the base.

Writing an Exponential with Base \(a\) Using \(e\)

For a positive real number \(a\), \(\ln a\) is the real number whose natural exponential is \(a\). Thus \(e^{\ln a}=a\). Using the exponent rule \((b^r)^s=b^{rs}\) for positive \(b\), we can rewrite \(a^x\):

$$ a^x=(e^{\ln a})^x=e^{x\ln a}. $$

This identity is useful because it expresses every positive-base exponential in terms of the natural exponential. Here \(a\) is fixed, so \(\ln a\) is a constant. We will use the identity to derive the derivative rather than treat \(a^x\) as a power with a fixed exponent.

Definition: For a fixed positive real number \(a\), the exponential function with base \(a\) is the function \(f(x)=a^x\), defined for every real number \(x\). Its equivalent natural-exponential form is \(f(x)=e^{x\ln a}\).

Deriving the Formula

We use the definition of a derivative and the known natural-exponential limit \(\lim_{u\to 0}(e^u-1)/u=1\), which follows from the derivative of \(e^x\) at \(x=0\). First suppose \(a\ne 1\), so \(\ln a\ne 0\).

$$ \begin{aligned} \frac{d}{dx}a^x &=\lim_{h\to 0}\frac{a^{x+h}-a^x}{h}\\ &=\lim_{h\to 0}\frac{a^x a^h-a^x}{h}\\ &=a^x\lim_{h\to 0}\frac{a^h-1}{h}. \end{aligned} $$

Now rewrite \(a^h=e^{h\ln a}\). Set \(u=h\ln a\). As \(h\to 0\), \(u\to 0\), and \(h=u/\ln a\). Therefore,

$$ \begin{aligned} \lim_{h\to 0}\frac{a^h-1}{h} &=\lim_{h\to 0}\frac{e^{h\ln a}-1}{h}\\ &=\lim_{u\to 0}\frac{e^u-1}{u/\ln a}\\ &=(\ln a)\lim_{u\to 0}\frac{e^u-1}{u}\\ &=\ln a. \end{aligned} $$

Substituting this limit into the difference quotient gives the formula for \(a\ne 1\). If \(a=1\), then \(1^x=1\) for every \(x\), so its derivative is \(0\); the formula also gives \(1^x\ln 1=1\cdot 0=0\). Thus the result holds for every positive base.

Theorem: If \(a>0\) is constant, then for every real \(x\), $$ \frac{d}{dx}a^x=a^x\ln a. $$ For \(a=1\), both sides are zero.

The proof shows where each factor comes from. The factor \(a^x\) remains when the difference quotient is factored, and the limiting change in \(a^h\) contributes \(\ln a\). In particular, the derivative is not generally just the original function.

Worked Examples

Worked Example: Differentiate \(3^x\) and Find Its Slope at \(x=2\)

Let \(f(x)=3^x\). The base \(3\) is a positive constant, so the theorem applies directly:

$$ f'(x)=3^x\ln 3. $$

To find the slope at \(x=2\), substitute \(x=2\) into the derivative:

$$ f'(2)=3^2\ln 3=9\ln 3. $$

The exact slope is \(9\ln 3\). Since \(\ln 3\approx 1.098612\), the slope is approximately \(9.887508\), or \(9.888\) to three decimal places. As a check, the derivative formula at \(x=2\) is \(3^2\ln 3\), and evaluating the function first gives \(f(2)=9\), so the same slope is \(f(2)\ln 3=9\ln 3\).

Worked Example: Differentiate an Exponential with a Reciprocal Base

Let \(g(x)=(1/4)^x\). The base is positive, so apply the formula:

$$ g'(x)=\left(\frac14\right)^x\ln\left(\frac14\right). $$

Because \(\ln(1/4)=-\ln 4\), this can also be written as

$$ g'(x)=-\left(\frac14\right)^x\ln 4. $$

At \(x=1\), the function value is \(g(1)=1/4\), so

$$ g'(1)=\frac14\ln\left(\frac14\right) =-\frac{\ln 4}{4} \approx -0.347. $$

The negative sign is expected: \(0<1/4<1\), so \((1/4)^x\) decreases as \(x\) increases. Checking by substituting \(x=1\) into the derivative expression gives \((1/4)^1\ln(1/4)=-\ln(4)/4\), matching the result.

Worked Example: Differentiate a Constant Multiple of an Exponential

Let \(h(x)=6\cdot 5^x\). The constant-multiple rule says that the derivative of a constant times a differentiable function is that constant times the function's derivative. First apply the exponential formula, then keep the factor \(6\):

$$ \begin{aligned} h'(x) &=6\frac{d}{dx}(5^x)\\ &=6(5^x\ln 5)\\ &=6\cdot 5^x\ln 5. \end{aligned} $$

At \(x=0\), \(5^0=1\), so

$$ h'(0)=6\cdot 1\cdot\ln 5=6\ln 5\approx 9.657. $$

The check is direct: substituting \(x=0\) into the derivative found above gives \(6\cdot 5^0\ln 5=6\ln 5\), as required. The outside constant \(6\) remains in the derivative; it does not become part of the exponent.

What the Sign and Size of \(\ln a\) Tell You

The derivative formula also helps interpret how an exponential changes. The function \(a^x\) is positive for every real \(x\) when \(a>0\), so the sign of its derivative is the sign of \(\ln a\).

Base Sign of \(\ln a\) Behavior of \(a^x\)
\(a>1\) Positive The derivative is positive, so the function increases.
\(a=1\) Zero The function is constant, and its derivative is zero.
\(0<a<1\) Negative The derivative is negative, so the function decreases.

For example, \(5^x\) has positive derivative because \(\ln 5>0\), whereas \((1/4)^x\) has negative derivative because \(\ln(1/4)<0\). This conclusion follows from the formula and the fact that \(a^x>0\); it does not require evaluating the function at many inputs.

Why the Positive-Base Condition Matters

The condition \(a>0\) ensures that \(a^x\) is a real-valued function for every real \(x\), and that \(\ln a\) is defined as a real number. A negative base does not give a real value for every real exponent. For instance, \((-2)^{1/2}\) is not real. Therefore the formula is not a derivative rule for negative bases as functions defined on all real inputs.

The base \(a=1\) is allowed, but it is a special constant-function case. A base of zero is not included either: \(0^x\) is not defined for every real \(x\), and the expression \(\ln 0\) is not defined.

Common Mistake: Using the Power Rule

A frequent error is to treat \(a^x\) as if it were a power \(x^n\) with a fixed exponent. For example, the incorrect calculation

$$ \frac{d}{dx}2^x=x2^{x-1} $$

uses the power rule in the wrong situation. The power rule differentiates a variable base raised to a constant exponent, such as \(x^3\). In \(2^x\), the base is constant and the exponent varies. The correct calculation is

$$ \frac{d}{dx}2^x=2^x\ln 2. $$

Another version of the error is to write \((2^x)'=2^x\), forgetting \(\ln 2\). The natural exponential is the special case \(a=e\), for which \(\ln e=1\). For \(a=2\), the factor is \(\ln 2\), not \(1\). At \(x=0\), the mistaken formula predicts slope \(1\), while the correct formula gives \(\ln 2\).

Takeaway: For a positive constant base, keep the exponential and multiply by the natural logarithm of the base: \(a^x\ln a\). The factor \(\ln a\) can be negative, zero, or positive.

Check Your Understanding

Use the derivative formula for a positive constant base. Keep answers exact unless a question asks for an approximation.

  1. Find the derivative of \(7^x\).
  2. Find the slope of \(4^x\) at \(x=1\).
  3. Differentiate \((1/3)^x\), and state whether its derivative is positive or negative.
  4. Find the derivative of \(9\cdot 2^x\).
  5. Explain why the formula \(\frac{d}{dx}a^x=a^x\ln a\) does not apply to a negative base as a real-valued function on all real inputs.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon
Clinical Biostats