GATE / CS ARCHIVE

GATE CSE 2021 SET 1 / QUESTION 52

GATE CSE 2021 Set 1 Q52

Engineering Mathematics & Other Topics · Linear Algebra · Full GATE CSE 2021 Set 1 paper

GATE 2021 Set 1, Q52 2 marks · NAT
Report issue

Linear Algebra

Question 52, GATE 2021: Find the largest eigenvalue of the 4×4 matrix whose diagonal entries are 0 and all off-diagonal entries are 1: rows (0,1,1,1),(1,0,1,1),(1,1,0,1),(1,1,1,0).
Tap to enlarge
Answer & solution

Official answer: 3

The matrix is J-I, where J is the 4-by-4 all-ones matrix. The all-ones vector has eigenvalue 4 for J and therefore eigenvalue 3 for J-I. Every vector whose coordinates sum to zero has eigenvalue 0 for J and -1 for J-I; that subspace has dimension three. The full spectrum is 3,-1,-1,-1, so the largest eigenvalue is 3.

For any vector v, Jv is the vector whose four entries are sum(v). Thus v=(1,1,1,1) gives (J−I)v=3v. Every zero-sum vector gives (J−I)v=−v; examples (1,−1,0,0),(0,1,−1,0),(0,0,1,−1) form a basis for that three-dimensional subspace. These four independent eigenvectors account for the whole 4×4 matrix. The trace check 3−1−1−1=0 matches the zero diagonal.

Original paper, page 40 · Answer key