I've tried to solve the next problem, but I'm not quite sure about the 'a' part and don't know how to start with 'b'
Any improvements/clarifications/help is appreciated
The question:
Let $J$ be a $3*3$ matrix given by: \begin{bmatrix}0&1&0\\0&0&1\\0 &0&0\end{bmatrix}
(a) Is the following set a subspace?
$S=[A∈ℝ^{3*3}|AJ=JA]$
My attempt
S is nonempty since it contains the $0$ matrix, $0*J=0=J*0$
For $A∈S$ and $\alpha$ a real number scalar: $(\alpha A)J=\alpha (AJ)=\alpha(JA)=J(\alpha A)$
For $A∈S$, $B∈S$: $(A+B)J=AJ+BJ=JA+BA=J(A+B)$
So both closure properties are satisfied meaning S is a subspace of $ℝ^{3*3}$
(b) Find a basis for S and determine its dimension
Well I don't really get the question, should I find the basis of the matrix J? or something different?
I know that if the basis consists of $n$ vectors than S has dimension $n$ But how to get to this basis/these vectors is my main struggle
Thanks in advance :)