I want to know if there is a method for finding vectors which are independent from a given set.
For example, say I was given a set $S$ with $3$ linearly independent vectors, and then asked to extend this to a basis in $\mathbb{R}^4$. Is there a method that I can use to find a vector which is not a linear combination of the vectors in $S$?
Also is there a method that will work for Basis of say $P_3(x)$ - all real valued functions of degree $3$ or less.
Thank you
Let's say you have $3$ vectors $v_i = (v_{i1}, v_{i2}, v_{i3}, v_{i4})$ with $i \in \{1,2,3\}$. Then a fourth vector $w = (w_1,w_2,w_3,w_4)$ is linearly independent of $v_1$, $v_2$ and $v_3$ if and only if $$\det\begin{pmatrix} v_{11} & v_{12} & v_{13} & v_{14}\\ v_{21} & v_{22} & v_{23} & v_{24}\\ v_{31} & v_{32} & v_{33} & v_{34}\\ w_1 & w_2 & w_3 & w_4 \end{pmatrix} \neq 0$$ Probably the easiest way to find a vector $w$ that satisfies this (without random guessing/brute force), is to check among the standard basis of $\mathbb{R}^4$: $e_1 = (1,0,0,0), e_2 = (0,1,0,0)$, $e_3 = (0,0,1,0)$ and $e_4 = (0,0,0,1)$. At least one of these vectors will be linearly independent of $S$ (else $S$ would spawn a $4$-dimensional space!).
To check if $v_1$ is linearly independent of $S$, you must then calculate $$\det\begin{pmatrix} v_{11} & v_{12} & v_{13} & v_{14}\\ v_{21} & v_{22} & v_{23} & v_{24}\\ v_{31} & v_{32} & v_{33} & v_{34}\\ 1 & 0 & 0 & 0 \end{pmatrix} = -\det\begin{pmatrix} v_{12} & v_{13} & v_{14}\\ v_{22} & v_{23} & v_{24}\\ v_{32} & v_{33} & v_{34} \end{pmatrix}$$ If the result is nonzero, you know $e_1$ is linearly independent of $S$. If the result is zero, go to $e_2$, which again boils down to calculating a $3 \times 3$-determinant, etc.
If by $P_3(x)$ you mean the polynomials in $\mathbb{R}[x]$ of degree $\leq 3$, the same thing works there.