In: Computer Science
Consider the following equation: f’(x) = 2.5x2 + π2 + e3
Assume f(0) = 0, for x = -2 to 2, plot f’(x), its anti-derivative f(x) and the intersection point(s) between f’(x) and f(x) on the graph. Label the plots and provide a suitable legend. Then print out ONLY the intersection point(s) for f’(x) and f(x) for the above specified range. NOTE: Symbolic toolbox cannot be used for the following questions. Solve in Matlab language please.
`Hey,
Note: If you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
clc%clears screen
clear all%clears history
close all%closes all files
format long
g=@(x) 2.5*x.^2+pi^2+exp(1)^3;
f=@(x) 2.5*x.^3/3+pi^2*x+exp(1)^3*x;
hold on;
fplot(f,[-2,2]);
fplot(g,[-2,2]);
legend('f(x)','f''(x)');
disp('Point of iintersection i')
fzero(@(x) f(x)-g(x),2)

Kindly revert for any queries
Thanks.