I am trying to create a picture similar to the one attached. I am having difficulty as I am trying to guess and check my was to make the vertical ellipse. I am attaching my code. I am wondering if there is an easier way to produce the said example or just volumes in general.
\documentclass{article}
\usepackage{pgfplots}
\usepgfplotslibrary{fillbetween}
\pgfplotsset{compat=newest}
\usepackage{amssymb}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{plotmarks}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.misc, positioning}
\usetikzlibrary{arrows,shapes,positioning}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{arrows.meta,bending}
\tikzset{font=\footnotesize}
\begin{document}
\begin{tikzpicture}
\begin{axis}[thick,ticks=none,
scale only axis,
axis lines=middle,
inner axis line style={-Triangle},
ymin=-5,
ymax=5,
xmin=-1,
xmax=3,
]
\addplot[name path=f,thick, red,samples=1000,domain=0:2]{x^2+1};
\addplot[name path=g,thick,blue, samples=1000,domain=0:2]{-x^2-1};
\end{axis}
\draw[thick,dashed] (8,4) arc
[
start angle=0,
end angle=360,
x radius=1cm,
y radius =4cm
] ;
\draw[thick,dashed] (5,3.5) arc
[
start angle=0,
end angle=360,
x radius=.5cm,
y radius =1.75cm
] ;
\end{tikzpicture}
\end{document}
Thank you for your time
Nick