Since is always positive, the minimization of with respect to is equivalent to minimizing the inside integral with respect to .The condition for the minimum is