The easiest way to determine a direct sum decomposition (or equivalently, a complement) is through the use of a basis. Suppose \(U\) is a subspace of \(V\) with basis \(\basis{e}{k}\text{,}\) and extend this to a basis
\begin{equation*}
B = \{\mathbf{e}_1,\ldots, \mathbf{e}_k,\mathbf{e}_{k+1},\ldots, \mathbf{e}_n\}
\end{equation*}
of \(V\text{.}\) Let \(W = \spn\{\mathbf{e}_{k+1},\ldots, \mathbf{e}_n\}\text{.}\) Then clearly \(U+W=V\text{,}\) and \(U\cap W=\{\zer\}\text{,}\) since if \(\vv\in U\cap W\text{,}\) then \(\vv\in U\) and \(\vv\in W\text{,}\) so we have
\begin{equation*}
\vv = a_1\mathbf{e}_1+\cdots + a_k\mathbf{e_k} = b_1\mathbf{e}_{k+1}+\cdots+b_{n-k}e_{n}\text{,}
\end{equation*}
which gives
\begin{equation*}
a_1\mathbf{e}_1+\cdots + a_k\mathbf{e}_k-b_1\mathbf{e}_{k+1}-\cdots - b_{n-k}\mathbf{e}_n=\zer\text{,}
\end{equation*}
so \(a_1=\cdots b_{n-k}=0\) by the linear independence of \(B\text{,}\) showing that \(\vv=\zer\text{.}\)
Conversely, if \(V=U\oplus W\text{,}\) and we have bases \(\basis{u}{k}\) of \(U\) and \(\basis{v}{l}\) of \(W\text{,}\) then
\begin{equation*}
B = \{\uu_1,\ldots, \uu_k,\ww_1,\ldots, \ww_l\}
\end{equation*}
is a basis for \(V\text{.}\) Indeed, \(B\) spans \(V\text{,}\) since every element of \(V\) can be written as \(\vv=\uu+\ww\) with \(\uu\in U,\ww\in W\text{.}\) Independence follows by reversing the argument above: if
\begin{equation*}
a_1\uu_1+\cdots + a_k\uu_k+b_1\ww_1+\cdots b_l\ww_l=\zer
\end{equation*}
then \(a_1\uu_1+\cdots + a_k\uu_k = -b_1\ww_1-\cdots -b_l\ww_l\text{,}\) and equality is only possible if both sides belong to \(U\cap W = \{\zer\}\text{.}\) Since \(\basis{u}{k}\) is independent, the \(a_i\) have to be zero, and since \(\basis{w}{l}\) is independent, the \(b_j\) have to be zero.