Question

In: Mechanical Engineering

Use MATLAB to plot the polynomial y = 3x4 - 5x3 - 28x2 - 5x + 200 on the interval $1 ≤ x ≤ 1

Use MATLAB to plot the polynomial y = 3x4 - 5x3 - 28x2 - 5x + 200 on the interval $1 ≤ x ≤ 1. Put a grid on the plot and use the ginput function to determine the coordinates of the peak of the curve.

 

 

Solutions

Expert Solution

We are required to plot the polynomial

y = 3x4 – 5x3 – 28x2 – 5x + 200

 

Over the interval

-1 ≤ x ≤ 1

 

We need to create a vector x and evaluate the polynomial at each element of vector x. We can use the function polyval(a, x) which is use to evaluate the polynomials. 

 

Here:

is the polynomial array

is the vector array

 

The below MATLAB code shows the commands

 

The plot generated is shown below:

 

Now, we use the ginput function to calculate the coordinates of the peak of the function. The command used is [x, y] = ginput. Then we need to click on the highest point and click enter. The results will appear on the screen. 

 

The output is shown below:

 

Hence, we get the coordinated of the peak of the curve as:

 

x = -0.0853

y = 200.2770


Hence, we get the coordinated of the peak of the curve as:

 

x = -0.0853

y = 200.2770

Related Solutions

Use MATLAB to plot the polynomials y = 3x4 - 6x3 + 8x2 + 4x + 90 and z = 3x3 + 5x2 - 8x + 70 over the interval -3 ≤ x ≤ 3.
Use MATLAB to plot the polynomials y = 3x4 - 6x3 + 8x2 + 4x + 90 and z = 3x3 + 5x2 - 8x + 70 over the interval -3 ≤ x ≤ 3. Properly label the plot and each curve. The variables y and z represent current in milliamperes; the variable x represents voltage in volts.  
Consider the polynomial f(x) = 3x 3 + 5x 2 − 58x − 40. Using MATLAB....
Consider the polynomial f(x) = 3x 3 + 5x 2 − 58x − 40. Using MATLAB. Find the three roots of the polynomial, i.e, x where f(x) = 0, using Newton’s method. Report the number of iterations taken by each algorithm using a tolerance of 10−8 .
Evaluate the polynomial y= x^3- 5x^2+ 6x + 0.55 at x=.137. Use 3-digit arithmetic with rounding....
Evaluate the polynomial y= x^3- 5x^2+ 6x + 0.55 at x=.137. Use 3-digit arithmetic with rounding. Evaluate the percent relative error. (b) Repeat (a) but express y as y= ((x- 5)x +6)x + 0.55
use a matlab built-in function to numerically solve: dy/dx= -x^2+((x^3*e^-y)/4) for 1<=x<=5 with y(1)=1 plot the...
use a matlab built-in function to numerically solve: dy/dx= -x^2+((x^3*e^-y)/4) for 1<=x<=5 with y(1)=1 plot the solution
Using MATLAB, Consider the polynomial f(x) = 3x^3 + 5x^2 − 58x − 40. Find the...
Using MATLAB, Consider the polynomial f(x) = 3x^3 + 5x^2 − 58x − 40. Find the three roots of the polynomial, i.e, x where f(x) = 0, using: (i) Bisection method, and (ii) Newton’s method. Report the number of iterations taken by each algorithm using a tolerance of 10^−8 .
Solve the cauchy problem (x^2)*y''-9*x*y'+21*y=0, y'(1)=5 on the interval (1,3). Plot the graphs of y(x) and...
Solve the cauchy problem (x^2)*y''-9*x*y'+21*y=0, y'(1)=5 on the interval (1,3). Plot the graphs of y(x) and y'(x) Please Provide only MATLAB Code.
Use MATLAB to plot the functions u = 2 log10(60x + 1) and υ = 3 cos(6x) over the interval 0 ≤ x ≤ 2.
Use MATLAB to plot the functions u = 2 log10(60x + 1) and υ = 3 cos(6x) over the interval 0 ≤ x ≤ 2. Properly label the plot and each curve. The variables u and represent speed in miles per hour; the variable x represents distance in miles.
sketch the polynomial y=3x4-6x2 a) intervals for the function is increasin or decreasing b) First Derivative...
sketch the polynomial y=3x4-6x2 a) intervals for the function is increasin or decreasing b) First Derivative test for relative extrema c) Intervals for which the function is concave up or concave down d) Inflection Points e) Sketch the graph. Label Key Points
Consider the following real 3rd order polynomial f (x)= x^3− 5.5 x^2− 5x+ 37.5 A) Use...
Consider the following real 3rd order polynomial f (x)= x^3− 5.5 x^2− 5x+ 37.5 A) Use the bisection method to determine one of the roots, employing initial guesses of xl = - 10, xu = -1, and a stopping criterion εs=12% . B) Use the false position method to determine a root, employing initial guesses of xl = - 1, xu = 4, and a stopping criterion εs=3%. Was this method the best for these initial guesses? C) Use the...
using matlab, compute and plot y [n] = x [n]* h [n], where a. x [n]...
using matlab, compute and plot y [n] = x [n]* h [n], where a. x [n] = h [n] = a^n (0 <=n <=40) & a = 0.5 b. x [n] = cos [n]; h [n] = u [n]; n = 0:4:360 c. x [n] = sin [n] ; h [n] = a^n; n:4:360; a = 0.9
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT