By definition, the flux is given by the integral
\begin{equation*}
\int_C \bu \cdot \bn \, \de{s},
\end{equation*}
where
\(C\) is any smooth path joining the two streamlines with unit normal
\(\bn\text{,}\) as shown in
Figure 4.7.
Note that given the curve, and in consideration of a small arclength element \(\de{s}\text{,}\) the tangent and normal are given by
\begin{equation*}
\bt = \frac{[\de{x}, \de{y}]}{\sqrt{\de{x}^2 + \de{y}^2}} = \frac{[\de{x}, \de{y}]}{\de{s}}, \qquad
\bn = \frac{[\de{y}, -\de{x}]}{\de{s}}.
\end{equation*}
Therefore we can write \(\bn \de{s} = [\de{y}, -\de{x}]\text{.}\) Then the flux is re-written as the following:
\begin{align*}
\textrm{flux} \amp= \int_C \left[\pd{\psi}{y}, -\pd{\psi}{x}\right] \cdot [\de{y}, -\de{x}], \\
\amp= \int_C \left(\pd{\psi}{x} \, \de{x} + \pd{\psi}{y} \, \de{y} \right), \\
\amp= \bigl[ \psi \bigr]_C, \\
\amp= \psi(B) - \psi(A), \\
\amp= \psi_2 - \psi_1.
\end{align*}
In the third line above, \([\psi]_C\) is the change of \(\psi\) along the contour. Note that there is a somewhat arbitrary choice of direction for the contour \(C\text{,}\) as related to the selection of the normal direction \(\bn\text{,}\) and the positivity or negativity of the flux. To be safe, we have taken the absolute value in the statement of the theorem.