[step:Express both Legendre symbols via Gauss's Lemma on the rectangle $S$]
Let $p, q$ be distinct odd primes. Set
\begin{align*}
S = \left\{(j, k) \in \mathbb{Z}^2 : 1 \le j \le \tfrac{p-1}{2},\ 1 \le k \le \tfrac{q-1}{2}\right\},
\end{align*}
so $|S| = \frac{p-1}{2} \cdot \frac{q-1}{2}$.
Apply [Gauss's Lemma](/theorems/1719) with $a = q$ and the odd prime $p$, valid because $(q, p) = 1$ (distinct primes). For each $j \in \{1, \ldots, (p-1)/2\}$, reduce $qj$ into the symmetric system $(-p/2, p/2)$: the sign $\epsilon_j^{(q/p)}$ is $-1$ exactly when the representative is negative, i.e. when there exists an integer $k \ge 1$ with
\begin{align*}
-\tfrac{p}{2} < q j - k p < 0.
\end{align*}
Since $q, j \ge 1$ and the left-hand side forces $k \ge 1$, and since $j \le (p-1)/2$ gives $k \le \frac{qj}{p} + \frac{1}{2} \le \frac{q-1}{2} + 1$, one checks that in fact $k$ lies in $\{1, \ldots, (q-1)/2\}$. (If $k = (q+1)/2$ or larger, then $kp - qj > p/2$, contradicting the bound.) Hence
\begin{align*}
\mu := \#\left\{(j, k) \in S : 0 < k p - q j < \tfrac{p}{2}\right\},
\end{align*}
and [Gauss's Lemma](/theorems/1719) gives $\left(\frac{q}{p}\right) = (-1)^\mu$.
Swapping the roles of $p$ and $q$ (using $a = p$ and the odd prime $q$, with $(p, q) = 1$),
\begin{align*}
\nu := \#\left\{(j, k) \in S : 0 < j q - k p < \tfrac{q}{2}\right\},
\end{align*}
and $\left(\frac{p}{q}\right) = (-1)^\nu$.
[/step]