Help needed with the following question: The function: f (x) = X2-4X + 2XY + 2Y2 + 2Y +14 a) how to plot the surface function for X over [5 6]. and Y…

Help needed with the following question:

The function: f (x) = X2-4X + 2XY + 2Y2 + 2Y +14

a) how to plot the surface function for X over [5 6]. and Y over [-4. -2]

b) how to draw the contour plot for X over [0 10]. and Y over [-4. -2] and values for the contours of V=[1 1.25 1.5 2 2.5 3]

c) how to include a m-file to find the minimum of the function using the gradient descent method, while using a starting value of [4. -4]

Leave a Reply