Change of basis and inner product in non-orthogonal basis

What you want to do is change the basis of the vectors you are working with, then take the inner product on that. since $e_1', e_2'$ are a basis for $\mathbb{R}^2$, every vector $v$ = $v_1 e_1' + v_2 e_2'$ for unique values $v_1, v_2$. Then you set $\langle v, w \rangle = v_1 w_1 + v_2 w_2$

To find an explicit method of converting a vector into this new coordinate system, look into change-of-basis matrices. if $e_1' = a_1 e_1 + a_2 e_2, e_2' = b_1 e_1 + b_2 e_2$, take the matrix with $$ \left( \begin{array}{cc} a_1 & b_1 \\ a_2 & b_2 \end{array} \right) $$ and take its inverse. Then if $\langle v, w \rangle'$ is your new inner product, you have $\langle v, w \rangle'= \langle M^{-1}v, M^{-1}w \rangle$.