Subspaces in $\mathbb R^{n \times n}$ If our space is $\mathbb{R}^{n \times n}$, then can we definitely conclude that 


*

*$n \times n$ invertible matrices belong to its subspace

*the set of all $n\times n$ matrices of the form $k*\mathcal{I}$, where $\mathcal{I}$ is the identity matrix, and $k$ is any real number also belongs to its subspace.
What kind of example can I give to show the following?


*

*the set of matrices similar to $A$ are not necessarily subspaces of $\mathbb{R}^{n\times n}$. We're assuming that $A$ is a fixed matrix 

*the set of all matrices that commute with $A$ do not fall into the subspace of $\mathbb{R}^{n\times n}$. We're assuming that $A$ is a fixed matrix as well. 


Are these assumptions correct?
 A: Let's start by the definition 

If $V$ is a vector space on a field $K$ and $W$ is a subset of $V$, then $W$ is a subspace if 
  
  
*
  
*The zero vector is in $W$
  
*$W$ is closed under addition and multiplication by a scalar in $K$ 
  

Let us see now if the sets that you gave us are indeed subspaces o $\mathbb{R}^{n\times n}$:


*

*The set of all invertible $n\times n$ matrices: being invertible means that $\det(A)\neq 0$. This is enough to say that this cannot be a subspace because the zero vector is the zero matrix which clearly has zero determinant and so it's not an invertible matrix 

*$n\times n$ matrices of the form $k\mathcal{I}$: this indeed is a subspace because it has the zero vector (just set $k=0$) and is closed under addition $$k\mathcal{I}+w\mathcal{I}= (k+w)\mathcal{I} = n\mathcal{I}$$ and it's closed under scalar multiplication which is clear even from the definition $k\mathcal{I}$

*All matrices similar to a matrix $A$: this is trickier because clearly if $A$ is the null matrix than all the matrix similar to $A$ is just the zero matrix. In this case this is a subspace because it has zero matrix, adding zero matrices together get's you zero matrices, and multiplying by a scalar the zero matrix gives the zero matrix. In all other cases this is not a subspace because of the lack of zero vector.

*All matrices that commute with $A$: if two matrices commute then $$[A,B]= AB-BA = 0$$ let's see if this is a subspace: the zero matrix commutes with every matrix, in fact $$[A,0] = A0-0A = 0-0=0$$ For every matrix $B$ that commute with $A$, the matrix $kB$ $$[A, kB] = AkB-kBA = kAB-kBA = k[A,B] = 0$$ commutes as well with $A$. If two matrices $B$ and $C$ commutes with $A$, then $$\begin{align}&[A,B+C] = A(B+C)-(B+C)A = \\ &AB + AC - BA - CA = \\ &(AB-BA)+(AC-CA) = \\ &[A,B]+[A,C] = 0+0=0\end{align}$$ their sum commute. So this is a subspace.
A: I think you should rephrase your question.
You have a given dimension space of ℝn×n, and wish to identify which of the following are subspaces?


*

*n×n invertible matrices belong to its subspace

*the set of all n×n matrices of the form k∗I, where I is the identity matrix, and k is any real number also belongs to its subspace

*the set of matrices similar to A. We're assuming that A is a fixed matrix

*the set of all matrices that commute with A. We're assuming that A is a fixed matrix as well.


Your previous question was a bit jumbled to understand. You're making the assumption that 1 and 4 hold true, but 2 and 3 don't. You need to justify these claims first. 
