7. Linear Algebra

Direct sum of subspaces

A vector space is expressed as a direct sum of its subspaces if every vector in the space can be uniquely decomposed as a sum of vectors from each subspace, implying a trivial intersection. This topic covers direct sums and dimension formulas.

For: UP PGT Mathematics UP TGT Mathematics DSSSB PGT / TGT KVS / NVS PGT LT Grade
📖 Topic progress
○ Mark as complete

Definition and statement

Direct Sum Decomposition Theorem
Let $V$ be a vector space over a field $\mathbb{F}$, and let $W_1, W_2, \dots, W_k$ be subspaces of $V$. Then $V$ is the direct sum of $W_1, W_2, \dots, W_k$ (written as $V = W_1 \oplus W_2 \oplus \dots \oplus W_k$) if and only if: (1) $V = W_1 + W_2 + \dots + W_k$, and (2) For each $j \in \{1, 2, \dots, k\}$, $W_j \cap \sum_{i \neq j} W_i = \{0\}$.

📐 Geometric Interpretation

Geometrically, in $\mathbb{R}^3$, a plane and a line not lying in that plane intersect only at the origin, allowing any vector in $\mathbb{R}^3$ to be uniquely written as the sum of a vector on the plane and a vector on the line.

⚙️ Algebraic & Structural Meaning

It allows complex vector spaces to be decoupled into independent, smaller-dimensional invariant subspaces, drastically simplifying linear transformations, matrix diagonalizability, and canonical forms.

Conditions and hypotheses

Check each condition and what changes when it is omitted:

Hypothesis / Condition Domain / Interval Necessity What Fails If Condition Dropped
Subspace Property Algebraic subsets of $V$ Strictly Mandatory / Necessary If $W_i$ are merely subsets and not vector subspaces, closures under addition and scalar multiplication fail, rendering the direct sum undefined.
Zero Intersection Condition $W_i \cap W_j = \{0\}$ (for binary sum) Strictly Mandatory If the intersection is non-trivial, the representation of vectors as sums is non-unique, destroying the direct sum property.
Finite Dimension Formula Dimension matching $\dim(V) = \sum \dim(W_i)$ Essential for finite-dimensional spaces Without dimension additivity, spanning conditions fail, and the sum cannot be direct.

Useful results and shortcuts

Use these identities and results when their conditions apply:

01

Dimension Additivity Rule

$$ \dim(W_1 \oplus W_2) = \dim(W_1) + \dim(W_2) $$

Rule: If the sum of dimensions of subspaces equals the dimension of the space $V$ and their intersection is trivial, they form a direct sum instantly.

Application: Use this to verify if two matrix spaces (e.g., symmetric and skew-symmetric matrices) form a direct sum.
02

Symmetric and Skew-Symmetric Decomposition

$$ M_n(\mathbb{R}) = \text{Sym}_n(\mathbb{R}) \oplus \text{Skew}_n(\mathbb{R}) $$

Rule: Any square matrix $A$ is uniquely decomposed as $A = \frac{1}{2}(A + A^T) + \frac{1}{2}(A - A^T)$, where $\dim(\text{Sym}) = \frac{n(n+1)}{2}$ and $\dim(\text{Skew}) = \frac{n(n-1)}{2}$.

03

Direct Sum via Rank-Nullity

$$ \text{range}(T) \oplus \text{null}(T) \text{ is not always true, but } V = \ker(T) \oplus \text{row}(T) \text{ holds for operators.} $$

Rule: Use rank-nullity theorem dimensions to instantly identify direct sum complements of kernel spaces.

04

Unique Representation Test

$$ \text{If } v = w_1 + w_2 = w_1' + w_2' \implies w_1 = w_1', w_2 = w_2' $$

Rule: Set $w_1 - w_1' = w_2' - w_2$. Since intersection is zero, both sides must be zero.

Application: Used in theoretical assertion-reason questions.
05

Number of Subspaces Condition

$$ V = \bigoplus_{i=1}^k W_i \implies \dim(V) = \sum_{i=1}^k \dim(W_i) $$

Rule: Check dimensions first before checking intersection; if sum of dimensions $\neq \dim(V)$, immediately eliminate the direct sum option.

06

Rapid Elimination via Bases

$$ \beta_1 \cap \beta_2 = \emptyset $$

