[guided]Assume that $v^*$ is a best approximation to $f$ from $V$. The residual is the error vector left after approximating $f$ by $v^*$, so define $r \in H$ by
\begin{align*}
r := f-v^*.
\end{align*}
To test whether this residual is orthogonal to $V$, fix an arbitrary direction $v \in V$. Because $V$ is a linear subspace, every point of the affine line through $v^*$ in the direction $v$ remains in $V$:
\begin{align*}
v^*+tv \in V \quad \text{for every } t \in \mathbb{R}.
\end{align*}
Since $v^*$ is assumed to minimize the distance from $f$ to all elements of $V$, it must in particular minimize the distance along this line. Thus
\begin{align*}
\|r\|_H^2 = \|f-v^*\|_H^2 \leq \|f-(v^*+tv)\|_H^2 = \|r-tv\|_H^2
\end{align*}
for every real number $t$.
Now expand the right-hand side. The inner product is linear in the first argument, and in a complex [Hilbert space](/page/Hilbert%20Space) it is conjugate-linear in the second argument. Since $t$ is real, this gives
\begin{align*}
\|r-tv\|_H^2 = (r-tv,r-tv)_H = \|r\|_H^2 - t(r,v)_H - t(v,r)_H + t^2\|v\|_H^2.
\end{align*}
Because $(v,r)_H = \overline{(r,v)_H}$ in a complex Hilbert space, and the same identity is valid over the real field, the middle terms combine as
\begin{align*}
-t(r,v)_H - t(v,r)_H = -2t\,\operatorname{Re}(r,v)_H.
\end{align*}
Therefore
\begin{align*}
\|r-tv\|_H^2 = \|r\|_H^2 - 2t\,\operatorname{Re}(r,v)_H + t^2\|v\|_H^2.
\end{align*}
Substituting this expansion into the minimality inequality and subtracting $\|r\|_H^2$ gives
\begin{align*}
0 \leq -2t\,\operatorname{Re}(r,v)_H + t^2\|v\|_H^2 \quad \text{for every } t \in \mathbb{R}.
\end{align*}
This is a quadratic polynomial in the real variable $t$ which is nonnegative for all real $t$ and has no constant term. If $\operatorname{Re}(r,v)_H$ were positive, then the linear term would be negative for all sufficiently small positive $t$, while the quadratic term would be too small to compensate. If $\operatorname{Re}(r,v)_H$ were negative, the same contradiction would occur for all sufficiently small negative $t$. Hence the linear coefficient must vanish:
\begin{align*}
\operatorname{Re}(r,v)_H = 0.
\end{align*}[/guided]