For the function: f (x) = X2-4X + 2XY + 2Y2 + 2Y +14 a) Plot the surface function for X over [5 6]. and Y over [-4. -2],.

help needed with the following question:

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

a) Plot the surface function for X over [5 6]. and Y over [-4. -2],.

b) 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) m-file to find the minimum of the function using the gradient descent method. Use a starting value of [4. -4].

Leave a Reply