I'm currently reading Precalculus with limits and got into chapter 4 of Trigonometry.
I now understood that, an angle $u$ is a real number that correspond to the points $(x,y)$ in the unit circle. So we have now two functions which is $x=\cos u$ and $y=\sin u$ according to the definitions of the right triangle (trigonometric ratios) and unit circle.
My dilemma is, since we have now defined cosine as a function of $x$, so we could call it a function $x=g(u)=\cos u$, when I make a graph, I choose $x$ as vertical axis and $u$ as horizontal axis, because cosine move from right to left in a unit circle. But in the book they choose cosine as $y=\cos x$. But $y$ is already taken as a definition of sine function, $y=f(u)=\sin u$. So how did they interchanged the variables here? This matter is very confusing to me.
The trigonometric circle is commonly drawn with an horizontal and a vertical axis. Let us call them the cosine and sine axis, respectively.
On the trigonometric circle, a point has the coordinates $(\cos(u), \sin(u))$.
Now if you want to study the cosine and sine as functions of an angle, you will plot them in diagrams with the horizontal axis denoting values of $u$ and the vertical axis the value of the cosine or sine.
On the function plot, a point has the coordinates $(u,\cos(u))$ or $(u,\sin(u))$.
Notice that I avoided any reference to $x$ and $y$, on purpose.
Now contemplate the following animation (one of the plots is $(\cos (u),u)$, axis exchanged):