For AI agents: use /llms.txt for the Nakafa content index.
In linear algebra, the concept of matrix similarity or equivalence is very important for understanding how two different matrices can represent the same linear transformation in different spaces. Imagine two different portraits of the same object, but taken from different perspectives.
Two matrices A,B∈Kn×n are said to be similar if there exists an invertible matrix such that:
S∈Kn×n The matrix S in this case is called the similarity transformation matrix.
To understand why matrix similarity is so important, we need to look at its relationship with basis transformation. Let e1,…,en∈Kn be the canonical basis and v1,…,vn∈Kn be another basis of Kn.
If S is an invertible matrix with columns vk:
Then we have vk=S⋅ek or ek=S−1⋅vk for k=1,…,n. The matrix S represents the basis transformation.
A vector x∈Kn can be expressed in the canonical basis through coordinates xk and in the basis v1,…,vn through coordinates ξk:
The matrix S−1 represents the coordinate transformation.
Now consider the linear transformation y=A⋅x. In the canonical basis, y is expressed through coordinates yk, while in the basis v1,…,vn through coordinates ηk:
In the basis v1,…,vn, the linear transformation y=A⋅x is represented by η=B⋅ξ with the matrix:
This is why similar matrices represent the same linear transformation but viewed from different bases. Similar matrices represent the same linear transformation with respect to different bases of Kn.
Similar matrices have several fundamental properties that are very useful. Since they represent the same linear transformation in different spaces, similar matrices preserve the same intrinsic characteristics.
Based on the theorem about similar matrices, if matrices A and B=S−1⋅A⋅S are similar, then they both have:
- The same determinant
- The same characteristic polynomial
- The same eigenvalues
- The same trace
For the determinant, we can show:
Since det(S−1)=det(S)1, then:
If v∈Kn is an eigenvector of A with eigenvalue λ∈K, such that A⋅v=λ⋅v, then w=S−1⋅v is an eigenvector of B with the same eigenvalue:
This shows that matrix similarity preserves the spectrum or set of eigenvalues, which is a fundamental characteristic of linear transformations.