The power rule says that to differentiate a power of the variable, multiply by the exponent and then reduce the exponent by one. It holds for every real exponent, including negative and fractional ones.
dxd[xn]=nxn−1
Its reach is wider than it first appears, because roots and reciprocals are powers in disguise. Writing x as x1/2 and x31 as x−3 turns both into one-step problems.
The mistake
Applying it to ax, where the variable is the exponent rather than the base. That is an exponential function and needs a different rule entirely.