Unit 1 — Matrices (8 Hours)
Matrices provide powerful tools for solving systems of equations and analyzing engineering problems. This unit covers transformations, rank, inverse, eigenstructures, and complex matrices with every essential formula.
1. What Are Matrices?
A matrix is a rectangular array of numbers, symbols, or expressions arranged in rows and columns.
If a matrix has rows and columns, it is of order :
Why Matrices Matter in Engineering
- Compact representation of linear systems
- Efficient computation of transformations (graphics, robotics, signal processing)
- Foundation for machine learning, control systems, and structural analysis
2. Elementary Transformations
2.1 Row and Column Transformations
Elementary Row Operations ( denotes row ):
| Operation | Notation |
|---|---|
| Interchange two rows | |
| Multiply a row by non-zero scalar |
Elementary Column Operations ( denotes column ):
| Operation | Notation |
|---|---|
| Interchange two columns | |
| Multiply a column by non-zero scalar |
2.2 Standard Forms
Any matrix of rank can be reduced by elementary operations to:
Row Echelon Form (REF):
- All non-zero rows are above any rows of all zeros
- The leading coefficient of a non-zero row is always strictly to the right of the leading coefficient of the row above it
Reduced Row Echelon Form (RREF):
- Satisfies REF conditions
- The leading entry in each non-zero row is
- Each leading is the only non-zero entry in its column
Normal Form:
where is the identity matrix of order .
2.3 Elementary Matrices
An elementary matrix is obtained by performing a single elementary row operation on .
If is obtained from by an elementary row operation, then applying that same operation to gives:
3. Inverse of a Matrix
3.1 Definition and Properties
A square matrix of order is invertible (non-singular) if there exists a matrix such that:
is denoted as .
Properties:
3.2 Finding Inverse Using Elementary Transformations
For a square matrix , augment it with :
Apply elementary row operations to transform . The right side simultaneously transforms to :
Condition: is invertible if and only if .
3.3 Inverse Using Adjugate
where is the transpose of the cofactor matrix:
is the minor (determinant of submatrix after removing row and column ).
4. Rank of a Matrix
4.1 Definition
The rank of a matrix , denoted or , is:
- The maximum number of linearly independent row vectors
- The maximum number of linearly independent column vectors
- The order of the highest non-zero minor
4.2 Finding Rank Using Elementary Transformations
Reduce to echelon form using elementary row operations. The rank equals the number of non-zero rows in the echelon form.
4.3 Rank Properties
5. Solution of System of Linear Equations
5.1 Matrix Representation
A system of linear equations in unknowns:
In matrix form:
where:
5.2 Homogeneous Systems ()
- Always consistent (trivial solution exists)
- Non-trivial solutions exist if and only if (for square )
- If , there are linearly independent solutions
5.3 Non-Homogeneous Systems (, )
Consistency Conditions (Rouché-Capelli Theorem):
The system is consistent if and only if:
where is the augmented matrix.
Nature of Solutions:
| Condition | Result |
|---|---|
| Unique solution | |
5.4 Solution Using Matrix Inverse
If is square and :
5.5 Cramer's Rule
For a system with equations and unknowns, if :
where is the matrix formed by replacing the -th column of with .
6. Characteristic Equation
6.1 Formation
For a square matrix of order , the characteristic equation is:
or equivalently:
Expanding this gives:
6.2 Characteristic Roots (Eigenvalues)
The roots of the characteristic equation are the eigenvalues of .
Properties of Eigenvalues:
- Sum of eigenvalues = trace of :
7. Cayley-Hamilton Theorem
7.1 Statement
Every square matrix satisfies its own characteristic equation.
If the characteristic equation of is:
Then:
7.2 Finding Higher Powers of Matrices
From Cayley-Hamilton:
This allows expressing any higher power () in terms of .
7.3 Finding Inverse Using Cayley-Hamilton
From the characteristic equation:
Multiply by (assuming ):
Solving for :
8. Linear Dependence and Independence of Vectors
8.1 Linear Combinations
A vector is a linear combination of vectors if:
for some scalars .
8.2 Linearly Dependent Vectors
Vectors are linearly dependent if there exist scalars , not all zero, such that:
Equivalent Conditions:
- At least one vector can be written as a linear combination of the others
- The matrix with these vectors as columns has rank
- if is a square matrix of these vectors
8.3 Linearly Independent Vectors
Vectors are linearly independent if:
Equivalent Conditions:
- No vector can be written as a linear combination of the others
- The matrix with these vectors as columns has rank
- if is square
9. Eigenvalues and Eigenvectors
9.1 Finding Eigenvalues
Solve the characteristic equation:
9.2 Finding Eigenvectors
For each eigenvalue , solve:
The non-zero solutions are the eigenvectors corresponding to .
If is an eigenvector for , then any non-zero scalar multiple is also an eigenvector.
9.3 Eigenspace
The set of all eigenvectors corresponding to (plus the zero vector) forms a subspace called the eigenspace:
9.4 Algebraic and Geometric Multiplicity
- Algebraic multiplicity: Number of times appears as a root of the characteristic equation
- Geometric multiplicity: Dimension of the eigenspace (number of linearly independent eigenvectors)
Always: Geometric Multiplicity Algebraic Multiplicity
9.5 Diagonalization
A matrix of order is diagonalizable if there exists an invertible matrix such that:
Conditions for Diagonalization:
- has linearly independent eigenvectors
- Geometric multiplicity = Algebraic multiplicity for every eigenvalue
The columns of are the linearly independent eigenvectors of .
9.6 Engineering Applications
- Vibration Analysis: Natural frequencies are eigenvalues; mode shapes are eigenvectors
- Principal Component Analysis (PCA): Eigenvectors of covariance matrix define principal components
- Stability Analysis: System stability determined by eigenvalue locations
- PageRank: Google's algorithm uses dominant eigenvector of the web graph
10. Complex Matrices
10.1 Complex-Valued Matrices
A complex matrix has entries from :
Conjugate Matrix:
where is the complex conjugate of .
Conjugate Transpose (Hermitian Adjoint):
11. Special Types of Complex Matrices
11.1 Hermitian Matrix
A square matrix is Hermitian if:
Properties:
- Diagonal elements are real numbers
- Eigenvalues are always real
- Eigenvectors corresponding to distinct eigenvalues are orthogonal
11.2 Skew-Hermitian Matrix
A square matrix is skew-Hermitian if:
Properties:
- Diagonal elements are purely imaginary (or zero)
- Eigenvalues are purely imaginary or zero
11.3 Unitary Matrix
A square matrix is unitary if:
Properties:
- Preserves inner products:
- Preserves norms:
- Columns (and rows) form an orthonormal set
- Eigenvalues have absolute value :
12. Applications to Engineering Problems
12.1 Matrix-Based Modeling
- Circuit Analysis: Nodal admittance matrices for electrical networks
- Structural Engineering: Stiffness matrices in finite element analysis
- Control Systems: State-space representation
12.2 Systems of Linear Equations
Engineering systems modeled as :
- Network flow problems
- Heat distribution (discretized Laplace equation)
- Force equilibrium in truss structures
12.3 Engineering Computations
- Signal Processing: Discrete Fourier Transform uses unitary matrices
- Computer Graphics: Rotation, scaling, and projection matrices
- Robotics: Transformation matrices for kinematics
- Quantum Computing: Quantum states represented by complex vectors; operations by unitary matrices
13. Common Mistakes to Avoid
| Mistake | Correction |
|---|---|
| Assuming | Matrix multiplication is not commutative |
| Using |
14. Best Practices & Architecture
- Always reduce to echelon form first when finding rank or solving systems
- Verify before computing
- Check algebraic vs. geometric multiplicity before claiming diagonalizability
- Use unitary/orthogonal transformations for numerical stability in computations
- Leverage sparsity — engineering matrices are often sparse; use sparse matrix algorithms
15. Practice Problems
Problem 1: Find the rank of:
Problem 2: Find the inverse of:
using elementary transformations.
Problem 3: Solve the system:
Problem 4: Find eigenvalues and eigenvectors of:
Problem 5: Verify Cayley-Hamilton theorem for:
and use it to find .
16. Mini Project
Title: Structural Load Analysis Using Matrix Methods
Objective: Model a simple truss structure as a system of linear equations , where is the stiffness matrix, is the displacement vector, and is the force vector.
Tasks:
- Construct the stiffness matrix for a 3-node, 2-element truss
- Compute to verify the structure is statically determinate
- Solve for displacements using
- Calculate member forces from displacements
- Verify your solution using rank/consistency checks
Deliverable: A Python/MATLAB script that accepts geometry and load inputs, builds the matrix system, solves it, and outputs member forces with validation checks.
Quick Reference Formula Sheet
| Concept | Formula |
|---|---|
| Inverse (2×2) |
End of Unit 1 — Matrices