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

Common form of system of linear equations is A*X = B, X is unknown. But how to find A, if X and B are known?

A is MxN matrix, X is column vector(N), B is column vector(M)

share|cite|improve this question
If $\mathbf x$ and $\mathbf b$ are vectors, your problem is underdetermined. – J. M. Dec 16 '10 at 13:04
I have system of equations, such as B1 = AX1....Bn = AXn – qutron Dec 16 '10 at 13:07
Then you can treat your set of column vectors as the columns of a matrix. mpiktas's approach then applies. – J. M. Dec 16 '10 at 13:09
@J.M. I got it. Thank You. – qutron Dec 16 '10 at 13:11
@J. M.: ...provided that $n=N$. – Hans Lundmark Dec 16 '10 at 13:16
up vote 3 down vote accepted

If all matrices are square, then $A=BX^{-1}$.

share|cite|improve this answer

Do it row by row. Row $k$ in $A$ multiplied by the column vector $X$ equals the $k$th entry in the vector $B$. This is a single equation for the $N$ entries in that row of $A$ (so unless $X$ is zero, you get an $(N-1)$-parameter set of solutions for each row).

share|cite|improve this answer

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.