\documentclass[tikz,border=7pt]{standalone}
\begin{document}
\begin{tikzpicture}
  \coordinate (A) at (0,0);
  \coordinate (B) at (4,.4);
  \draw[blue!70!black,thick] (A) -- (2,-.6) -- (B);
  \draw[red!70!black,thick] (A) .. controls (1,1.8) and (3,1.1) .. (B);
  \fill (A) circle (1.8pt) node[left] {A};
  \fill (B) circle (1.8pt) node[right] {B};
\end{tikzpicture}
\end{document}
