


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Solutions to calculating the areas and volumes of regions bounded by curves using matlab. It includes examples of finding the area between two curves y=x^2-2x and y=x, y^2=x and y=x-2, and x=y^2 and x=y^3. It also covers the volume of a solid generated by revolving the region bounded by the curve y=(4/(x^2+4)) and the x-axis around the x-axis.
What you will learn
Typology: Lab Reports
1 / 4
This page cannot be seen from the preview
Don't miss anything!
1. Find the area of the region bounded by the curve y=x^2 -2x and the line y=x. Solution: clear clc syms x f(x)=x^2-2*x; g(x)=x; I = [0,3]; a=I (1); b=I (2); A=int(f(x)-g(x), a, b); disp ('Area bounded by the curves f(x) and g(x) is:' ); disp(A); fplot(f(x), [a, b]); grid on; hold on; fplot(g(x), [a, b]); hold off xlabel('x-axis'); ylabel('y-axis'); legend('y=f(x)','y=g(x)'); _Output:
disp ('Area bounded by the curves f(x) and g(x) is:'); disp(A); fplot(f(x), [a, b]); grid on; hold on; fplot(g(x), [a, b]); hold off xlabel('x-axis'); ylabel('y-axis'); legend('y=f(x)','y=g(x)'); Output:
3. Find the area of the region bounded by the curves x=y^3 and x=y^2_. Solution:_ clc syms x y f(x)=y^3; g(x)=y^2; I= [0,1]; a=I (1); b=I (2); A=int(f(x)-g(x), a, b); Disp ('Area bounded by the curves f(x) and g(x) is:'); disp(A); fplot(f(x), [a, b]); grid on; hold on; fplot(g(x), [a, b]); hold off xlabel('x-axis'); ylabel('y-axis'); legend('y=f(x)','y=g(x)'); Output:
zlabel('Z-axis'); Output: