Log in Sign up
Back to Discover
🔢

Transpose

math Maturity 7-9

You can flip a grid of numbers.

Matrix transpose.gif
Matrix transpose.gif
It is like a mirror. Rows become columns. Columns become rows. This helps us work with math. It is a fun way to move things. Can you try to flip a grid?

41 words

You can flip a grid of numbers.

Imagine a grid. You can flip it over a line. This line goes from the top left corner to the bottom right.

When you flip the grid, rows become columns. The columns also become rows.

Arthur Cayley was a math expert. He first shared this idea in 1858.

If you flip the grid twice, it goes back to the start. It is like a mirror.

Row and column major order.svg
Row and column major order.svg

Math uses this to solve puzzles.

80 words

Imagine a grid of numbers. This grid is called a matrix. You can flip this grid in a special way. This flip is called a transpose.

To find the transpose, you use a diagonal line. This line runs from the top left to the bottom right. You can think of this line as a mirror. When you flip the grid over this line, rows become columns. The columns also become rows.

A British math expert named Arthur Cayley shared this idea in 1858.

Some grids have special rules. A square matrix is symmetric if its transpose is the same as itself. This means the flip does not change the grid. If the flip makes the grid the opposite, it is called skew-symmetric.

Computers use this idea too. Sometimes, a computer can just read the grid in a different order. This helps the computer work faster. Other times, the computer must physically move the numbers to flip them.

Row and column major order.svg
Row and column major order.svg

If you flip a grid twice, it returns to its original spot. This makes the transpose a very steady tool in math.

181 words

Imagine a grid filled with numbers. In math, we call this grid a matrix. You can change this grid using a special move called a transpose. This move flips the matrix over a diagonal line. This line starts at the top left corner and goes to the bottom right. When you flip the grid, the rows and columns swap places. A row becomes a column, and a column becomes a row. This process is a very steady tool. If you transpose a matrix and then transpose it again, it returns to the start.

There are a few different ways to do this. You can reflect the numbers over that main diagonal line. You can also simply write the rows as columns. Another way is to write the columns as rows. If you have a square matrix, it might have special names. A symmetric matrix is one that stays exactly the same after a transpose. A skew-symmetric matrix is one where the transpose makes every number its negative.

We can thank a mathematician for these ideas. Arthur Cayley was a British mathematician who introduced the transpose. He shared his work in a memoir in 1858. His paper was published in the Philosophical Transactions of the Royal Society of London. This was a very important time for the study of matrices. Cayley helped us understand how these grids work together. His work laid the ground for much of the math we use today.

Transposing can also create new kinds of special matrices. For example, a Hermitian matrix is a complex square matrix. It is special because its transpose is equal to its conjugate. There are also orthogonal matrices. These are square matrices where the transpose is the same as the inverse.

Row and column major order.svg
Row and column major order.svg
Even the determinant, which is a special number for a matrix, stays the same after a transpose. This shows how much the grid keeps its core properties during the flip.

Computers use the transpose in very clever ways. Sometimes, a computer does not even move the numbers. It just reads the data in a different order to work faster. This is common in software libraries like BLAS. However, other times the computer must physically reorder the numbers in its memory.

Row and column major order.svg
Row and column major order.svg
This can help with tasks like the fast Fourier transform. Scientists have been studying how to do this efficiently since the late 1950s. It is a hard job to move data without using too much extra storage.

411 words

In linear algebra, a matrix is a rectangular grid of numbers. The transpose is a fundamental operation that transforms this grid. To transpose a matrix, you essentially flip it over its main diagonal. This diagonal runs from the top left corner to the bottom right corner. This operation switches the row and column indices of every element. If an element is in the third row and first column, it moves to the first row and third column. This process is an involution, which means it is its own inverse. If you transpose a matrix twice, you return to the original grid.

There are several ways to construct a transpose. You can reflect the elements across the main diagonal. Alternatively, you can write the original rows as the new columns. You can also write the original columns as the new rows. Formally, if the element in the $i$-th row and $j$-th column of matrix $A$ is $a_{ij}$, then the element in the $j$-th row and $i$-th column of the transpose $A^T$ is $a_{ji}$. If matrix $A$ is an $m \times n$ matrix, its transpose will be an $n \times m$ matrix.

Transposition allows mathematicians to define several special types of square matrices. A symmetric matrix is one where the transpose is equal to the original matrix. A skew-symmetric matrix is one where the transpose equals the negative of the original matrix. In complex numbers, we find even more specific types. A Hermitian matrix is a square complex matrix whose transpose equals its complex conjugate. A skew-Hermitian matrix is one where the transpose equals the negative of the complex conjugate. Other types include orthogonal matrices, where the transpose equals the inverse, and unitary matrices, where the transpose equals the conjugate inverse.

This mathematical concept was introduced by the British mathematician Arthur Cayley. He presented his findings in 1858. His work appeared in a memoir titled "A memoir on the theory of matrices." This paper was published in the Philosophical Transactions of the Royal Society of London. Cayley's contributions helped formalize the study of matrix theory. His work provided a foundation for how we manipulate these numerical grids today.

Transposition has many important mathematical properties. The operation respects addition, meaning the transpose of a sum is the sum of the transposes. When multiplying multiple matrices, the order of the factors reverses: $(AB)^T = B^T A^T$. This rule also applies to any number of matrices. Furthermore, the determinant of a square matrix remains the same after transposition. The eigenvalues of a square matrix are also identical to the eigenvalues of its transpose. This is because they share the same characteristic polynomial.

In computer science, transposition is a matter of how data is stored in memory. Computers often use row-major order, where rows are stored in contiguous memory blocks.

Row and column major order.svg
Row and column major order.svg
In this setup, columns are discontiguous, which can slow down certain calculations. To improve performance, software libraries like BLAS may interpret matrices in a transposed order without moving the data. However, some tasks, such as the fast Fourier transform, require physically reordering the data. This makes columns contiguous to increase memory locality. Researchers have studied efficient "in-place" transposition since the late 1950s. This aims to reorder data using minimal extra storage.

Beyond simple grids, the transpose relates to higher-level concepts like linear maps. A matrix can represent a linear map between vector spaces. The transpose of a matrix represents the transpose of that linear map. This works even for infinite-dimensional vector spaces. There is also a closely related concept called the adjoint. The adjoint is defined using bilinear forms on vector spaces. While the terms are sometimes used interchangeably, the matrix of an adjoint is only the transpose if the bases are orthonormal. This connection links matrix algebra to the broader study of geometry and functional analysis.

634 words
🖼️ Images & Media (2)
File:Matrix transpose.gif
Matrix transpose.gif
File:Row_and_column_major_order.svg
Row_and_column_major_order.svg
Up Next
🔢
Matrix multiplication
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.