0
$\begingroup$

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 Answers 1

1

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

  • 0
    Thanks. I recall the linear algebra, it's the invertible matrix of (A B), and (a1b2 - b1a2) is the determinator.2012-03-19