Basic MathematicsUnit 29 min read

Matrices and Determinants – Core Concepts and Applications

Unit 2 of Basic Mathematics: Covers matrix operations, determinant properties, solving linear systems, and real‑world applications in finance, telecommunications, and e‑commerce.

Key points

  • A matrix is an array of numbers arranged in rows and columns, used to represent linear transformations and systems of equations.
  • Elementary row operations preserve the solution set of a linear system and are the foundation of Gaussian elimination.
  • The determinant of a square matrix is a scalar that indicates invertibility and scales area/volume in linear transformations.
  • Cramer’s Rule provides a direct formula for solving linear systems using determinants, while Gaussian elimination offers a systematic algorithm.
  • Matrix inverses allow solving \(Ax=b\) via \(x=A^{-1}b\) when \(A\) is nonsingular.
  • Matrices model real‑world problems such as routing in payment systems, signal processing, and inventory optimization.

1. Introduction

Matrices and determinants form the backbone of linear algebra, a discipline that underpins many areas of computer science, engineering, and economics. In this unit we learn how to manipulate matrices, compute determinants, and solve systems of linear equations both algebraically and algorithmically.

2. Matrices – Definition and Notation

A matrix of size is a rectangular array of numbers arranged in rows and columns.

Figure 1 – A 3×3 Matrix

Notation

  • or : element in row , column .
  • : transpose of .
  • : identity matrix.

3. Elementary Row Operations and Matrix Transformations

Three elementary row operations (EROs) preserve the solution set of a linear system:

Operation Symbol Effect
Swap two rows Reorders equations
Multiply a row by a non‑zero scalar Scales an equation
Add a multiple of one row to another Eliminates a variable

These operations are the building blocks of Gaussian elimination and are represented by elementary matrices.

Figure 2 – Row Operations on a Matrix

4. Determinants – Definition, Properties, and Computation

The determinant of a square matrix (denoted or ) is a scalar that summarizes key properties of .

4.1 2×2 Determinant

For ,

-3-2-1123-4-224xyy = x² − 4 (determinant-like quadratic)Root (x=2)Root (x=-2)
Graph of determinant roots: ad−bc=0 (e.g., for A=[[a,b],[c,d]] where ad−bc=0)

Figure 3 – 2×2 Determinant

4.2 3×3 Determinant (Laplace Expansion)

where and is the minor obtained by deleting row and column .

Figure 4 – 3×3 Determinant Calculation

4.3 Properties of Determinants

Property Description
Multiplicative
Transpose invariant
Identity matrix
iff is singular (non‑invertible)

Figure 5 – Determinant Value Comparison

5. Solving Linear Systems Using Determinants (Cramer’s Rule)

For a system with invertible, Cramer’s Rule gives where is obtained by replacing column of with vector .

0.10.20.30.40.50.60.70.80.910.10.20.30.40.50.60.70.80.91xyx = det(A₁)/det(A)Solution (x, y)
Cramer’s Rule solution space (x and y as determinant ratios)

Worked Example

Solve

Step 1 – Matrix form

Step 2 – Compute

Step 3 – Compute (replace first column with )

Step 4 – Compute (replace second column)

Step 5 – Compute (replace third column)

Step 6 – Solve for variables

Thus .

6. Solving Linear Systems Using Matrix Methods (Gaussian Elimination)

Gaussian elimination transforms into an upper‑triangular matrix using EROs, then back‑substitutes to find .

01234Step 1: Augmented Matrix1Step 2: Row Reduction (ERO)2Step 3: Upper-Triangular Form3Step 4: Back-Substitution4Process Steps
Gaussian elimination workflow (visualized with matrix stages)

Worked Example – Same System

Step 1 – Augmented matrix

Step 2 – Eliminate from rows 2 and 3

Step 3 – Eliminate from row 3

Step 4 – Back substitution
From row 3:
Row 2:
Plug :
Row 1:

Result: .
(Exact fractions can be obtained by keeping rational numbers throughout.)

Figure 6 – Gaussian Elimination Flow

7. Matrix Inverses and Applications

A square matrix is invertible if . Its inverse satisfies .
The inverse can be found via the adjugate formula:

Figure 7 – Identity Matrix

Example – Solving with Inverse

Let

8. Applications in Real World

In the real world

Product / Company Idea Used How It Works
eSewa Matrix of transaction routing Each node (bank, wallet, merchant) is a row; edges are transfer rates. Solving finds optimal transfer paths.
Ncell Signal processing matrix Channel state information is represented as a matrix; eigen‑decomposition optimizes beamforming.
Daraz Inventory optimization Demand and supply are modeled as linear equations; solving the system predicts stock levels.

Concrete Worked Example – Kathmandu Traffic Flow

Consider a simplified traffic network with three intersections (A, B, C). Let be the number of vehicles per hour entering each intersection. The flow conservation equations are:

Matrix form

Using Gaussian elimination (see Figure 6) we find
.
Thus, 10 vehicles per hour enter at A, 8 at B, and 12 at C to satisfy conservation.

Figure 8 – Traffic Flow Matrix

9. Advantages and Disadvantages

Method Advantages Disadvantages
Cramer’s Rule Direct formula, good for small systems Computationally expensive for (requires determinants)
Gaussian Elimination Systematic, works for any size Requires careful pivoting to avoid numerical instability
Matrix Inverse Simple Inverting large matrices is costly; not always numerically stable

10. Summary

  • Matrices provide a compact representation of linear systems.
  • Determinants reveal invertibility and scale transformations.
  • Cramer’s Rule and Gaussian elimination are two complementary solution techniques.
  • Matrix inverses offer a direct method when is nonsingular.
  • These concepts are directly applicable to payment routing, signal processing, inventory management, and traffic engineering.

Exam tip

  • Identify the method: If the system is 2×2 or 3×3, try Cramer’s Rule first. For larger systems, use Gaussian elimination.
  • Check determinant: A zero determinant means no unique solution; be ready to discuss infinite or no solutions.
  • Show all steps: Write each row operation clearly; examiners look for systematic work.
  • Use notation consistently: Keep , , separate; label augmented matrices.
  • Practice back‑substitution: Errors often occur here; double‑check arithmetic.

matrix multiplication diagramIllustration of matrix multiplication process (Image: EMJzero, CC0, via Wikimedia Commons)

Based on the TU BITM syllabus for Basic Mathematics (MTH204), unit 2.

Discussion

Loading…