I'm just starting to learn about derivatives.
I've seen the derivative of x^2 given as 2x. (1)
But I've also seen the derivative of a^x given as a ^ x ln a. (2)
Suppose we use 3 as the base. From (1), we get that the derivative of 3^2 is 6.
But if I use (2) the a^x formula (with a = 3 and x = 2), I can't get a ^ x ln a to come out to 6.
I'm not sure if I'm supposed to be calculating a ^ (x ln a) or (a ^ x) ln a, but either way it doesn't come to 6.
What am I missing?
Many thanks!