I need some help to complete this code in order to make the wanted plot. In the following, the function that I define as $m(x) = 1$ should be replaced (if possible) to a function that plots a vertical line (equation: $y = 1$) in the range $[-1, 2]$. Then I would like to fill the region under the curve $y = x$ but limited at the right by $y = 1$.
Here is the code I wrote so far, I am stuck on the vertical line + filling part.
Clear[f, g, h, m, plot, reg];
f[x_] = Sqrt[x];
g[x_] = -Sqrt[x];
h[x_] = x;
m[x_] = 1;
plot = Plot[{f[x], g[x], h[x], m[x]}, {x, -1.5, 2},
PlotStyle -> {{Darker@Cyan, Dashed}, {Darker@Cyan, Dashed},
Darker@Green, Darker@Red}, AspectRatio -> Automatic];
reg = RegionPlot[{h[x] <= y <= m[x]}, {x, -2, 3}, {y, -2, 2},
PlotStyle -> LightRed, BoundaryStyle -> None];
Show[reg, plot, PlotRange -> {-2, 3}, AxesStyle -> Arrowheads[{0.05}],
Axes -> True, Frame -> False,
GridLines -> {{{-2, {Thick, AbsoluteDashing[{3, 3}]}}}, None},
Epilog -> {{AbsoluteDashing[3, 3], Line[{{1, 1}, {1, 0}}],
Line[{{1, 1}, {0, 1}}]}}]
And here is the output:
ADD
Here is the image I would like to replicate (it's from a book).