General solution of linear equations
For the equation $$ A\v x = \v d $$ where $A$ is an $m\times n$ matrix.
Let $\set{\v u_i}_{i=1,2,\ldots,n(A)}$ be the basis of the kernel. Extend the basis to $\set{\v u_i}_{i=1,2,\ldots,n}$. Then $$ \im A = \mrm{span}\{A\v u_{n(A)+1}, \ldots A\v u_n\}.$$
-
If $\v d \not\in \im A$, then there is no solution.
-
If $\v d \in \im A$, then at least one solution exists. Let $\v x_0$ be a particular solution. The general can be written as $$ \v x = \v x_0 + \v y $$ where $\v y \in \ker A$.
-
If $n(A) = 0$, then $\v y = \v 0$ gives the only solution.
-
If $n(A) > 0$, then $$\v x = \v x_0 + \sum_{j=1}^{n(A)} \mu_j \v u_j.$$
-