Drawing an oriented curve with tikz

tikz-pgf

I would like to make the graph of this curve with Tikz; I am not quite sure how to do the diagram, detailing of the arrows and points. I would really appreciate your help.

enter image description here

Best Answer

This is almost literally copied from section 50.6.1 of the pgf manual.

\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{decorations.markings}
\begin{document}
\begin{tikzpicture}[decoration={markings,% switch on markings
    mark=between positions 0.1 and 0.9 step 12mm with {\arrow{stealth}}},
    dot/.style={circle,inner sep=1pt,fill}]
  \draw[postaction={decorate},red] (0,0) node[dot,label=right:{$P_2(2,2)$}]{}
    arc[start angle=45,end angle=-135,radius=2] 
    node[dot,label=left:{$P_2(-2,-2)$}]{}
    -- cycle; 
\end{tikzpicture}
\end{document}

enter image description here