Tutorials › Linear Algebra › Symmetric Matrices And Their Entries

Matrix Operations and Algebra · Tutorial 74 of 1000

Symmetric Matrices And Their Entries

Identify symmetry by comparing entries across the main diagonal, and construct symmetric matrices by choosing and matching their entries.

Beginner 8 min read

What You'll Learn

  • Define a symmetric matrix and explain why it must be square.
  • Translate the transpose equation into an entry-by-entry test.
  • Test symmetric and nonsymmetric matrices of different sizes.
  • Construct a symmetric matrix by copying entries across the main diagonal.
  • Count the independent entries that specify a symmetric matrix.
  • Avoid confusing symmetry with matching diagonal entries alone.

What Makes a Matrix Symmetric?

Some square matrices have a built-in reflection: an entry above the main diagonal matches the entry the same distance below it. This pattern is called symmetry. It is compactly expressed using the transpose, but it can also be checked one entry at a time. Both descriptions are useful: the transpose equation gives a concise test, while the entry condition makes it straightforward to recognize and construct examples.

In this tutorial, matrices have real entries. If \(\mathbf{A}\) is an \(m\times n\) matrix, its transpose \(\mathbf{A}^{\top}\) is the \(n\times m\) matrix whose entry in row \(i\), column \(j\) is the entry \(a_{ji}\) of \(\mathbf{A}\). Thus, transposition interchanges the row and column positions of each entry.

Definition: A real matrix \(\mathbf{A}\) is symmetric if it is square and \(\mathbf{A}^{\top}=\mathbf{A}\). A matrix that is not symmetric is called nonsymmetric.

The square requirement is part of the definition. An \(m\times n\) matrix has transpose of size \(n\times m\), so an equality between the matrix and its transpose is possible only if the two sizes agree. For a square matrix, symmetry can be checked by comparing each entry with its reflected partner: \(a_{ij}\) must equal \(a_{ji}\). Entries on the main diagonal are their own partners and impose no comparison with a different entry.

Theorem (Entry test for symmetry): A real \(n\times n\) matrix \(\mathbf{A}\) is symmetric if and only if \(a_{ij}=a_{ji}\) for every pair of indices \(i,j\) with \(1\le i,j\le n\).

Proof. By the definition of transpose, the entry in row \(i\), column \(j\) of \(\mathbf{A}^{\top}\) is \(a_{ji}\). Two matrices of the same size are equal exactly when their corresponding entries are equal. Therefore, \(\mathbf{A}^{\top}=\mathbf{A}\) holds exactly when \(a_{ji}=a_{ij}\) for every \(i,j\). This proves both directions. \(\square\)

For \(i=j\), the condition says \(a_{ii}=a_{ii}\), which is always true. The meaningful checks are the pairs with \(i\ne j\). One need not compare every entry separately: checking each pair on opposite sides of the diagonal is sufficient.

Testing Symmetry in Small Matrices

Worked Example: A Symmetric Matrix of Order Two

Determine whether \(\mathbf{A}=\begin{bmatrix}3&-2\\-2&5\end{bmatrix}\) is symmetric.

The matrix is square. Its transpose is found by exchanging the off-diagonal entries:

$$ \mathbf{A}^{\top} = \begin{bmatrix}3&-2\\-2&5\end{bmatrix} = \mathbf{A}. $$

Equivalently, the only off-diagonal comparison is \(a_{12}=-2\) and \(a_{21}=-2\), and these are equal. The diagonal entries \(3\) and \(5\) need no matching partner distinct from themselves. Therefore, \(\mathbf{A}\) is symmetric.

Check: transposing the displayed matrix leaves all four entries in their original positions, so the transpose equation is satisfied.

Worked Example: Checking Every Pair in a Three-by-Three Matrix

Test whether \(\mathbf{B}=\begin{bmatrix}1&4&-1\\4&0&6\\-1&5&2\end{bmatrix}\) is symmetric.

The matrix is square. Compare entries in reflected positions. First, \(b_{12}=4=b_{21}\). Next, \(b_{13}=-1=b_{31}\). Finally, \(b_{23}=6\), but \(b_{32}=5\). This last pair does not match, so the entry test shows that \(\mathbf{B}\) is not symmetric. The transpose confirms the same mismatch:

