An example in my book says that $f:\mathbb{R}\to S^1$ defined by $f(t)=(\cos(t),\sin(t))$ is a local but not global diffeomorphism.
By the inverse function theorem, $f$ is a local diffeomorphism if the determinant of $df_x$ is nonzero.
I must be doing something wrong. Isn't $$ df_x=\begin{bmatrix} -\sin x \\ \cos x\end{bmatrix}? $$
I was expecting a square matrix in order to take the determinant.