Solution (source code)

= Solution

For $a>0$, write $a^x=e^{x\ln a}$ and apply the <chain rule>:
$$
\boxed{\frac d{dx}a^x=(\ln a)a^x.}
$$
This also covers $a=1$, for which both sides are zero.