Need a transformation matrix to convert to new base vectors

220 Views Asked by At

I was searching for a solution, but can't find anything I can use with my superficial knowledge.

So, I have vector A, vector B & vector C. I want to convert the space to base vectors A & B (in a 2-dimensional space, of course), so that I could express C as their sum.

How can I do this? I could just calculate the x & y in C = x*A + y*B through scalar products, but I'd prefer matrix forms to avoid checking for zero denominators etc.

1

There are 1 best solutions below

1
On BEST ANSWER

Let A=(a1,a2),B=(b1,b2),the matrix {{b2/(a1b2-b1a2),-b1/(a1b2-b1a2)},{a2/(a1b2-b1a2),-a1/(a1b2-b1a2)}} may help you.