No products are associated with this question.
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
This is not a Matlab question, it's a calculus homework problem. Define a function f(x,y) that you want to minimise, a constraint c(x,y) = 0, and then solve c(x,y) = 0, together with
grad f = lambda grad c
for x, y, and lambda.