TeX source:
\begin{array}{rcl}g'_h(h,k) &=& 135\cos\left(h^2-k\right)\cdot 2h\\&=& 270h\cos\left(h^2-k\right)\end{array}