$$ \mathbf{B}^{\top} = \begin{bmatrix}1&4&-1\\4&0&5\\-1&6&2\end{bmatrix} \ne \begin{bmatrix}1&4&-1\\4&0&6\\-1&5&2\end{bmatrix} = \mathbf{B}. $$

Check: the two matrices differ in positions \((2,3)\) and \((3,2)\): those entries are \(5\) and \(6\) in \(\mathbf{B}^{\top}\), and \(6\) and \(5\) in \(\mathbf{B}\). Since corresponding entries are not all equal, the matrices are unequal.

A single unequal pair is enough to rule out symmetry. When testing a matrix, it is efficient to stop as soon as such a pair appears. To prove that a matrix is symmetric, however, all off-diagonal pairs must match, or one must verify the full transpose equation.

Constructing Symmetric Matrices

The entry test gives a direct construction method. Choose the entries on the main diagonal and on one side of it; then copy each chosen off-diagonal entry into the reflected position on the other side. Either the upper or the lower triangle may be chosen first. The resulting matrix is symmetric because each reflected pair has equal entries.

Theorem (Independent entries of a symmetric matrix): A real symmetric \(n\times n\) matrix is determined by its \(n\) diagonal entries and its entries strictly above the main diagonal. There are \(n(n+1)/2\) such entries.

Proof. For each pair \(i<j\), the entry test requires \(a_{ji}=a_{ij}\). Thus, once the entry above the diagonal, \(a_{ij}\), is chosen, the corresponding entry below the diagonal is fixed. Each diagonal entry \(a_{ii}\) may be chosen independently because its symmetry condition compares it only with itself. There are \(n\) diagonal positions. Above the diagonal, row \(i\) has \(n-i\) positions, so the number of positions strictly above it is \((n-1)+(n-2)+\cdots+1=n(n-1)/2\). The total number of determining entries is therefore \(n+n(n-1)/2=n(n+1)/2\). Conversely, assigning those entries and copying each one to its reflected position makes every pair equal, so it produces a symmetric matrix. \(\square\)

Worked Example: Constructing a Symmetric Matrix of Order Three

Construct a symmetric \(3\times3\) matrix with diagonal entries \(2,-1,4\), upper entries \(a_{12}=3\), \(a_{13}=0\), and \(a_{23}=-5\).

Copy each specified upper entry into its reflected lower position: \(a_{21}=a_{12}=3\), \(a_{31}=a_{13}=0\), and \(a_{32}=a_{23}=-5\). The diagonal entries remain as chosen. This gives

$$ \mathbf{C} = \begin{bmatrix} 2&3&0\\ 3&-1&-5\\ 0&-5&4 \end{bmatrix}. $$

To check the construction, transpose the matrix:

$$ \mathbf{C}^{\top} = \begin{bmatrix} 2&3&0\\ 3&-1&-5\\ 0&-5&4 \end{bmatrix} = \mathbf{C}. $$

The three off-diagonal comparisons are \(c_{12}=3=c_{21}\), \(c_{13}=0=c_{31}\), and \(c_{23}=-5=c_{32}\). Hence the constructed matrix is symmetric.

The theorem also explains the number of choices in this example: a symmetric \(3\times3\) matrix has \(3(3+1)/2=6\) determining entries. Here these are three diagonal entries and three entries above the diagonal. The other three entries are not additional choices; symmetry forces them to match.

Worked Example: Constructing a Symmetric Matrix of Order Four

Construct a symmetric \(4\times4\) matrix whose diagonal entries are \(1,2,3,4\), whose entries above the diagonal, read across the rows, are \(-1,0,2,5,-3,1\), and whose \((4,2)\)-entry is \(5\).

The specified entries above the diagonal are \(a_{12}=-1\), \(a_{13}=0\), \(a_{14}=2\), \(a_{23}=5\), \(a_{24}=-3\), and \(a_{34}=1\). But the additional requirement \(a_{42}=5\) conflicts with symmetry: the entry reflected across the diagonal from position \((4,2)\) is \((2,4)\), so symmetry requires \(a_{42}=a_{24}=-3\). Therefore, no symmetric matrix can meet all the stated conditions.

Keeping the diagonal and the six upper entries but removing the conflicting requirement gives the following symmetric matrix:

$$ \mathbf{D} = \begin{bmatrix} 1&-1&0&2\\ -1&2&5&-3\\ 0&5&3&1\\ 2&-3&1&4 \end{bmatrix}. $$

Check: its transpose is

