Lesson Explainer: Transpose of a Matrix | Nagwa Lesson Explainer: Transpose of a Matrix | Nagwa

Lesson Explainer: Transpose of a Matrix Mathematics

In this explainer, we will learn how to find the transpose of a matrix and identify symmetric and skew-symmetric matrices.

Let us first recall the definition of a matrix.

Definition: Matrices

An 𝑚×𝑛 matrix is a rectangular array of entries with 𝑚 rows and 𝑛 columns, defined by 𝐴=𝑎, where 𝑖{1,,𝑚} and 𝑗{1,,𝑛}. Each 𝑎 is called an entry or an element of the matrix.

Now, we want to investigate taking the transpose of a matrix, which is an operation that flips a matrix over its diagonal entries. To best illustrate this concept, let us consider the following 3×2 matrix. 𝐴=302147.

As per our definition above, this can be written as 𝐴=𝑎, where 𝑖{1,2,3} and 𝑗{1,2}. When we refer to the diagonal entries, we mean entries of the form 𝑎, which, in this case, are the entries 𝑎 and 𝑎. We highlight these as follows:

Now, to take the transpose of a matrix, we flip the matrix over the diagonal so the rows become the columns and the columns become the rows. The transposed matrix is denoted by 𝐴, where the 𝑇 superscript stands for “transposed.” Let us show this below:

Notice how only the diagonal entries remain in the same place, while entries below the diagonal have been swapped with those above the diagonal. Specifically, the rows and columns have traded places. To visualize this, let us highlight the first row of the original matrix:

In the transposed matrix, this becomes the first column:

Similarly, the second and third rows become the second and third columns, as shown below:

So, as we can see, matrix transposition can be thought of as swapping the rows and the columns with each other.

Since the rows and the columns of a matrix are swapped when we transpose a matrix, the number of rows and the number of columns of a matrix are also swapped. For matrix 𝐴, which has order 2×3, we can see that 𝐴 has order 3×2. We can generalize this in the following way.

Definition: Order of the Transpose of a Matrix

If a matrix 𝐴 is of order 𝑚×𝑛, then the transpose of the matrix 𝐴 is of order 𝑛×𝑚.

In our first example, we will consider a direct use of this definition to find the order of a matrix.

Example 1: Finding the Order of a Matrix Transpose

If 𝑋 is a matrix of order 4×1, then what is the order of the matrix 𝑋?

Answer

Matrix 𝑋 is the transpose of matrix 𝑋. We recall that the transpose of a matrix swaps its rows with its columns. In particular, this means that the number of rows and the number of columns of the matrix will be interchanged. In other words, if a matrix is of order 𝑚×𝑛, the transpose of the matrix will be of order 𝑛×𝑚.

In this example, we are given that matrix 𝑋 has order 4×1, which means 𝑚=4 and 𝑛=1. Hence, the transpose of 𝑋, which is 𝑋, is of order 𝑛×𝑚=1×4.

Visually, we can see that the transpose has the following effect on the order of the matrix: 𝑋=𝑋=().

Hence, the order of the matrix 𝑋 is 1×4.

In the previous example, we found the order of the transpose of a matrix. Let us now discuss the full definition of the transpose of a matrix and how to identify its entries.

Definition: Transpose of a Matrix

Consider an 𝑚×𝑛 matrix 𝐴 defined by 𝐴=𝑎. The transpose of 𝐴, denoted 𝐴, is an 𝑛×𝑚 matrix defined by 𝐴=𝑎.

In the above definition, we see that the row and column indices (𝑖 and 𝑗) are swapped around. This has the same effect of swapping the rows and the columns of the matrix, as we have seen above. For instance, we can see below that entry 𝑎 in matrix 𝐴 becomes entry 𝑎 in matrix 𝐴:

In other words, the entry in row 3 and column 1 becomes the entry in row 1 and column 3. Any diagonal entries, such as 𝑎=3, do not change.

When we want to find the transpose of a matrix, the first step is to find the order of the new matrix. After this, we have to find the entries by flipping the matrix in the diagonal. In the next example, we will practice how to do this.

Example 2: Finding the Transpose of a Matrix

Given that 𝐴=266184, find 𝐴.

Answer

We know that 𝐴 is the transpose of matrix 𝐴, so we need to find the transpose of the given matrix in this example.

Recall that the transpose of an 𝑚×𝑛 matrix is of order 𝑛×𝑚. Since 𝐴 is a 2×3 matrix, the transpose of 𝐴 will be a 3×2 matrix, leading to the following matrix with blank entries: 𝐴=.

Now, let us fill in the entries of matrix 𝐴. Recall that the transpose of a matrix swaps its rows with its columns. In other words, the first row becomes the first column, the second row becomes the second column, and so on. Thus, let us consider each row of 𝐴 and write each as corresponding columns of 𝐴.

