Skew coordinate system transformation matrix I am currently working through problems in Susan Lea's Mathematics for Physicists. However I am stuck on a problem and the book is not known to errata. The problem is:


*A Skew (non orthogonal) coordinate system in a plane has x'-axis along the x-axis and y'-axis at an angle $\theta$ to the x axis, where $\theta$ < $\frac{\pi}{2}$. 
(a) Write the transformation matrix that transforms vector components from the Cartesian x-y system to the skew system. 
The solution manual says the new coordinates are:
$y' = \frac{y}{sin\theta}$ 
which I also obtain, but the result:
$x' = x-\frac{y}{tan\theta}$
I simply cannot understand why this is the result. There is no explanation for this and embarrassingly enough I have spent more than 2 hours on this. Can someone please explain this to me, or let me know if it is a mistake. Thank you!

Let the unit vectors in the skew system be $s_1, s_2$. Then the coordinates of $s_1,s_2$
in terms of the standard basis $e_1,e_2$ are $(1,0)^T, (\cos \theta, \sin \theta)^T$.
Let $S=\begin{bmatrix} 1 & \cos \theta \\ 0 & \sin \theta\end{bmatrix}$, then if $n=(n_1,n_2)^T$ are the coordinates of a point in the skew basis, this corresponds to a point $S n$ in the standard basis.
Hence to map back from the standard basis to the skew system we take the inverse.
We have $S^{-1} = {1 \over \sin \theta } \begin{bmatrix} \sin \theta & -\cos \theta\\ 0 &1 \end{bmatrix} = \begin{bmatrix} 1 & -{1 \over \tan \theta}\\ 0 & {1 \over \sin \theta} \end{bmatrix}$.
Hence a point whose coordinates are $(x,y)^T$ in the standard basis will correspond to
coordinates $(x-{y \over \tan \theta}, { y \over \sin \theta})^T$ in the skew system. 
