Transpose of a matrix and related concepts

Given a matrix, the simplest thing you can do to it is to view it sideways (rotating the numbers suitably). This turns the rows into columns and vice versa. This simple minded operation has some nice properties.

The transpose of [Maple Math] is often denoted as [Maple Math] . If [Maple Math] has type p X q, then its transpose has size q X p. Another popular notation for the transpose is a superscript [Maple Math] , so the transpose of [Maple Math] is [Maple Math] .

Example:

> A:=randmatrix(3,4,entries=rand(-10..10));`transpose of A`:=transpose(A);

[Maple Math]

[Maple Math]

> B:=randmatrix(4,3,entries=rand(-10..10));`transpose of B`:=transpose(B);

[Maple Math]

[Maple Math]

> evalm(transpose(A&*B)),evalm(transpose(B)&*transpose(A));

[Maple Math]

>

The above equality is saying [Maple Math] . The reversal of the order is crucial! There is a natural proof by formula or pictures in the book. Check it. There is a formal proof at the end.

Since the operation of inverse also satisfies a similar reversal, we get a wonderful identity. First of all, it is a matter of checking from definition that [Maple Math] . For convenience, name [Maple Math] , so [Maple Math] and [Maple Math] . Now, taking transposes, note that [Maple Math] , so the inverse of [Maple Math] is [Maple Math] or the transpose of the inverse of [Maple Math] . Let [Maple Math] denote [Maple Math] .
Then we can check that
[Maple Math] equals [Maple Math] . This has theoretical uses.

A matrix is symmetric if it is equal to its transpose, i.e. [Maple Math] . It is antisymmetric (or skewsymmetric) if it is equal to the negative of its transpose, i.e. [Maple Math] . Both of these concepts have important geometrical consequences.

Earlier we discussed dot products of two vectors and also wondered about which way of writing a vector is the right way. The transpose gives a natural way of handling this.

Given a vector [Maple Math] and another vector [Maple Math] , we note that their dot product can be also written as an ordinary matrix product [Maple Math] where each side is simply a matrix product resulting into a 1 X 1 matrix or scalar.

> v := matrix([[x], [y], [z]]);w:=matrix([[p], [q], [r]]);

[Maple Math]

[Maple Math]

> evalm(transpose(v)&*w),evalm(transpose(w)&*v);

[Maple Math]

Symmetric matrices have many nice properties. In particular, its [Maple Math] decomposition takes on the shape [Maple Math] and can be worked out quite fast. This has important uses in defining and using dot products in abstract vector spaces.

We illustrate how this is done. We are going to perform a row operation on A followed by the same operation on its columns. The matrix [Maple Math] is simply recording the steps as shown.

It is a good Maple exercise to try and write a procedure for these steps yourself!

> A:=matrix(3,3,[1,2,1,2,3,3,1,3,0]);L:=eye(3);

[Maple Math]

[Maple Math]

> A1:=addrow(A,1,2,-2);A1:=addcol(A1,1,2,-2);L[2,1]:=2;

[Maple Math]

[Maple Math]

[Maple Math]

> A2:=addrow(A1,1,3,-1);A2:=addcol(A2,1,3,-1);L[3,1]:=1;

[Maple Math]

[Maple Math]

[Maple Math]

> A3:=addrow(A2,2,3,1);A3:=addcol(A3,2,3,1);L[3,2]:=-1;

[Maple Math]

[Maple Math]

[Maple Math]

Checking [Maple Math]

> evalm(L&*diag(1,-1,0)&*transpose(L));

[Maple Math]

Note that in the above procedure, we only modified entries of [Maple Math] . We did not print it along the way.

>