\documentclass{article} \begin{document} $m=5\\mathrm{\mathrm{kg}}$\\ $c=4.184\\mathrm{\mathrm{\frac{\mathrm{\frac{\mathrm{J}}{\mathrm{gm}}}}{\mathrm{K}}}}$\\ $dT=4\\mathrm{\mathrm{K}}$\\ \\$m\timesc\timesdT=83680\\mathrm{J}$\\ \\$u=1\\mathrm{\mathrm{\frac{\mathrm{\frac{\mathrm{\mathrm{gm}\\mathrm{s}}}{\mathrm{m}}}}{\mathrm{gm}}}}=1\\mathrm{\frac{s\,}{m\,}}$\\ \\$h=5\\mathrm{\mathrm{\mathrm{\frac{\mathrm{\mathrm{m}^{3}}}{\mathrm{\mathrm{m}^{2}}}}\\mathrm{\mathrm{s}^{3}}}}=5\\mathrm{s^{3}\,m\,}$\\ \end{document}