MATLAB: Lagrange Multipliers

lagrange multipliers

Use the Lagrange mulipliers to find the points on the parabola y=x^2+2x which are the closest to the point(-1,0).

Best Answer

here is a nudge to solving your problem
syms x y L
d = ??? % for you to fill out; distance from (-1,0)
g = d+L*(x^2+2*x-y) % constraint for given parabola
% additional operations here
show some effort, and some additional help may be forthcoming
Related Question