Choose with , and for set
A change of variables gives
The latter tends to zero as . Since the energy is nonnegative,
This is vanishing Dirichlet energy by dilation on the line.
The infimum is not attained. If an admissible had zero energy, then its weak derivative would vanish almost everywhere, so would be constant almost everywhere. The only constant in is zero, contradicting .