Which matrix properties survive a row swap?
Linear Algebra

Answer & solution
Official answer: A, B
Approach: Use the determinant rule for the positive claims and small explicit matrices to refute universal claims.
1. Derivation. A single row swap negates the determinant, proving A. If det(A) is nonzero then det(B)=−det(A) is nonzero as well, proving B. Symmetry is not preserved: swapping rows of diag(1, 2) gives[[0, 2],[1, 0]], which is not symmetric. Zero trace is not preserved: A=[[1, 2],[3,−1]] has trace 0, but its row-swapped matrix has trace 5. Answer A, B.
2. Explanation and checks. A row swap is multiplication on the left by an invertible permutation matrix P, so B=PA and B−1=A−1 P−1 whenever A is invertible. This supplies another proof of B. In contrast symmetry would naturally be preserved by applying the same permutation to rows and columns, PAPT, not by a row permutation alone. Trace invariance also applies to similarity transformations, not arbitrary independent row operations. The two counterexamples in the derivation make these distinctions concrete.
