Matrices, rank, eigenvalues and eigenvectors — Unit 1 Notes (Engineering Mathematics I)

BAS101 · Unit 1

Matrices, rank, eigenvalues and eigenvectors notes — Unit 1

Free unit-wise study notes on matrices, rank, eigenvalues and eigenvectors for Engineering Mathematics I, Semester 1 of B.Tech — Computer Science & Engineering — key concepts, examples, important questions and a revision checklist for semester exams.

Twenty hand-written sheets covering the entire matrices unit in extreme detail. Each sheet pairs mathematical theory with rigorous, line-by-line step-by-step numerical 'dry runs', showing exactly how row operations unfold, so you can perfectly replicate the steps in your exam without making calculation errors.

Notebook — 20 pages

Page 1

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

1. The Point of Matrices

In school, matrices felt like a tedious way to write numbers in brackets. In engineering, a matrix is essentially a machine: it takes a vector as an input, transforms it (rotates, stretches, or shears it), and outputs a new vector. Every topic in this unit—Rank, Eigenvalues, Cayley-Hamilton—is just a different way of asking 'how does this specific machine behave?'

Linear Systems

Solving 3 equations with 3 unknowns is easy. Solving 10,000 equations requires matrices.

Transformations

Every 3D graphic in a video game is calculated using 4x4 matrix multiplication.

Eigen-theory

Google's original PageRank algorithm is literally just finding the principal eigenvector of a giant matrix.

Next — Page 2 — Elementary transformations and the golden rules

1 of 20

Page 2

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

2. Elementary Transformations

There are exactly three legal moves you can make on a matrix that preserve its 'Rank' (its amount of useful information). These are called elementary row (or column) operations.

  • 1. Interchange: Swapping two rows (R_i ↔ R_j).
  • 2. Scaling: Multiplying a row by a non-zero scalar (R_i → k * R_i).
  • 3. Addition: Adding a scalar multiple of one row to another (R_i → R_i + k * R_j).
Example: R2 → R2 - 2R1
[ 1  2  3 ]           [ 1       2       3   ]
[ 2  5  7 ]   ====>   [ 2-2(1)  5-2(2)  7-2(3)]
[ 3  1  2 ]           [ 3       1       2   ]

Result:
[ 1  2  3 ]
[ 0  1  1 ]
[ 3  1  2 ]

Next — Page 3 — Introducing the Rank of a Matrix

2 of 20

Page 3

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

3. The Rank of a Matrix (ρ)

Imagine you have 3 equations, but one of them is just the first equation multiplied by 2. That third equation contains zero new information. The 'Rank' of a matrix is the number of rows that actually contain unique, independent information.

Formal Definition

The rank ρ(A) is the order of the largest non-zero minor of the matrix.

Practical Definition

The maximum number of linearly independent row (or column) vectors in the matrix.

Finding the rank by calculating determinants (minors) is a nightmare for a 4x4 matrix, because you'd have to check sixteen 3x3 determinants. Instead, we use systematic reduction methods: Echelon Form and Normal Form.

Next — Page 4 — Method 1: Row Echelon Form

3 of 20

Page 4

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

4. Method 1: Row Echelon Form

A matrix is in row-echelon form if it looks like a staircase of zeros from the bottom left to the top right.

The Echelon Algorithm

Pivot

Make the top-left element (a11) a 1 (by swapping rows or dividing).

Eliminate

Use R1 to force all elements below a11 to become 0.

Step Down

Move diagonally to a22. Make it 1. Use R2 to force elements below it to 0.

Count

The rank is simply the number of non-zero rows left at the end.

Next — Page 5 — Dry Run: Echelon Form Reduction

4 of 20

Page 5

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

5. Dry Run: Rank by Echelon Form (Part 1)

Find the rank of the following 3x4 matrix using Echelon form:

A = [  1   2   3   4 ]
    [  2   4   6   8 ]
    [  3   6   9  12 ]
  1. 1.Step 1: The pivot a11 is already 1. We need to make the '2' and '3' below it into zeros.
  2. 2.Operation 1: R2 → R2 - 2R1
  3. 3.Operation 2: R3 → R3 - 3R1
