Let $V$ be the space of all continuous real valued functions on the interval $[1,4]$ with the inner product defined by:
$$\langle f,g\rangle = \int_1^{4} f(t)g(t)\,dt.$$
(i) Find an orthonormal basis of the space $W$ of polynomials of degree less than or equal to $4$.
Here is my attempt:
You should use the [Gram–Schmidt process][1]: Take any three linearly independent polynomials, for example $1,x,x^2$. Now apply the process to this set. $$\|1\|^2=\langle1,4\rangle=\int_1^4 dt=4-1\quad\Rightarrow\quad p_0(x)=\frac{1}{\|4\|}$$ $$proj_{p_0}(v_1)=\langle v_1,p_0 \rangle p_0=p_0\cdot\langle x,p_0 \rangle=\frac{1}{\|4\|}\int_1^4dt$$ and then $u_1=v_1-proj_{p_0}(v_1)$ and $p_1=\frac{u_1}{\|u_1\|}$ and so on.
(ii) Find the polynomial of degree less than or equal to 4 that is closest to $\log t$.
Can you please help me with this? I saw this in a numerical analysis book and was trying to solve this problem the other day. This is what I tried to do but I know this is probably wrong. I have come to the point of exhaustion trying to teach myself this. I tried following other examples but they are not the same. Sorry for not being able to do much.