I want to draw the following diagram
Where $BE$ is a tangent at $B$. Here is my MWE
\documentclass[margin=10pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=4.0, axes/.style={thick,->}]
\draw[axes] (-1.2,0) -- (1.2,0) node[right] {$x$};
\draw[axes] (0,-1.2) -- (0,1.2) node[above] {$y$};
\draw (0,0) circle[radius=1];
\draw[->] (0.2,0) node[above right]{$\theta$} arc[start angle=0, end angle=30, radius=0.2];
\draw (0,0) -- node[below]{$\cos \theta$} ({sqrt(3)/2},0)
-- node[right,fill=white]{\ \ $\theta$} ({sqrt(3)/2},0.5)
-- cycle;
\path (0,0) -- node[above]{$1$} ({sqrt(3)/2},0.5);
\end{tikzpicture}
\end{document}
Edit: (Thanks to Torbjørn T.) BD an extension of OB, and is AD supposed to be vertical.