Trace of a matrix $A$

54 Views Asked by At

Suppose we are given a matrix

$$A = \begin{pmatrix} x & y \\ -y & x \end{pmatrix} $$

where $x,y \in \mathbb{R}$ and $x^2+y^2=1$.

Then is, $\textrm{tr}(A)$ not equal to $0$?

If yes, then how is this possible?

2

There are 2 best solutions below

0
On

If $$ A =\pmatrix{x & y \\ -y & x} $$ with $x^2 + y^2 = 1$, then the trace of $A$ is $$ \text{trace}(A) = x + x = 2x. $$ This is zero exactly when $x=0$ and this would mean $y = \pm 1$.

0
On

The trace of a matrix is the sum of the entries along its main diagonal (the one from the top-left to bottom-right of the matrix) For the matrix you wrote down

$$ \text{trace}\begin{pmatrix}x & y \\ -y & x\end{pmatrix} = x + x = 2x, $$

which is $0$ only if $x = 0$.

However, it is true that

$$ \text{trace}\begin{pmatrix}x & y \\ y & -x\end{pmatrix} = x - x = 0 $$

for every choice of $x$ and $y$ you described. In general, the trace of a nonzero matrix need not be nonzero.