I have the following equation of matrices (3 matrices): $Y=WX$
I know that to solve for X we have to do: $W^{-1}Y=W^{-1}WX\xrightarrow{}W^{-1}Y=IX\xrightarrow{}X=W^{-1}Y$
But... can someone let me know how the above equation is equal to: $X=(W^{T}W)^{-1}W^{T}Y$ ?
where $W^{T}$ is the matrix transposed and $W^{-1}$ the inverse of a matrix.
For reference, I found the following equation in page 11 of a PDF in this hyperlink.
We have $$ X=W^{-1}Y=W^{-1}(W^T)^{-1}W^TY=(W^{T}W)^{-1}W^{T}Y. $$