Skip to content
ihateDesmos

Derivative of aˣ

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of aˣ
ddx(5x)=5xln(5)

The derivative of aˣ is aˣ ln a, for any positive constant a. The graph here uses a = 5, where the slope is about 1.609 times the height.

−2−115100
Open in calculator
y=5x
in blue and its derivative
y=5xln(5)
in red.

How to find the derivative of aˣ

Method: exponential rule.

  1. 1
    Rewrite the base using e: aˣ = e^(x ln a).
  2. 2
    Apply the chain rule, with u = x ln a and du/dx = ln a, a constant.
  3. 3
    This gives e^(x ln a) · ln a.
  4. 4
    Rewrite it: aˣ ln a.

What it means on the graph

The factor ln a sets how the slope compares with the height. For a between 0 and 1, ln a is negative, so the function decays. For a = e, ln a = 1, the slope equals the height.

Table of values

The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.

Values of aˣ and its derivative
xaˣaˣ ln aSlope, measured
−20.040.06437750.0643775
−11/50.3218880.321888
011.609441.60944
158.047198.04719

Second derivative

Differentiating once more gives:

d2dx2(5x)=5xln(5)2

The second derivative tells you which way the graph bends: positive means it curves upward, and negative means it curves downward.

Related derivatives

The same result with the chain or product rule. Each of these is checked numerically too.

Related derivatives
FunctionDerivative
10x
10xln(10)
52x
2ln(5)52x

Common mistakes

  • Confusing aˣ with xᵃ. The derivative of xᵃ is a xᵃ⁻¹ by the power rule, while aˣ needs the exponential rule.
  • Using a negative base, for which aˣ isn’t a real function for all x.

Frequently asked questions

What is the derivative of aˣ?
The derivative of aˣ is aˣ ln a.
What is the second derivative of aˣ?
Differentiate aˣ ln a again to get the second derivative. The result is shown on this page under “Second derivative”.

Keep going

Differentiate any function

Type your own function into the derivative calculator and see every rule applied, step by step.

Open the derivative calculator