Let $V=\mathbb{R}_{\leq 3}[X]$ I need to find $a,b \in \mathbb{R}$ such that the below expression is minimal.
$$\int_{-1}^{1}\left(\left(x^{2}+3 x+1\right)-(a x+b)\right)^{2} \sqrt{1-x^{2}} d x$$
I got a hint to show that $$\langle f(x), g(x)\rangle=\int_{-1}^{1} f(x) g(x) \sqrt{\left(1-x^{2}\right)} d x$$ is an inner product space and so I did but I am not sure how to continue from here
Idea:
You can work in $V' = \Bbb R_{\le 2}[x]$ for the purpose of this question. In the following, we fix the inner product as given in the hint.
(You can find these by taking the inner product of $x^2 + 3x +1$ with the appropriate basis vectors. You don't even need to find $\gamma$.)