Find the area of the region bounded by the curves y = x^2 , x = y - 2 in the first quadrant. Please help me guys, please
70 次查看(过去 30 天)
显示 更早的评论
Find the area of the region bounded by the curves y = x^2 , x = y - 2 in the first quadrant. Please help me guys, please
1 个评论
VIGNESH B S
2022-1-11
You just have to solve both the equations x = x^2 -2 has two solutions. (You can use solve command with var as x).
then use int cmmand to integrate between the curves.
ie:
use desmos graphing calc. to get idea about curves.
integrate(x+2,0,2) - integrate(x^2,0,2) %integrate x+2 from 0 to 2. - integrate x^2 form 0 to 2. gives area bounded.
for integration command -> use this - https://in.mathworks.com/help/matlab/ref/integral.html
采纳的回答
KSSV
2022-1-11
编辑:KSSV
2022-1-11
syms x
y1 = x*x;
y2 = x + 2;
% GEt the intersection point of two curves
xi = solve(y1-y2);
yi(1) = double(subs(y1,xi(1)));
yi(2) = double(subs(y1,xi(2)));
% plot
fplot(y1)
hold all
fplot(y2)
plot(xi,yi,'or')
% Find the area
x = double(linspace(xi(1),xi(2),100));
y1 = x.*x;
y2 = x+2;
fill([x x(end:-1:1)],[y1 y2(end:-1:1)],'r') % show the calculated area
a = trapz(x,y2)-trapz(x,y1); % the area
3 个评论
更多回答(1 个)
Kesavaraj
2023-10-27
2. To find the area of the region bounded by the curves y2 = x, y=x-2 in the first quadrant.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!