Exercise 47

Find the maximum and minimum values of \(f(x, y, z) = x^2 + y^2 + z^2\) subject to the given constraints. Use a computer algebra system to solve the system of equations that arises in using Lagrange multipliers. (If your CAS finds only one solution, you may need to use additional commands.) \(f(x, y, z) = 3x + 2y + 4z\); \(x^2 + 2y^2 + 6z^2 = 1\)