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\}.$$