Answer C
Please check this video: https://www.youtube.com/watch?v=9hz7m6B_LW8&list=PLIPZ2_p3RNHhGLQ1ZT37KLpBMAD90CM4_&index=39
Trace of a matrix and sum of eigen values of matrix are same.
$AB$ and $BA$ has same nonzero eigen values (Proof below) hence their sum of eigen values i.e. trace should also be same.
Proof: Let $\lambda$ be a nonzero eigenvalue of $AB$, and $x$ be the eigenvector of $AB$. We need to find the eigenvalue and eigenvector of $BA$.
\[
ABx = \lambda x \quad \text{(given, where $\lambda \neq 0$)}
\]
Since $\mathbf{\lambda}$ is an eigenvalue of $AB$, it follows that: \( \lambda\quad \text{is an eigenvalue of $BA$}\)
To find the eigenvector of $BA$, we multiply both sides of the equation by matrix \( B \) on the left:
\[
B(ABx) = B(\lambda x)
\]
On the right-hand side, since \( \lambda \) is a scalar, we can pull it outside of the multiplication and we use the associative property of matrix multiplication to group the matrices on the left-hand side::
\[
B(ABx) = \lambda (Bx)
\]
\[
(BA)(Bx) = \lambda (Bx)
\]
\[
BA(Bx) = \lambda (Bx)
\]
Thus, Eigenvector of $BA$ is $Bx$ and Eigenvalue of $BA$ is $\lambda$.
( Nonzero eigenvalues of $AB$ and $BA$ are the same )
Lets take a look at this example:
Given: Order of matrix $A$ is $5 \times 10$ and Order of matrix $B$ is $10 \times 5$
Order of \( AB : 5 \times 5 \quad \rightarrow \quad \text{Eigenvalues of $AB$: } 1, 2, 3, 4, 5 \)
Order of \(BA : 10 \times 10 \quad \rightarrow \quad \text{Eigenvalues of $BA$: } 1, 2, 3, 4, 5, 0, 0, 0, 0, 0\)