Hi Rishabh
1.
Plotting curves, here it's considered you only intend to work with real values:
clear all;close all
x=[-10:.1:10];
y11=(8*x).^.5;y12=-(8*x).^.5;y2=1/8*x.^2;
plot(x,y11,'b-')
hold all
plot(x,y12,'b-')
plot(x,y2,'r-')
grid on
.
2.
Solving the intersection point, for instance with
f1=@(x1) 1/8*x1.^2-(8*x1)^.5
x0=fzero(f1,6)
x0 =
8
3.
Getting the reference vector for only the bounded area
nx2=find(x==x0)
nx1=find(x==0)
nx=[nx1:1:nx2]
4.
Shadowing the bounded area
hold all
patch([x(nx) fliplr(x(nx))], [y2(nx) fliplr(y11(nx))], [0.7 0.7 0.7])
.
.
Let me know if you would be interested to have an answer for the Complex domain.
Rishabh, if you find this answer useful would you please be so kind to consider marking my answer as Accepted Answer?
To any other reader, if you find this answer useful please consider clicking on the thumbs-up vote link
thanks in advance
John BG