Gradient of the Lagrangian
L(x1,x2,l) = f(x1,x2)+l*g(x1,x2)