Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

politeness and modesty, as well as indirectness;

Answered: 1 week ago