An inner product defined on the vector space $P_{2}$ of all polynomials of degree less than or equal to 2 , is given by
$$
(p, q)=\int_{-1}^{1} p(x) q(x) d x
$$
Use the Gram-Schmidt orthogonalization process to transform the given basis $B$ for $P_{2}$ into an orthogonal basis $B^{\prime}$.
$$
B=\left\{x^{2}-x, x^{2}+1,1-x^{2}\right\}
$$