Applying R2 → R2 - 2R1 and R3 → R3 - 3R1
R2: [ 2-2(1)  4-2(2)  6-2(3)  8-2(4) ]  => [ 0  0  0  0 ]
R3: [ 3-3(1)  6-3(2)  9-3(3) 12-3(4) ]  => [ 0  0  0  0 ]

Matrix becomes:
    [  1   2   3   4 ]
    [  0   0   0   0 ]
    [  0   0   0   0 ]

Next — Page 6 — Dry Run: Echelon Form Reduction (Conclusion)

5 of 20

Page 6

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

6. Dry Run: Rank by Echelon Form (Part 2)

The reduction finished surprisingly fast. Let's analyze the result:

    [  1   2   3   4 ]  <-- Non-zero row
    [  0   0   0   0 ]  <-- Zero row
    [  0   0   0   0 ]  <-- Zero row

The matrix is now in strict row-echelon form. All zero rows are at the bottom. We simply count the number of non-zero rows.

Next — Page 7 — Method 2: Normal (Canonical) Form

6 of 20

Page 7

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

7. Method 2: Normal (Canonical) Form

Normal form is the ultimate reduction. Instead of stopping at a staircase, we destroy EVERYTHING except a tiny identity matrix in the top-left corner. To do this, we are allowed to use BOTH row and column operations.

The Goal Structure

  • [ I_r 0 ]
  • [ 0 0 ]

What it means

I_r is an identity matrix of order 'r'. Everything else in the matrix is zero. That number 'r' is the rank.

The Normal Form Algorithm

Row Ops

Make a11=1. Use row ops to zero out the entire column below it.

Col Ops

Use column ops to zero out the entire row to the right of a11.

Repeat

Move to a22. Zero below (rows), then zero right (cols).

Identify

The size of the resulting Identity matrix is the rank.

Next — Page 8 — Dry Run: Normal Form Reduction

7 of 20

Page 8

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

8. Dry Run: Normal Form (Part 1)

Reduce to normal form and find rank:

A = [  1   2  -1   4 ]
    [  2   4   3   5 ]
    [ -1  -2   6  -7 ]
  1. 1.Pivot is a11 = 1. First, zero out the column below it using Row Ops.
  2. 2.R2 → R2 - 2R1
  3. 3.R3 → R3 + R1
After Row Ops:
    [  1   2  -1   4 ]
    [  0   0   5  -3 ]
    [  0   0   5  -3 ]

Next — Page 9 — Dry Run: Normal Form (Part 2)

8 of 20

Page 9

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

9. Dry Run: Normal Form (Part 2)

Now, zero out the row to the right of a11 using Column Ops.

  1. 1.C2 → C2 - 2C1
  2. 2.C3 → C3 + C1
  3. 3.C4 → C4 - 4C1
Notice how C1 remains unchanged, and the first row becomes zeros:
    [  1   0   0   0 ]
    [  0   0   5  -3 ]
    [  0   0   5  -3 ]

Next step: Move to a22. But wait, a22 is 0! We must swap columns to bring a non-zero number there. Let's swap C2 and C3 (C2 ↔ C3).

After C2 ↔ C3:
    [  1   0   0   0 ]
    [  0   5   0  -3 ]
    [  0   5   0  -3 ]

Next — Page 10 — Dry Run: Normal Form (Conclusion)

9 of 20

Page 10

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

10. Dry Run: Normal Form (Conclusion)

Now a22 is 5. We need to zero out the element below it (R3) using a row op.

  1. 1.R3 → R3 - R2
  2. 2.This wipes out the entire third row!
    [  1   0   0   0 ]
    [  0   5   0  -3 ]
    [  0   0   0   0 ]

Finally, zero out the -3 to the right of the 5 using a column op, and divide C2 by 5.

  1. 1.C4 → C4 + (3/5)C2
  2. 2.C2 → C2 / 5
    [  1   0 | 0   0 ]
    [  0   1 | 0   0 ]
    ------------------
    [  0   0 | 0   0 ]

Next — Page 11 — Application of Rank: Consistency of Systems

10 of 20

Page 11

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

11. Consistency of Linear Systems

Why did we learn rank? To solve massive systems of equations. A system of equations (AX = B) is 'consistent' if it has at least one valid solution. We test this using Rouche's Theorem.

Rouche's Theorem

