Engineering Mathematics
Linear Algebra
Train determinants, rank, Ax=b cases, and eigen-NATs until shortcuts (trace, det, triangular form) fire automatically — then lock marks with GATE-style samples and flashcards.
GATE CSE linear algebra — matrices, determinants, rank, linear systems, eigenvalues/eigenvectors, diagonalisation, sample GATE questions, flashcards, and practice drills.
Learning outcomes
- Compute determinants, inverses (when they exist), and ranks quickly
- Solve Ax=b and classify unique / infinite / no solution via rank
- Find eigenvalues/eigenvectors for 2×2 and simple 3×3 cases
- Use trace, det, similarity, and diagonalisation as NAT shortcuts
- Apply nullity and linear-independence checks under exam time
- Solve GATE-style linear algebra MCQ/NAT items with a clear explanation trail
Matrix language & elementary operations
- Know transpose Aᵀ, symmetric (Aᵀ=A), skew-symmetric (Aᵀ=−A), diagonal, and triangular forms.
- Elementary row operations: swap, scale nonzero, add multiple of one row to another — they implement Gaussian elimination.
- Row-equivalent matrices represent the same row space; rank is invariant under elementary ops.
- Identity I and elementary matrices encode row ops; A invertible iff A is a product of elementary matrices.
- Trace(A)=Σ a_ii; (AB)ᵀ=BᵀAᵀ; (AB)⁻¹=B⁻¹A⁻¹ when invertible.
Formulas to remember
-
trace(AB)=trace(BA) -
(AB)ᵀ = Bᵀ Aᵀ -
(AB)⁻¹ = B⁻¹ A⁻¹ (when A,B invertible)
Determinants
- det is multilinear alternating in rows/columns; det=0 iff columns (or rows) are linearly dependent.
- det(AB)=det(A)det(B); det(Aᵀ)=det(A); det(cA)=cⁿ det(A) for n×n; det(A⁻¹)=1/det(A).
- Triangular or diagonal ⇒ det = product of diagonal entries. Swap two rows ⇒ sign change; scale a row by c ⇒ det×c.
- 2×2: ad−bc. 3×3: Sarrus or cofactor expansion along a sparse row/column.
- A invertible ⇔ det(A)≠0 ⇔ rank(A)=n ⇔ 0 is not an eigenvalue.
Formulas to remember
-
2×2 [[a,b],[c,d]]: det = ad − bc -
Inverse (2×2): (1/det) [[d,−b],[−c,a]] -
A⁻¹ = (1/det A) adj(A)
Worked example
Problem. det([[2,1,0],[0,3,0],[0,0,4]])?
Solution. Upper triangular ⇒ product of diagonal = 2·3·4 = 24.
Rank, nullity & vector spaces (exam depth)
- rank(A) = dimension of column space = dimension of row space = number of pivots after row reduction.
- Rank–nullity: rank(A) + nullity(A) = n for A that is m×n (n = number of columns). Nullity = dim ker(A).
- Columns linearly independent ⇔ rank = number of columns. Rows independent ⇔ rank = number of rows.
- rank(AB) ≤ min(rank(A), rank(B)). rank(Aᵀ)=rank(A).
- For square n×n: full rank ⇔ invertible ⇔ trivial nullspace only.
Formulas to remember
-
rank(A) + nullity(A) = n (A is m×n) -
rank(A) = rank(Aᵀ)
| Condition (n×n) | Equivalent meaning |
|---|---|
| rank = n | Invertible; unique solution to Ax=b for every b |
| rank < n | Singular; nontrivial nullspace |
| det ≠ 0 | Same as rank = n |
| λ=0 is eigenvalue | Same as singular |
Worked example
Problem. A is 3×4 with rank 2. What is nullity(A)?
Solution. rank + nullity = 4 ⇒ nullity = 2.
Systems Ax = b
- Form augmented matrix [A|b] and row-reduce to RREF/REF. Consistency: rank(A)=rank([A|b]).
- Unique solution: consistent and rank = n (no free variables). For square A, equivalent to A invertible.
- Infinite solutions: consistent and rank < n — free variables parametrize an affine line/plane.
- No solution: rank(A) < rank([A|b]) — a pivot appears in the augmented column.
- Homogeneous Ax=0 is always consistent (x=0). Nontrivial solutions ⇔ rank < n.
| rank(A) vs rank([A|b]) vs n | Conclusion |
|---|---|
| r(A)=r([A|b])=n | Unique solution |
| r(A)=r([A|b])<n | Infinite solutions |
| r(A)<r([A|b]) | No solution |
Worked example
Problem. For what k does [[1,1],[2,k]] [[x],[y]] = [[3],[6]] have infinite solutions?
Solution. det = k−2. For non-unique need det=0 ⇒ k=2. Then row2 = 2·row1 and RHS 6=2·3 ⇒ consistent ⇒ infinite solutions.
Eigenvalues & eigenvectors
- Ax = λx with x≠0. Characteristic equation det(A−λI)=0; characteristic polynomial is monic of degree n.
- Sum of eigenvalues (with multiplicity) = trace(A); product = det(A).
- Eigenvectors for distinct eigenvalues are linearly independent.
- If Av=λv then Aᵏv=λᵏv and p(A)v=p(λ)v for any polynomial p. Also A⁻¹v = λ⁻¹v when λ≠0 and A invertible.
- Real symmetric matrices: all eigenvalues real; eigenvectors for distinct λ can be chosen orthonormal.
- Triangular/diagonal matrices: eigenvalues = diagonal entries — check this before expanding.
Formulas to remember
-
χ(λ) = det(A − λI) = 0 -
trace(A) = Σ λ_i , det(A) = Π λ_i -
Av = λv ⇒ Aᵏv = λᵏv
Worked example
Problem. Eigenvalues of [[2,1],[0,3]]?
Solution. Upper triangular ⇒ eigenvalues on diagonal: 2 and 3. Trace 5, det 6 check out.
Characteristic polynomial for 2×2
- For A=[[a,b],[c,d]], χ(λ)=λ² − (trace)λ + det = λ² − (a+d)λ + (ad−bc).
- Cayley–Hamilton (exam statement): χ(A)=0 — every square matrix satisfies its own characteristic equation.
- Use Cayley–Hamilton to express A² (or higher) as a linear combination of A and I — common NAT trick.
- Sign care: expand (a−λ)(d−λ)−bc = λ² − (a+d)λ + (ad−bc); do not drop the minus on λ.
Formulas to remember
-
2×2: χ(λ) = λ² − tr(A)λ + det(A) -
Cayley–Hamilton: χ(A) = 0
Worked example
Problem. A=[[1,2],[0,3]]. Find A² using Cayley–Hamilton.
Solution. tr=4, det=3 ⇒ A² − 4A + 3I = 0 ⇒ A² = 4A − 3I = [[1,8],[0,9]].
Diagonalisation & similarity
- A is diagonalizable if it has n linearly independent eigenvectors (e.g. n distinct eigenvalues ⇒ yes).
- Then A = PDP⁻¹ with D=diag(λ_i) and columns of P = eigenvectors. Aᵏ = PDᵏP⁻¹.
- Similar matrices B=P⁻¹AP share characteristic polynomial, eigenvalues, trace, and det — not necessarily the same eigenvectors.
- Defective case: algebraic multiplicity > geometric multiplicity ⇒ not diagonalizable — usually a conceptual MCQ.
- Orthogonal diagonalisation for real symmetric A: A=QDQT with Q orthogonal (QᵀQ=I).
Worked example
Problem. Is [[1,1],[0,1]] diagonalizable?
Solution. Only eigenvalue λ=1 (double). (A−I)=[[0,1],[0,0]] has rank 1 ⇒ nullity 1 ⇒ only one independent eigenvector ⇒ not diagonalizable.
Quick NAT checklist
- Before expanding det: is the matrix triangular, diagonal, or block-triangular?
- After finding λ’s: check sum=trace and product=det.
- For Ax=b with parameter k: compute det (or rank cases) first, then consistency.
- Powers of A: prefer diagonalisation or Cayley–Hamilton over brute multiply when n is small.
- Nullity questions: always write rank + nullity = #columns.
Exam tips
- Scan for triangular/diagonal form before expanding any determinant.
- Use trace and det as sanity checks on eigenvalue NATs.
- For 2×2 eigenproblems, write χ(λ)=λ²−(tr)λ+det — avoid expanding sign errors.
- Rank–nullity: nullity = n − rank; free variables in Ax=0 equal nullity.
- Similar matrices share eigenvalues — if a stem gives P⁻¹AP, read eigenvalues off the similar matrix when easier.
- Cayley–Hamilton often turns A² or A³ questions into arithmetic with I and A.
10 GATE-style MCQs for Linear Algebra with full explanations. Attempt each question before revealing the answer.
If A is a 3×3 matrix with det(A)=5, then det(2A) equals:
Show answer & explanation
Answer: C
det(cA)=cⁿ det(A) ⇒ 2³·5 = 8·5 = 40.
Rank of [[1,2,3],[2,4,6],[1,1,1]] is:
Show answer & explanation
Answer: B
Row2=2·Row1; Row3 is independent of Row1 ⇒ two independent rows ⇒ rank 2.
For A m×n, rank(A)=r. Nullity(A) equals:
Show answer & explanation
Answer: B
Rank–nullity: rank + nullity = n (# columns).
Eigenvalues of [[4,1],[0,2]] are:
Show answer & explanation
Answer: B
Upper triangular ⇒ diagonal entries 4, 2 are eigenvalues. Trace 6, det 8 check.
The system Ax=b has a unique solution for every b iff:
Show answer & explanation
Answer: C
Unique solution ∀b ⇔ A square invertible (full rank).
If eigenvalues of A are 1 and 3, then eigenvalues of A² are:
Show answer & explanation
Answer: B
If Av=λv then A²v=λ²v ⇒ eigenvalues square: 1 and 9.
trace(A)=5 and det(A)=6 for a 2×2 matrix. Characteristic polynomial is:
Show answer & explanation
Answer: A
χ(λ)=λ² − (tr)λ + det = λ² − 5λ + 6.
Which matrix is NOT diagonalizable?
Show answer & explanation
Answer: B
[[1,1],[0,1]] has repeated eigenvalue 1 but geometric multiplicity 1 (only one independent eigenvector), so it is defective / not diagonalizable. The others have a full eigenbasis.
If A and B are similar, which is always TRUE?
Show answer & explanation
Answer: B
Similar matrices share characteristic polynomial ⇒ same eigenvalues, det, trace. Eigenvectors generally differ.
For A=[[1,2],[3,4]], det(A) equals:
Show answer & explanation
Answer: A
ad−bc = 1·4 − 2·3 = 4−6 = −2.
Extra page-specific practice beyond the GATE samples. Attempt all 10, then reveal answers to check your reasoning.
det([[3,0,0],[1,2,0],[4,5,6]]) equals:
Show answer & explanation
Answer: B) 36
Lower/upper triangular form with diagonal 3,2,6 ⇒ product 36.
A is 4×6 with rank 3. dim(ker A) is:
Show answer & explanation
Answer: C) 3
nullity = 6 − 3 = 3.
Inverse of [[2,1],[5,3]] is:
Show answer & explanation
Answer: A) [[3,−1],[−5,2]]
det=6−5=1; inverse (1/det)[[3,−1],[−5,2]] = [[3,−1],[−5,2]].
Eigenvalues of [[0,−2],[2,0]] are:
Show answer & explanation
Answer: B) 2i, −2i
χ(λ)=λ²+4=0 ⇒ λ=±2i. Trace 0, det 4 = product of ±2i.
For what k is [[1,2],[2,k]] singular?
Show answer & explanation
Answer: B) 4
det=k−4=0 ⇒ k=4.
If A has eigenvalues 2,2,3 then det(A) and trace(A) are:
Show answer & explanation
Answer: B) det=12, tr=7
Product 2·2·3=12; sum 2+2+3=7.
Number of solutions of Ax=0 for invertible n×n A is:
Show answer & explanation
Answer: B) 1
Only the trivial solution x=0 — one solution vector.
A=[[1,1],[0,1]]. A² equals:
Show answer & explanation
Answer: A) [[1,2],[0,1]]
Direct multiply: [[1,1],[0,1]][[1,1],[0,1]]=[[1,2],[0,1]].
If P⁻¹AP = diag(2,5), then det(A) equals:
Show answer & explanation
Answer: B) 10
A similar to D ⇒ same det ⇒ 2·5=10.
Rows of A are linearly dependent iff:
Show answer & explanation
Answer: B) rank(A) < number of rows (for the row set under consideration)
Dependence among rows means row-rank is strictly less than the number of those rows; for square A this is det=0.
Topic FAQs
Do I need SVD or Jordan form for GATE CSE?
No. Stick to rank, determinants, linear systems, eigenvalues/eigenvectors, similarity, and basic diagonalisation / Cayley–Hamilton.
Are complex eigenvalues in syllabus?
They can appear for real matrices (e.g. rotation-like blocks). Solve the characteristic polynomial honestly; do not assume all eigenvalues are real.
What is the fastest invertibility test in an MCQ?
det≠0, or rank=n, or 0 not an eigenvalue — pick whichever is cheapest from the given data.
How is geometric multiplicity related to diagonalisation?
Geometric multiplicity of λ = dim eigenspace = nullity(A−λI). A is diagonalizable iff for every λ, geometric multiplicity equals algebraic multiplicity.
Hover a card to reveal the answer with a 3D flip. On touch devices, tap the card or use Show answer.