MATLAB: Using ‘fsolve’

fsolveturning points

I have the function f(x,y) = x.^(2-x.^(0.5))+y.^(2-y.^(0.5)) and I found the Jacobian and Hessian Matrices. Now I need to find the turning point using the function "fsolve" and stating its nature.
Can anyone help me?
Thanks in advance.

Best Answer

Hi,
why not solve it symbolic:
syms f(x,y)
f(x,y) = x.^(2-x.^(0.5))+y.^(2-y.^(0.5));
[xsol,ysol] = vpasolve(diff(f,x) + diff(f,y) == 0, [x,y], [1 3; 1 3]);
zsol = subs(f,[x,y],[xsol,ysol]);
% plot results
fsurf(f)
hold on
scatter3(double(xsol),double(ysol),double(zsol),'or','LineWidth',2,'MarkerFaceColor','r')