I have a problem that I need help with. I know I have to use Lagrange multipliers for this question but I am confused about what equation I want to maximize and minimize... Any help is appreciated.

A point is constrained to lie on the surface x^{2}+ y^{2}=1 and the plane 2x+3y+z=1 What are the closest and farthest points from the origin and where do they occur?

I used Lagrange Multipliers for the solution.

I assumed that I wanted to minimize/maximize f(x,y,z)=x^{2}+y^{2}+z^{2}... I'm not sure if this is right.

Then I set up the lagrange equation L(x,y,z,lamda1,lamda2)

Then I differentiated wrt all variables and set the equations = 0.

I solved for the values of lamda1 and lamda2 then for x, y and z.

I concluded that the points occur at f(+-2/sqrt(13),+-3/sqrt(13),0)... Originally I thought this was correct because I though of x^{2}+ y^{2}=1 as a circle but I now realize it is a cylinder... Please can someone check this out!