∑GATE DA Atlas

Matrices — Operations, Special Matrices and Partitioned Matrices

Matrix algebra and its rules (transpose, inverse, trace), symmetric and skew-symmetric matrices, orthogonal matrices, idempotent and projection matrices, nilpotent and involutory matrices, permutation matrices, and partitioned (block) matrices with block multiplication, block determinants and the Schur complement.

Section 210 practice questions

Matrix algebra essentials

For an m×nm\times n matrix AA and n×pn \times p matrix BB, (AB)ij=∑kaikbkj(AB)_{ij} = \sum_k a_{ik}b_{kj}. Matrix multiplication is associative and distributive but not commutative.

Useful views of a product:

  • Column view: Ax=x1a1+⋯+xnanA\mathbf x = x_1\mathbf a_1 + \dots + x_n\mathbf a_n (a combination of the columns of AA).
  • Outer-product view: AB=∑k(column k of A)(row k of B)AB = \sum_k (\text{column } k \text{ of } A)(\text{row } k \text{ of } B) — a sum of rank-1 matrices.
Rule
Transpose(A⊤)⊤=A(A^\top)^\top = A, (AB)⊤=B⊤A⊤(AB)^\top = B^\top A^\top, (A+B)⊤=A⊤+B⊤(A + B)^\top = A^\top + B^\top
Inverse(AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}, (A⊤)−1=(A−1)⊤(A^\top)^{-1} = (A^{-1})^\top, (cA)−1=c−1A−1(cA)^{-1} = c^{-1}A^{-1}
2×22\times 2 inverse(abcd)−1=1ad−bc(d−b−ca)\begin{pmatrix}a&b\\c&d\end{pmatrix}^{-1} = \dfrac{1}{ad - bc}\begin{pmatrix}d&-b\\-c&a\end{pmatrix}
Tracetr⁡(A+B)=tr⁡A+tr⁡B\operatorname{tr}(A + B) = \operatorname{tr}A + \operatorname{tr}B, tr⁡(AB)=tr⁡(BA)\operatorname{tr}(AB) = \operatorname{tr}(BA), cyclic tr⁡(ABC)=tr⁡(CAB)\operatorname{tr}(ABC) = \operatorname{tr}(CAB)
Trace & eigenvaluestr⁡A=∑λi\operatorname{tr}A = \sum \lambda_i

Catalogue of special matrices

TypeDefinitionKey properties
Diagonalaij=0a_{ij} = 0 for i≠ji \ne jeigenvalues = diagonal entries; products commute
Triangularzeros below (upper) or above (lower) the diagonaldet⁡\det = product of diagonal; eigenvalues = diagonal
SymmetricA⊤=AA^\top = Areal eigenvalues, orthogonal eigenvectors (spectral theorem)
Skew-symmetricA⊤=−AA^\top = -Azero diagonal; eigenvalues purely imaginary or 0; det⁡=0\det = 0 if nn odd
OrthogonalQ⊤Q=QQ⊤=IQ^\top Q = QQ^\top = IQ−1=Q⊤Q^{-1} = Q^\top, det⁡=±1\det = \pm1, ∣λ∣=1\lvert\lambda\rvert = 1, preserves lengths and angles
IdempotentA2=AA^2 = Aλ∈{0,1}\lambda \in \{0,1\}, rank = trace, I−AI - A idempotent
Projection (orthogonal)P2=PP^2 = P, P⊤=PP^\top = Pprojects onto col⁡(P)\operatorname{col}(P); I−PI - P projects onto the complement
NilpotentAk=0A^k = 0 for some kkall eigenvalues 0; det⁡=tr⁡=0\det = \operatorname{tr} = 0
InvolutoryA2=IA^2 = IA−1=AA^{-1} = A, λ=±1\lambda = \pm 1 (e.g. reflections)
Permutationrows of II reorderedorthogonal; det⁡=±1\det = \pm 1 (sign of the permutation)
Positive definitesymmetric, x⊤Ax>0\mathbf x^\top A\mathbf x > 0 for x≠0\mathbf x \ne 0all λ>0\lambda > 0; see quadratic forms

Symmetric and skew-symmetric parts

Every square matrix splits uniquely as A=12(A+A⊤)⏟symmetric+12(A−A⊤)⏟skewA = \underbrace{\tfrac12(A + A^\top)}_{\text{symmetric}} + \underbrace{\tfrac12(A - A^\top)}_{\text{skew}}. For a quadratic form only the symmetric part matters: x⊤Ax=x⊤(A+A⊤2)x\mathbf x^\top A\mathbf x = \mathbf x^\top\left(\tfrac{A + A^\top}{2}\right)\mathbf x.

Orthogonal matrices

The columns (and rows) form an orthonormal basis. Orthogonal matrices represent rotations (det⁡=1\det = 1) and reflections (det⁡=−1\det = -1):

Rθ=(cos⁡θ−sin⁡θsin⁡θcos⁡θ),H=I−2uu⊤ (∥u∥=1) (Householder reflection).R_\theta = \begin{pmatrix}\cos\theta & -\sin\theta\\ \sin\theta & \cos\theta\end{pmatrix}, \qquad H = I - 2\mathbf u\mathbf u^\top\ (\lVert \mathbf u\rVert = 1) \text{ (Householder reflection)}.

