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.
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).
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.
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.
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.Step 1: The pivot a11 is already 1. We need to make the '2' and '3' below it into zeros.
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.
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.
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.Pivot is a11 = 1. First, zero out the column below it using Row Ops.
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.
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.
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!
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.
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]
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.
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.
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.
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. Find eigenvalues (λ1, λ2, λ3).
2.2. Find eigenvectors (X1, X2, X3).
3.3. Construct the Modal Matrix P by pasting the eigenvectors side-by-side as columns: P = [ X1 | X2 | X3 ].
4.4. Calculate P⁻¹.
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.