How to substitute a function in a derivative
I know that if U(x,y)=Axαyβ, I have Ux=αAxα−1yβ. But by substitution, I can obtain Ux=α(Ux). Is there a way to obtain this in Sagemath. I have tried
U_x= U.diff(x).subs(Ax^(alpha)y^(beta)== U)
but this has no effect.