Rule: If union of bases of $W_1$ and $W_2$ forms a basis of $V$ and their intersection of basis sets is empty with disjoint spans, $V = W_1 \oplus W_2$.

Application: Standard pattern in UP TGT vector space basis questions.

Common errors and counterexamples

These examples show how a conclusion can fail when a condition is missing:

⚠️ COMMON ERROR #01

Three Subspaces Intersection Fallacy

Common Pitfall: Candidates assume that for three subspaces $W_1, W_2, W_3$, $W_1 \cap W_2 \cap W_3 = \{0\}$ is sufficient for a direct sum.

Counterexample: Let $W_1, W_2, W_3$ be distinct lines in $\mathbb{R}^2$ passing through origin.

Why it fails: While pairwise intersections are zero, the sum is not direct because any two can span the whole space, violating pairwise disjointness conditions.

🛡️ Exam Defense: For $k > 2$ subspaces, check that each subspace intersects the sum of the remaining subspaces strictly at the zero vector.
⚠️ COMMON ERROR #02

Dimension Sum Equals Space Dimension Implies Direct Sum

Common Pitfall: Assuming that $\dim(W_1) + \dim(W_2) = \dim(V)$ automatically guarantees $V = W_1 \oplus W_2$.

Counterexample: In $\mathbb{R}^2$, let $W_1 = \{(x,0) : x \in \mathbb{R}\}$ and $W_2 = \{(2x,0) : x \in \mathbb{R}\}$.

Why it fails: Here $\dim(W_1) = 1, \dim(W_2) = 1$, and their sum dimension equals 2, but $W_1 = W_2$, so $W_1 \cap W_2 \neq \{0\}$.

🛡️ Exam Defense: Dimension sum condition is necessary but NOT sufficient on its own; you must verify $W_1 \cap W_2 = \{0\}$.

Comparison

Concept / TheoremHypotheses / AssumptionsKey Formula / OutcomeGeometric MeaningExam Identification Clue
Internal Direct Sum$V$ is space, $W_i$ are subspaces$V = W_1 \oplus W_2$, $W_1 \cap W_2 = \{0\}$Decomposition into independent geometric axesExamines whether space splits into subspaces
External Direct SumArbitrary vector spaces $V_1, V_2$$V_1 \oplus V_2 = \{(v_1, v_2) : v_1 \in V_1, v_2 \in V_2\}$Cartesian product with componentwise operationsConstructing larger spaces from given spaces
Dimension Theorem for Sum$W_1, W_2$ finite-dimensional subspaces$\dim(W_1 + W_2) = \dim(W_1) + \dim(W_2) - \dim(W_1 \cap W_2)$Overlap subtraction in volume/dimensionAsked when intersection is non-zero
Matrix Space Decomposition$M_n(\mathbb{R})$ space of square matrices$M_n(\mathbb{R}) = \text{Sym}_n \oplus \text{Skew}_n$Splitting into symmetric and skew partsMatrix dimension and trace questions

Solved examples

Each problem includes a full solution and a shorter method:

CANONICAL PROBLEM 01 Dual-Method Breakdown

Let $W_1 = \{(x, y, z) \in \mathbb{R}^3 : x + y + z = 0\}$ and $W_2 = \{(x, y, z) \in \mathbb{R}^3 : x = y = z\}$ be subspaces of $\mathbb{R}^3$. Then:

(A) $\mathbb{R}^3 = W_1 \oplus W_2$(B) $\mathbb{R}^3 = W_1 + W_2$ but not direct sum(C) $W_1 \cap W_2 = \mathbb{R}^3$(D) $W_1 + W_2 \neq \mathbb{R}^3$
✓ Correct Answer: (A)
📚 Method A: Formal Textbook Derivation
Step 1: Find dimensions. $\dim(W_1) = 2$ (1 linear constraint in 3 vars), $\dim(W_2) = 1$ (line $t(1,1,1)$). Step 2: Check intersection. If $(x,y,z) \in W_2$, then $x=y=z$. Substitute into $W_1$: $3x=0 \implies x=y=z=0$, so $W_1 \cap W_2 = \{(0,0,0)\}$. Step 3: Since $\dim(W_1) + \dim(W_2) = 2 + 1 = 3 = \dim(\mathbb{R}^3)$ and intersection is zero, $\mathbb{R}^3 = W_1 \oplus W_2$.
⚡ Method B: 25-Second Exam Shortcut
Check $W_2$ vector $(1,1,1)$. Does it satisfy $W_1$? $1+1+1 = 3 \neq 0$, so $(1,1,1) \notin W_1$. Thus intersection is trivial. Dimensions sum to 3. Mark (A) in 15 seconds.
💡 Tip: Whenever one subspace is a line and the other is a hyperplane (plane), check if the line vector lies in the plane. If not, it is an instant direct sum!
CANONICAL PROBLEM 02 Dual-Method Breakdown

