Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2022-03-16 04:04:09
Size: 1031
Comment:
Revision 9 as of 2024-01-27 21:22:51
Size: 1689
Comment: Orthogonality 2
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= MatrixTransposition = = Matrix Transposition =

For any matrix '''''A''''', the transposition ('''''A'''^T^'') is a flipped version.

An alternative notation, found especially in matrix programming languages like [[Stata]], [[Julia]], and [[MATLAB]], is '''''A' '''''.

<<TableOfContents>>

-----
Line 5: Line 13:
== Introduction == == Definition ==
Line 7: Line 15:
The transpose of a matrix is a flipped version. Cell (''i'',''j'') of '''''A'''^T^'' is equal to cell (''j'',''i'') of '''''A'''''.
Line 10: Line 18:
┌ ┐ ┌ ┐
│ 1 2│ │ 1 3│
│ 3 4│ -> │ 2 4│
└ ┘ └ ┘
julia> A = [1 2; 3 4]
2×2 Matrix{Int64}:
 1 2
 3 4

julia> A'
2×2 adjoint(::Matrix{Int64}) with eltype Int64:
 1 3
 2 4
Line 15: Line 28:

The transpose of A is denoted A^T^.
Line 20: Line 31:
== Multiplication of Transposed Matrices == === Properties ===
Line 22: Line 33:
The transpose of a product is the same as the reversed product of the transposed multiples. (A B)^T^ = B^T^ A^T^. The transpose of a product is the same as the reversed product of the transposed multiples. ''('''AB''')^T^ = '''B'''^T^ '''A'''^T^''.

[[LinearAlgebra/MatrixInversion|Inversion]] and transposition can be done in any order: ''('''A'''^-1^)^T^ = ('''A'''^T^)^-1^''.

For [[LinearAlgebra/Orthogonality#Matrices|orthogonal matrices]] (such as [[LinearAlgebra/SpecialMatrices#Permutation_Matrices|permutation matrices]]), the transpose is also the [[LinearAlgebra/MatrixInversion|inverse]]: '''''Q'''^T^ = '''Q'''^-1^''. And because the left and right inverses are the same for any square matrix, '''''QQ'''^T^ = '''Q'''^T^'''Q'''''.

----
Line 26: Line 43:
== Inverses of Transposed Matrices == == Symmetry ==
Line 28: Line 45:
A simple proof based on the definition of inverse matrices and the above multiplicative property: A [[LinearAlgebra/MatrixProperties#Symmetry|symmetric]] matrix is equal to its transpose: '''''A''' = '''A'''^T^''. Only square matrices (''n'' by ''n'') can be symmetric.
Line 30: Line 47:
{{{
      -1 -1
   A A = I = A A

(leave the left side off for now)

      -1
   A A = I

       T
     -1 T
  A A = I

       T
     -1
  A A = I

   T
 -1 T
A A = I

(bring back the left side)

   T
 -1 T -1
A A = I = A A

(and it should now be clear that)

   T -1
 -1 T
A = A
}}}

Inverses and transposes can be done in any order.
However, multiplying a rectangular matrix '''''R''''' by its transpose '''''R'''^T^'' will always create a symmetric matrix. This can be proven with the above property: ''('''R'''^T^'''R''')^T^ = '''R'''^T^('''R'''^T^)^T^ = '''R'''^T^'''R'''''.

Matrix Transposition

For any matrix A, the transposition (AT) is a flipped version.

An alternative notation, found especially in matrix programming languages like Stata, Julia, and MATLAB, is A' .


Definition

Cell (i,j) of AT is equal to cell (j,i) of A.

julia> A = [1 2; 3 4]
2×2 Matrix{Int64}:
 1  2
 3  4

julia> A'
2×2 adjoint(::Matrix{Int64}) with eltype Int64:
 1  3
 2  4

Properties

The transpose of a product is the same as the reversed product of the transposed multiples. (AB)T = BT AT.

Inversion and transposition can be done in any order: (A-1)T = (AT)-1.

For orthogonal matrices (such as permutation matrices), the transpose is also the inverse: QT = Q-1. And because the left and right inverses are the same for any square matrix, QQT = QTQ.


Symmetry

A symmetric matrix is equal to its transpose: A = AT. Only square matrices (n by n) can be symmetric.

However, multiplying a rectangular matrix R by its transpose RT will always create a symmetric matrix. This can be proven with the above property: (RTR)T = RT(RT)T = RTR.


CategoryRicottone

LinearAlgebra/MatrixTransposition (last edited 2024-01-27 21:22:51 by DominicRicottone)