GATE Data Science & AIGATE DA
Module 4 · Linear algebra

Linear algebra as pictures and shortcuts

GATE DA rarely asks you to grind through big matrix calculations. It asks whether you understand what a matrix does: which vectors it stretches, what it squashes to zero, what happens if you apply it twice. Once you can picture that, most questions take under a minute. That picture is what this module builds.

You need: vectors, dot products and matrix multiplication, covered in the maths refreshers, Part 4. Meeting linear algebra for the first time? Chapter 1.1 starts from what a vector is and the two moves you can make with vectors, and every chapter opens with a small worked case before the definitions. Words with a dotted underline can be tapped for a plain definition.

The route

    The vocabulary of linear algebra, built up from scratch. The first chapter starts from what a vector is and the two moves you can make with vectors; then come span, subspaces, independence, basis and dimension, each a short name for an idea the first chapter makes concrete. The vocabulary: linear combinations, span, subspaces, independence, basis and dimension. These words appear in almost every linear-algebra question on the paper, often as “select all that are subspaces” or “which statements about orthonormal vectors are true”.

    You need: vectors, dot products and matrices (Refreshers Part 4).

    Vectors and combinations: the two moves of linear algebra

    Linear algebra studies just two moves on vectors, scaling and adding, and asks one question about them: starting from a few vectors, which other vectors can you build?

    Data points, model weights, word embeddings and images are all stored as vectors, and almost every question in this module is about combining them. Get the two moves into your fingers here and the vocabulary of the next chapters (span, subspace, basis) becomes a set of short names for things you already understand.

    It’s like a recipe kitchen with only two instructions, “use this much of an ingredient” and “mix two bowls together”. Everything you can cook is a combination of the ingredients.

    Where it shows up in GATE DA

    Not asked on its own, but every linear-algebra question uses it, and so do PCA, regression and neural-network questions in the ML module.

    2024 Q47 · α(1,1,0) + β(1,0,0)2025 Q25 · orthonormal vectors2026 Q36 · points as vectors
    Heat: the language of every question in this module

    Quick check. Can you work out $2\cdot(1, 3) + (4, -1)$? (It’s $(6, 5)$.) If adding and scaling lists of numbers feels new, read Refreshers 4.1, Vectors and the dot product first; it takes about 45 minutes.

    Why vectors? A concrete problem

    The Bengaluru Backprops’ groundsman drives a pitch roller that can only travel along two fixed directions: $\u$ = one metre east and one metre north, and $\v$ = one metre east and one metre south, forwards or backwards, any distance. The roller starts at the corner of the square and has to reach a spot 4 metres east and 3 metres north. How far should it travel along each direction?

    Write each direction as a vector, a list of numbers in a fixed order (east, north): $\u = (1, 1)$ and $\v = (1, -1)$. Travelling $\alpha$ times along $\u$ and then $\beta$ times along $\v$ ends at $$\alpha\u + \beta\v = \alpha(1, 1) + \beta(1, -1) = (\alpha + \beta,\ \alpha - \beta).$$ We need this to equal $(4, 3)$. That’s the whole of linear algebra in miniature: which amounts of some given vectors produce the vector we want? (The answer is below, and you can find it with the widget first.)

    The two moves

    • Scaling multiplies every entry by the same number: $3(1, 1) = (3, 3)$. As an arrow, it stretches (or shrinks, or with a negative number flips) the arrow along its own line.
    • Adding works entry by entry: $(3, 3) + (1, -1) = (4, 2)$. As arrows, place the second at the tip of the first.

    A vector with $n$ entries lives in $\R^n$ (“R n”). In $\R^2$ and $\R^3$ you can draw it; in $\R^{30}$ you can’t, but the two moves work exactly the same way. The zero vector $\0 = (0, 0, \ldots, 0)$ is what you get by scaling anything by 0.

    A linear combination of vectors $\v_1, \ldots, \v_k$ is any vector $$c_1\v_1 + c_2\v_2 + \cdots + c_k\v_k$$ built by scaling each one by a real number $c_i$ (its coefficient or weight) and adding the results. Coefficients may be negative, zero or fractions.

    Try it

    Change how much of $\u$ and how much of $\v$ you use. The blue arrow is the $\u$ part, the purple arrow adds the $\v$ part on its tip. Hit each target. Then ask yourself: is there any point in the plane you couldn’t reach with these two vectors?

    Solve the roller problem: find $\alpha$ and $\beta$ with $\alpha(1, 1) + \beta(1, -1) = (4, 3)$.

    1. Match entries: $\alpha + \beta = 4$ (east) and $\alpha - \beta = 3$ (north).

      Two vectors are equal exactly when every entry matches, so one vector equation is two ordinary equations.

    2. Add the two equations: $2\alpha = 7$, so $\alpha = 3.5$. Then $\beta = 4 - 3.5 = 0.5$.

      Adding cancels $\beta$. Part 2 turns this trick into a general method, Gaussian elimination.

    3. Check: $3.5(1, 1) + 0.5(1, -1) = (3.5 + 0.5,\ 3.5 - 0.5) = (4, 3)$ ✓. So the roller goes 3.5 units along $\u$, then half a unit along $\v$.

      Always substitute back; it takes seconds.

    Where this leads

    With $\u = (1, 1)$ and $\v = (1, -1)$ you can reach every point of the plane, because the two equations always have a solution. Now try $\u = (1, 2)$ and $\v = (2, 4)$: $\v$ is just $2\u$, so every combination $\alpha\u + \beta\v = (\alpha + 2\beta)\u$ lies on the single line through $\u$. You could never reach $(1, 0)$. The next two chapters name exactly this difference:

    • the set of everything you can reach is the span (Chapter 1.2);
    • vectors with no redundancy, where none is a combination of the others, are independent (Chapter 1.3).

    Warm-up. Compute $2(1, 3) - (0, 2)$.

    Scale first: $2(1, 3) = (2, 6)$. Then subtract entry by entry.

    $(2, 6) - (0, 2) = (2, 4)$.

    Find $\alpha$ and $\beta$ with $\alpha(1, 1) + \beta(1, -1) = (5, 1)$.

    Match entries: $\alpha + \beta = 5$ and $\alpha - \beta = 1$. Add the equations.

    $2\alpha = 6$, so $\alpha = 3$ and $\beta = 2$. Check: $(3 + 2, 3 - 2) = (5, 1)$ ✓.

    Can $(1, 0)$ be written as a combination $\alpha(1, 2) + \beta(2, 4)$?

    $(2, 4)$ is a multiple of $(1, 2)$. What do all the combinations look like?

    Every combination is $(\alpha + 2\beta)(1, 2)$, a multiple of $(1, 2)$, so its second entry is always twice its first. $(1, 0)$ breaks that pattern: No.

    A player’s season is recorded as (matches, runs, wickets, catches, sixes). In which $\R^n$ does this vector live? Enter $n$.

    Count the entries.

    Five numbers in a fixed order: a vector in $\R^5$.

    • Turn a vector equation into one ordinary equation per entry.
    • Draw 2-D examples as arrows, tip to tail, to see what’s going on.
    • Check an answer by substituting it back.
    • Adding vectors of different lengths, like $(1, 2) + (1, 2, 3)$. It isn’t defined.
    • Forgetting that coefficients can be negative or fractional.
    • Assuming two vectors always reach the whole plane. If one is a multiple of the other, they reach only a line.
    1. A vector is an ordered list of numbers, also drawn as an arrow; ℝⁿ is the set of all lists of length n.
    2. Linear algebra uses two moves, scaling and adding, and a linear combination c₁v₁ + … + cₖvₖ uses both.
    3. “Which vectors can I build from these?” is the central question; the answer is called the span, and redundancy among the vectors is called dependence.

    $3(2, -1) + (1, 4)$ equals

    $(7, 3)$
    Scale both entries of $(2, -1)$ by 3 before adding.
    $(7, 1)$
    $(6, -3) + (1, 4) = (7, 1)$.
    $(9, 9)$
    Scaling applies only to the first vector here.
    $(3, 3)$
    That’s $(2, -1) + (1, 4)$ without the 3.

    Which of these is a linear combination of $(1, 0)$ and $(0, 1)$?

    Only vectors with whole-number entries
    Coefficients can be any real numbers, fractions included.
    Only vectors with positive entries
    Coefficients can be negative.
    Every vector in $\R^2$
    $(a, b) = a(1, 0) + b(0, 1)$ for any $a, b$.
    Only $(1, 1)$
    That’s one example, $1(1,0) + 1(0,1)$, but there are many more.

    All combinations of $(2, 1)$ and $(4, 2)$ fill

    the whole plane
    Is one of them a multiple of the other?
    a single line through the origin
    $(4, 2) = 2(2, 1)$, so every combination is a multiple of $(2, 1)$.
    just the two points
    Scaling by any number gives infinitely many points.
    a square
    Coefficients aren’t limited to between 0 and 1.

    Span and subspaces: flat things through the origin

    The span of some vectors is everything you can build from them by scaling and adding; a subspace is a set that’s closed under exactly those operations, which in pictures means a line, plane or higher-dimensional flat sheet through the origin.

    “Which of these are subspaces?” is a standard GATE MSQ. Null spaces and column spaces (the next part) are subspaces, and so is everything PCA projects onto.

    It’s like a recipe book that only allows “double this, add that”. Starting from a few ingredients, the span is every dish you can make, and you can never cook your way out of it.

    Where it shows up in GATE DA

    Subspace tests directly, and the language of every later topic (null space, column space, projections).

    2024 Q47 · which sets are subspaces of ℝ³2026 Q22 · a ball cut by a 2-D subspace2024 Q49 · projection onto a subspaceSample Q38 · fundamental subspaces
    Heat: most years, 1–2 marks

    Recall from Chapter 1.1 that a linear combination of vectors $\v_1, \ldots, \v_k$ is any $c_1\v_1 + \cdots + c_k\v_k$ with real numbers $c_i$. The span is the set of all such combinations: everything you can reach from those vectors with the two moves.

    • One non-zero vector in $\R^2$ spans a line through the origin.
    • Two vectors in $\R^2$ that don’t lie on the same line span the whole plane.
    • Two such vectors in $\R^3$ span a plane through the origin, not all of space.

    Think of the Hyderabad Hyperplanes’ season as runs and wickets per match. “Two batting performances plus half a bowling performance” is a linear combination of the two performance vectors.

    Why name such sets?

    Spans are not the only sets that behave this way. The solutions of an equation like $x_1 + x_2 + x_3 = 0$ form a plane through the origin, and adding two solutions or scaling one gives another solution. Sets like this turn up everywhere (solution sets, the directions PCA keeps, the null spaces of Part 2), so it pays to have one name and one quick test for them.

    The test uses the phrase closed under an operation: doing the operation to members of the set never takes you outside it. The horizontal axis $\{(x, 0)\}$ is closed under addition: $(3, 0) + (-1, 0) = (2, 0)$ is still on the axis. The right half-plane $\{(x, y) : x \ge 0\}$ is not closed under scaling: $(1, 0)$ is in it, but $-1 \cdot (1, 0) = (-1, 0)$ is not.

    A set $W \subseteq \R^n$ is a subspace if

    1. it contains the zero vector $\0$;
    2. it’s closed under addition: $\u, \v \in W \Rightarrow \u + \v \in W$;
    3. it’s closed under scaling: $\v \in W,\ c\in\R \Rightarrow c\v \in W$.

    Every span is a subspace, and every subspace is the span of some vectors.

    • Contains 0? If not, stop: not a subspace. ($5x_1 + 2x_3 + 4 = 0$ fails: plugging in $\0$ gives $4 = 0$.)
    • Defined by homogeneous linear equations ("$= 0$", no constants, no squares)? Then yes: it’s a null space.
    • Defined as all combinations $\alpha\u + \beta\v$ with $\alpha, \beta$ free? Yes: it’s a span.
    • Squares, absolute values, products, or sign restrictions (like $x \ge 0$ or $\alpha^2$)? Almost always no: scaling by −1 breaks it.
    Try it

    Drag $\u$ and $\v$, and use the sliders for the coefficients $\alpha$ and $\beta$. The orange point is $\alpha\u + \beta\v$. The shaded region is the span. Line the two vectors up and watch the span collapse from the whole plane to a single line.

    GATE DA 2024 · Q47 · MSQ · 2 marks

    Select all choices that are subspaces of $\R^3$. (Note: $\R$ denotes the set of real numbers.)

    1. $$\left\{\x = \begin{bmatrix}x_1\\x_2\\x_3\end{bmatrix}\in\R^3 : \x = \alpha\begin{bmatrix}1\\1\\0\end{bmatrix} + \beta\begin{bmatrix}1\\0\\0\end{bmatrix},\ \alpha,\beta\in\R\right\}$$
    2. $$\left\{\x\in\R^3 : \x = \alpha^2\begin{bmatrix}1\\2\\0\end{bmatrix} + \beta^2\begin{bmatrix}1\\0\\1\end{bmatrix},\ \alpha,\beta\in\R\right\}$$
    3. $$\left\{\x\in\R^3 : 5x_1 + 2x_3 = 0,\ 4x_1 - 2x_2 + 3x_3 = 0\right\}$$
    4. $$\left\{\x\in\R^3 : 5x_1 + 2x_3 + 4 = 0\right\}$$
    1. (A) is the span of two vectors with free coefficients: a subspace (a plane through the origin). ✓

      "All combinations with $\alpha, \beta$ free" is the definition of a span.

    2. (B) uses $\alpha^2, \beta^2$, which are never negative. So you only get non-negative combinations, a wedge. Take $\begin{bmatrix}1\\2\\0\end{bmatrix}$ (with $\alpha = 1, \beta = 0$) and scale by $-1$: $\begin{bmatrix}-1\\-2\\0\end{bmatrix}$ would need $\alpha^2 + \beta^2 = -1$ in the first coordinate. Impossible. ✗

      Closure under scaling by a negative number fails. Squares on the coefficients are the giveaway.

    3. (C) is the solution set of two homogeneous linear equations: a null space, so a subspace (here a line through the origin). ✓

      Sums and multiples of solutions of $A\x = \0$ are again solutions.

    4. (D) doesn’t contain $\0$ ($0 + 0 + 4 \ne 0$). It’s a plane, but shifted off the origin. ✗ Answer: A, C.

      Official key: A; C.

    Warm-up. Is the line $\{(x, y) : y = 2x\}$ a subspace of $\R^2$?

    Does it contain $(0, 0)$? Is it the span of one vector?

    Yes. It’s the span of $(1, 2)$: every point is $t(1, 2)$. It contains $\0$, and sums and multiples of points on it stay on it.

    Warm-up. Is the line $\{(x, y) : y = 2x + 1\}$ a subspace of $\R^2$?

    Check the zero vector first.

    No. Putting $x = 0$ gives $y = 1$, so $(0, 0)$ is not on the line. A subspace must contain $\0$.

    Which are subspaces of $\R^2$? (Select all that apply.)

    (A) $\{(x, y): y = 2x\}$   (B) $\{(x, y): x + y = 1\}$   (C) $\{(0, 0)\}$   (D) $\{(x, y): x \ge 0, y \ge 0\}$

    Check: contains $(0,0)$? Closed under scaling by $-1$?

    (A) a line through the origin ✓. (B) misses the origin ✗. (C) the zero subspace ✓: $\0 + \0 = \0$ and $c\0 = \0$. (D) scaling $(1,1)$ by $-1$ leaves the quadrant ✗.

    Write $(3, 5)$ as $\alpha(1, 1) + \beta(1, 2)$. Find $\alpha$ and $\beta$.

    Two equations: $\alpha + \beta = 3$ and $\alpha + 2\beta = 5$.

    Subtract the first from the second: $\beta = 2$, so $\alpha = 1$. Check: $(1,1) + 2(1,2) = (3, 5)$ ✓.

    GATE DA 2026 · Q22 · MCQ · 1 mark

    Consider a set $S_1 = \{x = (x_1, x_2, x_3)^T\in\R^3 \mid x^Tx \le 16\}$. Let $S_2$ be another set which is a subspace of $\R^3$ with dimension two. Which of the following gives the area of $S_1 \cap S_2$?

    1. $16\pi$
    2. $4\pi$
    3. $4\pi^2$
    4. $16\pi^2$

    $S_1$ is a solid ball of radius 4 centred at the origin. A 2-dimensional subspace is a plane through the origin. What shape is their intersection?

    A plane through the centre of a ball cuts it in a disc with the full radius 4. Area $= \pi\cdot4^2 = 16\pi$. The key fact is that subspaces pass through the origin; a shifted plane would give a smaller disc. Official key: (A).

    Which of the following are subspaces of the stated vector space?

    1. $\{A\in\R^{2\times2} : A\T = A,\ \operatorname{tr}A = 0\}$, a subspace of $\R^{2\times2}$ of dimension 2.
    2. $\{A\in\R^{2\times2} : \det A = 0\}$, a subspace of $\R^{2\times2}$.
    3. $\{\x\in\R^3 : \x\T M\x = 0\}$ with $M = \begin{bmatrix}1&0&0\\0&1&0\\0&0&0\end{bmatrix}$, a subspace of $\R^3$.
    4. $\{\x\in\R^3 : A\x = \b\}$ for a $3\times3$ matrix $A$ of rank 2 and some $\b\ne\0$ with $\b$ in the column space of $A$, a subspace of $\R^3$ of dimension 1.

    Run the zero test first. For the sets that pass it, try adding two members, or write the set as a null space or a span.

    (A) A symmetric trace-zero matrix looks like $\begin{bmatrix}a&b\\b&-a\end{bmatrix}$. Both conditions are linear, so the set is a subspace, and it has two free numbers $a, b$: dimension 2 ✓.

    (B) The set contains $0$ and is closed under scaling, but not under addition: $\begin{bmatrix}1&0\\0&0\end{bmatrix}$ and $\begin{bmatrix}0&0\\0&1\end{bmatrix}$ both have determinant 0, while their sum $I$ has determinant 1 ✗.

    (C) $\x\T M\x = x_1^2 + x_2^2$, which is 0 only when $x_1 = x_2 = 0$. The set is the $z$-axis, a line through the origin ✓. (A quadratic condition can still give a subspace; you have to look at what the set actually is.)

    (D) $A\0 = \0 \ne \b$, so $\0$ is not in the set. It is a line (nullity $3 - 2 = 1$), but one shifted off the origin ✗.

    Answer: A, C.

    In $\R^4$, let $U = \operatorname{span}\{(1, 0, 1, 0),\ (0, 1, 0, 1)\}$ and $W = \{\x : x_1 + x_2 + x_3 + x_4 = 0,\ x_1 - x_3 = 0\}$. Find $\dim(U\cap W)$ and $\dim(U + W)$.

    Write a general vector of $U$ with two parameters and push it through the two equations of $W$. Then use $\dim(U+W) = \dim U + \dim W - \dim(U\cap W)$.

    A general vector of $U$ is $a(1,0,1,0) + b(0,1,0,1) = (a, b, a, b)$, and the two spanning vectors are independent, so $\dim U = 2$.

    $W$ is the null space of a $2\times4$ matrix whose two rows are independent, so $\dim W = 4 - 2 = 2$.

    $(a, b, a, b)\in W$ needs $2a + 2b = 0$ and $a - a = 0$. The second always holds, the first forces $b = -a$. So $U\cap W = \operatorname{span}\{(1, -1, 1, -1)\}$ and $\dim(U\cap W) = 1$.

    $\dim(U + W) = 2 + 2 - 1 = 3$.

    Answer: 1 and 3.

    For a real number $k$, let $W_k = \operatorname{span}\{(1, 2, 3),\ (2, 1, 0),\ (1, k, 5)\}\subseteq\R^3$. For exactly one value of $k$, $W_k$ is a plane through the origin, and that plane is $x + py + qz = 0$. Find $k$, $p$ and $q$.

    The first two vectors already span a plane. Find its normal (a cross product works), then ask when the third vector lies in that plane.

    $(1, 2, 3)$ and $(2, 1, 0)$ are independent, so they span a plane. Its normal is their cross product: $(2\cdot0 - 3\cdot1,\ 3\cdot2 - 1\cdot0,\ 1\cdot1 - 2\cdot2) = (-3, 6, -3)$, a multiple of $(1, -2, 1)$. So the plane is $x - 2y + z = 0$, giving $p = -2$, $q = 1$.

    $W_k$ is that plane exactly when $(1, k, 5)$ lies in it: $1 - 2k + 5 = 0$, so $k = 3$. For any other $k$ the three vectors are independent and $W_k = \R^3$. (Equivalently, $\det\begin{bmatrix}1&2&3\\2&1&0\\1&k&5\end{bmatrix} = 0$ only at $k = 3$.)

    Answer: $k = 3$, $p = -2$, $q = 1$.

    • Check “contains 0” first; it eliminates most non-subspaces instantly.
    • Recognise null spaces ($A\x = \0$) and spans as automatic subspaces.
    • Test closure with a negative scalar when coefficients are squared or restricted.
    • Calling any plane a subspace. It must pass through the origin.
    • Thinking a union of two subspaces is a subspace. Two lines together aren’t closed under addition.
    • Forgetting that $\{\0\}$ and $\R^n$ itself are subspaces.
    1. The span of some vectors is all their linear combinations; it’s always a subspace.
    2. A subspace contains 0 and is closed under addition and scaling: a flat sheet through the origin.
    3. Homogeneous linear equations and free-coefficient spans give subspaces; constants, squares and sign restrictions usually don’t.

    Two non-zero vectors in $\R^3$ that are not multiples of each other span

    all of $\R^3$
    Two vectors can’t reach out of their own plane.
    a plane through the origin
    Every combination stays in the plane they define.
    a line
    That happens only if one is a multiple of the other.
    a plane that may miss the origin
    The span always contains $\0$ (take both coefficients 0).

    The set of solutions of $A\x = \b$ with $\b \ne \0$ is

    always a subspace
    Does it contain $\x = \0$? That would need $A\0 = \b$.
    never a subspace
    $\0$ isn’t a solution since $A\0 = \0 \ne \b$.
    a subspace if $A$ is square
    The problem is $\b \ne \0$, whatever the shape of $A$.

    $\{(x, y, z): x^2 + y^2 = z^2\}$ (a double cone) is

    a subspace, since it contains 0
    Containing 0 is necessary but not sufficient. Try adding two points on the cone.
    not a subspace
    $(1,0,1)$ and $(0,1,1)$ are on it, but their sum $(1,1,2)$ isn’t: $1 + 1 \ne 4$.
    a subspace of dimension 2
    It’s curved, not flat.

    Independence, basis and dimension: no redundant directions

    Vectors are linearly independent when none of them can be built from the others; a basis is an independent set that spans the whole space, and the number of vectors in it is the dimension.

    Independence underlies rank, invertibility and solution counts. GATE asks about it directly (“orthonormal vectors are independent?”) and through rank and determinant questions.

    It’s like a squad with no duplicate skills: each player adds something the others can’t cover. A basis is the smallest squad that can still play every role.

    Where it shows up in GATE DA

    True/false statements about independence and orthonormal bases, and as the hidden reason behind rank and invertibility answers.

    2025 Q25 · orthonormal bases of ℝⁿ2025 Q38 · Gram matrix of independent vectors2024 Q48 · solution counts2026 Q11 · orthogonal principal components
    Heat: most years, 1–2 marks

    Why care about redundancy?

    A DPL scorer records, for every innings, runs off the bat, extras, and total runs. The third column is always the sum of the first two, so it carries no new information: it’s a combination of the others. Storing it wastes space, and in a regression model it makes the answer impossible to pin down. Linear algebra calls such a set of vectors dependent.

    A small example: $(1, 0)$, $(0, 1)$ and $(1, 1)$. The third is the sum of the first two, so $1\cdot(1, 0) + 1\cdot(0, 1) - 1\cdot(1, 1) = (0, 0)$: a combination that gives $\0$ without all the coefficients being zero. That is exactly what the definition below looks for.

    Vectors $\v_1, \ldots, \v_k$ are linearly independent if the only way to get $c_1\v_1 + \cdots + c_k\v_k = \0$ is with every $c_i = 0$. Otherwise they’re dependent: one of them is a combination of the others.

    • Two vectors are dependent exactly when one is a multiple of the other (they lie on one line).
    • Any set containing $\0$ is dependent ($1\cdot\0 = \0$).
    • More than $n$ vectors in $\R^n$ are always dependent: there just aren’t enough directions.
    • For $n$ vectors in $\R^n$: put them as columns of a matrix $A$. They’re independent ⇔ $\det A \ne 0$ ⇔ $A$ is invertible. (The determinant of a 2 × 2 matrix is $ad - bc$, from Refreshers 4.2; Part 2 covers it fully.)

    A basis of a subspace $W$ is a set of independent vectors that spans $W$. Every basis of $W$ has the same number of vectors: the dimension of $W$. Each vector in $W$ is a unique combination of basis vectors; those coefficients are its coordinates in that basis. $\R^n$ has dimension $n$; its standard basis is $\e_1 = (1, 0, \ldots, 0), \ldots, \e_n$.

    Example. In Chapter 1.1, $\u = (1, 1)$ and $\v = (1, -1)$ reached every point of the plane, and neither is a multiple of the other. So they are a basis of $\R^2$, and $\R^2$ has dimension 2. The point $(4, 3)$ was $3.5\u + 0.5\v$, so its coordinates in this basis are $(3.5, 0.5)$, while in the standard basis they are $(4, 3)$. Same point, different “address”.

    Vectors are orthonormal (ortho = at right angles, normal = length 1) if each has length 1 and every pair is perpendicular: $\v_i\cdot\v_j = 0$ for $i \ne j$, $\v_i\cdot\v_i = 1$. Orthonormal vectors are automatically independent: dot $c_1\v_1 + \cdots + c_k\v_k = \0$ with $\v_j$ and everything vanishes except $c_j = 0$.

    Try it

    Drag $\u$ and $\v$ (the basis) and the target $\w$. When $\u, \v$ are independent, the readout gives the unique coordinates of $\w$ in this basis, and the shaded parallelogram’s area is $|\det[\u\ \v]|$. Drag $\v$ onto the line of $\u$: the area drops to zero and coordinates stop existing (or stop being unique).

    GATE DA 2025 · Q25 · MSQ · 1 mark

    Which of the following statements is/are correct?

    1. $\R^n$ has a unique set of orthonormal basis vectors
    2. $\R^n$ does not have a unique set of orthonormal basis vectors
    3. Linearly independent vectors in $\R^n$ are orthonormal
    4. Orthonormal vectors $\R^n$ are linearly independent
    1. (A) vs (B): rotate the standard basis of $\R^2$ by any angle and you get another orthonormal basis, e.g. $\tfrac{1}{\sqrt2}(1,1), \tfrac{1}{\sqrt2}(-1,1)$. There are infinitely many. (A) ✗, (B) ✓.

      One counterexample is enough to kill “unique”.

    2. (C): $(1, 0)$ and $(1, 1)$ are independent but neither perpendicular nor both of length 1. ✗

      Independence is much weaker than orthonormality.

    3. (D): orthonormal ⇒ independent, as shown above by dotting with each $\v_j$. ✓ Answer: B, D.

      Official key: B; D.

    Go deeper: the Gram matrix (2025 Q38)

    Put $\x_1, \ldots, \x_n$ as the columns of $X$. The matrix $A = X\T X$ has entries $A_{ij} = \x_i\cdot\x_j$ (the “Gram matrix”). For any $\z$, $\z\T A\z = \norm{X\z}^2 \ge 0$, and if the $\x_i$ are independent then $X\z \ne \0$ for $\z \ne \0$, so $\z\T A\z \gt 0$. Hence $A$ is invertible (positive definite, Part 3). Official answer to 2025 Q38: (A) $A$ is invertible.

    Warm-up. Are $(2, 4)$ and $(3, 6)$ linearly independent?

    Is one a multiple of the other?

    No: $(3, 6) = 1.5\cdot(2, 4)$, so $1.5(2, 4) - (3, 6) = \0$. They lie on one line.

    Warm-up. What is the dimension of the plane $\{\x \in \R^3 : x_3 = 0\}$?

    Find a basis: which simple vectors span all points of the form $(x_1, x_2, 0)$?

    $(x_1, x_2, 0) = x_1(1, 0, 0) + x_2(0, 1, 0)$, and those two are independent. A basis of 2 vectors: dimension 2.

    Are $(1, 0, 1)$, $(0, 1, 1)$ and $(1, 1, 2)$ linearly independent?

    Is the third a combination of the first two?

    $(1,1,2) = (1,0,1) + (0,1,1)$, so they’re dependent. (Equivalently, the 3 × 3 determinant is 0.)

    What is the dimension of the plane $\{(x, y, z): x + y + z = 0\}$ in $\R^3$?

    One equation removes one degree of freedom from three. Or find a basis.

    Choose $y, z$ freely; then $x = -y - z$. Basis: $(-1, 1, 0)$ and $(-1, 0, 1)$. Dimension 2.

    Find the coordinates of $(5, 1)$ in the basis $\{(1, 1), (1, -1)\}$, i.e. $a, b$ with $(5,1) = a(1,1) + b(1,-1)$.

    $a + b = 5$ and $a - b = 1$.

    Adding: $2a = 6$, so $a = 3$ and $b = 2$. (This basis is orthogonal, so you could also use dot products: $a = \frac{(5,1)\cdot(1,1)}{2} = 3$.)

    What is the largest number of linearly independent vectors you can have in $\R^4$?

    Independent vectors can’t outnumber the dimension.

    4. Any 5 vectors in $\R^4$ are dependent.

    $\u, \v, \w$ are linearly independent vectors in $\R^5$. For exactly one real number $a$, the vectors $\u + a\v,\ \v + a\w,\ \w + a\u$ are linearly dependent. Find $a$.

    Write each new vector in terms of $\u, \v, \w$. Since those three are independent, the new set is dependent exactly when the $3\times3$ matrix of coefficients is singular.

    Put the coefficients of $\u, \v, \w$ in columns: $C = \begin{bmatrix}1&0&a\\a&1&0\\0&a&1\end{bmatrix}$. Because $\u, \v, \w$ are independent, $c_1(\u + a\v) + c_2(\v + a\w) + c_3(\w + a\u) = \0$ has a non-zero solution exactly when $C\,\mathbf c = \0$ does, i.e. when $\det C = 0$.

    Expanding along the first row: $\det C = 1\cdot(1 - 0) - 0 + a\cdot(a^2 - 0) = 1 + a^3$.

    $1 + a^3 = (a + 1)(a^2 - a + 1)$, and the quadratic factor has no real roots. So $a = -1$. (Check: $(\u - \v) + (\v - \w) + (\w - \u) = \0$.)

    Answer: −1.

    Let $D = \begin{bmatrix}1&0&0\\0&1&0\\0&0&2\end{bmatrix}$. The set of all $3\times3$ real matrices $X$ with $XD = DX$ is a subspace of $\R^{3\times3}$. What is its dimension?

    Compare entry $(i, j)$ of $XD$ and $DX$: one scales column $j$ of $X$, the other scales row $i$.

    $(XD)_{ij} = x_{ij}d_j$ and $(DX)_{ij} = d_i x_{ij}$. So $XD = DX$ means $x_{ij}(d_j - d_i) = 0$ for every $i, j$.

    With $d = (1, 1, 2)$: whenever $d_i \ne d_j$, $x_{ij}$ must be 0. That kills $x_{13}, x_{23}, x_{31}, x_{32}$ and leaves $x_{11}, x_{12}, x_{21}, x_{22}$ (the top-left $2\times2$ block, where $d_i = d_j = 1$) and $x_{33}$ free.

    A basis is the five matrices with a single 1 in one of those positions, so the dimension is $4 + 1 = 5$.

    Answer: 5.

    $\mathbf q_1, \mathbf q_2, \mathbf q_3$ are orthonormal vectors in $\R^5$ and $\x = 2\mathbf q_1 - \mathbf q_2 + 2\mathbf q_3$. Which of the following are TRUE?

    1. $\norm\x = 3$.
    2. $\{\mathbf q_1, \mathbf q_2, \mathbf q_3, \x\}$ is linearly independent.
    3. $\x\cdot\mathbf q_2 = -1$.
    4. $\{\mathbf q_1 + \mathbf q_2,\ \mathbf q_2 + \mathbf q_3,\ \mathbf q_1 - \mathbf q_3\}$ is a basis of $\operatorname{span}\{\mathbf q_1, \mathbf q_2, \mathbf q_3\}$.

    With orthonormal vectors, lengths and dot products come straight from the coefficients. For (D), look for a combination of the first two that gives the third.

    (A) Orthonormality kills the cross terms: $\norm\x^2 = 2^2 + (-1)^2 + 2^2 = 9$, so $\norm\x = 3$ ✓.

    (B) $\x$ is by definition a combination of the other three, so the set of four is dependent ✗.

    (C) $\x\cdot\mathbf q_2 = 2(\mathbf q_1\cdot\mathbf q_2) - (\mathbf q_2\cdot\mathbf q_2) + 2(\mathbf q_3\cdot\mathbf q_2) = 0 - 1 + 0 = -1$ ✓.

    (D) $(\mathbf q_1 + \mathbf q_2) - (\mathbf q_2 + \mathbf q_3) = \mathbf q_1 - \mathbf q_3$, so the three are dependent and span only a plane. They are not a basis of the 3-dimensional span ✗.

    Answer: A, C.

    • For $n$ vectors in $\R^n$, test independence with a determinant.
    • Look for an obvious combination (like “third = first + second”) before computing.
    • Remember the chain: orthonormal ⇒ orthogonal and non-zero ⇒ independent.
    • Thinking independent vectors must be perpendicular.
    • Believing a space has only one basis.
    • Counting vectors instead of independent directions when asked for a dimension.
    1. Independent means no vector is a combination of the others; n vectors in ℝⁿ are independent iff their matrix has det ≠ 0.
    2. A basis spans with no redundancy; every basis has the same size, the dimension, and coordinates in a basis are unique.
    3. Orthonormal vectors are always independent, and ℝⁿ has infinitely many orthonormal bases.

    Which set is linearly dependent?

    $\{(1, 0), (0, 1)\}$
    The standard basis is independent.
    $\{(2, 4), (-1, -2)\}$
    $(2, 4) = -2(-1, -2)$: one is a multiple of the other.
    $\{(1, 2), (2, 1)\}$
    $\det = 1 - 4 = -3 \ne 0$.
    $\{(3, 0)\}$
    A single non-zero vector is independent.

    Three vectors in $\R^2$ are

    always independent
    $\R^2$ only has two independent directions.
    always dependent
    More than $n$ vectors in $\R^n$ are always dependent.
    independent if no two are parallel
    Even then, the third is a combination of the first two.

    If the columns of a square matrix $A$ are independent, then

    $\det A = 0$
    That’s the dependent case.
    $A$ is invertible
    Independent columns ⇔ non-zero determinant ⇔ invertible.
    $A$ is orthogonal
    Orthogonal needs orthonormal columns, a much stronger condition.
    $A$ is symmetric
    Independence says nothing about symmetry.

    $\{\x\in\R^3: \x\cdot(1, 2, 3) = 0\}$ is

    a line through the origin
    One equation in three unknowns leaves two free directions.
    a plane through the origin
    All vectors perpendicular to $(1,2,3)$: a 2-D subspace.
    not a subspace
    It’s defined by one homogeneous linear equation, so it is a subspace.
    all of $\R^3$
    $(1,2,3)$ itself isn’t in it.

    Vectors $\u, \v$ in $\R^2$ have $\det[\u\ \v] = 0$. Then

    they are orthogonal
    Orthogonal means a zero dot product, not a zero determinant.
    they lie on one line through the origin
    Zero area ⇒ the parallelogram is flat ⇒ dependent.
    they form a basis of $\R^2$
    A basis needs a non-zero determinant.

    $\u = (3, 4)/5$ and $\v = (-4, 3)/5$. They

    are dependent
    Compute $\u\cdot\v$ and both lengths.
    form an orthonormal basis of $\R^2$
    Each has length 1 and $\u\cdot\v = (-12 + 12)/25 = 0$.
    are orthogonal but not unit vectors
    $\norm{(3,4)} = 5$, so dividing by 5 gives length 1.

    Systems of linear equations $A\x = \b$ are where matrices earn their keep. This part covers Gaussian elimination (the algorithm), rank and nullity (the theory that predicts whether there are zero, one or infinitely many solutions), and determinants (one number that tells you whether a square matrix is invertible). GATE tests all three, often as “which of these statements are true”.

    You need: Part 1 (span, independence, dimension). Quick check: can you compute $\begin{bmatrix}1&2\\3&4\end{bmatrix}\begin{bmatrix}1\\1\end{bmatrix}$? (It’s $(3, 7)$.) If not, Refreshers 4.2 covers matrix–vector products.

    Gaussian elimination: solving equations systematically

    Gaussian elimination solves $A\x = \b$ by adding multiples of one equation to another until the system is triangular, then solving from the bottom up.

    It’s in the syllabus by name, GATE has asked about its cost, and its by-products (pivots, echelon form) give you rank, determinant and LU decomposition for free.

    It’s like untangling earphones one knot at a time: each step simplifies one thing without undoing the last, until the answer just falls out.

    Where it shows up in GATE DA

    Directly in cost and procedure questions; indirectly every time you need a rank or a solution count.

    2025 Q12 · cost on a triangular matrix2024 Q48 · solution counts2025 Q13 · Bx = 0Sample Q39 · rank of a 3 × 3 matrix
    Heat: most years, 1–2 marks

    Take the system $x + 2y = 5$, $3x - y = 1$. In matrix form:

    $$\begin{bmatrix}1&2\\3&-1\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix} = \begin{bmatrix}5\\1\end{bmatrix}.$$

    Two ways to see it:

    • Row picture: each equation is a line; the solution is where the lines meet.
    • Column picture: find weights $x, y$ so that $x\begin{bmatrix}1\\3\end{bmatrix} + y\begin{bmatrix}2\\-1\end{bmatrix} = \begin{bmatrix}5\\1\end{bmatrix}$. A solution exists exactly when $\b$ is in the span of the columns.

    Elimination by hand, once

    Solve $x + 2y = 5$ and $3x - y = 1$ the school way, but tidily. Subtract 3 times the first equation from the second, so that $x$ disappears: $$(3x - y) - 3(x + 2y) = 1 - 3\cdot5 \quad\Rightarrow\quad -7y = -14 \quad\Rightarrow\quad y = 2.$$ Then put $y = 2$ back into the first equation: $x = 5 - 4 = 1$. Check in the second: $3 - 2 = 1$ ✓. Gaussian elimination is exactly this, done to the rows of a matrix so it works the same way for 3, 30 or 3000 unknowns. The number we divided by to remove $x$ (the 1 in front of $x$ in the first equation) is called the pivot.

    1. Write the augmented matrix $[A \mid \b]$.
    2. Use three row operations, none of which changes the solutions: swap two rows; multiply a row by a non-zero number; add a multiple of one row to another.
    3. Working column by column, use the pivot (the first non-zero entry of the current row) to create zeros below it. The result is row echelon form: a staircase of pivots with zeros below.
    4. Back-substitute: solve the last equation, plug into the one above, and so on.
    Try it

    Step through elimination on three systems. Each click performs one row operation; the pivot is highlighted. Watch for the moment the system tells you its fate: a clean staircase (unique solution), a row of zeros (a free variable, infinitely many), or a row that says $0 = $ something non-zero (no solution).

    How much work is it?

    Eliminating below one pivot in an $n\times n$ matrix touches about $n^2$ entries, and there are $n$ pivots, so elimination costs on the order of $n^3$ operations, written $O(n^3)$. Big-O notation keeps only how the work grows with $n$ and ignores constant factors: $O(n^3)$ means doubling $n$ multiplies the work by about $2^3 = 8$. Back-substitution on a triangular system is cheaper: row $k$ needs about $k$ multiplications, totalling about $n^2/2$, so $O(n^2)$.

    GATE DA 2025 · Q12 · MCQ · 1 mark

    The number of additions and multiplications involved in performing Gaussian elimination on any $n\times n$ upper triangular matrix is of the order

    1. $O(n)$
    2. $O(n^2)$
    3. $O(n^3)$
    4. $O(n^4)$
    1. An upper triangular matrix already has zeros below every pivot, so the elimination phase has nothing to do.

      Elimination is what costs $O(n^3)$; here it’s skipped.

    2. What remains is back-substitution: solving for $x_n$, then $x_{n-1}$ using $x_n$, and so on. Row $k$ from the bottom needs about $k$ multiplications and additions.

      $1 + 2 + \cdots + n = n(n+1)/2$, from the sums refresher.

    3. Total about $n^2/2$: (B) $O(n^2)$.

      (C) is the cost for a general matrix, the trap if you don’t use the triangular structure. Official key: (B).

    Warm-up. Solve $x + y = 7$ and $x - y = 1$.

    Add the two equations to remove $y$.

    Adding gives $2x = 8$, so $x = 4$; then $y = 7 - 4 = 3$. Check: $4 - 3 = 1$ ✓.

    Warm-up. In $\begin{bmatrix}1&3\\2&8\end{bmatrix}$, subtract 2 × row 1 from row 2. What is the new bottom-right entry?

    Row 2 becomes $(2, 8) - 2\cdot(1, 3)$.

    $(2 - 2,\ 8 - 6) = (0, 2)$: the entry is 2, and the 0 below the pivot shows elimination worked.

    Solve $x + 2y = 5$, $3x - y = 1$.

    Replace row 2 by row 2 − 3 × row 1 to eliminate $x$.

    $R_2 - 3R_1$: $-7y = -14$, so $y = 2$; then $x = 5 - 4 = 1$. Check: $3 - 2 = 1$ ✓.

    How many solutions does $x + y = 2$, $2x + 2y = 5$ have?

    Subtract twice the first equation from the second.

    $R_2 - 2R_1$ gives $0 = 1$: impossible. The lines are parallel. No solution.

    A consistent system has 3 unknowns, and elimination leaves 2 pivots. How many free variables are there?

    Each unknown without a pivot is free.

    $3 - 2 = 1$ free variable, so infinitely many solutions (a line of them).

    In $\left[\begin{array}{cc|c}1&2&5\\3&4&6\end{array}\right]$, apply $R_2 \leftarrow R_2 - 3R_1$. What are the new second-row entries in column 2 and on the right-hand side?

    Subtract 3 times each entry of row 1 from row 2.

    Column 2: $4 - 3\cdot2 = -2$. Right side: $6 - 3\cdot5 = -9$. Row 2 becomes $[0, -2 \mid -9]$.

    Consider the system

    $x + 2y - z = 1$
    $2x + 3y + z = 4$
    $3x + 5y + az = b$.

    There is exactly one pair $(a, b)$ for which the system has infinitely many solutions. Enter that $a$ and $b$. Then, for $a = 2$ and $b = 9$, the solution is unique: enter its $z$.

    Eliminate $x$ from rows 2 and 3, then eliminate $y$ from row 3. The last row will read (something)·$z$ = (something).

    $R_2 - 2R_1$: $-y + 3z = 2$. $R_3 - 3R_1$: $-y + (a + 3)z = b - 3$.

    Subtract the new row 2 from the new row 3: $az = b - 5$.

    If $a \ne 0$ there are three pivots and a unique solution. If $a = 0$ the last row reads $0 = b - 5$: no solution when $b \ne 5$, and infinitely many (one free variable) when $b = 5$. So $a = 0$, $b = 5$.

    For $a = 2$, $b = 9$: $2z = 4$, so $z = 2$. (Back-substituting: $y = 3z - 2 = 4$ and $x = 1 - 2y + z = -5$; check row 3: $-15 + 20 + 4 = 9$ ✓.)

    Answer: $a = 0$, $b = 5$, $z = 2$.

    Two row operations are applied to a $3\times3$ matrix $A$, in this order: first $R_2 \leftarrow R_2 - 3R_1$, then $R_3 \leftarrow R_3 + 2R_2$. The result is $EA$ for a single matrix $E$. What are the $(3, 1)$ entry of $E$ and the $(3, 1)$ entry of $E^{-1}$?

    1. $-6$ and $0$
    2. $0$ and $-6$
    3. $-6$ and $6$
    4. $6$ and $-6$

    Write each operation as an elementary matrix $E_1, E_2$. Then $E = E_2E_1$ (the first operation sits on the right) and $E^{-1} = E_1^{-1}E_2^{-1}$.

    $E_1$ is $I$ with $-3$ in position $(2,1)$; $E_2$ is $I$ with $+2$ in position $(3,2)$.

    $E = E_2E_1$: row 3 of $E$ is row 3 of $E_1$ plus 2 × row 2 of $E_1$, i.e. $(0,0,1) + 2(-3,1,0) = (-6, 2, 1)$. So $E_{31} = -6$. The second operation adds the already-changed row 2, which carries $-3R_1$ with it.

    $E^{-1} = E_1^{-1}E_2^{-1}$, where $E_1^{-1}$ has $+3$ at $(2,1)$ and $E_2^{-1}$ has $-2$ at $(3,2)$. Row 3 of $E^{-1}$ is row 3 of $E_1^{-1}$, which is $(0,0,1)$, times $E_2^{-1}$: $(0, -2, 1)$. So $(E^{-1})_{31} = 0$.

    (B) multiplies in the wrong order: $E_1E_2$ has $(3,1)$ entry 0 and its inverse $E_2^{-1}E_1^{-1}$ has $-6$. (C) and (D) assume the inverse just flips every sign, which only works for a single elementary matrix. This is exactly why the multipliers drop cleanly into $L$ in LU.

    Answer: (A).

    Consider $A\x = \b$ with $A = \begin{bmatrix}1&2&0&1\\2&4&1&4\\3&6&1&5\end{bmatrix}$ and $\b = (3, 7, k)$. Which of the following are TRUE?

    1. The system is consistent if and only if $k = 10$.
    2. When $k = 10$, the solution set has two free parameters.
    3. When $k = 10$, every solution has the form $(3, 0, 1, 0) + t(-2, 1, 0, 0)$ for some $t\in\R$.
    4. For every $k$, the columns of $A$ span $\R^3$.

    Row-reduce the augmented matrix. Count pivots and look at the last row.

    $R_2 - 2R_1$ gives $[0\ 0\ 1\ 2 \mid 1]$. $R_3 - 3R_1$ gives $[0\ 0\ 1\ 2 \mid k - 9]$, and subtracting the new row 2 leaves $[0\ 0\ 0\ 0 \mid k - 10]$.

    (A) The last row says $0 = k - 10$, so the system is consistent exactly when $k = 10$ ✓.

    (B) Pivots sit in columns 1 and 3, so rank 2 and $4 - 2 = 2$ free variables ($x_2, x_4$) ✓.

    (C) $(3, 0, 1, 0)$ is a valid particular solution, but the null space is 2-dimensional, spanned by $(-2, 1, 0, 0)$ and $(-1, 0, -2, 1)$. The stated family misses the second direction ✗.

    (D) Rank 2 means the column space is a plane in $\R^3$; that is also why some $\b$ have no solution ✗.

    Answer: A, B.

    • Work on the augmented matrix so you don’t lose the right-hand side.
    • Read the final echelon form: a row $[0\ 0\ \cdots \mid c \ne 0]$ means no solution; a missing pivot means a free variable.
    • Use structure (triangular, diagonal) to skip work.
    • Applying a row operation to $A$ but forgetting $\b$.
    • Multiplying a row by 0, which isn’t a valid row operation.
    • Assuming every square system has exactly one solution.
    1. Ax = b: the row picture intersects lines or planes; the column picture asks whether b is in the span of A’s columns.
    2. Elimination uses swaps, scalings and row additions to reach echelon form, then back-substitution solves it.
    3. Cost: O(n³) for elimination and O(n²) for back-substitution on a triangular system.

    Which operation can change the set of solutions of a system?

    Swapping two equations
    The same equations in a different order have the same solutions.
    Adding 3 × equation 1 to equation 2
    This is the main elimination step; it’s reversible, so it preserves solutions.
    Multiplying an equation by 0
    That throws an equation away (it becomes 0 = 0), so new solutions can appear.
    Multiplying an equation by −2
    Any non-zero multiple preserves the solutions.

    After elimination, a row reads $[0\ \ 0\ \ 0 \mid 0]$. This means

    the system has no solution
    $0 = 0$ is always true; it’s $0 = c \ne 0$ that signals no solution.
    one equation was redundant
    It was a combination of the others. If the system is consistent, there’s a free variable.
    the solution is $\x = \0$
    The row says nothing about the values; it just disappears.

    In the column picture, $A\x = \b$ has a solution exactly when

    $\b = \0$
    That’s sufficient (take $\x = \0$) but not necessary.
    $\b$ is in the span of the columns of $A$
    $A\x$ is a combination of the columns with weights from $\x$.
    $A$ is square
    Shape alone doesn’t decide it.

    Rank and nullity: predicting how many solutions exist

    The rank of a matrix is the number of independent directions its columns span; the nullity is the number of independent directions it squashes to zero; they always add up to the number of columns.

    Rank decides whether $A\x = \b$ has no, one or infinitely many solutions. GATE asks this every year in some form, often as an MSQ about matrices of particular shapes.

    It’s like a camera taking a 2-D photo of a 3-D scene: the photo’s dimension is the rank (2), and the direction straight away from the lens, which gets lost entirely, is the null space (dimension 1). 2 + 1 = 3.

    Where it shows up in GATE DA

    Solution-count MSQs, null-space dimensions, and invertibility.

    2024 Q48 · unique vs infinite vs none2025 Q13 · row sums and Bx = 02024 Q49 · null space of a projectionSample Q38 · orthogonal subspacesSample Q39 · possible ranks2025 Q28, Q37 · rank of special matrices
    Heat: every year, 2–4 marks

    A system with a free choice

    Before the definitions, one small case. Take $x + 2y = 3$ and $2x + 4y = 6$. The second equation is just twice the first, so it tells us nothing new: elimination turns it into $0 = 0$. We are left with one equation in two unknowns. Choose $y$ to be anything you like, say $y = t$, and then $x = 3 - 2t$. Every value of $t$ gives a solution, so there are infinitely many. Here $y$ is a free variable (no pivot in its column), and $x$ is a pivot variable.

    So this matrix $\begin{bmatrix}1&2\\2&4\end{bmatrix}$ has only one genuinely independent row (one pivot) and one free direction. Those two counts are its rank and its nullity, and they add up to the 2 columns. (Notation used below: $\mathrm{diag}(a, b, c)$ is the matrix with $a, b, c$ on the diagonal and zeros elsewhere.)

    For an $m\times n$ matrix $A$:

    • Column space $C(A)$: span of the columns, a subspace of $\R^m$. Its dimension is the rank $r$ = the number of pivots in echelon form.
    • Null space $N(A) = \{\x : A\x = \0\}$, a subspace of $\R^n$. Its dimension is the nullity = the number of free variables.
    • The row space (span of the rows) also has dimension $r$: row rank = column rank.

    $$\mathrm{rank}(A) + \mathrm{nullity}(A) = n\ \ (\text{the number of columns}).$$ Every column is either a pivot column or a free one.

    • No solution if $\b$ is not in $C(A)$, i.e. $\mathrm{rank}[A\mid\b] \gt \mathrm{rank}(A)$.
    • If a solution exists: unique when $r = n$ (no free variables), infinitely many when $r \lt n$.
    • Every solution = one particular solution + anything in the null space.
    • So: if $A\x = \b$ has a unique solution for some $\b$, then $N(A) = \{\0\}$ and it can never have infinitely many for any $\b$.

    The four fundamental subspaces. Row space ⟂ null space (in $\R^n$), and column space ⟂ left null space $N(A\T)$ (in $\R^m$). “⟂” means every vector of one is perpendicular to every vector of the other. Why: $A\x = \0$ says $\x$ is dotted to zero with every row.

    Square matrices. For $n\times n$ $A$, these are all equivalent: rank $n$; columns independent; $N(A) = \{\0\}$; $\det A \ne 0$; $A$ invertible; $A\x = \b$ has exactly one solution for every $\b$.

    Try it

    Two equations in two unknowns, drawn as lines. Adjust the coefficients and watch the rank, the augmented rank and the verdict. Make the lines parallel (rank 1) with different offsets (no solution), then the same offset (infinitely many).

    GATE DA 2024 · Q48 · MSQ · 2 marks

    Which of the following statements is/are TRUE? (Note: $\R$ denotes the set of real numbers.)

    1. There exist $M\in\R^{3\times3}$, $p\in\R^3$, and $q\in\R^3$ such that $M\x = p$ has a unique solution and $M\x = q$ has infinite solutions.
    2. There exist $M\in\R^{3\times3}$, $p\in\R^3$, and $q\in\R^3$ such that $M\x = p$ has no solutions and $M\x = q$ has infinite solutions.
    3. There exist $M\in\R^{2\times3}$, $p\in\R^2$, and $q\in\R^2$ such that $M\x = p$ has a unique solution and $M\x = q$ has infinite solutions.
    4. There exist $M\in\R^{3\times2}$, $p\in\R^3$, and $q\in\R^3$ such that $M\x = p$ has a unique solution and $M\x = q$ has no solutions.
    1. (A): a unique solution means $N(M) = \{\0\}$. Then no right-hand side can give infinitely many. ✗

      Solutions = particular + null space. A trivial null space means at most one solution, for every right-hand side.

    2. (B): take a singular $M$, e.g. rank 2. For $q$ in its column space there are infinitely many solutions; for $p$ outside it, none. ✓

      Concrete example: $M = \mathrm{diag}(1, 1, 0)$, $q = (1,1,0)$, $p = (0,0,1)$.

    3. (C): a $2\times3$ matrix has rank at most 2 < 3 columns, so nullity ≥ 1: never a unique solution. ✗

      More unknowns than equations ⇒ always a free variable (if consistent).

    4. (D): a $3\times2$ matrix with rank 2 has trivial null space (unique when solvable), but its column space is only a plane in $\R^3$, so some $q$ lie outside it (no solution). ✓ Answer: B, D.

      Official key: B; D.

    Warm-up. What is the rank of $\begin{bmatrix}1&2\\2&4\end{bmatrix}$?

    Is the second row a multiple of the first?

    Row 2 = 2 × row 1, so elimination leaves one non-zero row: one pivot, rank 1.

    Warm-up. A $3\times5$ matrix has rank 3. What is its nullity?

    Rank + nullity = number of columns.

    $5 - 3 = 2$: two free variables.

    Find the rank and nullity of $\begin{bmatrix}1&2&3\\2&4&6\\1&1&1\end{bmatrix}$.

    Row 2 is twice row 1. Is row 3 a multiple of row 1?

    Row 2 = 2 × row 1, so it’s redundant. Rows 1 and 3 are independent. Rank 2, nullity $3 - 2 = 1$.

    GATE DA 2025 · Q13 · MCQ · 1 mark

    The sum of the elements in each row of $A\in\R^{n\times n}$ is 1. If $B = A^3 - 2A^2 + A$, which one of the following statements is correct (for $x\in\R^n$)?

    1. The equation $Bx = 0$ has no solution
    2. The equation $Bx = 0$ has exactly two solutions
    3. The equation $Bx = 0$ has infinitely many solutions
    4. The equation $Bx = 0$ has a unique solution

    “Each row sums to 1” means $A\mathbf 1 = \mathbf 1$, where $\mathbf 1 = (1, \ldots, 1)$. What is $B\mathbf 1$? Also, $B\x = \0$ always has at least one solution.

    $A\mathbf 1 = \mathbf 1 \Rightarrow A^2\mathbf 1 = A^3\mathbf 1 = \mathbf 1$, so $B\mathbf 1 = \mathbf 1 - 2\cdot\mathbf 1 + \mathbf 1 = \0$. So $\mathbf 1$ (and every multiple of it) is a non-zero solution: the null space is non-trivial, giving infinitely many solutions. (A) is impossible ($\x = \0$ always works), and a homogeneous system never has exactly two. Official key: (C).

    GATE DA 2024 sample paper · Q38 · MCQ · 2 marks

    The following statements are made regarding a matrix $A_{m\times n}$. P. The column space is orthogonal to the row space. Q. The column space is orthogonal to the left null space. R. The row space is orthogonal to the null space. T. The null space is orthogonal to the left null space. Which of the following statements are true?

    1. P and Q only
    2. P and R only
    3. Q and R only
    4. P and T only

    Orthogonal pairs live in the same space: row space and null space are both in $\R^n$; column space and left null space are both in $\R^m$.

    The two orthogonal pairs are (row space, null space) and (column space, left null space). So Q and R: (C). P and T pair spaces that live in different $\R^k$ in general. (Sample paper, no official key.)

    GATE DA 2024 sample paper · Q39 · MCQ · 2 marks

    Consider a matrix $\begin{bmatrix}0&1&0\\a&2&d\\b&3&c\end{bmatrix}$. The matrix cannot have rank

    1. 0
    2. 1
    3. 2
    4. 3

    Rank 0 means the zero matrix. Can you choose $a, b, c, d$ to get rank 1? Rank 3?

    The first row is non-zero, so the rank is at least 1: rank 0 is impossible. Rank 1: $a = b = c = d = 0$ makes every row a multiple of $(0,1,0)$. Rank 3: e.g. $a = 1, d = 0, b = 0, c = 1$. So the answer is (A) 0. (Sample paper, no official key.)

    Let $\a = (1, 0, 2, 1, 3)$ and $\b = (0, 1, 1, -1, 2)$, and let $A$ be the $5\times4$ matrix with columns $\a,\ \b,\ \a + \b,\ 2\a - \b$. Find $\operatorname{rank}A$, the dimension of the null space of $A$, and the dimension of the null space of $A\T$.

    Every column is a combination of $\a$ and $\b$. Then apply rank–nullity twice, once for $A$ (4 columns) and once for $A\T$ (5 columns).

    $\a$ and $\b$ are not multiples of each other (look at the first two entries), and the other two columns are combinations of them. So the column space is $\operatorname{span}\{\a, \b\}$ and $\operatorname{rank}A = 2$.

    $A$ has 4 columns: $\dim N(A) = 4 - 2 = 2$. (For example $(1, 1, -1, 0)$ and $(2, -1, 0, -1)$ lie in it.)

    $A\T$ is $4\times5$ with the same rank 2: $\dim N(A\T) = 5 - 2 = 3$.

    Answer: 2, 2, 3.

    $A$ is a $4\times6$ real matrix of rank 4. Which one of the following is correct?

    1. $A\x = \b$ has infinitely many solutions for every $\b\in\R^4$.
    2. $A\x = \b$ has a unique solution for some $\b\in\R^4$.
    3. $A\T\y = \mathbf c$ has a solution for every $\mathbf c\in\R^6$.
    4. $A\T\y = \0$ has infinitely many solutions.

    Work out the column space and null space of $A$ (in $\R^4$ and $\R^6$), then do the same for $A\T$, which has the same rank.

    Rank 4 = number of rows, so the column space of $A$ is all of $\R^4$: every $\b$ is reachable. The null space has dimension $6 - 4 = 2$, so each solution comes with a 2-parameter family. That is (A) ✓, and it rules out (B).

    $A\T$ is $6\times4$ with rank 4. Its column space is a 4-dimensional subspace of $\R^6$, so most $\mathbf c$ are unreachable: (C) ✗. Its null space has dimension $4 - 4 = 0$, so $A\T\y = \0$ has only $\y = \0$: (D) ✗.

    Answer: (A).

    $A$ is a $3\times5$ real matrix and $B$ is a $5\times3$ real matrix. Which of the following are TRUE?

    1. $AB$ can be invertible.
    2. $BA$ can be invertible.
    3. If $\operatorname{rank}(AB) = 3$, then $\operatorname{rank}A = 3$.
    4. If $AB = I_3$, then the columns of $B$ are linearly independent.

    Use $\operatorname{rank}(XY) \le \min(\operatorname{rank}X, \operatorname{rank}Y)$, and remember that a $3\times5$ or $5\times3$ matrix has rank at most 3.

    (A) Take $A = [I_3 \ \ 0]$ and $B = A\T$: then $AB = I_3$ ✓.

    (B) $BA$ is $5\times5$ but $\operatorname{rank}(BA) \le \operatorname{rank}A \le 3 \lt 5$, so it is never invertible ✗.

    (C) $3 = \operatorname{rank}(AB) \le \operatorname{rank}A \le 3$ ✓.

    (D) $3 = \operatorname{rank}(I_3) \le \operatorname{rank}B$, and $B$ has only 3 columns, so they are independent. Directly: $B\x = \0 \Rightarrow \x = AB\x = \0$ ✓.

    Answer: A, C, D.

    • Use rank–nullity to get one dimension from the other.
    • For “there exists” MSQs, look for a tiny concrete example, like a diagonal matrix.
    • Remember shape limits: rank ≤ min(m, n).
    • Saying a homogeneous system $A\x = \0$ can have no solution. $\x = \0$ always works.
    • Concluding “infinitely many solutions” without checking consistency first.
    • Mixing up where each subspace lives: the null space is in $\R^n$, the column space in $\R^m$.
    1. Rank = number of pivots = dim of the column space = dim of the row space. Nullity = number of free variables.
    2. rank + nullity = number of columns. Solutions = particular solution + null space.
    3. Ax = b: none if b ∉ C(A); unique if consistent and rank = n; infinitely many if consistent and rank < n.

    A $5\times7$ matrix has rank 5. Its nullity is

    0
    Rank–nullity uses the number of columns, 7.
    2
    $7 - 5 = 2$.
    5
    That’s the rank.
    12
    Subtract, don’t add.

    A $4\times4$ matrix has nullity 1. Then

    it is invertible
    A non-trivial null space means some $\x \ne \0$ is sent to $\0$; that can’t be undone.
    its determinant is 0
    Rank 3 < 4: singular.
    every $A\x = \b$ has infinitely many solutions
    Only those with $\b$ in the column space; for the others there are none.
    its rank is 1
    Rank = $4 - 1 = 3$.

    An $m\times n$ system with $m \lt n$ (fewer equations than unknowns) that has at least one solution has

    exactly one solution
    Rank ≤ m < n, so there’s at least one free variable.
    infinitely many solutions
    Nullity ≥ n − m ≥ 1.
    no solutions
    We’re told it’s consistent.

    Determinants: how much a matrix scales area

    The determinant of a square matrix is the factor by which it scales area (2-D) or volume (3-D), with a minus sign if it flips orientation; zero means the matrix squashes space flat.

    Determinants are the fastest invertibility test, and the product rule $\det(AB) = \det A\det B$ turns scary-looking GATE questions into one-liners.

    It’s like a photocopier’s zoom setting: 200% doubles lengths and quadruples area. The determinant is the area factor; a determinant of 0 is a copier that prints everything onto a single line.

    Where it shows up in GATE DA

    Direct computations and invertibility statements; also as the product of eigenvalues.

    2024 Q35 · det(M² + 12M)Sample Q25 · det from eigenvalues2025 Q37 · det of A with A³ = A2025 Q50 · det of a projection2025 Q38 · det of a Gram matrix
    Heat: every year, 1–3 marks

    Start with a picture. The matrix $\begin{bmatrix}3&1\\1&2\end{bmatrix}$ sends $(1, 0)$ to its first column $(3, 1)$ and $(0, 1)$ to its second column $(1, 2)$, so the unit square (area 1) becomes the parallelogram with those two sides. That parallelogram has area $3\cdot2 - 1\cdot1 = 5$. The matrix multiplies every area by 5, and that factor is its determinant. A matrix with determinant 0 squashes the square flat; it is called singular, and it has no inverse.

    $2\times2$: $\det\begin{bmatrix}a&b\\c&d\end{bmatrix} = ad - bc$.

    $3\times3$ (expand along the first row): $$\det\begin{bmatrix}a&b&c\\d&e&f\\g&h&i\end{bmatrix} = a(ei - fh) - b(di - fg) + c(dh - eg).$$ Note the alternating signs $+, -, +$. For a triangular matrix, the determinant is the product of the diagonal entries.

    • $\det(AB) = \det A\cdot\det B$, and $\det(A^k) = (\det A)^k$.
    • $\det(A\T) = \det A$; $\det(A^{-1}) = 1/\det A$.
    • $\det(cA) = c^n\det A$ for an $n\times n$ matrix (each of the $n$ rows gets scaled).
    • Row swap: sign flips. Scaling a row by $c$: multiplies det by $c$. Adding a multiple of one row to another: no change.
    • $\det A = 0$ ⇔ $A$ is singular ⇔ columns dependent ⇔ $A\x = \0$ has a non-zero solution.
    • $\det A$ = product of the eigenvalues (Part 3).
    Try it

    The parallelogram is the image of the unit square. Apply row operations and watch the determinant: a swap flips its sign (the shape turns over), scaling a row scales it, and adding a multiple of one row to another shears the shape without changing its area.

    GATE DA 2024 · Q35 · NAT · 1 mark

    Consider the $3\times3$ matrix $M = \begin{bmatrix}1&2&3\\3&1&3\\4&3&6\end{bmatrix}$. The determinant of $(M^2 + 12M)$ is ______.

    1. Factor: $M^2 + 12M = M(M + 12I)$. So $\det(M^2 + 12M) = \det M\cdot\det(M + 12I)$.

      Squaring a 3 × 3 matrix by hand is slow and error-prone. Factoring lets the product rule do the work.

    2. $\det M = 1(1\cdot6 - 3\cdot3) - 2(3\cdot6 - 3\cdot4) + 3(3\cdot3 - 1\cdot4) = -3 - 12 + 15 = 0$.

      Expand along the first row. (Or notice that row 3 = row 1 + row 2, so the rows are dependent.)

    3. So $\det(M^2 + 12M) = 0\times\det(M + 12I) = $ 0.

      We never need $\det(M + 12I)$. Official key: 0.

    Warm-up. Compute $\det\begin{bmatrix}4&1\\2&3\end{bmatrix}$.

    $ad - bc$.

    $4\cdot3 - 1\cdot2 = 12 - 2 = 10$.

    Warm-up. Compute $\det \mathrm{diag}(2, 3, 4)$.

    For a diagonal (or triangular) matrix, multiply the diagonal entries.

    $2 \cdot 3 \cdot 4 = 24$. It stretches the three axes by 2, 3 and 4, so volumes grow 24-fold.

    Find $\det\begin{bmatrix}2&0&0\\3&4&0\\1&5&6\end{bmatrix}$.

    It’s lower triangular.

    Product of the diagonal: $2\cdot4\cdot6 = 48$.

    $A$ is $3\times3$ with $\det A = 5$. Find $\det(2A)$.

    $\det(cA) = c^n\det A$.

    $2^3\times5 = 40$.

    $\det A = 3$ and $\det B = -2$ ($A, B$ are $n\times n$). Find $\det(A^{-1}B^{-1})$.

    $\det(A^{-1}) = 1/\det A$.

    $\det(A^{-1}B^{-1}) = \det(A^{-1})\det(B^{-1}) = \frac13\cdot\frac{1}{-2} = -\frac16$.

    $\det A = 6$. You swap two rows of $A$. What is the new determinant?

    A swap flips the sign.

    $-6$.

    $A$ is a $3\times3$ real matrix with $\det A = 2$. Find $\det(2\operatorname{adj}A)$ and $\det(\operatorname{adj}(2A))$, where $\operatorname{adj}$ is the adjugate, so that $A\operatorname{adj}A = (\det A)I$.

    Take determinants of $A\operatorname{adj}A = (\det A)I$ to get $\det(\operatorname{adj}A)$. For $\operatorname{adj}(2A)$, use the same identity with $2A$ in place of $A$.

    From $A\operatorname{adj}A = (\det A)I_3$: $\det A\cdot\det(\operatorname{adj}A) = (\det A)^3$, so $\det(\operatorname{adj}A) = (\det A)^2 = 4$.

    $\det(2\operatorname{adj}A) = 2^3\cdot4 = 32$. (The factor is $2^3$, not 2.)

    For $2A$: $\det(2A) = 2^3\cdot2 = 16$, and the same reasoning gives $\det(\operatorname{adj}(2A)) = (\det 2A)^2 = 256$. Equivalently $\operatorname{adj}(2A) = 2^2\operatorname{adj}A$, so its determinant is $(2^2)^3\cdot4 = 256$.

    Answer: 32 and 256.

    Let $M(x)$ be the $4\times4$ matrix with $x$ in every diagonal position and 1 everywhere else. Find $\det M(3)$, and the negative value of $x$ for which $M(x)$ is singular.

    $M(x) = (x - 1)I + J$, where $J$ is the all-ones matrix. $J = \mathbf 1\mathbf 1\T$ has rank 1; what are its eigenvalues?

    $J = \mathbf 1\mathbf 1\T$ has rank 1, so three eigenvalues are 0; its trace is 4, so the fourth is 4.

    Adding $(x - 1)I$ shifts every eigenvalue by $x - 1$: the eigenvalues of $M(x)$ are $x + 3$ once and $x - 1$ three times. So $\det M(x) = (x + 3)(x - 1)^3$.

    $\det M(3) = 6\cdot2^3 = 48$. $M(x)$ is singular at $x = 1$ and $x = -3$; the negative one is $-3$. (Check: at $x = -3$ every row sums to $-3 + 3 = 0$, so $\mathbf 1$ is in the null space.)

    Answer: 48 and −3.

    $A$ is a $3\times3$ matrix with rows $\r_1, \r_2, \r_3$ and $\det A = 5$. $B$ is the matrix with rows $\r_1 + 2\r_2,\ \r_2 + 2\r_3,\ \r_3 + 2\r_1$. What is $\det B$?

    1. 45
    2. 5
    3. 40
    4. −35

    Each row of $B$ is a combination of the rows of $A$, so $B = CA$ for a $3\times3$ matrix $C$ of coefficients. These are not single row operations applied one after another.

    $B = CA$ with $C = \begin{bmatrix}1&2&0\\0&1&2\\2&0&1\end{bmatrix}$, so $\det B = \det C\cdot\det A$.

    Expanding along the first row: $\det C = 1(1 - 0) - 2(0 - 4) + 0 = 1 + 8 = 9$.

    $\det B = 9\times5 = 45$. Option (B) assumes that adding a multiple of a row never changes the determinant, but that only holds when the row you add is left unchanged; here every row is modified at the same time. (D) comes from a sign slip, $1 - 8$.

    Answer: (A).

    • Factor polynomials in $A$ before taking determinants: $\det(A^2 + cA) = \det A\cdot\det(A + cI)$.
    • Look for a dependent row or column before expanding; it gives 0 instantly.
    • Use triangular structure: multiply the diagonal.
    • $\det(A + B) = \det A + \det B$. False in general.
    • $\det(cA) = c\det A$. It’s $c^n$.
    • Forgetting the minus sign on the middle term of a 3 × 3 expansion.
    1. det A is the signed area or volume scaling factor; det A = 0 means singular (squashed flat).
    2. det(AB) = det A · det B, det(Aᵀ) = det A, det(cA) = cⁿ det A, det(A⁻¹) = 1/det A.
    3. Row additions don’t change det, swaps flip its sign, and triangular means multiply the diagonal.

    $\det\begin{bmatrix}3&1\\6&2\end{bmatrix}$ is

    12
    $ad - bc = 6 - 6$.
    0
    Row 2 = 2 × row 1: dependent rows.
    −6
    Recompute $3\cdot2 - 1\cdot6$.
    5
    That’s the trace.

    If $A^2 = A$ and $A$ is invertible, then

    $\det A = 0$
    Invertible matrices have non-zero determinant.
    $A = I$
    Multiply $A^2 = A$ by $A^{-1}$: $A = I$.
    $\det A = -1$
    $(\det A)^2 = \det A$ gives $\det A \in \{0, 1\}$; invertible means 1.
    $A = 0$
    The zero matrix isn’t invertible.

    A matrix with $\det A = -2$ maps the unit square to a shape of area

    −2
    Area is never negative; the sign means the shape is flipped.
    2, flipped over
    $|\det| = 2$ is the area; the negative sign means orientation reversed.
    ½
    That would be $\det A^{-1}$’s size.
    4
    The determinant already is the area factor; don’t square it.

    For a $3\times3$ matrix with $\det A \ne 0$, $A\x = \b$ has

    no solution for some $\b$
    Invertible means the column space is all of $\R^3$.
    exactly one solution for every $\b$
    $\x = A^{-1}\b$.
    infinitely many solutions for $\b = \0$
    Only $\x = \0$, since the null space is trivial.

    Three vectors in $\R^3$ form the columns of $A$ with $\det A = 0$. Then the vectors

    span $\R^3$
    Zero volume means they lie in a plane (or less).
    are linearly dependent
    det = 0 ⇔ columns dependent.
    are orthonormal
    Orthonormal columns give $|\det| = 1$.

    Gaussian elimination on a general $n\times n$ system costs about

    $O(n)$
    Each pivot step alone touches about $n^2$ entries.
    $O(n^2)$
    That’s back-substitution on a triangular system.
    $O(n^3)$
    About $n$ pivots × $n^2$ work each.

    The heart of GATE DA’s linear algebra. Eigenvalues tell you what a matrix does along its “natural” directions, and a handful of shortcuts (trace = sum, determinant = product, eigenvalues of $A^2$ are $\lambda^2$) turn most questions into one-liners. Then the special matrices GATE loves (symmetric, orthogonal, projection, idempotent) and quadratic forms, which connect directly to PCA and optimisation.

    You need: Part 2 (determinants, rank, null space) and quadratic equations (Refreshers 1.2). Quick check: can you solve $\lambda^2 - 5\lambda + 6 = 0$? (It’s $\lambda = 2$ or $3$.) If not, read the quadratic formula in Refreshers 1.2 first.

    Eigenvectors: the directions a matrix only stretches

    An eigenvector of $A$ is a non-zero vector that $A$ maps onto its own line, $A\v = \lambda\v$, and the eigenvalue $\lambda$ is the stretch factor.

    Eigenvalue questions appear in every GATE DA paper, usually solvable in seconds with the trace and determinant shortcuts. They’re also the maths behind PCA, Fisher’s discriminant and the stability of gradient descent.

    It’s like spinning a globe: almost every point moves, but the points on the axis stay on the axis. Those axis directions are the globe’s eigenvectors.

    Where it shows up in GATE DA

    Every paper, often several questions. The trace/determinant tricks alone solve about half of them.

    2024 Q13 · real or complex eigenvalues?2026 Q46 · rotation matrix eigenvalues2026 Q21 · M²⁰²⁶2025 Q28 · eigenvalues of I + xxᵀSample Q17, Q25, Q37, Q482024 Q22 · LDA as an eigenproblem
    Heat: every year, 3–6 marks

    Why look for special directions?

    A matrix moves vectors around, and usually it turns them as well as stretching them. Take $A = \begin{bmatrix}3&-1\\-1&3\end{bmatrix}$ and try a few inputs:

    • $A(1, 0) = (3, -1)$: a different direction.
    • $A(1, 1) = (3 - 1,\ -1 + 3) = (2, 2) = 2\cdot(1, 1)$: the same direction, just doubled.
    • $A(1, -1) = (4, -4) = 4\cdot(1, -1)$: again the same direction, now multiplied by 4.

    Along $(1, 1)$ and $(1, -1)$ the matrix acts like plain multiplication by a number, 2 and 4. Those directions are its eigenvectors (“eigen” is German for “own”: the matrix’s own directions) and the numbers are its eigenvalues. Why care? Because applying $A$ ten times to $(1, 1)$ just gives $2^{10}(1, 1)$, with no matrix arithmetic at all. Repeated processes (how fans drift between teams season after season, PageRank, gradient descent) are understood through their eigenvalues.

    A number $\lambda$ and a non-zero vector $\v$ with $$A\v = \lambda\v.$$ Rewrite as $(A - \lambda I)\v = \0$: a non-zero solution exists exactly when $A - \lambda I$ is singular, i.e. $$\det(A - \lambda I) = 0\quad(\text{the characteristic equation}).$$ For an $n\times n$ matrix it’s a degree-$n$ polynomial in $\lambda$, so there are $n$ eigenvalues counted with repetition (possibly complex).

    Try it

    Drag the grey vector $\x$ around; the orange arrow is $A\x$. Usually they point different ways. Find the directions where $A\x$ lines up with $\x$ (the dashed lines): those are the eigenvectors, and the stretch is the eigenvalue. Try the rotation preset: no real direction survives, so the eigenvalues are complex.

    A word on complex numbers. Some matrices, like a rotation, turn every direction, so they have no real eigenvector. Their characteristic equation then has a negative discriminant and its roots are complex numbers, written $a + bi$ where $i$ is a number with $i^2 = -1$. For the exam you rarely compute with them; you mostly need to tell “real” from “complex” using the discriminant.

    • Trace = sum of eigenvalues; determinant = product of eigenvalues.
    • For 2 × 2: the characteristic equation is $\lambda^2 - (\mathrm{tr}A)\lambda + \det A = 0$. Discriminant $(\mathrm{tr}A)^2 - 4\det A \lt 0$ ⇒ complex pair.
    • Triangular (or diagonal) matrix: eigenvalues are the diagonal entries.
    • Same eigenvectors, new eigenvalues: $A^k \to \lambda^k$, $A^{-1} \to 1/\lambda$, $A + cI \to \lambda + c$, any polynomial $p(A) \to p(\lambda)$.
    • $A$ is singular ⇔ 0 is an eigenvalue.
    • A real matrix’s complex eigenvalues come in conjugate pairs $a \pm bi$.
    • Eigenvectors for different eigenvalues are linearly independent.

    Finding eigenvectors

    Once you have $\lambda$, solve $(A - \lambda I)\v = \0$: the eigenvectors are the null space of $A - \lambda I$ (minus the zero vector). For $A = \begin{bmatrix}3&-1\\-1&3\end{bmatrix}$: trace 6, det 8, so $\lambda^2 - 6\lambda + 8 = 0$ and $\lambda = 2, 4$. For $\lambda = 4$: $A - 4I = \begin{bmatrix}-1&-1\\-1&-1\end{bmatrix}$, so $v_1 + v_2 = 0$, giving $\v = (1, -1)$. For $\lambda = 2$: $\v = (1, 1)$.

    Diagonalisation. If $A$ has $n$ independent eigenvectors (columns of $P$) with eigenvalues on the diagonal of $D$, then $A = PDP^{-1}$ and $A^k = PD^kP^{-1}$. Powers of $A$ become powers of numbers.

    GATE DA 2024 · Q13 · MCQ · 1 mark

    Consider the matrix $M = \begin{bmatrix}2&-1\\3&1\end{bmatrix}$. Which ONE of the following statements is TRUE?

    1. The eigenvalues of $M$ are non-negative and real.
    2. The eigenvalues of $M$ are complex conjugate pairs.
    3. One eigenvalue of $M$ is positive and real, and another eigenvalue of $M$ is zero.
    4. One eigenvalue of $M$ is non-negative and real, and another eigenvalue of $M$ is negative and real.
    1. $\mathrm{tr}M = 3$ and $\det M = 2\cdot1 - (-1)\cdot3 = 5$.

      Two numbers are all you need for a 2 × 2 matrix.

    2. Characteristic equation $\lambda^2 - 3\lambda + 5 = 0$. Discriminant $9 - 20 = -11 \lt 0$.

      The sign of the discriminant decides real vs complex.

    3. Negative discriminant ⇒ a complex conjugate pair, $\lambda = \frac{3 \pm i\sqrt{11}}{2}$. Answer (B).

      (C) would need $\det = 0$; (D) would need $\det \lt 0$ (product negative). The determinant alone rules both out. Official key: (B).

    The algebraic multiplicity of an eigenvalue $\lambda$ is how many times it is a root of the characteristic polynomial. Its geometric multiplicity is the number of independent eigenvectors it has: $\dim$ of the null space of $A - \lambda I$. Always $1 \le \text{geometric} \le \text{algebraic}$.

    An $n \times n$ matrix is diagonalisable ($A = PDP^{-1}$, with eigenvectors as the columns of $P$) exactly when the geometric multiplicities add up to $n$. Distinct eigenvalues guarantee it, and every real symmetric matrix is diagonalisable. The classic trap: $\begin{bmatrix}2&1\\0&2\end{bmatrix}$ has $\lambda = 2$ twice but only one eigenvector direction, so it is not diagonalisable.

    Every square matrix satisfies its own characteristic equation. For a $2 \times 2$ matrix that reads $$A^2 - (\operatorname{tr}A)\,A + (\det A)\,I = 0,$$ so $A^{-1} = \dfrac{(\operatorname{tr}A)\,I - A}{\det A}$ when $\det A \ne 0$, and any power $A^k$ can be reduced to a combination of $A$ and $I$.

    Warm-up. What are the eigenvalues of $\begin{bmatrix}5&0\\0&2\end{bmatrix}$? Enter the larger first.

    A diagonal matrix stretches each axis by its diagonal entry. What does it do to $(1, 0)$ and to $(0, 1)$?

    $A(1, 0) = 5(1, 0)$ and $A(0, 1) = 2(0, 1)$, so the eigenvalues are 5 and 2.

    Warm-up. A $2\times2$ matrix has eigenvalues 2 and 3. What are its trace and its determinant?

    Trace = sum of eigenvalues, determinant = product.

    Trace $= 2 + 3 = 5$; determinant $= 2 \times 3 = 6$.

    GATE DA 2024 sample paper · Q17 · MCQ · 1 mark

    For matrix $H = \begin{bmatrix}9&-2\\-2&6\end{bmatrix}$, one of the eigenvalues is 5. The other eigenvalue is ______ (options were 12, 10, 8, 6).

    Trace = sum of eigenvalues.

    $9 + 6 = 15 = 5 + \lambda$, so $\lambda = 10$. Check with the determinant: $54 - 4 = 50 = 5\times10$ ✓.

    GATE DA 2024 sample paper · Q25 · NAT · 1 mark

    Two eigenvalues of $3\times3$ real matrix $X$ are $(1 + i)$ and 2. The determinant of the matrix is ______.

    A real matrix’s complex eigenvalues come in conjugate pairs. What’s the third eigenvalue?

    The third eigenvalue is $1 - i$. $\det = (1+i)(1-i)\cdot2 = (1 + 1)\cdot2 = 4$.

    GATE DA 2024 sample paper · Q48 · NAT · 2 marks

    Consider the matrix $X$ whose eigenvalues are 1, −1 and 3. The Trace of $X^3 - 3X^2$ is ______.

    $X^3 - 3X^2$ has eigenvalues $\lambda^3 - 3\lambda^2$. Its trace is their sum.

    $\lambda = 1$: $1 - 3 = -2$. $\lambda = -1$: $-1 - 3 = -4$. $\lambda = 3$: $27 - 27 = 0$. Sum: $-6$.

    GATE DA 2026 · Q46 · MCQ · 2 marks

    Let $\gamma_1, \gamma_2, \gamma_3$ be the eigenvalues of the matrix $\begin{bmatrix}1&0&0\\0&\cos t&\sin t\\0&-\sin t&\cos t\end{bmatrix}$, where $t\in[-\pi, \pi]$ is in radians. Which one of the following options lists all the possible values of $t$ satisfying $\gamma_1 + \gamma_2 + \gamma_3 = 1 + \sqrt2$?

    1. $\{\frac\pi3, -\frac\pi4\}$
    2. $\{\frac\pi4, -\frac\pi3\}$
    3. $\{\frac\pi4, -\frac\pi4\}$
    4. $\{\frac\pi3, -\frac\pi3\}$

    You don’t need the eigenvalues individually: their sum is the trace.

    Trace $= 1 + 2\cos t = 1 + \sqrt2 \Rightarrow \cos t = \frac{1}{\sqrt2} \Rightarrow t = \pm\frac\pi4$. Official key: (C).

    Let $A = \begin{bmatrix}2&1\\0&2\end{bmatrix}$. Which of the following are TRUE?

    1. 2 is the only eigenvalue of $A$.
    2. $A$ is diagonalisable.
    3. The eigenvalue 2 has geometric multiplicity 1.
    4. $A$ is invertible.

    Find the null space of $A - 2I$: how many independent eigenvectors does it give?

    The characteristic polynomial is $(\lambda - 2)^2$, so 2 is the only eigenvalue (algebraic multiplicity 2). $A - 2I = \begin{bmatrix}0&1\\0&0\end{bmatrix}$ has a 1-dimensional null space, so the geometric multiplicity is 1 and $A$ is not diagonalisable. $\det A = 4 \ne 0$, so $A$ is invertible. Answer: A, C, D.

    $A$ is a non-zero $3 \times 3$ matrix with $A^2 = 0$. Which of the following are TRUE?

    1. Every eigenvalue of $A$ is 0.
    2. $A$ is diagonalisable.
    3. $\det A = 0$.
    4. $\operatorname{rank} A \ge 2$.

    If $A\x = \lambda\x$, apply $A$ again. And if $A$ were diagonalisable with every eigenvalue 0, what would $D$ be?

    (A) $A\x = \lambda\x \Rightarrow 0 = A^2\x = \lambda^2\x$, so $\lambda = 0$. (B) A diagonalisable matrix with all eigenvalues 0 is $P\,0\,P^{-1} = 0$, but $A \ne 0$: false. (C) The determinant is the product of the eigenvalues: 0. (D) $A^2 = 0$ means every column of $A$ lies in the null space of $A$, so $\operatorname{rank} A \le 3 - \operatorname{rank} A$, i.e. rank $\le 1$: false. Answer: A, C.

    A $3\times3$ real matrix $A$ has eigenvalues $1, 2, -1$. Let $B = A^3 - 2A^2 + 3I$. Find $\operatorname{tr}B$, $\det B$ and $\operatorname{tr}(A^{-1})$.

    If $A\v = \lambda\v$, then $p(A)\v = p(\lambda)\v$ for any polynomial $p$, and $A^{-1}\v = \frac1\lambda\v$.

    With $p(\lambda) = \lambda^3 - 2\lambda^2 + 3$, the eigenvalues of $B$ are $p(1) = 2$, $p(2) = 8 - 8 + 3 = 3$ and $p(-1) = -1 - 2 + 3 = 0$.

    $\operatorname{tr}B = 2 + 3 + 0 = 5$ and $\det B = 2\cdot3\cdot0 = 0$.

    $A$ has no zero eigenvalue, so it is invertible, and $A^{-1}$ has eigenvalues $1, \tfrac12, -1$: $\operatorname{tr}(A^{-1}) = 0.5$.

    Answer: 5, 0, 0.5.

    Let $A = \begin{bmatrix}2&1\\1&2\end{bmatrix}$. By Cayley–Hamilton, $A^5 = pA + qI$ for unique numbers $p, q$. Find $p$ and $q$.

    The same identity holds for each eigenvalue: $\lambda^5 = p\lambda + q$. Find the two eigenvalues and solve two linear equations.

    $\operatorname{tr}A = 4$, $\det A = 3$, so the characteristic polynomial is $\lambda^2 - 4\lambda + 3 = (\lambda - 1)(\lambda - 3)$: eigenvalues 1 and 3.

    Dividing $\lambda^5$ by the characteristic polynomial leaves a remainder $p\lambda + q$, and since $A$ satisfies its characteristic polynomial, $A^5 = pA + qI$. At the roots: $1 = p + q$ and $3^5 = 243 = 3p + q$.

    Subtracting: $2p = 242$, so $p = 121$ and $q = -120$. Check: $121A - 120I = \begin{bmatrix}122&121\\121&122\end{bmatrix}$, which is $A^5$ ✓.

    Answer: $p = 121$, $q = -120$.

    Let $\u = (1, 2, 3)$, $\v = (1, 0, -1)$ and $A = \u\v\T$. Which of the following are TRUE?

    1. $-2$ is an eigenvalue of $A$.
    2. $A$ is not diagonalisable.
    3. $A^2 = -2A$.
    4. $\operatorname{tr}(A^3) = -6$.

    $A$ has rank 1. What does $A$ do to $\u$? And what is $\v\T\u$?

    $\v\T\u = 1 + 0 - 3 = -2$. Then $A\u = \u(\v\T\u) = -2\u$, so $-2$ is an eigenvalue (A) ✓.

    Rank 1 means the null space is 2-dimensional: eigenvalue 0 with two independent eigenvectors. Together with $\u$ that makes three independent eigenvectors, so $A$ is diagonalisable (B) ✗. (It would fail only if $\v\T\u = 0$.)

    (C) $A^2 = \u(\v\T\u)\v\T = -2\u\v\T = -2A$ ✓.

    (D) The eigenvalues of $A^3$ are $(-2)^3, 0, 0$, so $\operatorname{tr}(A^3) = -8$, not $3\cdot(-2)$ ✗.

    Answer: A, C.

    • Reach for trace and determinant first, before expanding any characteristic polynomial.
    • For polynomials in $A$, apply the polynomial to each eigenvalue.
    • Remember: real matrices pair complex eigenvalues with their conjugates.
    • Thinking eigenvalues of $A + B$ are sums of eigenvalues of $A$ and $B$. Only true in special cases.
    • Calling $\v = \0$ an eigenvector.
    • Reading eigenvalues off the diagonal of a matrix that isn’t triangular.
    1. Av = λv: eigenvectors keep their direction; λ comes from det(A − λI) = 0.
    2. Trace = sum and det = product of eigenvalues; for 2 × 2, λ² − (tr)λ + det = 0.
    3. Aᵏ, A⁻¹, A + cI and p(A) keep the eigenvectors and transform the eigenvalues the same way.

    Sample paper Q37: $H = \begin{bmatrix}3&-1\\-1&3\end{bmatrix}$ has eigenvector $[-1\ \ {-1}]^T$. The other eigenvector is

    $[1\ \ {-1}]^T$
    $H(1,-1) = (4, -4) = 4(1,-1)$. (It’s also perpendicular to the first, as expected for a symmetric matrix.)
    $[1\ \ 1]^T$
    That’s a multiple of the given eigenvector, not a new one.
    $[1\ \ 0]^T$
    $H(1,0) = (3, -1)$, not a multiple of $(1,0)$.
    $[0\ \ 1]^T$
    $H(0,1) = (-1, 3)$: not on the same line.

    If $A$ has eigenvalues 2 and 5, then $A^{-1} + I$ has eigenvalues

    3 and 6
    That’s $A + I$. Invert first.
    1.5 and 1.2
    $\frac12 + 1$ and $\frac15 + 1$.
    ½ and ⅕
    Don’t forget the $+I$.
    −1 and −4
    Inversion takes reciprocals, not negatives.

    A $3\times3$ matrix has $\det A = 0$. Then

    all its eigenvalues are 0
    Only the product must be 0.
    at least one eigenvalue is 0
    Product of eigenvalues = det = 0.
    it has no eigenvalues
    Every square matrix has $n$ eigenvalues counted with repetition.

    Special matrices: symmetric, orthogonal, projection, idempotent

    Matrices with special structure have special eigenvalues: symmetric ones have real eigenvalues and perpendicular eigenvectors, orthogonal ones preserve length, and projections have eigenvalues 0 and 1 only.

    GATE DA has asked about projection or idempotent matrices in every paper (twice in 2026), usually as an MSQ. Recognising the structure answers the question.

    It’s like a torch shining straight down on a table: the shadow of an object is its projection. Shine the torch on the shadow again and nothing changes. That’s $P^2 = P$.

    Where it shows up in GATE DA

    Every paper. The most reliable source of linear-algebra marks.

    2024 Q49 · projection onto a subspace2025 Q50 · Σ xᵢxᵢᵀ for orthonormal xᵢ2026 Q52 · centering matrix2025 Q52 · ‖Ax‖ = ‖x‖2025 Q37 · A³ = A2025 Q28 · I + xxᵀ2026 Q21 · rotation
    Heat: every year, 2–6 marks

    Three pieces of notation first

    • Transpose (from Refreshers 4.2): $A\T$ swaps rows and columns, and a matrix is symmetric when $A\T = A$, a mirror image across its diagonal, like $\begin{bmatrix}2&5\\5&1\end{bmatrix}$.
    • Column times row: for $\u = (1, 2)$, $\u\u\T = \begin{bmatrix}1\\2\end{bmatrix}\begin{bmatrix}1&2\end{bmatrix} = \begin{bmatrix}1&2\\2&4\end{bmatrix}$, a whole matrix (the outer product), while row times column, $\u\T\u = 1 + 4 = 5$, is a single number (the dot product).
    • The all-ones vector $\mathbf 1 = (1, 1, \ldots, 1)$. Dotting with it adds up the entries: $\mathbf 1\T\x = x_1 + \cdots + x_n$.

    “Idempotent” means “same power”: applying the matrix twice does the same as applying it once. A projection is the standard example.

    TypeDefinitionEigenvaluesOther facts
    Symmetric$A\T = A$all realeigenvectors can be chosen orthonormal: $A = Q\Lambda Q\T$
    Orthogonal$Q\T Q = I$ (so $Q^{-1} = Q\T$)$|\lambda| = 1$ (may be complex)columns orthonormal; $\norm{Q\x} = \norm{\x}$; $\det = \pm1$; rotations, reflections
    Idempotent$P^2 = P$only 0 and 1rank = trace; $I - P$ is idempotent too
    Orthogonal projection$P^2 = P$ and $P\T = P$only 0 and 1projects onto its column space; residual $\x - P\x$ is ⟂ to it

    Building projection matrices

    • Onto the line through $\u$: $P = \dfrac{\u\u\T}{\u\T\u}$. If $\u$ is a unit vector, just $P = \u\u\T$.
    • Onto the span of orthonormal vectors $\u_1, \ldots, \u_k$: $P = \u_1\u_1\T + \cdots + \u_k\u_k\T$, a projection of rank $k$.
    • Onto the column space of any $A$ with independent columns: $P = A(A\T A)^{-1}A\T$. This is least-squares regression in matrix form.

    Why eigenvalues 0 and 1: if $P\v = \lambda\v$, then $P^2\v = \lambda^2\v$. But $P^2 = P$, so $\lambda^2 = \lambda$, giving $\lambda \in \{0, 1\}$. Vectors in the target subspace have $\lambda = 1$ (unchanged); vectors perpendicular to it have $\lambda = 0$ (crushed). The same argument shows $A^3 = A$ forces $\lambda \in \{-1, 0, 1\}$.

    The centering matrix $C = I - \frac1n\mathbf 1\mathbf 1\T$ subtracts the mean from a data vector: $C\x = \x - \bar x\mathbf 1$. It’s the projection onto vectors whose entries sum to zero: symmetric, idempotent, rank $n - 1$, trace $n - 1$.

    Try it

    Drag the direction $\u$ (the line) and the point $\x$. The teal point is $P\x$, the projection, and the dashed residual $\x - P\x$ meets the line at a right angle. Press “Apply P again”: nothing moves, because $P^2 = P$. The readout shows $P = \u\u\T/\u\T\u$, its trace (= rank = 1) and its eigenvalues.

    GATE DA 2026 · Q52 · MSQ · 2 marks

    Let $M = \left(I_n - \frac1n\mathbf{1}\mathbf{1}^T\right)$ be a matrix, where $\mathbf 1 = (1, 1, 1, \ldots, 1)^T\in\R^n$ and $I_n$ is the identity matrix of order $n$. Which of the following options is/are correct?

    1. $M^T = M$
    2. $M^2 = I_n$
    3. $\mathrm{Trace}(M) = n$
    4. $M$ is a projection matrix
    1. (A): $I_n$ is symmetric and $(\mathbf 1\mathbf 1\T)\T = \mathbf 1\mathbf 1\T$, so $M\T = M$. ✓

      Any matrix of the form $\u\u\T$ is symmetric.

    2. (B): Let $J = \frac1n\mathbf 1\mathbf 1\T$. Then $J^2 = \frac{1}{n^2}\mathbf 1(\mathbf 1\T\mathbf 1)\mathbf 1\T = \frac{n}{n^2}\mathbf 1\mathbf 1\T = J$. So $M^2 = I - 2J + J^2 = I - J = M$, not $I$. ✗

      $\mathbf 1\T\mathbf 1 = n$ (a sum of $n$ ones). $J$ is the projection onto the line through $\mathbf 1$.

    3. (C): $\mathrm{tr}(M) = \mathrm{tr}(I) - \frac1n\mathrm{tr}(\mathbf 1\mathbf 1\T) = n - \frac1n\cdot n = n - 1$. ✗

      $\mathrm{tr}(\u\u\T) = \u\T\u$.

    4. (D): symmetric and $M^2 = M$, so $M$ is an (orthogonal) projection. ✓ Answer: A, D.

      It projects onto the $(n-1)$-dimensional subspace of mean-zero vectors, which matches trace = rank = $n - 1$. Official key: A; D. (2026 Q65 then asks for $\max_{\norm\x = 1}\x\T M\x$, which is the largest eigenvalue: 1.)

    Warm-up. For $\u = (1, 3)$, find the (1, 2) entry and the trace of $\u\u\T$.

    $\u\u\T$ has entry $(i, j) = u_i u_j$. Its diagonal holds the squares.

    $\u\u\T = \begin{bmatrix}1&3\\3&9\end{bmatrix}$: entry $(1,2) = 3$, trace $= 1 + 9 = 10 = \u\T\u$.

    Warm-up. Is $\begin{bmatrix}0&1\\1&0\end{bmatrix}$ symmetric?

    Swap rows and columns. Do you get the same matrix?

    Yes: its transpose is itself. (It’s also orthogonal: it swaps the two coordinates, a reflection.)

    GATE DA 2024 · Q49 · MSQ · 2 marks

    Let $\R$ be the set of real numbers, $U$ be a subspace of $\R^3$ and $M\in\R^{3\times3}$ be the matrix corresponding to the projection on to the subspace $U$. Which of the following statements is/are TRUE?

    1. If $U$ is a 1-dimensional subspace of $\R^3$, then the null space of $M$ is a 1-dimensional subspace.
    2. If $U$ is a 2-dimensional subspace of $\R^3$, then the null space of $M$ is a 1-dimensional subspace.
    3. $M^2 = M$
    4. $M^3 = M$

    The null space of a projection is everything perpendicular to $U$. Use rank–nullity with rank = dim $U$.

    Rank of $M$ = dim $U$, so nullity = $3 - \dim U$. (A) dim 1 ⇒ nullity 2 ✗. (B) dim 2 ⇒ nullity 1 ✓. (C) projections are idempotent ✓. (D) $M^3 = M\cdot M^2 = M\cdot M = M$ ✓. Official key: B; C; D.

    GATE DA 2025 · Q50 · MSQ · 2 marks

    Let $x_1, x_2, x_3, x_4, x_5$ be a system of orthonormal vectors in $\R^{10}$. Consider the matrix $A = x_1x_1^\top + \cdots + x_5x_5^\top$. Which of the following statements is/are correct?

    1. Singular values of $A$ are also its eigenvalues
    2. Singular values of $A$ are either 0 or 1
    3. Determinant of $A$ is 1
    4. $A$ is invertible

    $A$ is the projection onto a 5-dimensional subspace of $\R^{10}$. Symmetric with eigenvalues 0 and 1. (Singular values are covered in Part 4; for a symmetric matrix with non-negative eigenvalues they equal the eigenvalues.)

    $A$ is symmetric and idempotent: eigenvalues 1 (five times) and 0 (five times), all non-negative, so singular values = eigenvalues ∈ {0, 1}: (A) ✓, (B) ✓. Five zero eigenvalues ⇒ det = 0 and not invertible: (C) ✗, (D) ✗. Official key: A; B.

    GATE DA 2025 · Q52 · MSQ · 2 marks

    An $n\times n$ matrix $A$ with real entries satisfies the property: $\norm{A\x}_2 = \norm{\x}_2$, for all $\x\in\R^n$, where $\norm\cdot$ denotes the Euclidean norm. Which of the following statements is/are ALWAYS correct?

    1. $A$ must be orthogonal
    2. $A = I$, where $I$ denotes the identity matrix, is the only solution
    3. The eigenvalues of $A$ are either +1 or −1
    4. $A$ has full rank

    Length-preserving real matrices are exactly the orthogonal ones. Think of a 90° rotation: what are its eigenvalues?

    (A) ✓: preserving lengths for all $\x$ forces $A\T A = I$. (B) ✗: any rotation works. (C) ✗: a 90° rotation has eigenvalues $\pm i$; only $|\lambda| = 1$ is guaranteed. (D) ✓: $A\x = \0 \Rightarrow \norm\x = 0$, so the null space is trivial. Official key: A; D.

    GATE DA 2025 · Q37 · MCQ · 2 marks

    Let $A\in\R^{n\times n}$ be such that $A^3 = A$. Which one of the following statements is ALWAYS correct?

    1. $A$ is invertible
    2. Determinant of $A$ is 0
    3. The sum of the diagonal elements of $A$ is 1
    4. $A$ and $A^2$ have the same rank

    Test each option on simple examples: $A = I$, $A = 0$, $A = -I$. For (D), note $A = A\cdot A^2$.

    $A = 0$ kills (A). $A = I$ kills (B) and (C) (trace $n$). (D): $\mathrm{rank}(A^2) \le \mathrm{rank}(A)$ always, and $A = A^3 = A\cdot A^2$ gives $\mathrm{rank}(A) \le \mathrm{rank}(A^2)$. So they’re equal. Official key: (D).

    $P$ is the orthogonal projection of $\R^3$ onto the column space of $A = \begin{bmatrix}1&0\\1&1\\0&1\end{bmatrix}$. Find the entry $P_{11}$ and $\det(I + 3P)$.

    The column space is a plane. It is quicker to find its unit normal $\mathbf n$ and use $P = I - \mathbf n\mathbf n\T$ than to compute $A(A\T A)^{-1}A\T$.

    The columns are independent, so the column space is a plane. A normal is $(1,1,0)\times(0,1,1) = (1, -1, 1)$; the unit normal is $\mathbf n = \tfrac{1}{\sqrt3}(1, -1, 1)$.

    $P = I - \mathbf n\mathbf n\T$, so $P_{11} = 1 - \tfrac13 = \tfrac23$. (The long route $A(A\T A)^{-1}A\T$ gives the same matrix, with diagonal $\tfrac23, \tfrac23, \tfrac23$.)

    $P$ has eigenvalues 1, 1 (on the plane) and 0 (along $\mathbf n$). So $I + 3P$ has eigenvalues 4, 4, 1, and $\det(I + 3P) = 16$.

    Answer: $P_{11} = 2/3 \approx 0.667$, and 16.

    $Q$ is a $3\times3$ real orthogonal matrix with $\det Q = -1$. Which of the following are ALWAYS TRUE?

    1. $-1$ is an eigenvalue of $Q$.
    2. $\det(Q + I) = 0$.
    3. $Q^2 = I$.
    4. $\operatorname{tr}Q$ can equal 3.

    Every eigenvalue of an orthogonal matrix has $|\lambda| = 1$, and complex ones come in conjugate pairs. The product of all three is $\det Q$.

    (A) A real $3\times3$ matrix has at least one real eigenvalue, and it must be $\pm1$. If there is a conjugate pair $\mu, \bar\mu$, their product is $|\mu|^2 = 1$, so the real one equals $\det Q = -1$. If all three are real, they are $\pm1$ with product $-1$, so at least one is $-1$ ✓.

    (B) $-1$ is an eigenvalue, so $Q + I$ is singular ✓.

    (C) Take a rotation by 60° about the $z$-axis followed by the reflection $z\mapsto -z$. It is orthogonal with determinant $-1$, but $Q^2$ is a rotation by 120°, not $I$ ✗.

    (D) Trace 3 needs all three eigenvalues equal to 1 (each has real part at most 1), which gives determinant $+1$ ✗.

    Answer: A, B.

    Let $\u = (1, 1, 1, 1)$ and $H = I_4 - \tfrac12\u\u\T$. Which one of the following is correct?

    1. $H$ is symmetric and orthogonal, $\det H = -1$ and $\operatorname{tr}H = 2$.
    2. $H$ is symmetric and orthogonal, $\det H = 1$ and $\operatorname{tr}H = 2$.
    3. $H$ is symmetric and orthogonal, $\det H = -1$ and $\operatorname{tr}H = 3$.
    4. $H^2 = H$ and $\operatorname{tr}H = 3$.

    $\u\T\u = 4$, so $\tfrac12\u\u\T = 2\cdot\frac{\u\u\T}{\u\T\u}$. Compare $H$ with $I - P$ and $I - 2P$ for the projection $P$ onto $\u$.

    $P = \frac{\u\u\T}{\u\T\u} = \tfrac14\u\u\T$ projects onto the line through $\u$, and $H = I - 2P$ is the reflection across the hyperplane $\u^\perp$.

    $H\T = H$, and $H\T H = I - 4P + 4P^2 = I$, so $H$ is symmetric and orthogonal. Its eigenvalues are $-1$ (along $\u$) and $1$ three times (on $\u^\perp$): $\det H = -1$ and $\operatorname{tr}H = -1 + 3 = 2$. Directly: every diagonal entry is $1 - \tfrac12 = \tfrac12$, and $4\cdot\tfrac12 = 2$ ✓.

    (D) describes the projection $I - P$, not the reflection $I - 2P$. (C) has the right determinant but counts the trace of a projection.

    Answer: (A).

    • Spot the structure first: $\u\u\T$ terms, $I - (\cdot)$, "$A^k = A$". Then use the eigenvalue consequence.
    • For projections: rank = trace = dimension of the target subspace.
    • Test “always true” claims on $I$, $0$ and a rotation.
    • Writing $P^2 = I$ for a projection. It’s $P^2 = P$.
    • Assuming orthogonal matrices have eigenvalues ±1 only. They can be complex with $|\lambda| = 1$.
    • Thinking a projection is invertible. Unless it’s $I$, it crushes some directions to zero.
    1. Symmetric ⇒ real eigenvalues and orthonormal eigenvectors. Orthogonal ⇒ length-preserving, |λ| = 1, det ±1.
    2. Projections satisfy P² = P (and Pᵀ = P): eigenvalues are 0 or 1, and rank = trace.
    3. uuᵀ/uᵀu projects onto a line; a sum of uᵢuᵢᵀ over orthonormal uᵢ projects onto their span; I − (1/n)11ᵀ centres data.

    GATE 2025 Q28: $A = I_n + \x\x\T$ with $\x\T\x = 1$. Which is true?

    0 is an eigenvalue of $A$
    $A\x = \x + \x(\x\T\x) = 2\x$; vectors ⟂ $\x$ give eigenvalue 1. None give 0.
    $A$ is invertible with rank $n$
    Eigenvalues are 2 (once) and 1 ($n-1$ times), all non-zero. Official key: A; B. In the paper this is an MSQ whose two correct options, (A) rank $n$ and (B) invertible, are merged into one option here.
    $A^{-1}$ has a negative eigenvalue
    Its eigenvalues are ½ and 1.

    The projection onto the line through $\u = (1, 1)$ is

    $\begin{bmatrix}1&1\\1&1\end{bmatrix}$
    That’s $\u\u\T$ without dividing by $\u\T\u = 2$; its square isn’t itself.
    $\tfrac12\begin{bmatrix}1&1\\1&1\end{bmatrix}$
    $\u\u\T/\u\T\u$. Check: trace 1 = rank 1.
    $\begin{bmatrix}1&0\\0&1\end{bmatrix}$
    That’s the identity, the projection onto all of $\R^2$.

    An idempotent $5\times5$ matrix has trace 3. Its rank is

    5
    For idempotents, rank = trace.
    3
    Eigenvalues are 0s and 1s; the trace counts the 1s, and so does the rank.
    2
    That’s the nullity.
    Can’t tell
    Idempotence makes rank = trace.

    Quadratic forms: bowls, saddles and the biggest stretch

    A quadratic form $\x\T A\x$ turns a vector into a number using a symmetric matrix, and its eigenvalues tell you its shape: all positive is a bowl, mixed signs is a saddle, and the largest eigenvalue is the biggest value it reaches on the unit sphere.

    GATE asks for maxima of quadratic forms (2026 Q65), PCA variances (2025 Q60) and definiteness of Gram matrices (2025 Q38). It’s also how you’ll check second-order conditions in optimisation.

    It’s like a stretchy rubber sheet held by a frame: pressing in some directions is harder than others. The stiffest and softest directions are the eigenvectors; how stiff they are is the eigenvalues.

    Where it shows up in GATE DA

    Maxima of xᵀAx, PCA, and positive-definiteness statements.

    2026 Q65 · max xᵀAx on the unit sphere2025 Q60 · variance along the top PCA direction2025 Q38 · Gram matrix invertible2024 Q22 · Fisher LDA ratio
    Heat: most years, 1–2 marks

    A tiny example first. With $A = \begin{bmatrix}2&0\\0&1\end{bmatrix}$ and $\x = (x, y)$, $$\x\T A\x = \begin{bmatrix}x&y\end{bmatrix}\begin{bmatrix}2x\\y\end{bmatrix} = 2x^2 + y^2.$$ At $(1, 1)$ it is 3; at $(0, 0)$ it is 0; and for every other point it is positive, so its graph is a bowl. With $\begin{bmatrix}1&0\\0&-1\end{bmatrix}$ instead you get $x^2 - y^2$: positive along the $x$-axis, negative along the $y$-axis, a saddle. A quadratic form is just this: a sum of squares and cross terms written with a matrix.

    For symmetric $A$, $q(\x) = \x\T A\x$. In 2-D with $A = \begin{bmatrix}a&b\\b&c\end{bmatrix}$: $q = ax^2 + 2bxy + cy^2$. $A$ is

    • positive definite if $q(\x) \gt 0$ for all $\x \ne \0$ ⇔ all eigenvalues $\gt 0$ (for 2 × 2: $a \gt 0$ and $\det A \gt 0$);
    • positive semidefinite if $q \ge 0$ ⇔ all eigenvalues $\ge 0$;
    • indefinite if $q$ takes both signs ⇔ eigenvalues of both signs.

    Every Gram matrix $X\T X$ is positive semidefinite, because $\x\T X\T X\x = \norm{X\x}^2 \ge 0$. Covariance matrices are Gram matrices.

    Read $\max_{\norm\x = 1}$ as “the largest value over all vectors of length 1”. For symmetric $A$ with eigenvalues $\lambda_{\min} \le \cdots \le \lambda_{\max}$: $$\max_{\norm\x = 1}\x\T A\x = \lambda_{\max},\qquad \min_{\norm\x = 1}\x\T A\x = \lambda_{\min},$$ reached at the corresponding unit eigenvectors. PCA in one line: the variance of data along a unit direction $\u$ is $\u\T\Sigma\u$ ($\Sigma$ = covariance matrix), so the direction of maximum variance is the top eigenvector, and that maximum variance is $\lambda_{\max}$.

    Go deeper: why the maximum is the largest eigenvalue

    A symmetric $A$ can be written $A = Q\Lambda Q\T$ with orthonormal eigenvectors in $Q$. Put $\y = Q\T\x$; rotating does not change length, so $\norm\y = 1$ when $\norm\x = 1$. Then

    $$\x\T A\x = \y\T\Lambda\y = \lambda_1 y_1^2 + \cdots + \lambda_n y_n^2,$$

    a weighted average of the eigenvalues with weights $y_i^2 \ge 0$ that add up to 1. A weighted average can never exceed the largest value or fall below the smallest, and it hits $\lambda_{\max}$ by putting all the weight on that eigenvalue, i.e. choosing $\x$ = its unit eigenvector.

    Try it

    Set the symmetric matrix with the sliders; the curves are level sets of $\x\T A\x$ (ellipses for definite, hyperbolas for indefinite). Drag the unit vector around the circle and watch $\u\T A\u$: its maximum and minimum happen exactly along the eigenvector axes, at $\lambda_{\max}$ and $\lambda_{\min}$.

    GATE DA 2025 · Q60 · NAT · 2 marks

    Let $D = \{x^{(1)}, \ldots, x^{(n)}\}$ be a dataset of $n$ observations where each $x^{(i)}\in\R^{100}$. It is given that $\sum_{i=1}^n x^{(i)} = 0$. The covariance matrix computed from $D$ has eigenvalues $\lambda_i = 100^{2-i}$, $1 \le i \le 100$. Let $u\in\R^{100}$ be the direction of maximum variance with $u^\top u = 1$. The value of $\displaystyle\frac1n\sum_{i=1}^n \left(u^\top x^{(i)}\right)^2$ is ______ (Answer in integer)

    1. The data has mean zero, so $\frac1n\sum(u\T x^{(i)})^2$ is the variance of the data projected onto $u$, which equals $u\T\Sigma u$.

      $\frac1n\sum (u\T x)(x\T u) = u\T\left(\frac1n\sum x x\T\right)u = u\T\Sigma u$.

    2. $u$ is the direction of maximum variance, so $u\T\Sigma u = \lambda_{\max}$.

      Rayleigh quotient: the max over unit vectors is the top eigenvalue.

    3. $\lambda_i = 100^{2-i}$ is largest at $i = 1$: $\lambda_1 = 100^1 = $ 100.

      The others are $1, 0.01, \ldots$, decreasing. Official key: 100.

    Warm-up. For $A = \begin{bmatrix}3&1\\1&2\end{bmatrix}$, compute $\x\T A\x$ at $\x = (1, 1)$.

    $\x\T A\x = ax^2 + 2bxy + cy^2$ with $a = 3$, $b = 1$, $c = 2$.

    $3 + 2 + 2 = 7$. Or: $A\x = (4, 3)$ and $(1, 1)\cdot(4, 3) = 7$.

    Warm-up. Is $\mathrm{diag}(4, -1)$ positive definite, positive semidefinite, or indefinite?

    The eigenvalues of a diagonal matrix are its diagonal entries. What are their signs?

    Eigenvalues 4 and −1 have both signs, so it’s indefinite: $4x^2 - y^2$ is a saddle.

    GATE DA 2026 · Q65 · NAT · 2 marks

    Let $A = \left(I_n - \frac1n\mathbf 1\mathbf 1^T\right)$ be a matrix, where $\mathbf 1 = (1,1,1,\ldots,1)^T\in\R^n$ and $I_n$ is the identity matrix of order $n$. The value of $\max_S x^TAx$, where $S = \{x\in\R^n \mid x^Tx = 1\}$, is ______. (Answer in integer)

    This is the centering matrix from the previous chapter, a projection. What are its eigenvalues?

    A projection has eigenvalues 0 and 1, so $\lambda_{\max} = 1$, reached at any unit vector whose entries sum to 0. Official key: 1.

    For $A = \begin{bmatrix}3&1\\1&3\end{bmatrix}$, find $\max_{\norm\u = 1}\u\T A\u$.

    Eigenvalues from trace 6 and det 8.

    $\lambda^2 - 6\lambda + 8 = 0 \Rightarrow \lambda = 4, 2$. Max = 4, at $\u = \frac{1}{\sqrt2}(1, 1)$.

    Classify $A = \begin{bmatrix}1&2\\2&1\end{bmatrix}$.

    $\det A = 1 - 4$. What does a negative product of eigenvalues mean?

    Eigenvalues 3 and −1 (trace 2, det −3): mixed signs, so indefinite. E.g. $\x = (1, -1)$ gives $q = 1 - 4 + 1 = -2 \lt 0$.

    GATE DA 2025 · Q38 · MCQ · 2 marks

    Let $\{x_1, x_2, \ldots, x_n\}$ be a set of linearly independent vectors in $\R^n$. Let the $(i, j)$-th element of matrix $A\in\R^{n\times n}$ be given by $A_{ij} = x_i^\top x_j$, $1 \le i, j \le n$. Which one of the following statements is correct?

    1. $A$ is invertible
    2. 0 is a singular value of $A$
    3. Determinant of $A$ is 0
    4. $z^\top Az = 0$ for some non-zero $z\in\R^n$

    $A = X\T X$ where $X$ has the $x_i$ as columns. Compute $z\T Az$.

    $z\T Az = \norm{Xz}^2$, and $Xz \ne \0$ for $z \ne \0$ because the columns are independent. So $A$ is positive definite: all eigenvalues $\gt 0$ and invertible. (B), (C), (D) all contradict this. Official key: (A).

    Let $q(\x) = 3x_1^2 + 3x_2^2 + 5x_3^2 + 2x_1x_2$. Over all unit vectors $\x\in\R^3$ ($\norm\x = 1$), find the maximum and minimum of $q$. Then find the maximum of $q$ over unit vectors with $x_3 = 0$.

    Write $q(\x) = \x\T A\x$ with $A$ symmetric (split the cross term evenly). The extremes on the unit sphere are eigenvalues of $A$.

    $q(\x) = \x\T A\x$ with $A = \begin{bmatrix}3&1&0\\1&3&0\\0&0&5\end{bmatrix}$; the cross term $2x_1x_2$ puts 1 in positions $(1,2)$ and $(2,1)$.

    $A$ is block diagonal. The block $\begin{bmatrix}3&1\\1&3\end{bmatrix}$ has eigenvalues $3 \pm 1 = 4, 2$, and the last entry gives 5. So the eigenvalues are 5, 4, 2.

    By the Rayleigh quotient, the maximum on the unit sphere is $\lambda_{\max} = 5$ (at $\x = (0,0,1)$) and the minimum is $\lambda_{\min} = 2$ (at $\tfrac1{\sqrt2}(1,-1,0)$).

    With $x_3 = 0$, $q$ becomes the form of the $2\times2$ block, so its maximum is that block’s largest eigenvalue, 4, at $\tfrac1{\sqrt2}(1,1,0)$.

    Answer: 5, 2, 4.

    Let $A_k = \begin{bmatrix}k&2&0\\2&k&2\\0&2&k\end{bmatrix}$. $A_k$ is positive definite exactly when $k \gt k^*$. Find $k^*$ (to 3 decimal places), and the rank of $A_{k^*}$.

    Use leading principal minors, or find the eigenvalues: the matrix is $kI$ plus a fixed matrix.

    Leading principal minors: $k$, $k^2 - 4$, and $\det A_k = k(k^2 - 4) - 2(2k) = k(k^2 - 8)$. All three are positive exactly when $k \gt 2\sqrt2$.

    Alternatively, $A_k = kI + N$, and $N = \begin{bmatrix}0&2&0\\2&0&2\\0&2&0\end{bmatrix}$ has eigenvalues $0, \pm2\sqrt2$, so $A_k$ has eigenvalues $k, k \pm 2\sqrt2$. The smallest is $k - 2\sqrt2$, positive exactly when $k \gt 2\sqrt2$.

    So $k^* = 2\sqrt2 \approx 2.828$. At $k = k^*$ the eigenvalues are $0,\ 2\sqrt2,\ 4\sqrt2$: positive semidefinite with exactly one zero eigenvalue, so the rank is 2.

    Answer: $k^* \approx 2.828$, rank 2.

    $X$ is a $5\times3$ real matrix of rank 2 and $B = X\T X$. Which of the following are TRUE?

    1. $B$ is positive semidefinite.
    2. $B$ is positive definite.
    3. $B + I$ is positive definite.
    4. $\z\T B\z = 0$ for some non-zero $\z\in\R^3$.

    Write $\z\T B\z$ as a squared length. When is it 0?

    $\z\T B\z = \z\T X\T X\z = \norm{X\z}^2 \ge 0$ for every $\z$, so (A) ✓.

    $X$ has 3 columns and rank 2, so its null space is 1-dimensional: there is $\z \ne \0$ with $X\z = \0$, hence $\z\T B\z = 0$. That makes (D) ✓ and (B) ✗ ($B$ has eigenvalue 0).

    (C) $\z\T(B + I)\z = \norm{X\z}^2 + \norm\z^2 \gt 0$ for every $\z \ne \0$ ✓. (Every eigenvalue moves up by 1, so the 0 becomes 1.) This is why ridge regression adds $\lambda I$ to $X\T X$.

    Answer: A, C, D.

    • Turn "max of $\x\T A\x$ on the unit sphere“ straight into ”largest eigenvalue".
    • Recognise $X\T X$, covariance and Gram matrices as positive semidefinite.
    • For 2 × 2 definiteness, check $a \gt 0$ and $\det \gt 0$.
    • Forgetting the unit-length constraint: without it, $\x\T A\x$ can be made as large as you like.
    • Using a non-symmetric $A$ in these theorems without symmetrising: $\x\T A\x = \x\T\frac{A + A\T}{2}\x$.
    • Concluding positive definite from positive diagonal entries alone. $\begin{bmatrix}1&2\\2&1\end{bmatrix}$ is a counterexample.
    1. xᵀAx with symmetric A: positive definite ⇔ all eigenvalues > 0; semidefinite ⇔ ≥ 0; indefinite ⇔ mixed signs.
    2. On the unit sphere, xᵀAx ranges from λ_min to λ_max, reached at the eigenvectors.
    3. Variance along a direction u is uᵀΣu, so the top PCA direction is the top eigenvector and its variance is λ_max.

    $q(x, y) = 2x^2 + 6xy + 5y^2$ corresponds to $A =$

    $\begin{bmatrix}2&6\\6&5\end{bmatrix}$
    The cross term $2bxy$ uses $b$ twice; so $b = 3$.
    $\begin{bmatrix}2&3\\3&5\end{bmatrix}$
    $ax^2 + 2bxy + cy^2$ with $a = 2$, $b = 3$, $c = 5$.
    $\begin{bmatrix}2&0\\6&5\end{bmatrix}$
    Use the symmetric version so the theorems apply.

    The covariance matrix of some 2-D data has eigenvalues 9 and 1. The standard deviation of the data along the first principal component is

    9
    That’s the variance along it.
    3
    SD = $\sqrt{\lambda_{\max}} = \sqrt9$.
    10
    That’s the total variance (trace).
    1
    That’s the variance along the second component.

    A symmetric matrix has eigenvalues 4, 0, 0. It is

    positive definite
    Definite needs every eigenvalue strictly positive.
    positive semidefinite
    All eigenvalues ≥ 0, with some equal to 0.
    indefinite
    Indefinite needs a negative eigenvalue.

    A $3\times3$ matrix has eigenvalues 1, 2, 3. $\det(A^2)$ is

    6
    That’s $\det A$. Square it.
    36
    $(\det A)^2 = 6^2$, or the product $1\cdot4\cdot9$.
    14
    That’s the trace of $A^2$.
    12
    Multiply the squared eigenvalues.

    A $4\times4$ projection matrix $P$ has rank 1. $\mathrm{tr}(I - P)$ is

    1
    That’s $\mathrm{tr}(P)$.
    3
    $I - P$ is the projection onto the 3-D complement; trace $4 - 1$.
    4
    Subtract the trace of $P$.
    0
    $I - P$ isn’t zero; it projects onto everything $P$ discards.

    For symmetric $A$ with eigenvalues −2, 1, 5, $\min_{\norm\x=1}\x\T A\x$ is

    0
    The minimum is the smallest eigenvalue.
    −2
    $\lambda_{\min}$.
    1
    That’s the middle eigenvalue.
    4
    That’s the trace.

    Factoring a matrix into simpler pieces, the way 12 = 3 × 4. LU decomposition records Gaussian elimination so that systems can be solved fast; partitioned (block) matrices let you treat big matrices as small grids of smaller ones; and the singular value decomposition (SVD) describes any matrix as rotate–stretch–rotate, the idea behind PCA, low-rank approximation and recommender systems.

    You need: Part 2 (elimination) and Part 3 (eigenvalues, symmetric and orthogonal matrices).

    LU decomposition and partitioned matrices

    LU writes a square matrix as $A = LU$, a lower-triangular $L$ (holding the elimination multipliers) times an upper-triangular $U$ (the echelon form), so solving $A\x = \b$ becomes two quick triangular solves.

    Both topics are in the DA syllabus by name. DA hasn’t asked LU in 2024–26, but the CS paper has, twice recently, and the facts are quick to learn.

    It’s like writing down every move while solving a Rubik’s cube. Next time you get a similar cube, you replay the moves instead of thinking from scratch.

    Where it shows up in GATE

    Not yet in a DA paper (2024–26), but in the syllabus. GATE CS asks it, and DA questions on triangular systems and determinants use the same ideas.

    CS 2025 (set 2) Q44 · facts about LUCS 2022 Q45 · LU of a 3 × 3 systemDA 2025 Q12 · triangular systems
    Heat: rare in DA so far, but cheap to prepare

    First, a word: a triangular matrix has only zeros on one side of its diagonal. Upper triangular means zeros below the diagonal, like $\begin{bmatrix}2&1\\0&5\end{bmatrix}$; lower triangular means zeros above it, like $\begin{bmatrix}1&0\\3&1\end{bmatrix}$. Triangular systems are easy, because you can solve for one unknown at a time. LU decomposition turns any (well-behaved) square matrix into a product of two triangular ones.

    Eliminate on $A = \begin{bmatrix}2&1\\6&8\end{bmatrix}$: subtract $3\times$ row 1 from row 2 to get $U = \begin{bmatrix}2&1\\0&5\end{bmatrix}$. The multiplier 3 goes into $L$ below the diagonal: $L = \begin{bmatrix}1&0\\3&1\end{bmatrix}$. Check: $LU = \begin{bmatrix}2&1\\6&3+5\end{bmatrix} = A$ ✓.

    $A = LU$ with $L$ lower triangular (1s on the diagonal, the elimination multipliers $\ell_{ij}$ below it) and $U$ upper triangular (the result of elimination). It exists without row swaps when no zero pivot appears; in general $PA = LU$ for a permutation matrix $P$ (an identity matrix with its rows reordered) that records the swaps.

    1. Forward substitution: solve $L\y = \b$ from the top down.
    2. Back substitution: solve $U\x = \y$ from the bottom up.

    Factoring costs $O(n^3)$ once; each new right-hand side then costs only $O(n^2)$. Bonus: $\det A = \det L\cdot\det U = $ product of $U$’s diagonal (the pivots).

    Try it

    Step through elimination and watch both factors fill in: each multiplier you use drops into $L$, and the matrix you’re reducing becomes $U$. At the end, the readout confirms $LU = A$ and gives $\det A$ as the product of the pivots.

    Partitioned (block) matrices

    You can cut a matrix into blocks and multiply block by block, exactly as if the blocks were numbers, provided the sizes match up:

    $$\begin{bmatrix}A&B\\C&D\end{bmatrix}\begin{bmatrix}E\\F\end{bmatrix} = \begin{bmatrix}AE + BF\\CE + DF\end{bmatrix}.$$

    Useful facts:

    • Block diagonal $\begin{bmatrix}A&0\\0&D\end{bmatrix}$: eigenvalues are those of $A$ and $D$ together; determinant $\det A\cdot\det D$; inverse $\begin{bmatrix}A^{-1}&0\\0&D^{-1}\end{bmatrix}$.
    • Block triangular $\begin{bmatrix}A&B\\0&D\end{bmatrix}$: still $\det = \det A\cdot\det D$, and eigenvalues are those of $A$ and $D$.
    • Order matters inside blocks: $AE + BF$, not $EA + FB$.
    GATE CS 2025 (set 2) · Q44 · MSQ · 2 marks

    Consider a system of linear equations $PX = Q$ where $P\in\R^{3\times3}$ and $Q\in\R^{3\times1}$. Suppose $P$ has an LU decomposition, $P = LU$, where $L = \begin{bmatrix}1&0&0\\l_{21}&1&0\\l_{31}&l_{32}&1\end{bmatrix}$ and $U = \begin{bmatrix}u_{11}&u_{12}&u_{13}\\0&u_{22}&u_{23}\\0&0&u_{33}\end{bmatrix}$. Which of the following statement(s) is/are TRUE?

    1. The system $PX = Q$ can be solved by first solving $LY = Q$ and then $UX = Y$.
    2. If $P$ is invertible, then both $L$ and $U$ are invertible.
    3. If $P$ is singular, then at least one of the diagonal elements of $U$ is zero.
    4. If $P$ is symmetric, then both $L$ and $U$ are symmetric.
    1. (A): $PX = L(UX)$. Call $UX = Y$; then $LY = Q$. Solve for $Y$ first, then $X$. ✓

      This is the whole point of LU.

    2. (B): $\det P = \det L\cdot\det U = 1\cdot u_{11}u_{22}u_{33}$. If $P$ is invertible, $\det P \ne 0$, so every $u_{ii} \ne 0$ and $U$ is invertible; $L$ always is (det 1). ✓

      Triangular determinant = product of the diagonal.

    3. (C): singular ⇒ $\det P = u_{11}u_{22}u_{33} = 0$ ⇒ some $u_{ii} = 0$. ✓

      Same identity, read the other way.

    4. (D): a lower-triangular $L$ with non-zero entries below the diagonal can’t equal its transpose (which is upper triangular). ✗ Answer: A, B, C.

      For symmetric $P$ there’s the related factorisation $P = LDL\T$, but $L$ and $U$ themselves aren’t symmetric. Official key (CS2 2025): A; B; C.

    Warm-up. $A = LU$ with $L = \begin{bmatrix}1&0\\2&1\end{bmatrix}$ and $U = \begin{bmatrix}3&1\\0&4\end{bmatrix}$. What is $\det A$?

    $\det A = \det L \cdot \det U$, and a triangular determinant is the product of its diagonal.

    $\det L = 1$ and $\det U = 3 \cdot 4 = 12$, so $\det A = 12$.

    Warm-up. Is $\begin{bmatrix}1&0\\5&1\end{bmatrix}$ lower triangular?

    Look above the diagonal.

    Yes: the only entry above the diagonal is 0.

    Find the LU decomposition of $A = \begin{bmatrix}2&1\\6&8\end{bmatrix}$ (with 1s on $L$’s diagonal). Enter $\ell_{21}$ and $u_{22}$.

    The multiplier that clears the 6 is $6/2$.

    $\ell_{21} = 3$; row 2 becomes $(6, 8) - 3(2, 1) = (0, 5)$, so $u_{22} = 5$.

    Using the factorisation from Problem 1, what is $\det A$?

    Product of $U$’s diagonal.

    $2\times5 = 10$. Check: $16 - 6 = 10$ ✓.

    Find $\det\begin{bmatrix}2&1&7&9\\1&3&5&4\\0&0&-1&2\\0&0&1&1\end{bmatrix}$.

    It’s block upper triangular: $\begin{bmatrix}A&B\\0&D\end{bmatrix}$ with 2 × 2 blocks.

    Top-left block $\begin{bmatrix}2&1\\1&3\end{bmatrix}$: $\det = 6 - 1 = 5$. Bottom-right block $\begin{bmatrix}-1&2\\1&1\end{bmatrix}$: $\det = -1 - 2 = -3$. The top-right block doesn’t matter. $\det = 5\times(-3) = -15$.

    With $L = \begin{bmatrix}1&0\\3&1\end{bmatrix}$, solve $L\y = (1, 5)$ by forward substitution. Enter $y_2$.

    $y_1 = 1$; then $3y_1 + y_2 = 5$.

    $y_1 = 1$, $y_2 = 5 - 3 = 2$.

    Let $A = \begin{bmatrix}2&1&1\\4&3&3\\8&7&9\end{bmatrix}$ and $A = LU$ with 1s on the diagonal of $L$. Find $\ell_{32}$, $u_{33}$ and $\det(A^2)$.

    Eliminate column 1 first (multipliers $4/2$ and $8/2$), then column 2 of what is left. $\det A$ is the product of the pivots.

    Step 1: $\ell_{21} = 2$, $\ell_{31} = 4$. Row 2 becomes $(4,3,3) - 2(2,1,1) = (0, 1, 1)$; row 3 becomes $(8,7,9) - 4(2,1,1) = (0, 3, 5)$.

    Step 2: the pivot is 1, so $\ell_{32} = 3/1 = 3$, and row 3 becomes $(0,3,5) - 3(0,1,1) = (0, 0, 2)$: $u_{33} = 2$.

    $U = \begin{bmatrix}2&1&1\\0&1&1\\0&0&2\end{bmatrix}$, so $\det A = 2\cdot1\cdot2 = 4$ and $\det(A^2) = 4^2 = 16$.

    Answer: 3, 2, 16.

    Let $A = \begin{bmatrix}1&2&0\\2&a&1\\0&1&1\end{bmatrix}$. Which one of the following is correct about factorising $A = LU$ without row exchanges?

    1. It fails only at $a = 4$, and $A$ is singular only at $a = 5$.
    2. It fails only at $a = 5$, which is also the only value where $A$ is singular.
    3. It fails only at $a = 4$, which is also the only value where $A$ is singular.
    4. It exists for every $a$, because $A$ is symmetric.

    Do the first elimination step and look at the second pivot. Separately, compute $\det A$ as a function of $a$.

    $R_2 - 2R_1$ gives $(0, a - 4, 1)$. Row 3 is already $(0, 1, 1)$. The second pivot is $a - 4$, so elimination without a row swap stops when $a = 4$.

    $\det A = 1\cdot(a\cdot1 - 1\cdot1) - 2(2\cdot1 - 0) = a - 5$. At $a = 4$, $\det A = -1 \ne 0$: $A$ is invertible, yet needs a row swap ($PA = LU$).

    At $a = 5$ the pivots are $1, 1$ and then $u_{33} = 1 - 1\cdot1 = 0$. The factorisation exists, with a zero on the diagonal of $U$, which is exactly why $\det A = 0$.

    A zero pivot during elimination and a singular matrix are different things. Symmetry does not guarantee LU without swaps (D); positive definiteness would.

    Answer: (A).

    Let $B = \begin{bmatrix}1\\2\end{bmatrix}$, $C = \begin{bmatrix}3&1\end{bmatrix}$ and $M = \begin{bmatrix}I_2&B\\C&1\end{bmatrix} = \begin{bmatrix}1&0&1\\0&1&2\\3&1&1\end{bmatrix}$. Find $\det M$ and $\det(I_2 - BC)$.

    Block-eliminate: subtract $C$ times the top block row from the bottom. That leaves a $1\times1$ Schur complement. For the second part, eliminate the other way round.

    $\begin{bmatrix}I&0\\-C&1\end{bmatrix}M = \begin{bmatrix}I&B\\0&1 - CB\end{bmatrix}$, which is block upper triangular. So $\det M = \det I_2\cdot(1 - CB) = 1 - (3 + 2) = -4$.

    Eliminating the other way, $M\begin{bmatrix}I&0\\-C&1\end{bmatrix} = \begin{bmatrix}I - BC&B\\0&1\end{bmatrix}$, so $\det M = \det(I_2 - BC)\cdot1$. Hence $\det(I_2 - BC) = -4$ as well.

    Check directly: $BC = \begin{bmatrix}3&1\\6&2\end{bmatrix}$, $I - BC = \begin{bmatrix}-2&-1\\-6&-1\end{bmatrix}$, determinant $2 - 6 = -4$ ✓. This is the identity $\det(I - BC) = \det(1 - CB)$: a $2\times2$ determinant became a single number.

    Answer: −4 and −4.

    • Remember the recipe: multipliers go into $L$, the reduced matrix is $U$.
    • Use $\det A$ = product of pivots once you have $U$.
    • Treat blocks like numbers, but keep the order of multiplication.
    • Expecting LU without swaps to always exist. A zero pivot needs $PA = LU$.
    • Putting the multipliers into $L$ with the wrong sign: if you did $R_2 - 3R_1$, then $\ell_{21} = +3$.
    • Applying $\det\begin{bmatrix}A&B\\C&D\end{bmatrix} = \det A\det D - \det B\det C$. False in general; only block-triangular forms factor nicely.
    1. A = LU records elimination: L holds the multipliers (1s on its diagonal) and U is the echelon form.
    2. Solve Ax = b as Ly = b, then Ux = y; factor once in O(n³), then each solve is O(n²). det A = product of U’s diagonal.
    3. Block matrices multiply like numbers; block-triangular determinants are products of the diagonal blocks’ determinants.

    In $A = LU$ (no row swaps), the entries of $L$ below the diagonal are

    the pivots
    The pivots end up on $U$’s diagonal.
    the multipliers used in elimination
    $\ell_{ij}$ = the multiple of row $j$ subtracted from row $i$.
    the entries of $A$ below the diagonal
    No column matches in general: $\ell_{i1} = a_{i1}/a_{11}$, so even the first column matches only when $a_{11} = 1$.

    Why factor $A = LU$ if you could just do elimination each time?

    LU is more accurate in every case
    Accuracy is similar; the gain is speed.
    With many right-hand sides, each new solve is only O(n²)
    The O(n³) work is done once.
    LU works for singular matrices where elimination fails
    LU is elimination; it hits the same problems.

    $\begin{bmatrix}A&0\\0&D\end{bmatrix}$ with $A$ having eigenvalues 1, 2 and $D$ having eigenvalue 5. Its eigenvalues are

    8
    That’s the trace.
    1, 2, 5
    Block-diagonal: the eigenvalues of the blocks, together.
    10
    That’s the determinant.

    SVD: every matrix is rotate, stretch, rotate

    Any matrix (square or not) can be written $A = U\Sigma V\T$: rotate by $V\T$, stretch along the axes by the singular values in $\Sigma$, rotate by $U$. The singular values measure how much $A$ stretches space in its strongest directions.

    GATE has asked for singular values directly (2024 Q61) and alongside eigenvalues (2025 Q50). SVD is also how PCA is computed in practice and how data is compressed.

    It’s like describing any squash-and-twist of a rubber circle: whatever you did, the circle becomes an ellipse. The SVD names the ellipse’s axes (directions) and their lengths (singular values).

    Where it shows up in GATE DA

    Singular values of special matrices (rank-1, projections, symmetric), and their link to eigenvalues.

    2024 Q61 · sum of singular values of uuᵀ2025 Q50 · singular values of a projection2025 Q38 · “0 is a singular value”2025 Q60 · PCA
    Heat: most years, 1–2 marks

    Why another decomposition? Eigenvectors only make sense for square matrices, and even then they need not be perpendicular. Real data tables are rarely square: think of a table of 10 000 fans × 70 matches, with each fan’s rating of each match. The SVD works for any shape and finds the few strongest patterns in such a table (that is how recommender systems and PCA compress data).

    A tiny example. $A = \begin{bmatrix}3&0\\0&-2\end{bmatrix}$ stretches the $x$-direction by 3 and the $y$-direction by 2, flipping it. Its singular values are 3 and 2: the stretch factors, always taken as non-negative (the flip is handed to one of the rotations). The unit circle becomes an ellipse with half-axes 3 and 2.

    For any $m\times n$ matrix $A$: $$A = U\Sigma V\T,$$ where $U$ ($m\times m$) and $V$ ($n\times n$) are orthogonal and $\Sigma$ ($m\times n$) is zero except for the singular values $\sigma_1 \ge \sigma_2 \ge \cdots \ge 0$ on its diagonal. Then:

    • $\sigma_i = \sqrt{\lambda_i(A\T A)}$: square roots of the eigenvalues of $A\T A$ (a positive semidefinite, or PSD, matrix: Chapter 3.3; so they’re real and non-negative).
    • The number of non-zero singular values is $\mathrm{rank}(A)$.
    • $A\v_i = \sigma_i\u_i$: $V$’s columns are input directions, $U$’s are output directions.
    • $\sigma_1$ is the largest stretch: $\max_{\norm\x = 1}\norm{A\x} = \sigma_1$.
    • Symmetric PSD (covariance, Gram, projection): singular values = eigenvalues.
    • Symmetric in general: singular values = $|\lambda_i|$.
    • Rank one $\u\v\T$: one non-zero singular value, $\norm\u\norm\v$. In particular $\u\u\T$ has $\sigma_1 = \norm\u^2$.
    • Orthogonal $Q$: all singular values are 1.
    Try it

    The dashed circle is all unit vectors; the solid shape is where $A$ sends them, always an ellipse. The ellipse’s semi-axes are $\sigma_1$ and $\sigma_2$ (along $\u_1$, $\u_2$), and the input directions that land there are $\v_1$, $\v_2$ (on the circle). Make the matrix singular and the ellipse collapses to a segment ($\sigma_2 = 0$).

    GATE DA 2024 · Q61 · NAT · 2 marks

    Let $\u = \begin{bmatrix}1\\2\\3\\4\\5\end{bmatrix}$, and let $\sigma_1, \sigma_2, \sigma_3, \sigma_4, \sigma_5$ be the singular values of the matrix $M = \u\u^T$ (where $\u^T$ is the transpose of $\u$). The value of $\sum_{i=1}^5\sigma_i$ is ______.

    1. $M = \u\u\T$ has rank 1 (every column is a multiple of $\u$), so exactly one singular value is non-zero.

      Number of non-zero singular values = rank.

    2. $M\u = \u(\u\T\u) = \norm\u^2\,\u$, so $\u$ is an eigenvector with eigenvalue $\norm\u^2$. $M$ is symmetric PSD, so this eigenvalue is also its singular value.

      For symmetric PSD matrices, singular values = eigenvalues.

    3. $\norm\u^2 = 1 + 4 + 9 + 16 + 25 = 55$. So $\sum\sigma_i = 55 + 0 + 0 + 0 + 0 = $ 55.

      No 5 × 5 computation needed. Official key: 55.

    Go deeper: low-rank approximation and PCA

    Write $A = \sum_i \sigma_i\u_i\v_i\T$, a sum of rank-1 pieces in decreasing importance. Keeping only the first $k$ terms gives the best rank-$k$ approximation of $A$ (Eckart–Young theorem), which is how images and recommendation matrices get compressed. For centred data $X$ (rows = data points), the right singular vectors $\v_i$ are the principal components, and $\sigma_i^2/n$ are the variances along them.

    Warm-up. What are the singular values of $\begin{bmatrix}3&0\\0&-2\end{bmatrix}$? Enter the larger first.

    Singular values are the stretch factors, and they are never negative.

    $\sigma_1 = 3$, $\sigma_2 = |-2| = 2$. Check: $A\T A = \mathrm{diag}(9, 4)$, whose eigenvalues have square roots 3 and 2.

    Warm-up. A matrix has singular values 5, 2 and 0. What is its rank?

    Count the non-zero singular values.

    Two non-zero singular values: rank 2.

    Find the singular values of $\begin{bmatrix}3&0\\0&-2\end{bmatrix}$.

    It’s symmetric: singular values are the absolute values of the eigenvalues, sorted.

    Eigenvalues 3 and −2, so $\sigma_1 = 3$, $\sigma_2 = 2$. (The sign is absorbed into $U$ or $V$.)

    Find the singular values of $A = \begin{bmatrix}0&2\\0&0\end{bmatrix}$. (Its eigenvalues are both 0, so be careful.)

    Compute $A\T A$ and take square roots of its eigenvalues.

    $A\T A = \begin{bmatrix}0&0\\0&4\end{bmatrix}$, with eigenvalues 4 and 0, so $\sigma = 2, 0$. This matrix is not symmetric, and its singular values differ from its eigenvalues.

    A $5\times4$ matrix has singular values 7, 2, 0.5, 0. What is its rank?

    Count the non-zero singular values.

    Three are non-zero: rank 3.

    For $\u = (1, 2, 3)$, what is the largest singular value of $\u\u\T$?

    $\norm\u^2$.

    $1 + 4 + 9 = 14$.

    Let $A = \begin{bmatrix}3&0\\4&5\end{bmatrix}$. Find its largest singular value $\sigma_1$, the Frobenius-norm error $\norm{A - A_1}_F$ of its best rank-1 approximation $A_1$, and $\norm A_F$. (Decimals are fine.)

    Eigenvalues of $A\T A$ give $\sigma^2$. Keeping the top term of the SVD leaves an error made of the other singular values only.

    $A\T A = \begin{bmatrix}25&20\\20&25\end{bmatrix}$, with eigenvalues $25 \pm 20 = 45, 5$. So $\sigma_1 = \sqrt{45} = 3\sqrt5 \approx 6.708$ and $\sigma_2 = \sqrt5 \approx 2.236$.

    The best rank-1 approximation keeps $\sigma_1\u_1\v_1\T$ (Eckart–Young). What is left is $\sigma_2\u_2\v_2\T$, whose Frobenius norm is $\sigma_2 = \sqrt5 \approx 2.236$.

    $\norm A_F^2 = 9 + 0 + 16 + 25 = 50 = \sigma_1^2 + \sigma_2^2 = 45 + 5$ ✓, so $\norm A_F = \sqrt{50} \approx 7.071$.

    Answer: $\approx 6.708$, $\approx 2.236$, $\approx 7.071$.

    $\u\in\R^3$ with $\norm\u = 2$, $\v\in\R^4$ with $\norm\v = 3$, and $A = \u\v\T$ (a $3\times4$ matrix). Which of the following are TRUE?

    1. $A$ has exactly one non-zero singular value, and it equals 6.
    2. $\norm A_F = 6$.
    3. $\operatorname{tr}(AA\T) = 6$.
    4. The singular values of $2A\T$ are 12, 0, 0.

    Compute $A\T A$ and $AA\T$ in terms of $\u$ and $\v$. How many singular values can a rank-1 matrix have that are non-zero, and how are $\norm A_F$ and $\operatorname{tr}(AA\T)$ built from them?

    $A\T A = \v\u\T\u\v\T = 4\v\v\T$, whose only non-zero eigenvalue is $4\norm\v^2 = 36$. So $A$ has one non-zero singular value, $\sqrt{36} = 6 = \norm\u\norm\v$ (A) ✓.

    (B) $\norm A_F^2 = \sum\sigma_i^2 = 36$, so $\norm A_F = 6$ ✓.

    (C) $\operatorname{tr}(AA\T) = \norm A_F^2 = 36$, not 6 ✗. (6 is $\norm A_F$; the trace is its square.)

    (D) $A\T$ has the same non-zero singular values as $A$, and $2A\T$ doubles them. $A\T$ is $4\times3$, so it has $\min(4,3) = 3$ singular values: 12, 0, 0 ✓.

    Answer: A, B, D.

    For $A = \begin{bmatrix}1&2\\2&-2\end{bmatrix}$, which one of the following gives the singular values of $A$ and $\norm A_F$?

    1. Singular values 3, 2; $\norm A_F = \sqrt{13}$.
    2. Singular values 2, −3; $\norm A_F = \sqrt{13}$.
    3. Singular values 3, 2; $\norm A_F = 5$.
    4. Singular values 9, 4; $\norm A_F = \sqrt{13}$.

    $A$ is symmetric. Find its eigenvalues from the trace and determinant, then decide how they turn into singular values.

    $\operatorname{tr}A = -1$ and $\det A = -2 - 4 = -6$, so the eigenvalues solve $\lambda^2 + \lambda - 6 = 0$: $\lambda = 2, -3$.

    For a symmetric matrix the singular values are the absolute values of the eigenvalues: 3 and 2. (B) keeps the negative sign; (D) forgets the square root ($A\T A = A^2$ has eigenvalues 9 and 4).

    $\norm A_F^2 = 1 + 4 + 4 + 4 = 13 = 3^2 + 2^2$ ✓, so $\norm A_F = \sqrt{13}$. (C) adds the singular values instead of the squares under a root.

    Answer: (A).

    • Use structure first: symmetric PSD ⇒ σ = λ; rank 1 ⇒ one σ = ‖u‖‖v‖.
    • Otherwise compute eigenvalues of AᵀA and take square roots.
    • Read rank as the count of non-zero singular values.
    • Assuming singular values equal eigenvalues for every matrix.
    • Reporting a negative singular value. They’re never negative.
    • Forgetting the square root: σ² is an eigenvalue of AᵀA, not σ itself.
    1. A = UΣVᵀ for any matrix: rotate, stretch by the singular values σᵢ ≥ 0, rotate.
    2. σᵢ = √(eigenvalues of AᵀA); the count of non-zero σ is the rank; σ₁ is the largest stretch.
    3. For symmetric PSD matrices σ = λ; for uuᵀ the only non-zero σ is ‖u‖².

    The singular values of an orthogonal matrix are

    ±1
    Singular values are never negative.
    all 1
    $Q\T Q = I$ has eigenvalues 1, so $\sigma = \sqrt1 = 1$. Orthogonal matrices don’t stretch.
    its eigenvalues
    Eigenvalues can be complex (rotations); singular values are 1.

    A symmetric matrix has eigenvalues 4, −3, 0. Its singular values are

    4, −3, 0
    Take absolute values.
    4, 3, 0
    For symmetric matrices, σ = |λ|.
    16, 9, 0
    Those are eigenvalues of $A\T A = A^2$; take square roots.

    GATE 2025 Q38 option (B) says "0 is a singular value of $A$" for a Gram matrix of independent vectors. This is

    true
    The Gram matrix of independent vectors is positive definite.
    false
    Positive definite ⇒ all eigenvalues (= singular values) are strictly positive.
    true only for n = 2
    Independence gives positive definiteness for every n.

    $\begin{bmatrix}5&2\\2&2\end{bmatrix}$ has eigenvalues

    5 and 2
    Not triangular; use trace 7 and det 6.
    6 and 1
    Sum 7, product 6.
    7 and 6
    Those are the trace and determinant.
    3 and 4
    Product 12 ≠ det 6.

    A $6\times4$ matrix has nullity 0. Its rank is

    6
    Rank can’t exceed the number of columns, 4.
    4
    rank + nullity = 4 columns.
    2
    That would make the nullity 2.

    Which matrix is a projection?

    $\begin{bmatrix}0&1\\1&0\end{bmatrix}$
    That’s a reflection: its square is $I$, not itself.
    $\begin{bmatrix}1&0\\0&0\end{bmatrix}$
    Symmetric, and its square is itself: it projects onto the x-axis.
    $\begin{bmatrix}2&0\\0&0\end{bmatrix}$
    Its square has a 4: not idempotent.

    For a covariance matrix $\Sigma$, the largest singular value equals

    the trace
    The trace is the total variance (sum of eigenvalues).
    the largest eigenvalue: the variance along the top PCA direction
    Σ is symmetric PSD, so σ = λ.
    its square root
    That would be the standard deviation along the top direction.

    The set of $2\times2$ symmetric matrices, viewed as vectors $(a, b, c)$ in $\begin{bmatrix}a&b\\b&c\end{bmatrix}$, has dimension

    4
    The two off-diagonal entries must be equal.
    3
    Free choices: $a$, $b$, $c$.
    2
    Count the free entries again: $a$, $b$ and $c$.
    Every module complete

    Every question, answered right.

    You worked through every quiz and every practice problem in GATE Data Science & AI. That took real effort, and the understanding is yours to keep. Add your name to make a certificate.