Let $A \subset M_2(R)$ a set with the properties:
1)If $X,Y \in A$, then $X+Y \in A$;
2)If $X \in M_2(R)$ with $tr(X^tX)=1$, then $X \in A$.
Prove that $A=M_2(R)$.
I wrote that for a matrix $X \in M_2(R)$ with the elements $a,b,c,d$ we have by the second propertie that if $a^2+b^2+c^2+d^2=1$, then $X \in A$. Using this, for a random matrix $X$ with the elements $a,b,c,d$, we that $\frac{1}{\sqrt{a^2+b^2+c^2+d^2}}X \in A$ and if $\sqrt{a^2+b^2+c^2+d^2}$ is an integer, then $X\in A$. I don't know how to continue. Please help!
Hint : First, notice that it is enough to prove that every matrix $X$ such that $\operatorname{tr}(X^tX) < 4$ is in $A$. Then for such a matrix $X$, prove that there exists a non-zero matrix $Y$ such that $$\operatorname{tr}\left(\left(\frac{X}{2}+ Y\right)^t\left(\frac{X}{2}+Y\right)\right)=1=\operatorname{tr}\left(\left(\frac{X}{2}-Y\right)^t\left(\frac{X}{2}-Y\right)\right).$$ Then use the identity $X=\left(\frac{X}{2}+ Y\right)+\left(\frac{X}{2}- Y\right)$ to conclude.