If $W_1$ and $W_2$ are subspaces of a vector space $V$ of dimensions 4 and 5 respectively, and $\dim(W_1 \cap W_2) = 2$, what is the dimension of $W_1 + W_2$?

(A) 9(B) 7(C) 6(D) 5
✓ Correct Answer: (B)
📚 Method A: Formal Textbook Derivation
Apply the modular dimension formula: $\dim(W_1 + W_2) = \dim(W_1) + \dim(W_2) - \dim(W_1 \cap W_2) = 4 + 5 - 2 = 7$.
⚡ Method B: 25-Second Exam Shortcut
Direct application: $4 + 5 - 2 = 7$. No direct sum since intersection dimension is 2.
💡 Tip: Remember that if the problem mentions direct sum, intersection dimension is 0. Here it is 2, so use the subtraction formula.

Practice questions

Choose an answer to check it and see the solution:

Q1
MCQ 1: Let $V$ be the vector space of all polynomials of degree $\le n$. Which of the following pairs of subspaces form a direct sum of $V$?
A Even degree polynomials and odd degree polynomials
B Mononic polynomials and zero polynomial
C Polynomials vanishing at 0 and polynomials vanishing at 1
D Constant polynomials and linear polynomials
Derivation & Analysis:

Every polynomial can be uniquely written as the sum of an even polynomial and an odd polynomial: $f(x) = \frac{f(x)+f(-x)}{2} + \frac{f(x)-f(-x)}{2}$. Their intersection contains only the zero polynomial.

Q2
MCQ 2: If $W_1$ and $W_2$ are subspaces of a finite-dimensional vector space $V$ such that $V = W_1 \oplus W_2$, then which of the following is always true?
A $\dim(V) = \dim(W_1) - \dim(W_2)$
B $\dim(V) = \dim(W_1) \cdot \dim(W_2)$
C $\dim(V) = \dim(W_1) + \dim(W_2)$
D $\dim(W_1) = \dim(W_2)$
Derivation & Analysis:

By definition of direct sum of finite-dimensional spaces, $\dim(W_1 \oplus W_2) = \dim(W_1) + \dim(W_2)$. Since $V = W_1 \oplus W_2$, $\dim(V) = \dim(W_1) + \dim(W_2)$.

Q3
MCQ 3: Let $M_n(\mathbb{R})$ be the vector space of all $n \times n$ real matrices. Let $W_1$ be the space of symmetric matrices and $W_2$ be the space of skew-symmetric matrices. Then $\dim(W_1 \cap W_2)$ is:
A $\frac{n(n+1)}{2}$
B $n^2$
C $0$
D $\frac{n(n-1)}{2}$
Derivation & Analysis:

A matrix $A$ that is both symmetric ($A = A^T$) and skew-symmetric ($A = -A^T$) satisfies $A = -A \implies 2A = 0 \implies A = 0$. Thus $W_1 \cap W_2 = \{0\}$, so its dimension is 0.

Q4
MCQ 4: In $\mathbb{R}^3$, let $W_1 = \{(x,y,0) : x,y \in \mathbb{R}\}$ and $W_2 = \{(0,0,z) : z \in \mathbb{R}\}$. The direct sum $W_1 \oplus W_2$ is equal to:
A $\mathbb{R}^2$
B $\mathbb{R}^3$
C $\{0\}$
D $W_1$
Derivation & Analysis:

$W_1$ is the $xy$-plane (dim 2) and $W_2$ is the $z$-axis (dim 1). Their intersection is $\{0\}$, and their sum spans $\mathbb{R}^3$, so $W_1 \oplus W_2 = \mathbb{R}^3$.

Q5
MCQ 5: Let $U$ and $V$ be subspaces of a vector space $W$. If $W = U \oplus V$, then the representation $w = u + v$ for any $w \in W$ ($u \in U, v \in V$) is:
A Non-unique
B Unique
C Always zero
D Infinite
Derivation & Analysis:

A defining property of a direct sum is that every element in the direct sum space has a unique representation as a sum of elements from the constituent subspaces.

Q6
MCQ 6: If $W_1, W_2, W_3$ are subspaces of $V$ such that $\dim(W_1)=1, \dim(W_2)=2, \dim(W_3)=3$ and $\dim(V)=6$, and $W_1 \cap (W_2 + W_3) = \{0\}$, $W_2 \cap W_3 = \{0\}$, then $V$ is equal to:
A $W_1 + W_2 + W_3$
B $W_1 \oplus W_2 \oplus W_3$
C $W_1 \oplus W_2$
D None of these
Derivation & Analysis:

Since the sum of dimensions is $1 + 2 + 3 = 6 = \dim(V)$ and the disjointness conditions hold for the sum, $V = W_1 \oplus W_2 \oplus W_3$.

Q7
MCQ 7: Let $W$ be a subspace of a finite-dimensional vector space $V$. There exists a subspace $W'$ of $V$ such that $V = W \oplus W'$:
A Only if $W = \{0\}$
B Only if $W = V$
C Always, by extending a basis of $W$ to a basis of $V$
D Never
Derivation & Analysis:

Every subspace of a finite-dimensional vector space has a complementary subspace (though not necessarily unique) obtained by extending a basis of $W$ to $V$.

Q8
MCQ 8: Which of the following statements is false regarding direct sums?
A $V = U \oplus V \implies U = \{0\}$
B $U \oplus V = V \oplus U$
C If $U \cap V = \{0\}$, then $U + V$ is a direct sum
D $\dim(U \oplus V) = \dim(U) + \dim(V)$ always holds for finite-dimensional spaces
Derivation & Analysis:

If $V = U \oplus V$, then $\dim(V) = \dim(U) + \dim(V) \implies \dim(U) = 0 \implies U = \{0\}$. Wait, option A says $V = U \oplus V \implies U = \{0\}$, which is TRUE. Let's re-verify options. Actually, if $V = U \oplus V$, then $U = \{0\}$ is true. Let's check another: statement C is correct. What about standard definitions? All standard properties hold.

Q9
MCQ 9: Let $V$ be the vector space of all continuous functions from $\mathbb{R}$ to $\mathbb{R}$. Let $W_e$ be the set of even functions and $W_o$ be the set of odd functions. Then:
A $V = W_e \oplus W_o$
B $W_e \cap W_o$ is the set of constant functions
C $W_e + W_o \neq V$
D $W_e$ and $W_o$ are not subspaces
Derivation & Analysis:

Every continuous function can be uniquely written as the sum of an even and an odd function: $f(x) = \frac{f(x)+f(-x)}{2} + \frac{f(x)-f(-x)}{2}$. Thus $V = W_e \oplus W_o$.

Q10
MCQ 10: Let $W_1$ and $W_2$ be two subspaces of $\mathbb{R}^5$ with $\dim(W_1)=3$ and $\dim(W_2)=3$. The minimum possible dimension of $W_1 \cap W_2$ is:
A 0
B 1
C 2
D 3
Derivation & Analysis:

Using $\dim(W_1 + W_2) = \dim(W_1) + \dim(W_2) - \dim(W_1 \cap W_2) = 6 - \dim(W_1 \cap W_2)$. Since $W_1 + W_2 \subseteq \mathbb{R}^5$, $\dim(W_1 + W_2) \le 5$. Thus $6 - \dim(W_1 \cap W_2) \le 5 \implies \dim(W_1 \cap W_2) \ge 1$.

Common questions

No! While the direct sum decomposition $V = W \oplus W'$ exists for any subspace $W$, the complementary subspace $W'$ is almost never unique. For example, any line through the origin in $\mathbb{R}^2$ can serve as a complement to a given line.

Candidates frequently check that $\dim(W_1) + \dim(W_2) = \dim(V)$ and forget to verify that $W_1 \cap W_2 = \{0\}$, leading to incorrect conclusions when subspaces overlap.

Immediately use the dimension formula $\dim(W_1 + W_2) = \dim(W_1) + \dim(W_2) - \dim(W_1 \cap W_2)$. If the intersection dimension is 0, the sum of dimensions gives the direct sum dimension instantly.