A primer on linear algebra

Fundamentals in Matrix Algebra

Matrix algebra is a branch of algebra that deals with matrices, which are rectangular arrays of numbers or symbols. Matrices are used in various areas of mathematics, science, and engineering, especially in linear algebra.

  1. Basics of Matrices
    • Definition and Elements of a Matrix
    • Matrix Operations
    • Matrix Transpose
    • Zero Matrix and Identity Matrix
  2. Multiplication of Matrices
  3. Determinant of a Matrix
  4. Inverse of a Matrix
  5. Rank of a Matrix
  6. Systems of Linear Equations
    • Solution of Systems of Linear Equations
    • Use of Inverse in Systems of Linear Equations
  7. Eigenvalues and Eigenvectors of a Matrix
  8. Orthogonal and Unitary Matrices
  9. Matrix Decomposition
  10. Matrix Diagonalization
  11. Applications of Matrices
    • Applications in Computer Graphics
    • Applications in Network Theory
  12. Vector Spaces

Matrix Notation

A matrix is typically denoted by an uppercase letter, such as A, and its elements are enclosed in square brackets. For example,

A=[a11a12a1na21a22a2nam1am2amn]

Where A is an m×n matrix with aij as its element in the i-th row and j-th column.

Matrix Operations

Addition and Subtraction

Matrices of the same dimensions can be added or subtracted element-wise. For example,

A+B=[a11+b11a12+b12a1n+b1na21+b21a22+b22a2n+b2nam1+bm1am2+bm2amn+bmn]

AB=[a11b11a12b12a1nb1na21b21a22b22a2nb2nam1bm1am2bm2amnbmn]

Scalar Multiplication

A matrix can be multiplied by a scalar, which multiplies each element of the matrix by the scalar value. For example,

αA=[αa11αa12αa1nαa21αa22αa2nαam1αam2αamn]

Where α is a scalar.

Matrix Multiplication

Matrix multiplication is more complex than addition or scalar multiplication. To multiply two matrices together, the number of columns in the first matrix must equal the number of rows in the second matrix.

Given two matrices A and B with dimensions m×n and n×p respectively, the resulting matrix C will have dimensions m×p.

The element at position (i,j) in C is calculated by multiplying the i-th row of A with the j-th column of B and summing the products. Mathematically, the matrix multiplication can be represented as:

C=AB

Cij=ai1b1j+ai2b2j++ainbnj=k=1naikbkj

Properties of Matrix Algebra

Matrix algebra obeys several properties, similar to real number algebra. These properties include:

Rule Example
Associativity (AB)C=A(BC)
Distributivity A(B+C)=AB+AC
Scalar Multiplication α(A+B)=αA+αB 
Identity Matrix AI=IA=A
Zero Matrix A0=0A=0 

These properties play an important role in solving equations, performing transformations, and solving systems of linear equations using matrix algebra.

Matrix Transposition

Matrix transposition is a special operation in linear algebra that flips the rows and columns of a matrix over its main diagonal, which runs down from the top-left to bottom-right. A transposition is represented with a superscript “top” symbol or “’”.

If we have a matrix A, its transpose is represented as A. Formally, if a matrix A is of size m×n (m rows, n columns), then the transpose of matrix A, denoted by A or just A, is of size n×m (n rows, m columns). For each i and j, the elements of matrix A are given by:

(A)ij=Aji

Simply put, what was in the j-th row and i-th column of the original matrix, will be in the i-th row and j-th column of the transposed matrix. Let’s see how this works: Consider the matrix A=[abcdef]. The transpose matrix A is given by:

A=[acebdf]

Transpose Properties

Here are some important properties of matrix transposition:

Property Equation
Transpose of a Transpose (A)=A
Transpose of a Sum (A+B)=A+B
Transpose of a Difference (AB)=AB
Transpose of a Scalar Multiplication (cA)=c(A)
Transpose of a Product (AB)=BA

The first four properties are straightforward. The last property, transpose of a product, is a bit more complex because when taking the transpose of a product of matrices, the order of the matrices is reversed in the product. This property is not intuitive and needs to proven with matrix algebra.

Also, remember that matrix multiplication is not commutative (ABBA generally); hence the reversal in the order of multiplication is very important.