Definition
An m×n matrix is a rectangular array:
A=a11a21⋮am1a12a22⋮am2⋯⋯⋱⋯a1na2n⋮amn
Element aij is in row i, column j.
Basic Operations
Addition
For m×n matrices A and B:
(A+B)ij=aij+bij
Scalar Multiplication
(λA)ij=λaij
Matrix Multiplication
For A (m×p) and B (p×n):
(AB)ij=∑k=1paikbkj

Condition: Number of columns of A = number of rows of B.
Warning: Matrix multiplication is not commutative: AB=BA in general.
Transpose
AijT=Aji
Properties:
- (AT)T=A
- (A+B)T=AT+BT
- (AB)T=BTAT (reversed order)
Trace
The trace of a square n×n matrix:
Tr(A)=∑i=1naii
Properties:
- Tr(A+B)=Tr(A)+Tr(B)
- Tr(λA)=λTr(A)
- Tr(AB)=Tr(BA) (cyclic property)
Identity Matrix
In=10⋮001⋮0⋯⋯⋱⋯00⋮1
AI=IA=A for compatible matrices.
Special Types
| Type | Definition |
|---|
| Diagonal | aij=0 for i=j |
| Upper triangular | aij=0 for i>j |
| Lower triangular | aij=0 for i<j |
| Symmetric | AT=A |
| Antisymmetric | AT=−A |
| Orthogonal | ATA=I |
Complex Matrices
Complex Conjugate
(A∗)ij=aˉij
Hermitian Conjugate
A†=(AT)∗
Hermitian Matrix
A†=A
Hermitian matrices have real eigenvalues (important in quantum mechanics).
Representing Linear Maps
A matrix A (m×n) represents a linear map Rn→Rm:
y=Ax
where x∈Rn (column vector) and y∈Rm.
Example: Rotation Matrix
2D rotation by angle θ:
R(θ)=(cosθsinθ−sinθcosθ)
Properties:
- R(θ)R(ϕ)=R(θ+ϕ)
- R(θ)−1=R(−θ)
- det(R)=1
- Orthogonal: RTR=I
Why Matrices Matter
- Represent linear systems of equations compactly
- Encode transformations (rotations, scaling, reflections)
- Essential for computer graphics and physics simulations
- Foundation for quantum mechanics (operators)