Starts with an x vector created using linspace with a starting point of -5 and ends at +4 and at least 50 data points.
Evaluate the function f = 2×4 – 5×3 -12×2 + 30x +10 as a function of the MATLAB vector By hand, calculate the first derivative and then evaluate using the same x-vector. By hand, calculate the second derivative and then evaluate using the same x-vector.
Plot the three equations using different line color and different markers. You may use the extended plot command or roots.
Add a graph title, axes titles, and a legend.
Best Answer