Along the affine null geodesic write . Contracting the scalar stress tensor with removes every term proportional to . Since and
one obtains
Put . An integration by parts gives
The stated endpoint condition kills the boundary term. If , then and , so the remaining integrand is nonnegative. Consequently this nonminimally coupled scalar satisfies the averaged null energy condition: