Gram-Schmidt method to get a basis for $P_3$
Graham Schmidt.
Pick a vector, to make it a candidate for your first basis vector.
$w_0 = 1$
Normalize it. Since $\|w_0\| = 1$ we that step is already done.
$e_0 = w_0 = 1$
Your second basis vector.
$w_1 = x$
Subtract the projection of $e_1$ onto $x.$
$e_1^* = x - \langle e_1,x\rangle e_1$
$e_1^* = x - \int_0^1 x \ dx = x-\frac 12$
Normalize it...
$e_1 = \frac {e_1^*}{\|e_1^*\|}$
$\|e_1^*\|^2 = \langle e_1^*,e_1^*\rangle = \int_0^1 (x-\frac 12)^2 \ dx\\ \int_0^1 x^2 -x + \frac 14\ dx = \frac 13 - \frac 12 + \frac 14 = \frac 1{12}\\ e_1 = \sqrt {12} x - \sqrt 3$
$w_2 = x^2\\ e_2^* = w_2 - \langle e_0,w_2\rangle - \langle e_1,w_2\rangle$
Normalize it...
lather, rinse, repeat.