Let \(A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}\) and \(B = \begin{bmatrix} x & 4 \\ 6 & y \end{bmatrix}\). If \(AB = BA\), then the value of \(y - x\) is
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → 6
Both products are found row by column:
\( \displaystyle AB = \begin{bmatrix} x + 12 & 4 + 2y \\ 3x + 24 & 12 + 4y \end{bmatrix} \)
\( \displaystyle BA = \begin{bmatrix} x + 12 & 2x + 16 \\ 6 + 3y & 12 + 4y \end{bmatrix} \)
The diagonal elements already agree. By equality of matrices, the elements in row 1, column 2 must be equal:
\(4 + 2y = 2x + 16\)
\(2y - 2x = 12\)
\(y - x = 6\)
The elements in row 2, column 1 give the same condition:
\(3x + 24 = 6 + 3y\)
\(y - x = 6\)
So x and y are not fixed separately, but \(y - x = 6\) in every case.