Its a general question: What is the right way to find a basis for subspaces.
I found questions that are similar but the answers, in my opinion, dont answer the question, the question asks to find subspace, the asnwer just check if the vectors are linear independent: Find bases for subspaces spanned by vectors.
I will ask it throught a question i try to answer.
Let $U_1, U_2 $ be sub spaces in $R_4[x]$, such that:
$$U_1 = Sp\{x^3+2x^2+3x+6, 4x^3-x^2+3x+6, 5x^3+x^2+6x+12\}$$ $$U_2 = Sp\{x^3-x^2+x+1,2x^3-x^2+4x+5\}$$
Find the base and dimension of $U_1+U_2.$
$U_1+U_2 = Sp\{x^3+2x^2+3x+6, 4x^3-x^2+3x+6, 5x^3+x^2+6x+12,x^3-x^2+x+1,2x^3-x^2+4x+5\}$
(I know i just did $\cup$ of the subspaces and not realy + but that is from a sentence for sum of spanning sets, that + = $\cup$)
Now i want to find the linear independent vectors in the spanning set, they will be the basis.
We will look at the coordinates of the spanning set, regarding the standard basis: $B = \{x^3,x^2,x,1\}$ and put the vectors as rows in a matrix and rank the matrix, each row that wont be zero will define an independent vector. The group of linear independent vectors - will be the basis for $U_1+U_2$.
$$\begin{bmatrix}1&2&3&6 \\ 4&-1&3&6\\5&1&6&12\\1&-1&1&1\\2&-1&4&5\end{bmatrix} \xrightarrow{rank}\begin{bmatrix}1&2&3&6 \\ 0&-9&-9&-18\\0&0&1&1\\0&0&0&0\\0&0&0&0\end{bmatrix}$$
Therefore, $B_{(U_1+U_2)} = \{x^3+2x^2+3x+6, -9x^2-9x-18, x+1\}$
Do i have mistakes?
Maybe i could find seperatly first the basis for $U_1$ and $U_2$ and than do $B_{U_1}+B_{U_2} = B_{(U_1+U_2)}$?
And can someone explain why taking the coordinates and find the corresponding linear independent vectors for them, is equally like dealing with the vectors themselves (maybe because the coordinate coresponding to the basis represent uniquely the vector?)