How to differentiate y=a^x quickly, implicit and logarithmic