First time here? Check out the FAQ!
answered 2 years ago
Simplifying the function may help:
var('x, m, n'); hh=(exp(x)*(1-x))^n/x^m solve((hh.diff(x)).simplify_full()==0,x)