Let $P_2(\Bbb{R})$ have the inner product $\langle p,q\rangle =\int\limits_{-1}^{1} p(x)q(x)dx$ and consider the operator $Tp(x)=(1-x^2)p''(x)-2xp'(x) = [(1-x^2)p'(x)]'$.
Show that T is self-adjoint.
So far I have this:
$\langle p,T^*q\rangle =\langle Tp,q\rangle$
=$\langle(1-x^2)p''(x)-2xp'(x),q\rangle$
=$\int\limits_{-1}^{1} [(1-x^2)p'(x)]'q(x)dx$
Then I did integration by parts and got an answer that seems like it's not going to amount to anything. Is this a question which I should tackle by calculating the matrix of $T$ with respect to some basis and then taking the conjugate transpose to find $T^*$? If so, what basis should I use?
We have\begin{align}\bigl\langle T(p),q\bigr\rangle&=\int_{-1}^1\bigl((1-x^2)p'(x)\bigr)'q(x)\,\mathrm dx\\&=\bigl[\bigl((1-x^2)p'(x)\bigr)q(x)\bigr]_{x=-1}^{x=1}-\int_{-1}^1p'(x)(1-x^2)q(x)\,\mathrm dx\\&=-\int_{-1}^1p'(x)(1-x^2)q(x)\,\mathrm dx\\&=-\bigl[p(x)(1-x^2)q(x)\bigr]_{x=-1}^{x=1}+\int_{-1}^1p(x)\bigl((1-x^2)q(x)\bigr)'\,\mathrm dx\\&=0+\bigl\langle p,T(q)\bigr\rangle\\&=\bigl\langle p,T(q)\bigr\rangle.\end{align}Therefore, $T$ is self-adjoint.