A matrix can be decomposed as:
where is the matrix of eigenvectors and is the diagonal matrix of eigenvalues.
To get a sense of what this means, we can image a matrix transforming a unit circle into an ellipse. To get use started, we have provided an initial transform matrix below.
Drag the values of M to adjust.
This notebook will illustrate the transform, and will demonstrate that the axes of the transformed circle are aligned with the eigenvectors and scaled by the eigenvalues.
We can grab the "eigenvalues" and "eigenvectors" of the matrix easily with numpy.
Drag the matrix values below to see the decomposition and transform update live. Adjusting the eigenvalues in produces .
Select a region on the plot above to see translation vectors.