trying lagrange multipliers