I have two non-orthonormal basis vectors, and I want to represent a third vector as a pair of coordinates using the aformentioned basis vectors. How would I do that? The dot product, which usually transforms a vector into coordinates in each basis vector, doesn't work for non-orthonormal bases. How would I get coordinates in terms of my non-orthonormal basis vectors?
I should also mention that I am coding, and so all my vectors are currently represented as pairs of numbers on an (x, y) plane.
Please ask if you need any clarification, I explained it really poorly here.
Also, I do not know very much linear algebra, so it would be appreciated if you answer in simpler terms :)
So you are trying to find the scalars $a$ and $b$ such that the vector $\vec{v}$
$$\begin{gathered}\vec{v}=a\,\hat{x}+b\,\hat{y}\\ \hat{x}\cdot\hat{x}=1\\ \hat{y}\cdot\hat{y}=1\\ \hat{x}\cdot\hat{y}\neq0 \end{gathered}$$
Use the basis vectors $\hat{x}$ and $\hat{y}$ and a dot product to form the following 2×2 system of equations
$$\begin{aligned}\left(\hat{x}\cdot\vec{v}\right) & =a\,\left(\hat{x}\cdot\hat{x}\right)+b\,\left(\hat{x}\cdot\hat{y}\right)\\ \left(\hat{y}\cdot\vec{v}\right) & =a\,\left(\hat{y}\cdot\hat{x}\right)+b\,\left(\hat{y}\cdot\hat{y}\right) \end{aligned}$$
Use the scalar $\gamma=\left(\hat{x}\cdot\hat{y}\right)$ for the solution of
$$\begin{aligned}a & =\frac{1}{1-\gamma^{2}}\left(\hat{x}\cdot\vec{v}\right)+\frac{-\gamma}{1-\gamma^{2}}\left(\hat{y}\cdot\vec{v}\right)\\ b & =\frac{-\gamma}{1-\gamma^{2}}\left(\hat{x}\cdot\vec{v}\right)+\frac{1}{1-\gamma^{2}}\left(\hat{y}\cdot\vec{v}\right) \end{aligned}$$