contour plot with Matlab code of the above question is attached below
clc;
clear all;
nx=-6:0.01:6;
ny=-6:0.01:6;
hold on
fun=zeros();
for i=1:length(nx)
for j=1:length(ny)
fun(i,j)=-3*ny(j)/(nx(i)^2+ny(j)^2+1) ;
end
end
contour(nx,ny,fun)
Answer the following questions using the function -3y f(x,y) = 2y2 + 1 Plot fíx, y)...
1). For the function, f(x) X-4X+2XY+2Y2+2Y+14 a. Plot the surface function for X over [5 61, 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 1.25 1.5 2 25 3 of V c. Write an m-file to find the minimum of the function using the gradient descent method. Use a starting value of [4,-4]. 1). For the function, f(x) X-4X+2XY+2Y2+2Y+14 a. Plot the surface function for...
3. Consider the function f(x,y) = 4 + 2x - 3y - x2 + 2y2 - 3xy. a) (5 pts.) Calculate the partial derivative functions, and use them to calculate the gradient vector evaluated at c = b) (5 pts.) Write down the affine approximation to at the e given in a) /(x) = f(c)+ Vf(e)'(x - c) . Use it to calculate (1.1, 1.1). (Hint: it should be close to f(1.1, 1.1))
Consider the function f(x,y) = xy - 3x-2y2 + 17x + y + 37 and the constraint glx.v) = -6x + 3y - 12. Find the optimal point of f(x,y) subject to the constraint g(x.). Enter the values of, y. f(x,y), and below. NOTE: Enter correct to 2 decimal places y f(x,y) A-
A graph of f(x, y) = 11x2 – 2xy + 2y2 + 3y is displayed. The graph can be rotated with the mouse. Reset Suppose that Po = (xo, Yo, Zo) is the unique lowest point on the surface z = f(x, y). How are Xo and yo found? o by solving the set of equations w2f/ax2 = 0 and 82f|əy2 = 0 o by solving the set of equations Əflax = 0 and əfſəy = 0
Questions A and E (b) f(x, y) = 2.2-2y2-6x + 8y + 3 (c) f(z, y)=x2 + 6ry + 2/-6x +10y-2 Constrained Optimization 3. Find the values of r and y that maximize (or minimize) f(x,y) subject to the following constraints (a) f(z, y) = ry, subject to x + 2y = 2 (b) f(z, y)y+4), subject to z+y 8 (c) f(x,y) = x-3y-xy, subject to x + y = 6 (d) f(x, y)-7-y 2, subject to z ty 0...
For the function f(x, y) = x + xy – 2xºys – 3y*, find the following: 13 pts) a) fx b) c ) $x(1,1) d) (1,1)
2. Describe the graph of the following function: f(x,y, z)-2x + 3y + z 2. 2. Describe the graph of the following function: f(x,y, z)-2x + 3y + z 2.
please solve then upload matlab code Thanks 1. The function f(z, y) (a-x)2 + b(y-12)2 is called Rosenbrock's banana function. It is often used as a benchmarking test for optimization algorithms becatse it is easy to find the minimum by hand but often very difficult to find numerically. Throughout the problem, we will use the values a = 2 and b 10. You can plot this function using the following code: x3:0.1:3; y = -10:0.2:10; Cx,Ymeshgrid(x,y); Z(2-X).2 10* (Y-X. 2)....
(1 point) The system of first order differential equations: y = -3y + 2y2 y = -4yı + 1y2 where yı(0) = 4, y2(0) = 3 has solution: yı(t) = yz(t) = *Note* You must express the answer in terms of real numbers only.
please show answer in full with explanation, also show matlab 1. Consider the function f(x)2.753 +18r2 21 12 a) Plot the graph of f(x) in MATLAB and find all the roots of the function f(x) graphically. Provide the code and the plot you obtained. b) Compute by hand the first root of the function with the bisection method, on the interval -1; 0) for a stopping criterion of 1% c) How many iterations on the interval -1, 0 are needed...