Euler-Lagrange Equation for the Dirichlet Energy