Let $W$ be the subspace of $\mathbf{R}^{5}$ spanned by $u=(1,2,3,-1,2)$ and $v=(2,4,7,2,-1) .$ Find a basis of the orthogonal complement $W^{\perp}$ of $W$ We seck all vectors $w=(x, y, z, s, t)$ such that
\[\begin{array}{l}\langle w, u\rangle=x+2 y+3 z-s+2 t=0 \\
\langle w, v\rangle=2 x+4 y+7 z+2 s-t=0\end{array}\]
Eliminating $x$ from the second equation, we find the equivalent system
\[\begin{array}{r}x+2 y+3 z-s+2 t=0 \\z+4 s-5 t=0\end{array}\]
The free variables are $y, s,$ and $t .$ Therefore,
(1) $\operatorname{Set} y=-1, s=0, t=0$ to obtain the solution $w_{1}=(2,-1,0,0,0)$
(2) $\operatorname{Set} y=0, s=1, t=0$ to find the solution $w_{2}=(13,0,-4,1,0)$
(3) $\operatorname{Set} y=0, s=0, t=1$ to obtain the solution $w_{3}=(-17,0,5,0,1)$
The set $\left\{w_{1}, w_{2}, w_{3}\right\}$ is a basis of $W^{\perp}$