Definition (orthogonal polynomial)

Given a weighted inner product, a polynomial $Q_n \in \mathcal{P}_n$ is said to be the $n$-th orthogonal polynomial if $$ \begin{align*} \langle Q_n, p\rangle = 0 \qquad \text{for all }p\in \mathcal{P}_{n-1}. \end{align*} $$