Since \(U\) is finite-dimensional, there is an orthonormal basis for \(U\text{,}\) \(\{ \bfe_1, \ldots, \bfe_m \}\text{.}\) For any \(\bfv \in V\text{,}\) we define \(\bfu\) by
\begin{equation*}
\bfu = \sum_{i=1}^m \ip{\bfv, \bfe_i} \bfe_i\text{,}
\end{equation*}
and we let \(\bfw = \bfv - \bfu\text{.}\) Then we have \(\bfv = \bfu + \bfw\) and \(\bfu \in U\text{.}\) For each \(k\text{,}\) we have
\begin{equation*}
\ip{\bfu, \bfe_k} = \ip{\bfv, \bfe_k}\text{,}
\end{equation*}
so
\begin{equation*}
\ip{\bfw, \bfe_k} = \ip{\bfv, \bfe_k} - \ip{\bfu, \bfe_k} = 0\text{.}
\end{equation*}
Since \(\bfw\) is orthogonal to each element of the orthonormal basis of \(U\text{,}\) we have \(\bfw \in U^{\perp}\text{.}\)
We now need to prove that \(\bfu\) and \(\bfw\) are unique. Suppose that \(\bfu_1, \bfu_2 \in U\) and \(\bfw_1, \bfw_2 \in U^{\perp}\) such that
\begin{equation*}
\bfu_1 + \bfw_1 = \bfu_2 + \bfw_2\text{.}
\end{equation*}
We consider the vector \(\bfx\text{,}\)
\begin{equation*}
\bfx = \bfu_1 - \bfu_2 = \bfw_2 - \bfw_1\text{.}
\end{equation*}
Since \(U\) and \(U^{\perp}\) are subspaces, we have \(\bfx \in U\) and \(\bfx \in U^{\perp}\text{,}\) which means that \(\ip{\bfx, \bfx} = 0\text{.}\) This means that \(\bfx = \bfo\text{,}\) so that \(\bfu_1 = \bfu_2\) and \(\bfw_1 = \bfw_2\text{.}\)