Proof (roots of orthogonal polynomials)

Suppose not. Let $Q_n$ have $k<n$ sign changes (zeros of odd multiplicity) at $x=t_1, \ldots, t_k\in (a,b).$

Let $p(x) = \prod_{i=1}^{k} (x-t_i)\in \mathcal{P}_k$. $p$ and $Q_n$ change sign at the same place, so $p(x)Q(x)$ is either non-negative everywhere or non-positive everywhere. Thus $$ \begin{align*} |\langle Q_n,p\rangle| = \left|\int_{a}^{b} Q_{n}pw \d x\right| > 0, \end{align*} $$ and so $Q_n$ is not orthogonal to $\mathcal{P}_{n-1}$, contradiction.