How to draw curve inside a closed curve?

I want to draw the following diagram:

I have limited idea about TikZ but I want to draw this picture with TikZ. I have tried to draw the figure but ultimately faied. My written code given here:

\documentclass{article}
\usepackage{tikz}
\begin{document}

\begin{tikzpicture}

\draw (0,0) ellipse  (49pt and 39pt);
\draw (0,1) to [out=90,in=190](0,-1);
\draw (0,1) to [out=180,in=195](0,-1);
\end{tikzpicture}

\end{document}


Anyone can give an idea so that I can draw the picture?

• It is not necessary to draw curve exactly I have drawn.It may be different. To show two paths from $X_0$ to $X_1$. Commented Apr 20, 2013 at 5:45
• Try to play with values: \draw (0,1) to [out=-30, in=45](0,-1); \draw (0,1) to [out=-150,in=135](0,-1); Commented Apr 20, 2013 at 5:48
• But I can't able to draw arrow. How can I do that. Commented Apr 20, 2013 at 5:57
• Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers. Commented May 23, 2013 at 12:35

After adjusting the in and out values a little bit and adding appropriate styles and nodes, one can get something like the following.

If the two paths inside the ellipse should have more kinks like in your picture you will need to give more coordinates and more in and out options (or similar solutions) or for nicer outputs the hobby library or the smooth options …

Code

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\tikzset{
Arrow/.style={
decoration={
name=markings,
mark=at position .5 with \arrow{#1}
},
postaction=decorate
},
Arrow/.default=>
}
\begin{document}
\begin{tikzpicture}[
auto,
nodes={font=\scriptsize},
every label/.append style={inner ysep=+1pt}
]
\draw (0,0) ellipse  (49pt and 39pt);
\path (60:49pt and 39pt) coordinate[label=above right:$x$];
\draw[Arrow]   (0,1) coordinate[label=above:$x_0$]
to [out=-30,  in=45]  node {$f$} (0,-1)
coordinate[label=below:$x_1$];
\draw[Arrow=<] (0,1) to [out=-150, in=135] node[swap] {$g$} (0,-1);
\end{tikzpicture}
\end{document}


Output

• This shows 1 error : ' File 'standalone.cls' not found.\usetikzlibrary' Commented Apr 20, 2013 at 6:09
• @MdKutubuddinSardar The standalone class is only used for this MWE. You can simply use \documentclass{article}\usepackage{tikz} as usual. (I’ve updated the code.) Commented Apr 20, 2013 at 6:20
• It is working well.Thank you. +1 for you. Commented Apr 20, 2013 at 6:26