Because ∥Qx∥=∥x∥\lVert Q\mathbf x\rVert = \lVert\mathbf x\rVert, orthogonal matrices are numerically stable; products of orthogonal matrices are orthogonal.

Idempotent and projection matrices

Every idempotent matrix is a projection (onto its column space, along its null space). It is an orthogonal projection iff it is also symmetric. In statistics:

  • the hat matrix H=X(X⊤X)−1X⊤H = X(X^\top X)^{-1}X^\top maps observed y\mathbf y to fitted values y^=Hy\hat{\mathbf y} = H\mathbf y; tr⁡(H)\operatorname{tr}(H) = number of parameters;
  • the residual maker I−HI - H gives residuals; tr⁡(I−H)=n−p\operatorname{tr}(I - H) = n - p is the residual degrees of freedom;
  • the centering matrix C=I−1n11⊤C = I - \frac1n\mathbf 1\mathbf 1^\top subtracts the mean; rank⁡(C)=n−1\operatorname{rank}(C) = n - 1.

Partitioned (block) matrices

Split a matrix into sub-matrices; operations work blockwise when the shapes are compatible:

(ABCD)(EFGH)=(AE+BGAF+BHCE+DGCF+DH).\begin{pmatrix}A & B\\ C & D\end{pmatrix}\begin{pmatrix}E & F\\ G & H\end{pmatrix} = \begin{pmatrix}AE + BG & AF + BH\\ CE + DG & CF + DH\end{pmatrix}.
PropertyFormula
Transpose(ABCD)⊤=(A⊤C⊤B⊤D⊤)\begin{pmatrix}A&B\\C&D\end{pmatrix}^\top = \begin{pmatrix}A^\top & C^\top\\ B^\top & D^\top\end{pmatrix}
Block diagonaldet⁡=det⁡Adet⁡D\det = \det A\det D; inverse =diag⁡(A−1,D−1)= \operatorname{diag}(A^{-1}, D^{-1}); eigenvalues = union
Block triangulardet⁡(AB0D)=det⁡A⋅det⁡D\det\begin{pmatrix}A & B\\ 0 & D\end{pmatrix} = \det A \cdot \det D
Schur complement (AA invertible)det⁡(ABCD)=det⁡A⋅det⁡(D−CA−1B)\det\begin{pmatrix}A&B\\C&D\end{pmatrix} = \det A \cdot \det(D - CA^{-1}B)

The block inverse (with Schur complement S=D−CA−1BS = D - CA^{-1}B):

(ABCD)−1=(A−1+A−1BS−1CA−1−A−1BS−1−S−1CA−1S−1).\begin{pmatrix}A&B\\C&D\end{pmatrix}^{-1} = \begin{pmatrix}A^{-1} + A^{-1}BS^{-1}CA^{-1} & -A^{-1}BS^{-1}\\ -S^{-1}CA^{-1} & S^{-1}\end{pmatrix}.

Quick revision

Practice questions

GATE-style questions: 4 one-mark and 6 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.

Q1MSQ2 marks

AA is an n×nn \times n real idempotent matrix (A2=AA^2 = A) with A≠IA \ne I. Which statements are true?

One or more options are correct.

Q2NAT1 mark

XX is a 5×25 \times 2 real matrix with linearly independent columns, and P=X(X⊤X)−1X⊤P = X(X^\top X)^{-1}X^\top. The trace of PP is ______.

Q3MCQ1 mark

If QQ is a real orthogonal matrix, then det⁡Q\det Q is

Q4NAT2 marks

M=(AB0D)M = \begin{pmatrix} A & B \\ 0 & D \end{pmatrix} is a 5×55 \times 5 block matrix where AA is 2×22\times 2 with det⁡A=3\det A = 3, DD is 3×33\times3 with det⁡D=4\det D = 4, and BB is an arbitrary 2×32\times 3 matrix. Then det⁡M\det M is ______.

Q5MCQ1 mark

For invertible n×nn\times n matrices AA and BB, (AB)−1(AB)^{-1} equals

Q6NAT2 marks

The matrix Q=(0.6−0.8a0.6)Q = \begin{pmatrix} 0.6 & -0.8 \\ a & 0.6 \end{pmatrix} is orthogonal. The value of aa is ______.

Q7MSQ2 marks

For an arbitrary real n×nn \times n matrix AA, which statements are always true?

One or more options are correct.

Q8NAT2 marks

The centering matrix C=I4−1411⊤C = I_4 - \frac14 \mathbf 1\mathbf 1^\top (where 1\mathbf 1 is the all-ones vector in R4\mathbb R^4) has rank ______.

Q9MCQ2 marks

For any p×qp \times q matrix BB, the inverse of the block matrix (IpB0Iq)\begin{pmatrix} I_p & B \\ 0 & I_q \end{pmatrix} is

Q10NAT1 mark

For A=(1234)A = \begin{pmatrix}1 & 2\\3&4\end{pmatrix} and B=(0110)B = \begin{pmatrix}0&1\\1&0\end{pmatrix}, trace⁡(AB)\operatorname{trace}(AB) is ______.