latexified entropy residuals and material derivative