Matrix

A fundamental structure in linear algebra with applications across mathematics, physics, computer science, and engineering.

Definition

A matrix is a rectangular array of numbers, symbols, or expressions arranged in rows and columns. Matrices are fundamental objects in linear algebra and provide a compact way to represent and manipulate systems of linear equations, linear transformations, and geometric operations.

An m × n matrix has m rows and n columns. The entry in the i-th row and j-th column is denoted as aij or Aij.

General Form

A = [aij] = \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{bmatrix}

Where i = 1, 2, ..., m and j = 1, 2, ..., n.

Types of Matrices

  • Square Matrix: A matrix with equal number of rows and columns (n × n).
  • Diagonal Matrix: A square matrix where all off-diagonal entries are zero.
  • Identity Matrix (I): A diagonal matrix with all diagonal entries equal to 1.
  • Zero Matrix: A matrix where all entries are zero.
  • Symmetric Matrix: A square matrix where A = AT (equal to its transpose).
  • Upper Triangular Matrix: All entries below the main diagonal are zero.
  • Lower Triangular Matrix: All entries above the main diagonal are zero.

Matrix Operations

1. Matrix Addition

For two matrices A and B of the same dimensions:

(A + B)ij = Aij + Bij

2. Scalar Multiplication

(cA)ij = c · Aij

3. Matrix Multiplication

For A (m × n) and B (n × p), the product AB is an m × p matrix:

(AB)ij = Σk=1n Aik · Bkj

4. Matrix Transpose

(AT)ij = Aji

5. Matrix Inverse

For a square matrix A, the inverse A-1 satisfies:

AA-1 = A-1A = I

Determinant

The determinant is a scalar value that can be computed from a square matrix. For a 2×2 matrix:

det(A) = |A| = \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

For a 3×3 matrix:

|A| = a(ei - fh) - b(di - fg) + c(dh - eg)

Examples

Example 1: Matrix Addition

Given: A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, B = \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix}

Solution: A + B = \begin{bmatrix} 1+5 & 2+6 \\ 3+7 & 4+8 \end{bmatrix} = \begin{bmatrix} 6 & 8 \\ 10 & 12 \end{bmatrix}

Example 2: Matrix Multiplication

Given: A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, B = \begin{bmatrix} 2 & 0 \\ 1 & 3 \end{bmatrix}

Solution: AB = \begin{bmatrix} (1·2+2·1) & (1·0+2·3) \\ (3·2+4·1) & (3·0+4·3) \end{bmatrix} = \begin{bmatrix} 4 & 6 \\ 10 & 12 \end{bmatrix}

Example 3: Finding the Inverse

Given: A = \begin{bmatrix} 4 & 7 \\ 2 & 6 \end{bmatrix}

Solution: det(A) = 4(6) - 7(2) = 24 - 14 = 10
A-1 = (1/10) \begin{bmatrix} 6 & -7 \\ -2 & 4 \end{bmatrix} = \begin{bmatrix} 0.6 & -0.7 \\ -0.2 & 0.4 \end{bmatrix}

Applications

  • Systems of Linear Equations: Ax = b can be solved using matrix methods like Gaussian elimination or Cramer's rule.
  • Computer Graphics: Matrices represent transformations (rotation, scaling, translation) in 2D and 3D graphics.
  • Physics: Quantum mechanics uses matrices to represent physical quantities and transformations.
  • Data Science: Matrices store and manipulate datasets for machine learning algorithms.
  • Economics: Input-output models use matrices to analyze economic systems.
  • Engineering: Structural analysis and signal processing rely heavily on matrix computations.

Properties

  • Associative: (AB)C = A(BC)
  • Distributive: A(B + C) = AB + AC
  • Not Commutative: AB ≠ BA (in general)
  • Transpose of Product: (AB)T = BTAT
  • Inverse of Product: (AB)-1 = B-1A-1