Create the Augmented Matrix [A|B] by pasting the constants column B onto the end of A. Reduce [A|B] to echelon form, and compare the rank of A to the rank of the whole [A|B].

Inconsistent

ρ(A) ≠ ρ([A|B]). The lines are parallel. NO solution.

Unique Solution

ρ(A) = ρ([A|B]) = n (number of variables). Lines intersect at one point.

Infinite Solutions

ρ(A) = ρ([A|B]) = r < n. Lines overlap perfectly. Assign (n-r) constants.

Next — Page 12 — Homogeneous Systems (AX = 0)

11 of 20

Page 12

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

12. Homogeneous Systems (AX = 0)

If all constants in B are zero, the system is Homogeneous. A homogeneous system is ALWAYS consistent! Why? Because x=0, y=0, z=0 will ALWAYS satisfy equations equal to 0. This is called the 'Trivial Solution'.

When do non-trivial solutions exist?

We only care when there are OTHER solutions besides all zeros. This happens if the rank is strictly less than the number of variables (ρ(A) < n).

Typical Exam Question Structure
Q: Find 'k' such that the system has non-trivial solutions.
Method: Instantly write |A| = 0. Plug in the matrix, solve the cubic/quadratic for k. Done in 2 minutes.

Next — Page 13 — Eigenvalues and the Characteristic Equation

12 of 20

Page 13

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

13. Eigenvalues (Latent Roots)

If a matrix A represents a transformation machine, an 'Eigenvector' (X) is a special arrow that doesn't get knocked off its course when it goes through the machine. It only gets stretched or shrunk. The amount it stretches is the 'Eigenvalue' (λ).

The Core Equation

AX = λX
=> AX - λX = 0
=> (A - λI)X = 0

This is exactly a Homogeneous System (AX = 0). For X to be a 'special arrow', it cannot be the zero vector (trivial solution). Based on the Golden Rule from the previous page, for a non-trivial X to exist, the determinant of the coefficient matrix must be zero!

Next — Page 14 — Shortcuts for the Characteristic Equation

13 of 20

Page 14

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

14. Shortcuts: The Characteristic Equation

Expanding a 3x3 determinant containing (a11 - λ) is an algebra nightmare. You will drop a minus sign and fail the 15-mark question. Use the trace-determinant shortcut instead.

The 3x3 Shortcut Formula

  • λ³ - S₁λ² + S₂λ - S₃ = 0
  • Where:
  • S₁ = Sum of principal diagonal elements (Trace of A)
  • S₂ = Sum of minors of the principal diagonal elements
  • S₃ = Determinant of A (|A|)
Calculating S2 specifically
S2 = Minor(a11) + Minor(a22) + Minor(a33)
Minor(a11) = (a22*a33 - a23*a32)
This takes 30 seconds and avoids all expanding errors.

Next — Page 15 — Dry Run: Finding Eigenvalues

14 of 20

Page 15

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

15. Dry Run: Finding Eigenvalues

Find the eigenvalues for the matrix A:

A = [  8  -6   2 ]
    [ -6   7  -4 ]
    [  2  -4   3 ]
  1. 1.1. S1 (Trace) = 8 + 7 + 3 = 18
  2. 2.2. S2 (Minors) = |7 -4; -4 3| + |8 2; 2 3| + |8 -6; -6 7|
  3. 3. S2 = (21 - 16) + (24 - 4) + (56 - 36) = 5 + 20 + 20 = 45
  4. 4.3. S3 (Det A) = 8(21-16) - (-6)(-18-8) + 2(24-14) ... wait.
  5. 5. Let's do it carefully: 8(5) + 6(-18+8) + 2(24-14) = 40 + 6(-10) + 2(10) = 40 - 60 + 20 = 0.

The characteristic equation is λ³ - 18λ² + 45λ - 0 = 0.

λ(λ² - 18λ + 45) = 0
λ(λ - 3)(λ - 15) = 0
Eigenvalues: λ = 0, 3, 15

Next — Page 16 — Finding Eigenvectors using Cramer's Rule

15 of 20

Page 16

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

16. Finding Eigenvectors (Cross-Multiplication)

To find the eigenvector X for a specific λ, we plug λ back into (A - λI)X = 0. Because |A - λI| = 0, the three equations will be dependent (one is redundant). We pick any TWO distinct equations and use Cramer's rule (cross-multiplication).

