Euler-Lagrange Equation for Semilinear Energy Functionals