← 2020 Paper 1

UPSC 2020 Maths Optional Paper 1 Q1a — Step-by-Step Solution

10 marks · Section A

Subspaces · Linear Algebra · asked 6× in 13 yrs · Read the full method →

Question

Consider the set VV of all n×nn\times n real magic squares. Show that VV is a vector space over R\mathbb{R}. Give examples of two distinct 2×22\times2 magic squares.

Technique

Subspace test (nonempty + closure) inside Mn(R)M_n(\mathbb{R}); line-sum conditions are linear.

Solution

Definition adopted. An n×nn\times n real matrix A=[aij]A=[a_{ij}] is a magic square if there is a common number ss (the magic sum, which may depend on AA) such that every row sum, every column sum, and the two principal diagonal sums all equal ss:

j=1naij=s (i),i=1naij=s (j),i=1naii=s,i=1nai,n+1i=s.\sum_{j=1}^{n} a_{ij}=s\ (\forall i),\qquad \sum_{i=1}^{n} a_{ij}=s\ (\forall j),\qquad \sum_{i=1}^{n} a_{ii}=s,\qquad \sum_{i=1}^{n} a_{i,\,n+1-i}=s.

(We do not require the entries to be distinct positive integers; that combinatorial restriction is not a linear condition. With distinct-integer entries the set is not even closed under addition, so it could never be a vector space. The standard interpretation of this UPSC question is the linear one above.)

Step 1 — VV is a subset of the vector space Mn(R)M_n(\mathbb{R})

Mn(R)M_n(\mathbb{R}), the set of all n×nn\times n real matrices with entrywise addition and scalar multiplication, is a real vector space (standard). It suffices to show VV is a subspace: a nonempty subset closed under addition and scalar multiplication. Closure gives all eight axioms by inheritance.

Step 2 — VV is nonempty (contains 00)

The zero matrix OO has every row, column and diagonal summing to 00, so OVO\in V with magic sum 00. Hence VV\neq\varnothing.

Step 3 — Closure under addition

Let A,BVA,B\in V with magic sums sA,sBs_A,s_B. For any row ii,

j(aij+bij)=jaij+jbij=sA+sB,\sum_{j}(a_{ij}+b_{ij})=\sum_j a_{ij}+\sum_j b_{ij}=s_A+s_B,

independent of ii. The identical computation holds for every column and for both diagonals. Thus A+BA+B has all its rows, columns and diagonals equal to the common value sA+sBs_A+s_B, so A+BVA+B\in V.

Step 4 — Closure under scalar multiplication

Let AVA\in V with magic sum sAs_A and λR\lambda\in\mathbb{R}. For any row ii,

jλaij=λjaij=λsA,\sum_{j}\lambda a_{ij}=\lambda\sum_j a_{ij}=\lambda s_A,

and likewise for columns and diagonals. Hence λAV\lambda A\in V with magic sum λsA\lambda s_A.

Step 5 — Conclusion

VV is a nonempty subset of Mn(R)M_n(\mathbb{R}) closed under addition and scalar multiplication; therefore VV is a subspace of Mn(R)M_n(\mathbb{R}) and in particular a vector space over R\mathbb{R}. \blacksquare

Answer

  V is a subspace of Mn(R), hence a real vector space.  \boxed{\;V \text{ is a subspace of } M_n(\mathbb{R}),\text{ hence a real vector space.}\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.