Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|cite|improve this question
up vote 1 down vote accepted

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

share|cite|improve this answer
Thanks. I recall the linear algebra, it's the invertible matrix of (A B), and (a1b2 - b1a2) is the determinator. – culebrón Mar 19 '12 at 10:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.