Analytical local energy