Define $R_n(x)=\dfrac{d^n}{dx^n}(x^2-1)^n$. Show that $R_n(x)$ is orthogonal to $1,x,\ldots,x^{n-1}$ in $L^2([-1,1])$. Also, what is the value of $R_n(1)$?
By definition we have to show that $$\int_{-1}^1R_n(x)x^k=0$$ for $k=0,1,\ldots,n-1$. This looks a lot like integration by parts, so suppose $S_k$ is the $k$-th derivative of $(x^2-1)^n$. Then
$$\int_{-1}^1R_n(x)x^k=x^kS_{n-1}(x)\mid_{-1}^1-k\int_{-1}^1x^{k-1}S_{n-1}(x)$$.
It looks like the second term can be integrated by parts again, but what is the first term?
Also, how would it be possible to compute $R_n(1)$?
By Leibnitz Rule
$$\dfrac{d^n}{dx^n}(x-1)^n(x+1)^n= \sum_{k=0}^n \binom{n}{k} \left( \dfrac{d^k}{dx^k}(x-1)^n \right) \left(\dfrac{d^{n-k}}{dx^{n-k}}(x+1)^n\right)$$
Now, to evaluate $R_n(1)$, just observe that for $0 \leq k \leq n-1$ the term $\left( \dfrac{d^k}{dx^k}(x-1)^k \right)$ still contains an $x-1$. Thus
$$R_n(1)=\left( \dfrac{d^n}{dx^n}(x-1)^n \right) (x+1)^n |_{x=1}=n!2^n$$
P.S. The above also Yields:
$$\dfrac{d^n}{dx^n}(x-1)^n(x+1)^n= \sum_{k=0}^n \binom{n}{k} \left( \dfrac{n!}{(n-k)!}(x-1)^{n-k} \right) \left(\dfrac{n!}{k!}(x+1)^{k}\right) \\= \sum_{k=0}^n n! \binom{n}{k}^2(x-1)^{n-k}(x+1)^{k} $$