I'm preparing for an exam, and this is an exercise that was given to a teammate. It would be helpful for me to solve it, but I'm stuck. This is the statement.
Given $A=(a_{ij}), B=(b_{ij}) $ matrices in $ M_2(\mathbb{K})$ such that $A$ is symmetric, and $B$ is skew-symmetric. Set the conditions to make them commutative with respect to multiplication.
Please note that the course is pretty basic and supposedly should be resolved without having notion of eigenvectors or other concepts of linear algebra, only elementary matrix theory. I solved by writing the matrices and making the operations, which allowed me to make a system of equations and then led me to the following answer:
$A= \left( \begin{matrix} a_{11} & a_{12} \\ a_{12} & -a_{11}\\ \end{matrix} \right) $ ; $B= \left( \begin{matrix} 0 & b_{12} \\ -b_{12} & 0\\ \end{matrix} \right) $
Anyway, I would like to write the deduction in a more formal way, and this is where I get stuck.
This is what I've done so far.
$$ A=(a_{ij}) \mid a_{ij}=a_{ji} \qquad \forall i,j\in \{1,2\} \tag{1} \\$$ $$\\ B=(b_{ij}) \mid b_{ij}=-b_{ji} \qquad \forall i,j\in \{1,2\} \tag{2} $$ Therefore,
$$\ AB=(c_{ij}) \ | \ c_{ij}=\sum_{k=1}^2 a_{ik}b_{kj} \stackrel{(1)}= -\sum_{k=1}^2 b_{jk}a_{ki} \\ BA=(d_{ij}) \ | \ d_{ij}=\sum_{k=1}^2 b_{ik}a_{kj} \stackrel{(2)}= -\sum_{k=1}^2 a_{jk}b_{ki}$$
Then, $$AB=BA \\ \sum_{k=1}^2 a_{ki}b_{jk}=\sum_{k=1}^2 a_{jk}b_{ki}$$
If $i=j \implies b_{ii}=-b_{ii} \implies b_{ii}=0 \quad\forall i\in \{1,2\} $
So far I've come. I do not know if I'm good.