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?
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?
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.