1.
Let A=[1001]A = \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix} and B=[1x01]B = \begin{bmatrix} 1 & x \\ 0 & 1 \end{bmatrix}. If AB=BAAB = BA, then x=x =