I'm trying to identify which sets are vector spaces. I know that a set $V$ is a vector space if its elements (vectors) have addition and scalar multiplication so that the result is also within the set $V$. I'm trying to identify the following sets.
- Set of real $m\times n$ matrices $\mathbb{R}^{m\times n}$
If we do operations for two matrices it always yields and matrix within $\mathbb{R}^{m\times n}$. So this is a vector space.
- Line $\{(x,4x) \in \mathbb{R}^2 \: | \: x\in\mathbb{R}\}$
EDIT: Is a vector subspace of $\mathbb{R}^2$.
- $\mathbb{R}^n = \{(x_1, \ldots, x_n) \ \vert \ x_i \in \mathbb{R}\}$
Clearly a vector space because for all $n$-vectors in it the operations hold.
- Curve $\{(x,x^2) \in \mathbb{R}^2 \: | \: x\in\mathbb{R}\}$
Addition does not hold on this set $(1,1) + (2,4) = (3,5) \notin V$ so it is not a vector space.
- Line $\{(x,3x-2) \in \mathbb{R}^2 \: | \: x\in\mathbb{R}\}$. Same as the other line and not an vector space.
EDIT: Under the vector space axioms addition $\mathbf a + \mathbf b \in V$ when $\mathbf a, \mathbf b \in V$ and $\lambda \mathbf a \in V$ thus if $\mathbf b = -1\cdot \mathbf a$ then $\mathbf a + \mathbf b = \mathbf 0 \notin V$. So additive indentity does not hold and the set is not a vector space.
- Set of matrices in $\{ M\in\mathbb{R}^{n\times n}\: | \: \det(M)=1\}$.
\begin{align*} \text{det}\left(\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} + \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}\right) = 4 \neq 1\end{align*}
OR
\begin{align*} \text{det}\left(\lambda \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \right) = \lambda \neq 1 \text{ when } \lambda \neq 1\end{align*}
EDIT: So addition from said set yields a matrix with non 1 determinant. Not a vector space.