MATLAB: How to get MATLAB to properly differentiate (z^2+e^z)*sqrt(z)

differentiation

(z^2+e^z)*sqrt(z) = (5*z^2+2*e^z*z+e^z)/(2*sqrt(z))
I know this is true but I can't get MATLAB to do it.

Best Answer

simplify()