Problem 44 and Problem 35 by the Lagrange multiplier method.