Orthonormal basis Consider $\mathbb{R}^3$ together with inner product $\langle (x_1, x_2, x_3), (y_1, y_2, y_3) \rangle = 2x_1 y_1+x_2 y_2+3 x_3 y_3$. Use the Gram-Schmidt procedure to find an orthonormal basis for $W=\text{span} \left\{(-1, 1, 0), (-1, 1, 2) \right\}$.
I don't get how the inner product $\langle (x_1, x_2, x_3), (y_1, y_2, y_3) \rangle = 2 x_1 y_1+x_2 y_2+3 x_3 y_3$ would affect the approach to solve this question.. When I did the gram-schmidt, I got $v_1=(-1, 1, 0)$ and $v_2=(0, 0, 2)$ but then realized that you have to do something with the inner product before finding the orthonormal basis. Can someone please help me?
Update: So far I got $\{(\frac{-1}{\sqrt{3}}, \frac{1}{\sqrt{3}}, 0), (0, 0, \frac{2}{\sqrt{12}})\}$ as my orthonormal basis but I'm not sure if I am doing it right with the given inner product.

Perhaps you carried out the Gram-Schmidt algorithm using the ordinary inner product? I think that is the only way you could have gotten through without using the given inner product :)
Anyhow, you need to use the given inner product at each step of the orthonormalization procedure. Changing the inner product will change the output of the algorithm, because different inner products yield different lengths of vectors and report different "angles" between vectors.
For example, when you begin with the first step (normalizing $(-1,1,0)$, you should compute that $\langle(-1,1,0),(-1,1,0)\rangle=3$, and so the first vector would be $\frac{1}{\sqrt{3}}(-1,1,0)$.
