Solution (source code)

= Solution

The free energy is dimensionless, while $d^dx$ has engineering dimension $-d$ and each derivative has dimension one. Requiring
$$
\int d^dx\,(\nabla\phi)^2
$$
to be dimensionless gives $2+2[\phi]-d=0$. Thus the <engineering dimension> of the field is
$$
\boxed{[\phi]_{\rm eng}=\frac{d-2}{2}}.
$$