Set y=a^x2. Take the natural log of both sides: ln(y)=ln(a^x)3. Using the log rules, simplify: ln(y)=xln(a)4. Differentiate both sides with respect to x: 1/y dy/dx=lna+05. Rearrange: dy/dx=yln(a)6. Using the definition of 'y' set in step 1: dy/dx=a^(x)ln(a)