TeX source:
\begin{array}{rcl}g'_{tr}(r,t) &=& 3\cdot e^{rt}+3r\cdot te^{rt} \\&=& 3e^{rt}+3rte^{rt} \\&=& 3e^{rt}\left(1+rt\right)\end{array}