


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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: