I'm trying to rewrite

3x^2*e^-x*tan(4-x)

Can I rewrite it as
3x^2*tan(4-x)/e^x ?

yes.