Let P4 have the inner product as in Example 5, and let p0, p1, p2 be the orthogonal polynomials from that example. Using your matrix program, apply the Gram-Schmidt process to the set {p0, p1, p2, t3 ,t4} to create an orthogonal basis for P4.
Example 5
Let V be P4 with the inner product in Example 2, involving evaluation of polynomials at -2, -1, 0, 1, and 2, and view P2 as a subspace of V. Produce an orthogonal basis for P2 by applying the Gram-Schmidt process to the polynomials 1, t, and t2.
Example 2