[Math] Use Gram-Schmidt to find an orthonormal basis for the space

linear algebraorthogonal-polynomials

Consider $P_3$ with the inner product $\langle p(x),q(x)\rangle = \int_{0}^1 p(x)q(x) dx$.

Use Gram Schmidt to find an orthonormal basis for the space
$$ U= \operatorname{Span}(\{x+1, x^2-x,x^3\})$$

Best Answer

Hints:

For example

$$||1+x||^2:=\langle 1+x\,,\,1+x\rangle:=\int\limits_0^1(1+x)^2\,dx=\left.\frac{1}{3}(1+x)^3=\right|_0^1=\frac{1}{3}(8-1)=\frac{7}{3}\implies$$

$$\implies u_1:=\frac{1+x}{||1+x||}=\sqrt\frac{3}{7}\,(1+x)$$

then

$$v_2:=x^2-x-\frac{\langle x^2-x\,,\,1+x\rangle}{||1+x||}(1+x)=(x^2-x)-u_1\int\limits_0^1(x^2-x)(1+x_\,dx=\ldots\implies$$

$$\implies u_2=\frac{v_2}{||v_2||}\ldots\;\text{etc.}$$