The first row of 𝐴 is

In the transposed matrix, this becomes the first column:

Next, we have the second row:

This becomes the second column:

This leads to the transposed matrix 𝐴=216864.

In the previous example, we found the transpose of a given matrix by placing each row of the matrix as the corresponding column of the transposed matrix. This method can be applied to matrices of any order, as we explain below.

How To: Transposing a Matrix

To find the transpose of an 𝑚×𝑛 matrix, we can follow this procedure:

  1. Identify that the order of the transpose matrix is 𝑛×𝑚 and that it thus has 𝑛 rows and 𝑚 columns as shown below:
  2. Consider each row of the matrix one by one and write it as a corresponding column in the transposed matrix:
  3. Complete the process to get the transpose of 𝐴: 𝐴=𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎.

It should be noted that the matrix transpose has a special property when it is applied twice in succession. We will observe this property through the next example.

Example 3: Applying the Matrix Transpose Twice in Succession

Given the matrix 𝐴=843411, find 𝐴.

Answer

We know that a superscript 𝑇 next to a matrix indicates the transpose of a matrix. Here, we see that there are two 𝑇 superscripts. To understand this notation, we first note that 𝐴 is the transpose of the given matrix 𝐴. Then, we note that 𝐴 is the transpose of the transpose of the given matrix 𝐴, meaning that we need to apply the transpose to matrix 𝐴 twice successively.

Therefore, in this example, we need to apply the transpose to matrix 𝐴 twice in succession. We can begin by first finding matrix 𝐴 and then applying the transpose to the resulting matrix.

Recall that the transpose of an 𝑚×𝑛 matrix is of order 𝑛×𝑚. Since 𝐴 is a 2×3 matrix, 𝐴 will be a 3×2 matrix, leading to the following matrix with blank entries: 𝐴=.

Recall that we can find the transpose of a matrix by swapping the rows and the columns around with each other. Hence, the first row of 𝐴 becomes the first column of 𝐴:

Similarly, we write the second row of 𝐴 as the second column of 𝐴:

Thus, we have obtained the transpose of 𝐴: 𝐴=844131.

We repeat the process by taking the transpose again in order to find 𝐴. Since 𝐴 is a 3×2 matrix, 𝐴 will be a 2×3 matrix, leading to the following matrix with blank entries: 𝐴=.

As we did before, let us swap the rows of 𝐴 around with the columns of 𝐴. Starting with the first row, we have

The second row gives us

For the final row, we have

As we can see, this matrix is actually identical to 𝐴. This is because swapping the rows and columns twice results in them being the same as they were before. In conclusion, we have 𝐴=843411.

In the previous example, we saw that applying the transpose to a given matrix twice in succession resulted in the same matrix. In fact, this is a general rule that applies to any matrix.

Rule: Applying the Transpose to a Matrix Twice

For a matrix 𝐴, applying the transpose twice results in the same matrix. In other words, 𝐴=𝐴.

Having seen that successive applications of the transpose result in the same matrix, we might wonder whether there are any other properties that the matrix transpose has. For instance, are there any matrices such that if we apply the transpose just once, we still get the same matrix? As it turns out, there is a specific class of matrices that obey such a property.

Definition: Symmetric and Skew-Symmetric Matrices

Let 𝐴=𝑎 be an 𝑛×𝑛 matrix (i.e. a square matrix). Then, 𝐴 is a symmetric matrix if 𝐴=𝐴.

Alternatively, 𝐴 is a skew-symmetric matrix if 𝐴=𝐴.

We note that, in the above definition, the matrix has to be a square matrix. This is because, unless the matrix is square, the order of the matrix will change when we apply the transpose to the matrix. Hence, symmetric and skew-symmetric matrices must be square matrices.

Also, recall that, when we take the matrix transpose, we swap around the indices of each entry, so 𝑎𝑎. Consequently, in order for a matrix to be equal to its transpose, we require that 𝑎=𝑎. Similarly for skew-symmetric matrices, we require 𝑎=𝑎. We note that a consequence of this is that the diagonal entries of a skew-symmetric matrix have to be zero, since 𝑎=𝑎 would not be satisfied otherwise. Let us summarize these properties below.

Property: Indices of Symmetric and Skew-Symmetric Matrices

Let 𝐴=𝑎 be a square matrix. 𝐴 is a symmetric matrix if and only if 𝑎=𝑎𝑖,𝑗.forall

Similarly, 𝐴 is a skew-symmetric matrix if and only if 𝑎=𝑎𝑖,𝑗.forall

With both the definition and the above property in mind, we can begin to imagine what a symmetric or skew-symmetric matrix looks like. Consider the following matrix, where the diagonal has been highlighted:

