9. Solve the following optimization problem using Lagrange multipliers:
f(x, y) = x² subject to x + y = 1.
f(x, y) = x² subject to x + y = 1.