Lagrange 's method of undetermined multiplier