Finding the basis and dimension of the simple vector space

linear algebravector-spaces

Suppose I have a vector space $S$ which is represented as all vectors in $\mathbb{R}^3$ satisfying
$$ a_1 – 3a_2+2a_3=0. $$

1) I need to find a basis and dimension. My assumption is as follows:

Basis is
$$
\begin{bmatrix}
1 \\ -3 \\ 2
\end{bmatrix}
$$

of vectors in the vector space $\mathbb{R}^3$ and dimension is 3.

I know it is a simple question, I just want to make sure that I am on the right track and my assumption is correct.

2) Also, I was wondering what is the right way of finding a basis and dimension of following vector space defined as a function: $y(x) = a \cos x + b \sin x$ with arbitrary constants $a$ and $b$.

Best Answer

For the first, you wish to find vectors $(a_1, a_2, a_3)$ such that $a_1 - 3a_2 + 2a_3 = 0.$ If this equation came up in a row reduction process, we would identify $a_2$ and $a_3$ as free variables, since the pivot is in the first column. Thus we may write $a_1 = 3a_2 - 2a_3.$ From this we see that there are two free variables, and thus the dimension of the corresponding space is $2.$

Now for the basis. Any vector in this space has the form $(3a_2 - 2a_3, a_2, a_3)$. Decomposing shows that this is a sum of two vectors $(3a_2, a_2, 0)$ and $(-2a_3, 0, a_3)$, where $a_2$ and $a_3$ are free to be any real number. Thus we see that $(3, 1, 0)$ and $(-2, 0, 1)$ form a basis for this space. Two basis vectors, dimension two.

Let's now consider the collection of functions of the form $a\cos x + b\sin x.$ The zero function is in this collection, and it is easy to show that it is closed under linear combinations. A basis for this function space is the set $\{\sin x, \cos x\},$ with dimension 2.