The differential equation
Δu=8π−8πhexpu on a compact Riemann surface
On a compact Riemann surface $M$ with a positive smooth function $h$, the paper studies the functional $J(u)=\frac12\int_M|\nabla u|^2+8\pi\int_M u-8\pi\log\int_M h\,e^u$. It provides a sufficient condition under which $J$ attains its minimum, giving a variational solution to the differential equation $\Delta u = 8\pi-8\pi h e^u$.