$$ \mathbf{D}^{\top} = \begin{bmatrix} 1&-1&0&2\\ -1&2&5&-3\\ 0&5&3&1\\ 2&-3&1&4 \end{bmatrix} = \mathbf{D}. $$

In particular, \(d_{24}=-3=d_{42}\), not \(5=d_{42}\). The check confirms both that \(\mathbf{D}\) is symmetric and that it cannot satisfy the conflicting original condition. A symmetric \(4\times4\) matrix has \(4(5)/2=10\) determining entries: four diagonal entries and six entries above the diagonal.

How Symmetry Behaves Under Addition and Scaling

Symmetric matrices of the same size remain symmetric when added or multiplied by a real scalar. This follows directly from the entry condition, without needing any further matrix properties.

Theorem: If \(\mathbf{A}\) and \(\mathbf{B}\) are symmetric real \(n\times n\) matrices and \(c\in\mathbb{R}\), then \(\mathbf{A}+\mathbf{B}\) and \(c\mathbf{A}\) are symmetric.

Proof. Since \(\mathbf{A}\) and \(\mathbf{B}\) are symmetric, \(a_{ij}=a_{ji}\) and \(b_{ij}=b_{ji}\) for all \(i,j\). The \((i,j)\)-entry of \(\mathbf{A}+\mathbf{B}\) is \(a_{ij}+b_{ij}\), while its \((j,i)\)-entry is \(a_{ji}+b_{ji}\). These are equal because \(a_{ij}=a_{ji}\) and \(b_{ij}=b_{ji}\). Thus \(\mathbf{A}+\mathbf{B}\) is symmetric. The \((i,j)\)-entry of \(c\mathbf{A}\) is \(ca_{ij}\), and the \((j,i)\)-entry is \(ca_{ji}\). They are equal because \(a_{ij}=a_{ji}\), so \(c\mathbf{A}\) is symmetric. This includes \(c=0\), when \(c\mathbf{A}\) is the zero matrix, whose entries all match their reflected entries. \(\square\)

The requirement that the two matrices have the same size matters for addition: the sum is defined only when their dimensions agree. The result concerns addition and scalar multiplication; symmetry should not be assumed automatically for other matrix operations.

Common Pitfall: Comparing the Wrong Entries

A frequent error is to compare entries that happen to be in the same row rather than entries reflected across the main diagonal. For example, consider \(\mathbf{E}=\begin{bmatrix}2&5\\1&3\end{bmatrix}\). A wrong check might compare \(e_{11}=2\) and \(e_{22}=3\), notice that they differ, and conclude that \(\mathbf{E}\) is not symmetric for that reason. The conclusion happens to be correct, but the calculation is not a valid test: symmetry does not require the two diagonal entries to match.

The relevant off-diagonal comparison is \(e_{12}=5\) against \(e_{21}=1\). Since \(5\ne1\), the matrix is nonsymmetric. Directly,

$$ \mathbf{E}^{\top} = \begin{bmatrix}2&1\\5&3\end{bmatrix} \ne \begin{bmatrix}2&5\\1&3\end{bmatrix} = \mathbf{E}. $$

The correction is to compare positions \((i,j)\) and \((j,i)\), not unrelated positions. In a \(2\times2\) matrix, this means checking the two off-diagonal entries; in a larger matrix, check every reflected pair. Diagonal entries may take any real values without violating symmetry.

Symmetry is therefore a precise entry pattern, not a requirement that a matrix look visually balanced in some other way. The transpose equation provides the definition, the entry test gives a practical method, and the construction rule shows exactly which entries can be chosen freely.

Check Your Understanding

For each question, use the transpose equation or the entry test, and justify the conclusion.

  1. Is \(\begin{bmatrix}0&-3\\-3&7\end{bmatrix}\) symmetric? State the off-diagonal comparison.
  2. Find one pair of entries that proves \(\begin{bmatrix}1&2&0\\2&4&-1\\0&3&5\end{bmatrix}\) is nonsymmetric.
  3. Construct a symmetric \(3\times3\) matrix with diagonal entries \(0,1,2\), and upper entries \(a_{12}=4\), \(a_{13}=-2\), and \(a_{23}=3\).
  4. How many entries determine a symmetric \(5\times5\) matrix? Separate the count into diagonal and strictly upper-diagonal entries.
  5. Can a symmetric \(2\times2\) matrix have unequal diagonal entries? Explain using the entry test.

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon