I am currently learning Linear Algebra and I reached the topic of matrix diagonalization. What I understood that we do with matrix diagonalization is the following (please correct me if I am wrong):
We have a matrix $A$. I take $A$'s eigenvectors and put them in a matrix $S$ (as colums). The product of $A S$ will be $S \Lambda$, where $\Lambda$ is the diagonal matrix with the eigenvalues and $S$ is the same matrix, the one with the eigenvectors. So, $AS=S \Lambda. $
Then, to get just one matrix on the left side we multiplied with $S^{-1}$ and got $A=S \Lambda S^{-1}$.
Why were we allowed to do that? What guarantee do we have that $S$ is invertible? Why is $S$ invertible? Are the eigenvectors always independent, therefore making $S$ always invertible? If not, we shouldn't be allowed to multiply with $S^{-1}$, rigth?