# How can I recover a variable with singular coefficent

How can I recover $X$ from

$$AX = B$$

when $A$ is a singular matrices?

-

In general you can't. For example, both vectors

$$\,X_1=\binom{1}{0}\;\;,\;\;X_2=\binom{1}{1}$$

are solutions to the system

$$A_1=\begin{pmatrix}1&0\\0&0\end{pmatrix}\binom{x}{y}=\binom{1}{0}$$

-
You can, however, look for e.g. the least-norm solution. – user7530 Jan 8 '13 at 3:20

For most matrix equations, actually there is a unique solution. You just assign variables to the contents of $X$ and solve. You will get a system of linear equations. The above example had multiple solutions because one of the equations was $0x+0y=0$, which is always true.

-