Can anyone resolve these two problems and give me the .m files for MATLAB? i also required plot for the second problem. I am totally new to MATLAB and required your help. I have searched internet but not found any valid answer. I have to submit it to university as soon as possible.
1.Determine the distance from the line y = x + 1 to the parabola y^2 = x. (hint: Let (x,y) be a point on the line and (w,z) a point on the parabola. you want to minimize (x-w)^2+(y-z)^2.)
|
2.f(x,y) = x^2 + y^3 - 3xy , -5<= x <= 5 , -5 <= y <=5
a. Plot the function over the given rectangle.
b. Plot some level curves in the rectangle.
c. Calculate the function's first partial derivatives and use the CAS equation solver to find the critical points. How do the critical points relate to the level curves plotted in part b? Which critical points, if any, appear to give a saddle point? Give reasons for your answer.
d. Calculate the function's second partial derivatives and find the discriminant fxxfyy-fxy^2.
e. Using the max- ,min tests, classify the critical points found in part (c). Are you finding consistent with your discussion in part (c)?
Regards,