Show that a scalar field acts like a perfect fluid with an energy density and pressure given by
ρϕ=21ϕ˙2+V(ϕ)+21(∇ϕ)2,pϕ=21ϕ˙2−V(ϕ)−61(∇ϕ)2.
Show further that if the field ϕ is spatially constant then inflation will occur, provided that ϕ˙2<V(ϕ). If, in addition, the scalar field does not change with time, show that its equation of state is pϕ=−ρϕ and that it thus acts as an effective cosmological constant.