The Transpose of a Matrix
What you'll learn: How to flip a matrix over its main diagonal by swapping its rows and columns.
What Is the Transpose?
The transpose of a matrix is a new matrix created by exchanging the rows and columns of the original matrix. If you have a matrix A, its transpose is denoted A^T (or sometimes A').
Think of it like rotating a spreadsheet: what was in the first row becomes the first column, what was in the second row becomes the second column, and so on.
How It Works
If your original matrix A has dimensions m × n (m rows, n columns), then A^T will have dimensions n × m (n rows, m columns).
Example:
Let's say:
A = [1 2 3]
[4 5 6]
This is a 2×3 matrix. To transpose it, swap rows and columns:
A^T = [1 4]
[2 5]
[3 6]
Notice how the first row [1 2 3] became the first column, and the second row [4 5 6] became the second column. The result is a 3×2 matrix.
The Pattern
More formally, if A has entries aᵢⱼ (row i, column j), then A^T has entries where the element in row i, column j of A^T equals the element in row j, column i of A.
In other words: **(A^T)**ᵢⱼ = **(A)**ⱼᵢ
Why It Matters
The transpose is fundamental in matrix algebra. It appears in solving systems of equations, working with symmetric matrices, and many applications in physics and engineering—though you'll explore those uses later!
Key Takeaway: The transpose A^T flips a matrix over its main diagonal, turning rows into columns and columns into rows.