In: Mechanical Engineering
The value of f depends on two independent variables x and y as defined below:
f(x,y)=x2+y2−x+3cos(x)sin(y)
Function f has a minimum in the neighborhood of the origin (i.e. [0 0]). Find x and y which minimize f.
Note: You are not allowed to use MATLAB built-in functions for optimization. Follow the logic of the derivative test:
The minimum of f occurs where:
∂f∂x=0∂f∂y=0