Question

In: Mechanical Engineering

At a relative maximum of a curve y(x), the slope dy/dx is zero. Use the following data to estimate the values of x and y that co

At a relative maximum of a curve y(x), the slope dy/dx is zero. Use the following data to estimate the values of x and y that correspond to a maximum point.

1 3 4 6. 7 8 9. 10 y 7 9 10 8 7 6. 8 10 2.

Solutions

Expert Solution

Consider the following data:

x 0 1 2 3 4 5 6 7 8 9 10
y 0 2 5 7 9 10 8 7 6 8 10

 

The objective is to estimate the values of x and y that correspond to maximum point.

 

From the given data, find the first order derivative for all intervals using backward difference method.

 

When the first order derivative is zero, it implies at a relative maximum.

 

So, find the interval where this derivative becomes zero and then obtain the values of x and y by linear interpolation.

 

Mat-lab code for above problem is provided below.

Save this program as ‘Required problem’.

% Find out the maximum point using dy/dx data

clc; clear;

x = 0:10;

y = [0 2 5 7 9 10 8 7 6 8 10];

d1 = diff(y)./diff(x);

for i=1:9

if d1(i)*d1(i+1)<0

d=d1(i)-d1(i+1);

r=d1(i)/d;

x1=x(i)+r*(x(i+1)-x(i)); % Linear interpolation

y1=y(i)+r*(y(i+1)-y(i)); % in the interval

break;

end

end

disp(\'X-value at maximum point\');

disp(x1);

disp(\'Y-value at maximum point\');

disp(y1);

 

The output of the code ‘Required problem’ in the command window is shown below:

X-value at maximum point

4.3333

Y-value at maximum point

9.3333


X-value at maximum point is 4.3333

Y-value at maximum point is 9.3333

Related Solutions

dy/dx + y/x \ x3y2
dy/dx + y/x \ x3y2
dx dt =ax+by dy dt =−x − y, 2. As the values of a and b...
dx dt =ax+by dy dt =−x − y, 2. As the values of a and b are changed so that the point (a,b) moves from one region to another, the type of the linear system changes, that is, a bifurcation occurs. Which of these bifurcations is important for the long-term behavior of solutions? Which of these bifurcations corresponds to a dramatic change in the phase plane or the x(t)and y(t)-graphs?
dy/dx+(y/2x)=(x/(y^3))
dy/dx+(y/2x)=(x/(y^3))
Solve the following DEs 1.) dy/dx + y =e^3x 2.) x^2y' +xy = 1 3,) x(dy/dx)-y...
Solve the following DEs 1.) dy/dx + y =e^3x 2.) x^2y' +xy = 1 3,) x(dy/dx)-y = x^2 sin(x) 4.) y' - 2y = e^2x, y(0) = 2 5.) cos(x)(dy/dx) + ysin(x) = 1, y(pi/4) = 0
Find dy/dx and d2 y/dx2 . For which values of t is the curve concave upward? 13. x = et , y = te-t
Find dy/dx and d2 y/dx2 . For which values of t is the curve concave upward? 13. x = et , y = te-t
Find the relative maximum and minimum values. a. f(x,y)=x^3-6xy+y^2+6x+3y-1/5 Relative minimum: ________ at ________ Relative maximum:...
Find the relative maximum and minimum values. a. f(x,y)=x^3-6xy+y^2+6x+3y-1/5 Relative minimum: ________ at ________ Relative maximum: ________ at ________ b. f(x,y)= 3x-6y-x^2-y^2 Relative minimum: ________ at ________ Relative maximum: ________ at ________
Solve (1+e^x)dy/dx+(e^x)y=3x^2+1 Solve (x^3+y^3)dx+3xy^2 dy = 0 Solve (y-cos y)dx + (xsiny+x)dy = 0 Solve (1+ln...
Solve (1+e^x)dy/dx+(e^x)y=3x^2+1 Solve (x^3+y^3)dx+3xy^2 dy = 0 Solve (y-cos y)dx + (xsiny+x)dy = 0 Solve (1+ln x +y/x)dx = (1-lnx)dy Solve (y^2+yx)dx - x^2dy =0 Solve (x^2+2y^2)dx = xydy Solve Bernoulli's Equation x dy/dx + 2y = (x^4)(e^x)(y^2) Solve Bernoulli's Equation (1+x^2) dy/dx = 2xy +(e^x)(y^2) Solve IVP (3e^(x^2))dy + (xy^2)dx=0 ; y(1) = 2 Solve IVP dy/dx -2xy = e^(x^2) ; y(0)=0 Solve IVP (x^2+y^2)dx+(2xy)dy=0; y(1)=1 6. Mixture Problem Initially 40 lb of salt is dissolved in a large...
Let (X, dX) and (Y, dY) be metric spaces.Define the function d : (X × Y...
Let (X, dX) and (Y, dY) be metric spaces.Define the function d : (X × Y ) × (X × Y ) → R by d ((x1, y1), (x2,y2)) = dx(x1,x2)+dy(y1,y2) Prove that d is a metric on X × Y .
Suppose (X, dX) and (Y, dY ) are metric spaces. Define d : (X ×Y )×(X...
Suppose (X, dX) and (Y, dY ) are metric spaces. Define d : (X ×Y )×(X × Y ) → R by d((x, y),(a, b)) = dX(x, a) + dY (y, b). Prove d is a metric on X × Y .
Solve these first-order Differential Equations using an integrating factor. 1. dy/dx+2xy=0 2. dy/dx-y=5 3. dy/dx+y=x 4....
Solve these first-order Differential Equations using an integrating factor. 1. dy/dx+2xy=0 2. dy/dx-y=5 3. dy/dx+y=x 4. (x)dy/dx+(x+1)y=3/x 5. (x^2)dy/dx=e^x-2xy
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT