Solution (source code)

= Solution

Optical depth increases inward, so an <atmospheric thermal inversion> occurs where temperature decreases with $\tau$. Differentiation gives
$$
4T^3\frac{dT}{d\tau}=B-\beta Ce^{-\beta\tau}.
$$
Therefore the inversion condition in the observable atmosphere is
$$
\boxed{\beta Ce^{-\beta\tau}>B}.
$$
In particular, an inversion reaches the top when $\beta C>B$. A hot Jupiter can satisfy this when visible absorbers such as atomic metals, metal oxides, or negative hydrogen absorb incident starlight above the infrared photosphere. This makes the shortwave opacity large relative to the thermal opacity and deposits heat at low pressure.