Question: i need code. Area Between Curves (functions of x) My Solutions > Recall the process to find the area between curves by integrating with respect

i need code. i need code. Area Between Curves (functions of x) My Solutions >

Area Between Curves (functions of x) My Solutions > Recall the process to find the area between curves by integrating with respect to x 1. Sketch the graphs of the curves 2. Find the points of intersection 3. Integrate the larger (top) function minus the smaller (bottom) function over the desired interval. If the curves intersect between the endpoints, integrate over each subinterval. Use this process to find the area between the graphs of f( x ) = x^3 - 3*x"2 and g(x) = 4 x . Script Save C Reset MATLAB Documentation 1 % Define variables 2 syms x; 3 f=@(x); 4 g=@(x); 5 % Find intersection points to get plot range 6 IP=solve(); 8 % DO NOT CHANGE CODE ON THESE LINES-determine largest and smallest intersection points for plot range 9 IPorder=sort(IP)' order smallest to largest 10 a=double (IPorder(1)); % define a as the smallest intersection point 11 b=double(IPorder(end) ); $define b as the largest intersection point 12 if other intersection points, define them here (run code to find out) 13 pf=fplot(f, la-1 b+1]); $ Plot f in a range to show all intersections 14 hold on 15 pg=fplot(g, [a-1 b+1]); $Plot g in a range to show all intersections 17 % Integrate Top - Bottom over each subinterval 18 Al=int() 19 A2=int() 20 A=A1+A2 % If additional subintervals, include them above and add them here 22 % Simpler strategy in MATLAB: Integrate abs(f(x)-g(x)) over the entire interval [a, b] 23 Aalt=int()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!