Matrix Definition and Types

Understanding matrices, their notation, and different matrix types

What is a Matrix?

A matrix (plural: matrices) is a rectangular arrangement of mathematical objects—typically numbers—organized in rows and columns. Matrices are fundamental tools in linear algebra and have applications in physics, engineering, computer science, and many other fields.

Matrices allow us to organize and perform calculations on sets of numbers in a systematic way. Common operations include addition, subtraction, multiplication, and finding determinants.

Key Insight:

Matrices provide a compact and organized way to represent linear equations, transformations, and systems of equations.

Matrix Notation and Terminology

Dimensions and Size

Matrix Dimensions:

A matrix with \(p\) rows and \(q\) columns is called a \(p \times q\) matrix.

The pair \((p, q)\) completely describes the size and shape of a matrix.

Element Notation

Matrix Elements:

Individual elements in a matrix are denoted by \(a_{ij}\), where:

  • \(i\) is the row index (first subscript)
  • \(j\) is the column index (second subscript)

Example: 2×3 Matrix

A Simple 2×3 Matrix
\(\displaystyle A = \begin{bmatrix}1 & 2 & 3 \\ 4 & 5 & 6\end{bmatrix}\)

Properties:

  • 2 rows and 3 columns (2×3 matrix)
  • Element \(a_{1,1} = 1\), \(a_{1,2} = 2\), \(a_{1,3} = 3\)
  • Element \(a_{2,1} = 4\), \(a_{2,2} = 5\), \(a_{2,3} = 6\)

Square Matrices

Square Matrix Definition:

A square matrix has the same number of rows and columns, i.e., a \(p \times p\) matrix.

Square matrices have special properties and are central to many matrix operations, such as finding determinants and inverse matrices.

A 3×3 Square Matrix
\(\displaystyle A = \begin{bmatrix}a & b & c \\ d & e & f \\ g & h & i\end{bmatrix}\)

Main diagonal: Elements \(a, e, i\) (from top-left to bottom-right)

Special Types of Matrices

Diagonal Matrix

Diagonal Matrix:

A square matrix where all non-diagonal elements are zero. Only elements on the main diagonal are non-zero.

Example Diagonal Matrix
\(\displaystyle D = \begin{bmatrix}1 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 3\end{bmatrix}\)

Identity Matrix (Unit Matrix)

Identity Matrix:

A square matrix where all diagonal elements are 1 and all other elements are 0. Denoted as \(I\) or \(I_n\).

The identity matrix acts as the multiplicative identity in matrix multiplication: \(A \cdot I = A\)

Example Identity Matrix (3×3)
\(\displaystyle I_3 = \begin{bmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1\end{bmatrix}\)

Zero Matrix (Null Matrix)

Zero Matrix:

A matrix where all elements are zero. Denoted as \(O\) or \(0_{m \times n}\).

Examples of Zero Matrices

3×3 Zero Matrix:

\(\displaystyle 0_{3,3} = \begin{bmatrix}0 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0\end{bmatrix}\)

2×3 Zero Matrix:

\(\displaystyle 0_{2,3} = \begin{bmatrix}0 & 0 & 0 \\ 0 & 0 & 0\end{bmatrix}\)

Upper Triangular Matrix

Upper Triangular Matrix:

A square matrix where all elements below the main diagonal are zero.

Example Upper Triangular Matrix
\(\displaystyle U = \begin{bmatrix}1 & 2 & 6.5 \\ 0 & 4 & 8 \\ 0 & 0 & 10\end{bmatrix}\)

Pattern: Non-zero values can appear on and above the diagonal; all below are zero.

Lower Triangular Matrix

Lower Triangular Matrix:

A square matrix where all elements above the main diagonal are zero.

Example Lower Triangular Matrix
\(\displaystyle L = \begin{bmatrix}1 & 0 & 0 \\ 2 & 4 & 0 \\ 3 & 6 & 8\end{bmatrix}\)

Pattern: Non-zero values can appear on and below the diagonal; all above are zero.

Vectors and Transpose

Row and Column Vectors

Vector Definition:

A vector is a matrix with either one row or one column:

  • Column Vector: A \(p \times 1\) matrix (p rows, 1 column)
  • Row Vector: A \(1 \times q\) matrix (1 row, q columns)
Vector Examples

Column Vector (3×1):

\(\displaystyle \mathbf{v} = \begin{bmatrix}1 \\ 2 \\ 3\end{bmatrix}\)

Row Vector (1×4):

\(\displaystyle \mathbf{w} = \begin{bmatrix}4 & 5 & 6 & 7\end{bmatrix}\)

Matrix Transpose

Transpose Definition:

The transpose of a matrix \(A\), denoted \(A^T\) or \(A'\), is formed by swapping rows and columns. The \(i\)th row becomes the \(i\)th column.

Transpose Example

Original Matrix (2×3):

\(\displaystyle A = \begin{bmatrix}1 & 2 & 3 \\ 4 & 5 & 6\end{bmatrix}\)

Transposed Matrix (3×2):

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

Properties:

  • Row 1 of \(A\) becomes Column 1 of \(A^T\)
  • Row 2 of \(A\) becomes Column 2 of \(A^T\)
  • A \(p \times q\) matrix becomes a \(q \times p\) matrix when transposed

Matrix Types Summary

Matrix Type Dimensions Key Characteristic Example
Square \(p \times p\) Equal rows and columns 3×3 matrix
Diagonal \(p \times p\) Non-zero only on main diagonal \(\text{diag}(1,2,3)\)
Identity \(p \times p\) Diagonal elements = 1, others = 0 \(I_3\)
Zero \(p \times q\) All elements are zero \(0_{3,2}\)
Upper Triangular \(p \times p\) All elements below diagonal = 0 Upper matrix
Lower Triangular \(p \times p\) All elements above diagonal = 0 Lower matrix
Row Vector \(1 \times q\) Single row, multiple columns \([1, 2, 3]\)
Column Vector \(p \times 1\) Multiple rows, single column \(\begin{bmatrix}1\\2\\3\end{bmatrix}\)

Key Points to Remember

  • A matrix is a rectangular array of elements organized in rows and columns
  • Matrix dimensions are denoted as \(p \times q\) (p rows, q columns)
  • Elements are indexed as \(a_{ij}\) where \(i\) = row, \(j\) = column
  • Square matrices have equal numbers of rows and columns
  • The main diagonal contains elements \(a_{ii}\)
  • Identity matrix \(I\) has 1s on the diagonal, 0s elsewhere
  • Zero matrix has all elements equal to zero
  • Transposing swaps rows and columns: \((A^T)^T = A\)
  • Vectors are special matrices with either 1 row or 1 column






Is this page helpful?            
Thank you for your feedback!

Sorry about that

How can we improve it?