Cross-Multiplication Algorithm for a₁x+b₁y+c₁z=0 and a₂x+b₂y+c₂z=0

Set up

Write x / (...) = -y / (...) = z / (...)

For x

Cover x coefficients. Det of [b1 c1; b2 c2]

For y

Cover y coefficients. Det of [a1 c1; a2 c2]. Keep the minus sign!

For z

Cover z coefficients. Det of [a1 b1; a2 b2]

Next — Page 17 — Dry Run: Extracting the Eigenvectors

16 of 20

Page 17

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

17. Dry Run: Extracting the Eigenvectors

Continuing the previous example, let's find the eigenvector for λ = 0.

(A - 0I)X = 0
[  8  -6   2 ] [x]   [0]
[ -6   7  -4 ] [y] = [0]
[  2  -4   3 ] [z]   [0]
  1. 1.Pick the first two equations:
  2. 2.1) 8x - 6y + 2z = 0
  3. 3.2) -6x + 7y - 4z = 0
  4. 4.Apply cross-multiplication:
  5. 5.x / ((-6)(-4) - (2)(7)) = -y / ((8)(-4) - (2)(-6)) = z / ((8)(7) - (-6)(-6))
  6. 6.x / (24 - 14) = -y / (-32 + 12) = z / (56 - 36)
  7. 7.x / 10 = -y / -20 = z / 20
  8. 8.x / 1 = y / 2 = z / 2 (Simplifying the ratios)

Next — Page 18 — Cayley-Hamilton Theorem

17 of 20

Page 18

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

18. Cayley-Hamilton Theorem

The Cayley-Hamilton theorem states a beautiful truth: 'Every square matrix satisfies its own characteristic equation.' If you replace the scalar λ with the matrix A, the polynomial equals the zero matrix.

Mathematical Statement

  • If |A - λI| = λ³ - S₁λ² + S₂λ - S₃ = 0
  • Then A³ - S₁A² + S₂A - S₃I = 0

This theorem is incredibly powerful for two tasks in exams: finding the inverse without using cofactors, and evaluating massive powers of A (like A^8) without doing 8 matrix multiplications.

Next — Page 19 — Dry Run: Using Cayley-Hamilton for Inverse

18 of 20

Page 19

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

19. Dry Run: Using Cayley-Hamilton for Inverse

Assume we proved A³ - 6A² + 11A - 6I = 0. Find A⁻¹.

  1. 1.Step 1: Multiply the entire equation by A⁻¹.
  2. 2.A⁻¹(A³ - 6A² + 11A - 6I) = A⁻¹(0)
  3. 3.A² - 6A + 11I - 6A⁻¹ = 0 (Notice A * A⁻¹ becomes I)
  4. 4.Step 2: Isolate the term containing A⁻¹.
  5. 5.6A⁻¹ = A² - 6A + 11I
  6. 6.A⁻¹ = 1/6 * [A² - 6A + 11I]
Why this is brilliant
Instead of calculating 9 cofactors, transposing, and dividing by |A|,
we only have to calculate A² (one multiplication), do basic addition,
and divide by 6. It cuts calculation time in half.

Next — Page 20 — Matrix Diagonalization

19 of 20

Page 20

Wink Notes

B.Tech CSE — 1st Semester

Engineering Mathematics I

Unit - 1

20. Matrix Diagonalization (The Modal Matrix)

If a matrix A has distinct eigenvectors, we can transform it into a Diagonal Matrix (D). A diagonal matrix is perfectly clean: its eigenvalues sit on the main diagonal, and everything else is zero. Raising D to the power of 100 just means raising those three diagonal numbers to the 100th power!

The Process (P⁻¹AP = D)

  1. 1.1. Find eigenvalues (λ1, λ2, λ3).
  2. 2.2. Find eigenvectors (X1, X2, X3).
  3. 3.3. Construct the Modal Matrix P by pasting the eigenvectors side-by-side as columns: P = [ X1 | X2 | X3 ].
  4. 4.4. Calculate P⁻¹.
  5. 5.5. The matrix product P⁻¹ A P will magically collapse into a diagonal matrix D, where the diagonal elements are exactly λ1, λ2, and λ3.

20 of 20

Continue in this subject