Let $X=L^2\left([-1,1]\right)$ be the inner product space of Lebesgue integrable functions from $[-1,1]$. And denote $\mathcal{P}_{n-1} \subset X$ the subspace of polynomials with a degree not greater than $n-1$. I need to find the distance of $x^n$ from $\mathcal{P}_{n-1}$.
I started by stating that $\mathcal{P}_{n-1} = span \{ p_k \}_{k=0}^{n-1}$ where $p_k$ are the scaled Legendre polynomials, which we know that are complete orthonormal system in $\mathcal{P}_{n-1}$.
Now $x^n = P_{\mathcal{P}_{n-1}}x^n + \left( I - P_{\mathcal{P}_{n-1}} \ \ \right)x^n$ where $P_\left( \mathcal{P}_{n-1} \ \right)$ is the projection onto $\mathcal{P}_{n-1}$. So basically $\left( I - P_{\mathcal{P}_{n-1}} \ \ \right)x^n$ is the "unscaled" Legendre polynomial, It's norm then is the distance I want to compute. Is this correct thinking? If it is, how do I calculate the norm?