Notice that the matrix would remain the same if we reflect each entry over the diagonal. In this sense, the matrix is symmetric, where the axis of symmetry is the diagonal. In terms of indices, we can see that 𝑎=𝑎 for every 𝑖,𝑗; for instance, 𝑎=𝑎=7 and 𝑎=𝑎=0. We note that, by default, the diagonal entries obey this property since they are of the form 𝑎 (swapping their row and column indices has no effect).

Skew-symmetric matrices can be identified in a similar manner. Consider the following matrix:

In this case, on either side of the diagonal, the entries are the same but with the opposite signs. For instance, 𝑏=4, while 𝑏=4, and 𝑏=6, while 𝑏=6. In particular, the diagonal entries are all zero, i.e., 𝑏=0 for 𝑖{1,2,3}. In general, we can see that 𝑏=𝑏; thus, 𝐵 is skew symmetric. We can see that the diagonal entries being 0 is a necessary consequence of this since 𝑏=𝑏, which can only be true for 𝑏=0.

As an additional note, let us consider the case where we have a square-zero matrix:

Taking the transpose of this matrix would have no effect, since all the entries are the same. Thus, 𝐶=𝐶 and 𝐶 is symmetric. However, we also note that 𝐶=𝐶, which means that 𝐶 is skew symmetric too. In fact, square-zero matrices are the only type of matrix that are both symmetric and skew symmetric at the same time.

Let us now apply our knowledge of symmetric matrices in the following example.

Example 4: Finding the Unknown Elements That Make a Given Matrix Symmetric

Find the value of 𝑋 that makes the matrix 𝐴=15𝑥3438 symmetric.

Answer

Recall that, in order for a matrix to be symmetric, it must be square and it must satisfy 𝐴=𝐴, where 𝐴 is the transpose of 𝐴. As the number of rows and the number of columns of 𝐴 are both equal to 2, it is indeed a square matrix, satisfying the first condition. In order to find what values of 𝑥 satisfy the second condition, we can apply the transpose to 𝐴 and equate it to itself.

To begin, let us calculate 𝐴. Since 𝐴 is a 2×2 matrix, the order of the transposed matrix will also be 2×2. To find the entries of 𝐴, we can rewrite the rows of 𝐴 as columns of 𝐴 as follows:

Thus, the transpose is 𝐴=1435𝑥38.

To satisfy 𝐴=𝐴, we set this matrix equal to the original matrix given to us to get the following matrix equation: 15𝑥3438=1435𝑥38.

To check the equality of two matrices, we must check that the corresponding entries are equal. Clearly, the diagonal entries are the same, as the transpose does not change them. Let us highlight the off-diagonal entries that must be equal below:

This gives us two equations we must satisfy: 43=5𝑥3,5𝑥3=43.

We can see that both equations are the same. As this is a linear equation, we can be solve it by rearranging it so that 𝑥 is the subject: 40=5𝑥8=𝑥.

Hence, 𝑥=8.

Note that, in the previous example, it would also be possible to find 𝑥 by using the following property of symmetric matrices: 𝑎=𝑎𝑖,𝑗.forall

For a 2×2 matrix, we only need to verify that 𝑎=𝑎. We can see that in the given matrix: 𝑎=5𝑥3,𝑎=43.

Thus, setting 𝑎=𝑎 leads to the same equation that we found in the example.

Let us now consider an example where we consider a skew-symmetric matrix.

Example 5: Finding the Unknown Elements That Make a Given Matrix Skew Symmetric

Given that the matrix 𝐵=02𝑥63𝑧+1403𝑧3𝑦+6𝑥120 is skew symmetric, find the value of 𝑥+𝑦+𝑧.

Answer

Recall that, in order for a matrix to be skew symmetric, it must be square and it must satisfy the condition 𝐵=𝐵, where 𝐵 is the transpose of 𝐵. As the number of rows and the number of columns of 𝐵 are both equal to 3, this is indeed a square matrix. By applying the transpose to 𝐵 and equating it to itself, we can hopefully find what values of 𝑥, 𝑦, and 𝑧 satisfy the second condition.

Let us start by calculating 𝐵. Since 𝐵 is of order 3×3, the order of 𝐵 will also be 3×3. To find the entries of 𝐵, we can rewrite the rows of 𝐵 as columns of 𝐵 as follows:

Thus, the transpose is 𝐵=0𝑧+143𝑦+6𝑥2𝑥012633𝑧0.

We can now write 𝐵=𝐵 using the negative of this transposed matrix and the original matrix: 02𝑥63𝑧+1403𝑧3𝑦+6𝑥120=0𝑧143𝑦6𝑥2𝑥012633𝑧0.

In order for this matrix equation to be satisfied, the corresponding entries must be equal. We, first of all, note that on both sides of the equation, the diagonal entries are zero (which is a necessary condition for a matrix to be skew symmetric). For the off-diagonal entries, we highlight where they must be equal:

