# Matrix similarity

Jump to navigation Jump to search

In linear algebra, two n-by-n matrices A and B are called similar if there exists an invertible n-by-n matrix P such that

$B=P^{-1}AP.$ Similar matrices represent the same linear operator under two (possibly) different bases, with P being the change of basis matrix.

A transformation AP−1AP is called a similarity transformation or conjugation of the matrix A. In the general linear group, similarity is therefore the same as conjugacy, and similar matrices are also called conjugate; however in a given subgroup H of the general linear group, the notion of conjugacy may be more restrictive than similarity, since it requires that P be chosen to lie in H.

## Motivating example

When defining a linear transformation, it can be the case that a change of basis can result in a simpler form of the same transformation. For example, the matrix representing a rotation in 3 when the axis of rotation is not aligned with the coordinate axis can be complicated to compute. If the axis of rotation were aligned with the positive z-axis, then it would simply be

$S={\begin{bmatrix}\cos \theta &-\sin \theta &0\\\sin \theta &\cos \theta &0\\0&0&1\end{bmatrix}}$ ,

where $\theta$ is the angle of rotation. In the new coordinate system, the transformation would be written as

$y'=Sx'$ ,

where x' and y' are the original and transformed vectors in a new basis containing a vector parallel to the axis of rotation. In the original basis, the transform would be written as

$y=Tx$ ,

where vectors x and y and the unknown transform matrix T are in the original basis. To write T in terms of the simpler matrix, we use the change-of-basis matrix P that transforms x and y as $x'=Px$ and $y'=Py$ :

{\begin{aligned}&&y'&=Sx'\\&\Rightarrow &Py&=SPx\\&\Rightarrow &y&=\left(P^{-1}SP\right)x=Tx\end{aligned}} Thus, the matrix in the original basis is given by $T=P^{-1}SP$ . The transform in the original basis is found to be the product of three easy-to-derive matrices. In effect, the similarity transform operates in three steps: change to a new basis (P), perform the simple transformation (S), and change back to the old basis (P−1).

## Properties

Similarity is an equivalence relation on the space of square matrices.

Because matrices are similar if and only if they represent the same linear operator with respect to (possibly) different bases, similar matrices share all properties of their shared underlying operator:

Because of this, for a given matrix A, one is interested in finding a simple "normal form" B which is similar to A—the study of A then reduces to the study of the simpler matrix B. For example, A is called diagonalizable if it is similar to a diagonal matrix. Not all matrices are diagonalizable, but at least over the complex numbers (or any algebraically closed field), every matrix is similar to a matrix in Jordan form. Neither of these forms is unique (diagonal entries or Jordan blocks may be permuted) so they are not really normal forms; moreover their determination depends on being able to factor the minimal or characteristic polynomial of A (equivalently to find its eigenvalues). The rational canonical form does not have these drawbacks: it exists over any field, is truly unique, and it can be computed using only arithmetic operations in the field; A and B are similar if and only if they have the same rational canonical form. The rational canonical form is determined by the elementary divisors of A; these can be immediately read off from a matrix in Jordan form, but they can also be determined directly for any matrix by computing the Smith normal form, over the ring of polynomials, of the matrix (with polynomial entries) XInA (the same one whose determinant defines the characteristic polynomial). Note that this Smith normal form is not a normal form of A itself; moreover it is not similar to XInA either, but obtained from the latter by left and right multiplications by different invertible matrices (with polynomial entries).

Similarity of matrices does not depend on the base field: if L is a field containing K as a subfield, and A and B are two matrices over K, then A and B are similar as matrices over K if and only if they are similar as matrices over L. This is so because the rational canonical form over K is also the rational canonical form over L. This means that one may use Jordan forms that only exist over a larger field to determine whether the given matrices are similar.

In the definition of similarity, if the matrix P can be chosen to be a permutation matrix then A and B are permutation-similar; if P can be chosen to be a unitary matrix then A and B are unitarily equivalent. The spectral theorem says that every normal matrix is unitarily equivalent to some diagonal matrix. Specht's theorem states that two matrices are unitarily equivalent if and only if they satisfy certain trace equalities.
{"ft_lang_label":"__label__en","ft_lang_prob":0.89611137,"math_prob":0.9947287,"size":5726,"snap":"2019-35-2019-39","text_gpt3_token_len":1249,"char_repetition_ratio":0.14278224,"word_repetition_ratio":0.036231883,"special_character_ratio":0.21655606,"punctuation_ratio":0.099534884,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99924326,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18],"im_url_duplicate_count":[null,8,null,2,null,null,null,2,null,2,null,4,null,4,null,4,null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-08-25T16:12:09Z\",\"WARC-Record-ID\":\"<urn:uuid:81a726de-28cf-46ee-a641-035df25d3fe3>\",\"Content-Length\":\"58725\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b096e3b6-9b2e-4bbc-84ed-9f43c845db49>\",\"WARC-Concurrent-To\":\"<urn:uuid:d012a156-c5d8-4a41-b54b-ba5499934c2f>\",\"WARC-IP-Address\":\"208.80.154.224\",\"WARC-Target-URI\":\"https://en.wikipedia.org/wiki/Matrix_similarity\",\"WARC-Payload-Digest\":\"sha1:6G22JRX4NUNJYF25SHFBO7BPC5VKI2WX\",\"WARC-Block-Digest\":\"sha1:N2FZSQV67ECJMSA5FLU5IUSWD5CZUFBF\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-35/CC-MAIN-2019-35_segments_1566027330750.45_warc_CC-MAIN-20190825151521-20190825173521-00121.warc.gz\"}"}