Matrix Transpose
calculator.
Flip a matrix across its diagonal so each row becomes a column, then see its type.
| # | 1 | 2 | 3 |
|---|---|---|---|
| 1 | |||
| 2 |
Entries can be whole numbers, decimals or fractions such as 3/5. Blank rows are left out.
- New shape
- 3 × 2
- Type
- Rectangular
- Entries
- 6
Row 1 of A, (1, 2, 3), is now column 1 of Aᵀ, and every other row moves the same way.
Entries can be whole numbers, decimals or fractions such as 3/5. Blank rows are left out.
Rows become columns
Each row of the 2 × 3 matrix A has its own color, and the same colors run down the columns of the 3 × 2 transpose.
Products with the transpose
Both are always symmetric. The diagonal of AᵀA holds the squared lengths of the columns of A.
Working
- 1Swap rows and columnsEntry (i, j) of Aᵀ is entry (j, i) of A, so the 2 × 3 matrix becomes 3 × 2.
- 2Row 1 of A becomes column 1 of Aᵀ123
- 3Row 2 of A becomes column 2 of Aᵀ456
- 4Check: transpose Aᵀ again to get A back(Aᵀ)ᵀ =123456= AFor example, entry (1, 2) of Aᵀ is 4, which is entry (2, 1) of A.
How it's worked out
The transpose/02%3A_Matrices/2.05%3A_The_Transpose) of an m by n matrix A is the n by m matrix whose entry in row i, column j is the entry of A in row j, column i. Row 1 of A becomes column 1, row 2 becomes column 2, and so on. The main diagonal, where i = j, stays in place.
There is no arithmetic in the transpose itself, only moving entries. The arithmetic comes in what the tool does next. It compares A with its transpose, and it forms the two products of A with its transpose.
Three rules from the same textbook section do most of the work in practice. Transposing twice gives A back. A sum or a multiple transposes term by term. A product transposes with its order reversed.
With numbers: for P with rows (1, 2) and (0, 1) and Q with rows (3, 0) and (1, 2), the transpose of PQ has first row (5, 1). That matches QᵀPᵀ, whose first row is (5, 1), but not PᵀQᵀ, whose first row is (3, 1).
Worked examples
Ana turns a sales table on its side
Ana keeps units sold with one row per store and one column per month, so two stores over three months make a 2 by 3 table. Her report needs the months down the side.
The transpose is 3 by 2, with each store now a column. The product AAᵀ is 2 by 2, and its diagonal holds the sum of squares of each store's sales: 450 and 381.
Checking a 3 by 3 matrix for symmetry
A square matrix is symmetric/02%3A_Matrices/2.05%3A_The_Transpose) when it equals its own transpose. This one has the entry 1 in both mirror spots of row 1 and column 2, 3 in both spots of row 1 and column 3, and −3 in both spots of row 2 and column 3.
So the tool reports it as symmetric, and its skew part is all zeros. Its trace, 14, is the same for A and Aᵀ because the diagonal does not move.
Setting up a best-fit line with AᵀA
You want the line y = Mx + B closest to the points (0, 6), (1, 0) and (2, 0). Each point gives one row of A, with x and 1, and its y goes into b. Three points do not lie on one line, so Ax = b has no exact answer.
Least squares solves the normal equations instead, which need AᵀA and Aᵀb.
Solving that 2 by 2 system gives M = −3 and B = 5, so the best-fit line is y = −3x + 5. Multiplying by Aᵀ turned three equations with no solution into two with exactly one.
Reading your result
Shape. The answer always has the rows and columns swapped. A row of four numbers becomes a column of four, which is how a dot product is written as a row times a column.
Symmetric. A = Aᵀ. Only a square matrix can be symmetric, because the transpose of any other shape has a different size.
Skew-symmetric. A = −Aᵀ. Each diagonal entry must equal its own negative, so the diagonal is all zeros.
Orthogonal. The tool also checks whether AᵀA is the identity. A rotation by the matrix with rows (0.6, −0.8) and (0.8, 0.6) passes: the check returns true, so its transpose undoes the rotation.
The two parts. Every square matrix is a symmetric part plus a skew part. For the matrix with rows (1, 2) and (3, 4), the symmetric part has 2.5 off the diagonal, the average of 2 and 3. The skew part has −0.5 and 0.5.
Common mistakes
- Keeping the order in a product. The transpose of AB is BᵀAᵀ, not AᵀBᵀ. For a 2 by 3 matrix A and a 3 by 4 matrix B, AᵀBᵀ is not even defined.
- Flipping across the wrong diagonal. The transpose mirrors across the main diagonal, from top left to bottom right. Turning the grid a quarter turn is a different matrix.
- Calling a rectangular matrix symmetric. If the rows and columns differ in number, A and Aᵀ have different shapes and can never be equal.
- Mixing up AᵀA and AAᵀ. For a 3 by 2 matrix, AᵀA is 2 by 2 and AAᵀ is 3 by 3. Least squares needs AᵀA, the small one.
Questions people ask
Sources
- Kuttler, A First Course in Linear Algebra, section 2.5, The Transpose
- Margalit and Rabinoff, Interactive Linear Algebra, Determinants: Definition (transpose property)
- Margalit and Rabinoff, Interactive Linear Algebra, The Characteristic Polynomial
- Margalit and Rabinoff, Interactive Linear Algebra, The Method of Least Squares