I would like to draw a tangent line on (x0) which is an intersection between vertical line and the red curve, this is my code
\documentclass[tikz,preview,border=1mm]{standalone}
\usetikzlibrary{calc,intersections,arrows}
\def\w{0.7}
\begin{document}
\begin{tikzpicture}[>=latex]
\draw[->,line width=0.5pt](-0.3,0) -- (5.2,0);
\draw[->,line width=0.5pt](0,-0.3) -- (0,3.5);
\draw[name path=curve,red] plot[samples=100,smooth,domain=0:3,variable=\t]
({1+cos(deg(\w* \t)) * 5},{5+- sin(deg(\w\t)) \w* 5});
\drawname path=vline--+(90:3);
\path[name intersections={of=curve and vline, by=x0}];
\fill (x0) circle(1pt);
\end{tikzpicture}
\end{document}

