Linear Algebra
Linear Algebra contributes a reliable share of the 13-mark Engineering Mathematics block, and it is the most mechanically scorable topic in the whole paper. The questions repeat, the methods are short, and almost nothing depends on insight.
One number decides almost everything: the rank of the matrix.
Rank fixes whether a system has no solution, one solution, or infinitely many. It fixes whether a matrix is invertible. It fixes the dimension of the column space and, through the rank-nullity theorem, the dimension of the null space. And when eigenvalues are involved, the rank of fixes how many independent eigenvectors that eigenvalue contributes.
The second organising fact is that eigenvalues carry two invariants you can read off without computing them. Their sum is the trace and their product is the determinant, which is enough to answer many questions in one line and to check every computation in the rest.
So the working method is: compute the rank, read off trace and determinant, and only then do heavier work if the question still demands it.
1. Rank
The rank of a matrix is the number of non-zero rows after reduction to row echelon form, equivalently the maximum number of linearly independent rows, equivalently the maximum number of linearly independent columns.
Row rank equals column rank always, which is why an matrix has rank at most .
A matrix of order is called full rank when its rank is , and that is exactly the condition for invertibility.
| Rank condition | Consequence |
|---|---|
| for | Invertible, |
| Singular, | |
| Largest non-zero minor is of order |
Elementary row operations never change the rank, which is what makes row reduction the standard method. They do change the determinant in predictable ways, which is a separate matter and a standard source of errors.
The rank-nullity theorem ties rank to the null space:
where is the number of columns. The nullity is the dimension of the solution space of , so a full-rank square matrix has nullity zero and only the trivial solution.
2. Determinants
The determinant is defined only for square matrices, and its properties matter far more than its computation.
| Operation | Effect on determinant |
|---|---|
| Swap two rows | Sign flips |
| Multiply a row by | Multiplied by |
| Add a multiple of one row to another | Unchanged |
| Transpose | Unchanged |
Multiplying the whole matrix by multiplies the determinant by , not by , because every one of the rows is scaled. This is examined directly and caught out regularly.
Two products behave simply:
Note that has no such rule and is not .
For a triangular matrix, the determinant is the product of the diagonal entries, which is why row reduction to triangular form is the practical computation method.
The determinant of an matrix with all entries equal is 0 for , since all rows are identical.
The adjoint supplies the inverse and carries two results that are examined directly.
From this, , which exists precisely when the determinant is non-zero, tying invertibility back to full rank.
Taking determinants of both sides of the adjoint identity gives for an matrix. The exponent rather than is what questions test, and it follows because the right-hand side is divided by .
A matrix and its inverse share eigenvectors, with eigenvalues reciprocated, which is why questions about rarely require computing it.
3. Systems of Linear Equations
For with of order , everything follows from comparing two ranks: that of and that of the augmented matrix .
| Condition | Solutions |
|---|---|
| None; system inconsistent | |
| Exactly one | |
| Infinitely many |
When infinitely many solutions exist, the number of free parameters is , which is the nullity. This is asked directly as a NAT question.
For a homogeneous system , the augmented column is zero, so the two ranks always agree and the system is always consistent — the zero vector is always a solution.
A homogeneous system has a non-trivial solution if and only if , which for a square matrix means .
A homogeneous system with more unknowns than equations always has a non-trivial solution, since the rank cannot exceed the number of equations.
4. Vector Spaces, Basis and Dimension
A basis is a linearly independent spanning set, and the dimension is the number of vectors in any basis.
A set of vectors in an -dimensional space is a basis if and only if the matrix formed from them is non-singular, so the test reduces to a determinant.
Any set of more than vectors in an -dimensional space is linearly dependent, and any set of fewer than cannot span it.
The column space of has dimension equal to the rank; the null space has dimension equal to the nullity. The row space and column space always have the same dimension even when they live in different spaces, which is the rank equality restated.
5. Eigenvalues and Eigenvectors
A scalar is an eigenvalue of if there is a non-zero vector with , equivalently if
The two invariants are worth using before any computation.
For a 2 by 2 matrix these two equations determine the eigenvalues completely, which is usually faster than expanding a characteristic polynomial.
A rich set of derived facts is examined directly and follows from the definition.
| Matrix | Eigenvalues |
|---|---|
| Same as | |
The eigenvectors are unchanged by all of these transformations, which is often the actual point of the question.
A singular matrix has 0 as an eigenvalue, since . Conversely, a matrix with 0 as an eigenvalue is singular.
For a triangular matrix, the eigenvalues are simply the diagonal entries, and no computation is needed at all.
Cayley-Hamilton states that every matrix satisfies its own characteristic equation. For a 2 by 2 matrix with characteristic polynomial , this gives , which reduces any high power of to a linear combination of and .
Special matrix classes have constrained eigenvalues, and each is a one-line question.
| Class | Property | Eigenvalues |
|---|---|---|
| Symmetric (real) | Real, eigenvectors orthogonal | |
| Skew-symmetric | Zero or purely imaginary | |
| Orthogonal | Modulus 1 | |
| Idempotent | 0 or 1 | |
| Nilpotent | All zero |
A real symmetric matrix is positive definite when all its eigenvalues are strictly positive, positive semi-definite when they are non-negative, and indefinite when both signs appear.
Two equivalent tests are used in practice. Every leading principal minor must be positive, which is Sylvester's criterion and is faster for small matrices. Or all eigenvalues must be positive, which is faster when they have already been computed for another part of the question.
Positive definiteness is exactly the condition under which Cholesky decomposition exists and under which the quadratic form is positive for every non-zero .
6. Diagonalisation
A matrix is diagonalisable if is diagonal for some invertible , whose columns are the eigenvectors.
A matrix of order is diagonalisable if and only if it has linearly independent eigenvectors.
Two multiplicities decide this. The algebraic multiplicity of is its multiplicity as a root of the characteristic polynomial. The geometric multiplicity is the dimension of the eigenspace, which by rank-nullity is .
Geometric multiplicity is always at least 1 and never exceeds algebraic multiplicity, and the matrix is diagonalisable exactly when the two are equal for every eigenvalue.
The immediate consequence: a matrix with distinct eigenvalues is always diagonalisable, since each contributes an independent eigenvector. Repeated eigenvalues are the only case where the check is needed.
Every real symmetric matrix is diagonalisable, and moreover by an orthogonal .
Two matrices are similar if for some invertible , and similar matrices share their characteristic polynomial. They therefore share eigenvalues, trace, determinant and rank, though not their eigenvectors.
Diagonalisation is exactly the statement that a matrix is similar to a diagonal one, so the diagonal entries of that diagonal matrix are the eigenvalues, in some order.
The practical payoff is computing powers. If , then , and raising a diagonal matrix to a power is elementwise. This is why diagonalisability is asked about far more often than the diagonalising matrix itself.
7. LU Decomposition
LU decomposition writes with lower triangular and upper triangular, which turns solving into two triangular solves.
The point is reuse. Factoring costs the same order as Gaussian elimination, but once and are available, each new right-hand side costs only the two cheap triangular solves.
Two conventions fix the otherwise underdetermined factorisation.
| Method | Convention |
|---|---|
| Doolittle | has unit diagonal |
| Crout | has unit diagonal |
LU decomposition without row interchanges exists when every leading principal minor is non-zero. If a leading minor vanishes, pivoting is required and the factorisation becomes .
Solving proceeds in two steps: solve by forward substitution, then by back substitution. The order matters and reversing it is a standard error, since is the factor applied first.
For a symmetric positive definite matrix, Cholesky decomposition writes and costs roughly half as much.
8. Worked Examples
Example 1. For what value of does the system , , have no solution?
Row-reduce the augmented matrix.
Subtracting twice row 1 from row 2 gives . Subtracting row 1 from row 3 gives .
Now eliminate : subtract times the new row 2 from the new row 3, giving
, that is, , or .
For no solution, the coefficient of must vanish while the right side does not.
The coefficient vanishes at and . At the right side is 2, non-zero, so there is no solution. At the right side is , also non-zero, so again no solution.
So the system is inconsistent for and .
The structural point is that inconsistency requires rank rank, which shows up in row-reduced form as a row of zeros on the left with a non-zero entry on the right.
Example 2. The trace of a 3 by 3 matrix is 6 and its determinant is 6. Two of its eigenvalues are 1 and 2. Find the third.
Use the invariants rather than the matrix.
The sum of eigenvalues equals the trace: , so .
Check against the determinant: the product should be , which matches the given determinant exactly.
The third eigenvalue is 3.
This double check is worth performing every time. If the trace and determinant conditions had disagreed, it would indicate either an arithmetic slip or an inconsistent question, and catching that costs a few seconds.
Example 3. Find the rank and nullity of the matrix with rows , , .
Row-reduce. Row 2 is exactly twice row 1, so subtracting twice row 1 from row 2 gives a zero row.
Subtracting row 1 from row 3 gives .
The reduced rows are , and .
Two non-zero rows remain, so the rank is 2.
By rank-nullity with columns: nullity .
So has a one-parameter family of solutions, and the matrix is singular, which also means 0 is one of its eigenvalues.
Example 4. Is the matrix diagonalisable?
It is triangular, so the eigenvalues are the diagonal entries: 3 and 3.
The eigenvalue 3 has algebraic multiplicity 2.
For the geometric multiplicity, compute the rank of , which is the matrix with rows and . Its rank is 1.
Geometric multiplicity .
Since the geometric multiplicity 1 is less than the algebraic multiplicity 2, the matrix has only one independent eigenvector and is not diagonalisable.
This is the canonical example: a repeated eigenvalue is necessary but not sufficient for failure, and the rank computation is what decides it.
Example 5. Use Cayley-Hamilton to compute for .
Trace is 4 and determinant is , so the characteristic equation is .
By Cayley-Hamilton, , so .
Multiply by : .
Substitute the expression for : .
Numerically, and subtracting gives .
Verify with eigenvalues: the eigenvalues of are 1 and 3, so those of are 1 and 27. Their sum should be the trace of , which is . Their product should be the determinant, . Both check.
Example 6. Find the LU decomposition of by the Doolittle method, and solve .
Doolittle sets the diagonal of to 1, so write with entries 1, 0 in the first row and , 1 in the second, and with entries and .
Multiplying and matching entries: and from the first row.
From the second row, gives , and gives , so .
Now solve in two stages. Forward substitution on : , and gives .
Back substitution on : from the last row, and gives .
The solution is , , which satisfies both original equations.
Note that the leading principal minor is non-zero, which is exactly the condition permitting this factorisation without any row interchange.
Summary
Rank decides almost everything: invertibility, the number of solutions, the dimensions of the column and null spaces, and the number of independent eigenvectors for a given eigenvalue.
Row operations preserve rank but change the determinant predictably. Scaling an matrix by scales the determinant by .
A system is consistent exactly when rank equals rank; it has one solution when that common rank is , and infinitely many with free parameters otherwise.
A homogeneous system always has the zero solution, and has a non-trivial one exactly when the rank is less than the number of unknowns.
The trace is the sum of eigenvalues and the determinant is their product; use both before computing anything and again to check.
Powers, inverses, transposes and shifts transform the eigenvalues predictably and leave the eigenvectors alone.
Cayley-Hamilton reduces any power of a matrix to a low-degree combination.
Diagonalisability requires geometric multiplicity to equal algebraic multiplicity for every eigenvalue, so distinct eigenvalues always suffice and only repeated ones need the rank check.
LU decomposition needs non-zero leading principal minors, uses Doolittle or Crout to fix the convention, and is solved by forward substitution then back substitution in that order.
