Solution (source code)

= Solution

Using $T\propto p/\rho$ together with the supplied density ratio and $p_2/p_1=[2\gamma M_1^2-(\gamma-1)]/(\gamma+1)$ gives
$$
\boxed{\frac{T_2}{T_1}=\frac{[2\gamma M_1^2-(\gamma-1)][2+(\gamma-1)M_1^2]}{(\gamma+1)^2M_1^2}.}
$$