[Math] Continuous real valued functions and inner product space

calculusinner-productslinear algebraorthogonal-polynomialspolynomials

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.

Best Answer

First of all, you should know how the Gram-Schmidt proccess works (see Wikipedia, for example).

Let $\left\{p_1,\ldots,p_5\right\}$ be a basis for the set $W$ of polynomials (in $[1,4]$) of degree $\leq 4$. For example, you can take $p_i(x)=x^{i-1}$. Apply the Gram-Schmidt process as explained in Wikipedia. You'll obtain 5 polynomials, say $q_1,\ldots,q_5$ s.t. $<q_i,q_j>=\delta_{ij}=\begin{cases}1&\text{, if }i=j\\ 0&\text{ otherwise}\end{cases}$. Remember that, when applying the Gram-Schmidt process, you'll have to calculate some polynomial integrals, which can take quite some time...

The set $\left\{q_1,\ldots,q_5\right\}$ is an orthonormal basis for $W$.

Now, to find polynomial in $W$ that is closest to $\log$, you should already know that this is given by $$p=\sum_{i=1}^5<q_i,\log>q_i$$ that is, the polynomial $p$ is given by $$p(t)=\sum_{i=1}^5\left(\int_1^4q_i(s)\log(s)ds\right)q_i(t)$$ for every $x\in[1,4]$.