This results in six equations, although in the cases where we have used the same highlight color, the equations are equivalent. For instance, the green entries in positions 𝑏 and 𝑏 give us the following equivalent pair of equations: 𝑧+14=2𝑥2𝑥=𝑧14.

Thus, we have three unique equations: 𝑧+14=2𝑥,3𝑦+6𝑥=63,12=3𝑧.

To calculate 𝑥+𝑦+𝑧, let us first solve these simultaneous equations to find 𝑥,𝑦, and 𝑧 individually. From the third equation, we have 12=3𝑧4=𝑧.

So, 𝑧=4. We can substitute this into the first equation, 𝑧+14=2𝑥, to get 4+14=2𝑥18=2𝑥9=𝑥.

Thus, 𝑥=9. Finally, we can substitute this into the second equation, 3𝑦+6𝑥=63, to get 3𝑦+6(9)=633𝑦+54=633𝑦=9𝑦=3.

All in all, this gives us 𝑥=9, 𝑦=3, and 𝑧=4. Finally, we can find 𝑥+𝑦+𝑧 by adding them together to get 𝑥+𝑦+𝑧=93+4=10.

In our final example, we will consider how the transpose interacts with other matrix operations.

Example 6: Investigating the Properties of Transpose Matrices

Given the matrices 𝑌=4227 and 𝑋=4417, does (𝑌𝑋)=𝑌𝑋?

Answer

We know that a superscript 𝑇 next to a matrix indicates the transpose of a matrix. The left-hand side of the given equation applies the transpose after the matrix subtraction, while the right-hand side applies the transpose to each matrix before the matrix subtraction. Hence, this example is asking whether we can interchange the order of the transpose and the subtraction.

Now, to check whether this equation is correct, we need to calculate each side of it and verify that the matrices are equal.

To compute the left-hand side of the equation, let us first find the difference 𝑌𝑋. Recall that we can take the difference of two matrices of the same order by taking the difference of the corresponding entries in the two matrices. This gives us 𝑌𝑋=42274417=8230.

Then, we can apply the transpose to find the matrix (𝑌𝑋). Recall that the transpose of an 𝑚×𝑛 matrix is an 𝑛×𝑚 matrix. Since 𝑌𝑋 is a 2×2 matrix, its transpose must have the same order.

We also recall that we can find the transpose of a matrix by swapping its rows with its columns. We can take each row of matrix 𝑌𝑋 and place each as the corresponding column as follows:

So, we have (𝑌𝑋)=8320.

Now, for the right-hand side, we need to calculate 𝑌𝑋. Let us begin by finding the transpose of 𝑌 and 𝑋 separately. Let us first consider 𝑌: 𝑌=4227.

We note that 𝑌 is a symmetric matrix, since the values on either side of the diagonal (𝑎 and 𝑎) are equal. Thus, the transpose is 𝑌=4227.

Next, let us consider 𝑋: 𝑋=4417.

This is not a symmetric matrix, so we will take the transpose by swapping its rows with its columns:

Thus, we have 𝑋=4147.

Finally, we can calculate 𝑌𝑋 using matrix subtraction as follows: 𝑌𝑋=42274147=8320.

As we can see, this is equal to the matrix we calculated for (𝑌𝑋). Thus, we can conclude that (𝑌𝑋)=𝑌𝑋.

We note that the result of the example above is not coincidental. For general matrices 𝐴 and 𝐵, it holds true, and it also extends to matrices under addition. We call this property distributivity.

Property: Distributivity of Matrix Transposition

Let 𝐴 and 𝐵 be two 𝑚×𝑛 matrices. Therefore, we have (𝐴+𝐵)=𝐴+𝐵,(𝐴𝐵)=𝐴𝐵.

In this explainer, we have discussed the matrix transpose and some of its interesting properties. Let us summarize the key points we have learned.

Key Points

  • If a matrix has order 𝑚×𝑛, then the transpose of the matrix has order 𝑛×𝑚.
  • If 𝐴=𝑎, then the transpose matrix is defined by 𝐴=𝑎.
  • We can transpose the entries of a matrix by writing its rows as columns.
  • A square matrix 𝐴 is symmetric if 𝐴=𝐴. Additionally, a square matrix 𝐴=𝑎 is symmetric if and only if 𝑎=𝑎𝑖,𝑗.forall
  • A square matrix 𝐴 is skew symmetric if 𝐴=𝐴. Similarly, a square matrix 𝐴=𝑎 is skew symmetric if and only if 𝑎=𝑎𝑖,𝑗.forall
  • Let 𝐴 and 𝐵 be two 𝑚×𝑛 matrices. Therefore, we have (𝐴+𝐵)=𝐴+𝐵,(𝐴𝐵)=𝐴𝐵.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy