Types of matrices

0
Types of Matrices – Linear Algebra

Types of Matrices

😊 Hello students! In our journey through linear algebra, matrices come in many β€œflavors” β€” each with special structure and purpose. Understanding these types is crucial for solving systems, diagonalizing transformations, and even understanding quantum mechanics! Let’s explore them one by one β€” with care, depth, and clarity.

1. Square Matrix

A matrix is called a square matrix if the number of rows equals the number of columns. That is, an \( n \times n \) matrix is square.

Examples:

\[ A = \begin{bmatrix} 2 & -1 \\ 3 & 4 \end{bmatrix} \quad (\text{2Γ—2 square}), \quad B = \begin{bmatrix} 1 & 0 & 2 \\ -1 & 3 & 5 \\ 0 & 2 & -2 \end{bmatrix} \quad (\text{3Γ—3 square}) \]

πŸ’‘ Why it matters: Only square matrices can have determinants, inverses, eigenvalues, and concepts like trace.

2. Diagonal Matrix

A square matrix \( D = (d_{ij}) \) is called diagonal if all off-diagonal entries are zero: \[ d_{ij} = 0 \quad \text{whenever } i \ne j. \]

\[ D = \begin{bmatrix} 5 & 0 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & 3 \end{bmatrix} \]

Notation: We often write \( D = \mathrm{diag}(5, -2, 3) \).

Properties:

  • Multiplying diagonal matrices is trivial: just multiply corresponding diagonal entries.
  • The determinant is the product of diagonal entries: \( \det(D) = 5 \cdot (-2) \cdot 3 = -30 \).

3. Scalar Matrix

A diagonal matrix in which all diagonal entries are equal is called a scalar matrix. It has the form \( kI \), where \( I \) is the identity matrix and \( k \in \mathbb{R} \).

\[ S = \begin{bmatrix} 4 & 0 & 0 \\ 0 & 4 & 0 \\ 0 & 0 & 4 \end{bmatrix} = 4I_3 \]
πŸ€” Think: A scalar matrix commutes with **every** matrix of the same size β€” a rare and powerful property!

4. Identity Matrix

The identity matrix \( I_n \) is a scalar matrix where the scalar is 1. It satisfies \( AI_n = I_nA = A \) for any \( n \times n \) matrix \( A \).

\[ I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}, \quad I_4 = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix} \]

πŸ’‘ It’s the β€œ1” of matrix multiplication β€” the multiplicative identity.

5. Triangular Matrices

A square matrix is:

  • Upper triangular if all entries below the main diagonal are zero (\( a_{ij} = 0 \) for \( i > j \)).
  • Lower triangular if all entries above the main diagonal are zero (\( a_{ij} = 0 \) for \( i < j \)).

Upper triangular:

\[ U = \begin{bmatrix} 2 & 1 & -1 \\ 0 & 3 & 4 \\ 0 & 0 & 5 \end{bmatrix} \]

Lower triangular:

\[ L = \begin{bmatrix} 1 & 0 & 0 \\ -2 & 4 & 0 \\ 3 & 1 & 2 \end{bmatrix} \]

Key Fact: The determinant of a triangular matrix is the product of its diagonal entries.

For \( U \) above: \( \det(U) = 2 \cdot 3 \cdot 5 = 30 \).

6. Symmetric Matrix

A square matrix \( A \) is symmetric if it equals its transpose: \[ A^T = A \quad \text{or equivalently} \quad a_{ij} = a_{ji} \text{ for all } i, j. \]

\[ A = \begin{bmatrix} 1 & -2 & 4 \\ -2 & 3 & 0 \\ 4 & 0 & 5 \end{bmatrix} = A^T \]

πŸ’‘ Symmetric matrices arise naturally in quadratic forms, covariance matrices in statistics, and energy functions in physics.

7. Skew-Symmetric (Anti-Symmetric) Matrix

A square matrix \( A \) is skew-symmetric if: \[ A^T = -A \quad \text{or} \quad a_{ij} = -a_{ji} \text{ for all } i, j. \] In particular, all diagonal entries must be zero (since \( a_{ii} = -a_{ii} \Rightarrow a_{ii} = 0 \)).

\[ A = \begin{bmatrix} 0 & 2 & -1 \\ -2 & 0 & 3 \\ 1 & -3 & 0 \end{bmatrix} \quad \text{Check: } A^T = -A \]
😠 Common mistake: Forgetting that diagonal entries **must be zero**! If you see a non-zero on the diagonal, it’s **not** skew-symmetric.

Summary Table

Type Condition Example Size
Square \( m = n \) \( 3 \times 3 \)
Diagonal \( a_{ij} = 0 \) if \( i \ne j \) \( \mathrm{diag}(1,2,3) \)
Scalar \( kI \) \( 5I_2 \)
Identity \( I \), diagonal = 1 \( I_4 \)
Upper Triangular \( a_{ij} = 0 \) if \( i > j \) See above \( U \)
Lower Triangular \( a_{ij} = 0 \) if \( i < j \) See above \( L \)
Symmetric \( A^T = A \) See symmetric example
Skew-Symmetric \( A^T = -A \), diagonal = 0 See skew example

Self-Check: Are You Ready?

  1. Can a non-square matrix be symmetric?
  2. Is the zero matrix both symmetric and skew-symmetric?
  3. What is the transpose of a diagonal matrix?
  4. If \( A \) is symmetric and \( B \) is skew-symmetric, what is \( A + B \)?

Answers: (1) No, (2) Yes!, (3) Itself, (4) Neither β€” unless one is zero.

Types of Matrices – Practice Questions & Full Solutions

Types of Matrices – Questions & Full Solutions

😊 Hello students! Below are all the questions from both documents β€” plus extra challenging ones β€” related to types of matrices. Each includes a complete, step-by-step solution. Use this to test and deepen your understanding!

Q1. Classify each of the following matrices:

\[ A = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}, \quad B = \begin{bmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 2 \end{bmatrix}, \quad C = \begin{bmatrix} 3 & 1 & 0 \\ 0 & -1 & 2 \\ 0 & 0 & 4 \end{bmatrix}, \quad D = \begin{bmatrix} 0 & 2 & -1 \\ -2 & 0 & 3 \\ 1 & -3 & 0 \end{bmatrix} \]

Solution:

  • A is the identity matrix \( I_3 \) β€” diagonal entries = 1, off-diagonal = 0.
  • B is a scalar matrix β€” all diagonal entries equal (2), off-diagonal = 0.
  • C is upper triangular β€” all entries below main diagonal are 0.
  • D is skew-symmetric β€” note \( D^T = -D \), and diagonal = 0.

Q2. Determine whether the matrix \[ M = \begin{bmatrix} 4 & -2 & 1 \\ -2 & 3 & 5 \\ 1 & 5 & 0 \end{bmatrix} \] is symmetric, skew-symmetric, or neither.

Solution:

Compute transpose:

\[ M^T = \begin{bmatrix} 4 & -2 & 1 \\ -2 & 3 & 5 \\ 1 & 5 & 0 \end{bmatrix} = M \]

Since \( M^T = M \), it is symmetric.

Q3. Construct a \( 3 \times 3 \) non-zero skew-symmetric matrix.

Solution:

Recall: \( A^T = -A \) and diagonal must be 0.

Example:

\[ A = \begin{bmatrix} 0 & 1 & -2 \\ -1 & 0 & 3 \\ 2 & -3 & 0 \end{bmatrix} \]

Check: \( A^T = -A \) βœ“

Q4. Is every identity matrix a scalar matrix? Is every scalar matrix an identity matrix?

Solution:

  • βœ… Yes β€” an identity matrix is a scalar matrix with scalar = 1.
  • ❌ No β€” a scalar matrix like \( 5I \) is not an identity matrix unless the scalar is 1.

Q5. Give an example of a diagonal matrix that is not scalar.

Solution:

\[ D = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 3 \end{bmatrix} \]

Diagonal βœ“, but entries not all equal β†’ not scalar.

Q6. (Challenging) Prove: If a matrix is both upper triangular and symmetric, then it must be diagonal.

Solution:

Let \( A \) be upper triangular β†’ \( a_{ij} = 0 \) for \( i > j \).
Also, \( A \) symmetric β†’ \( a_{ij} = a_{ji} \) for all \( i, j \).

For \( i < j \): since \( A \) is upper triangular, \( a_{ij} \) may be non-zero.
But by symmetry, \( a_{ji} = a_{ij} \). However, \( j > i \Rightarrow j > i \), so in lower part β†’ but upper triangular forces \( a_{ji} = 0 \) when \( j > i \) (i.e., \( i < j \)).

Thus \( a_{ij} = a_{ji} = 0 \) for all \( i \ne j \).

βœ… Hence, all off-diagonal entries are zero β†’ \( A \) is diagonal.

Q7. Show that the only diagonal skew-symmetric matrix is the zero matrix.

Solution:

Let \( D = \mathrm{diag}(d_1, d_2, \dots, d_n) \) be skew-symmetric.
Then \( D^T = D = -D \) β‡’ \( D = -D \) β‡’ \( 2D = 0 \) β‡’ \( D = 0 \).

Alternatively: skew-symmetric β‡’ diagonal entries satisfy \( d_{ii} = -d_{ii} \) β‡’ \( d_{ii} = 0 \).

βœ… So \( D = O \).

Q8. Can a non-zero matrix be both symmetric and skew-symmetric?

Solution:

Suppose \( A^T = A \) and \( A^T = -A \). Then \( A = -A \) β‡’ \( 2A = 0 \) β‡’ \( A = 0 \).

βœ… So only the **zero matrix** satisfies both.

Q9. Show that any square matrix \( A \) can be written as \( A = S + K \), where \( S \) is symmetric and \( K \) is skew-symmetric.

Solution:

Define:

\[ S = \frac{1}{2}(A + A^T), \quad K = \frac{1}{2}(A – A^T) \]

Then:

  • \( S^T = \frac{1}{2}(A^T + A) = S \) β†’ symmetric
  • \( K^T = \frac{1}{2}(A^T – A) = -K \) β†’ skew-symmetric
  • \( S + K = \frac{1}{2}(A + A^T + A – A^T) = A \)

βœ… Decomposition always exists and is unique.

Q10. Decompose \[ A = \begin{bmatrix} 2 & 3 \\ 1 & 4 \end{bmatrix} \] into symmetric and skew-symmetric parts.

Solution:

Compute \( A^T = \begin{bmatrix} 2 & 1 \\ 3 & 4 \end{bmatrix} \)

Symmetric part:

\[ S = \frac{1}{2}(A + A^T) = \frac{1}{2} \begin{bmatrix} 4 & 4 \\ 4 & 8 \end{bmatrix} = \begin{bmatrix} 2 & 2 \\ 2 & 4 \end{bmatrix} \]

Skew-symmetric part:

\[ K = \frac{1}{2}(A – A^T) = \frac{1}{2} \begin{bmatrix} 0 & 2 \\ -2 & 0 \end{bmatrix} = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} \]

Check: \( S + K = A \) βœ“, \( S^T = S \), \( K^T = -K \) βœ“

Q11. Is an upper triangular matrix with all diagonal entries equal to 1 necessarily the identity matrix?

Solution:

❌ No! Example:

\[ U = \begin{bmatrix} 1 & 5 \\ 0 & 1 \end{bmatrix} \]

Upper triangular, diagonal = 1, but not identity (off-diagonal β‰  0).

Q12. To which types does the zero matrix belong?

Solution:

The \( n \times n \) zero matrix \( O \) is:

  • Square βœ“
  • Diagonal βœ“ (off-diagonal = 0)
  • Scalar βœ“ (all diagonal = 0, so \( 0 \cdot I \))
  • Both symmetric and skew-symmetric βœ“
  • Both upper and lower triangular βœ“

βœ… It belongs to **all** these types (for square case).

πŸ“Œ Key Takeaways:

  • Identity β‡’ scalar β‡’ diagonal β‡’ square
  • Triangular + symmetric β‡’ diagonal
  • Only zero matrix is both symmetric and skew-symmetric
  • Every square matrix = symmetric + skew-symmetric

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top