Problem: Find the general solution to \(Ax=b\)
\[\begin {bmatrix} 2 & 4 & 6 & 4\\ 2 & 5 & 7 & 6\\ 2 & 3 & 5 & 2 \end {bmatrix}\begin {bmatrix} x_{1}\\ x_{2}\\ x_{3}\\ x_{3}\end {bmatrix} =\begin {bmatrix} b_{1}\\ b_{2}\\ b_{3}\end {bmatrix} \ where\begin {bmatrix} b_{1}\\ b_{2}\\ b_{3}\end {bmatrix} =\begin {bmatrix} 4\\ 3\\ 5 \end {bmatrix} \]
In Maple 11, the LinearAlgebra package was used. In Mathematica one can also get the general solution, but one must find the Null space specifically and add it to the result from LinearSolve[] since LinearSolve[] finds particular solutions only.
In Matlab the same thing needs to be done. I am not sure now how to make Matlab give me the same particular solution as Maple and Mathematica since Matlab A\(\backslash \)b uses least square approach to determine a solution. I am sure there is a way, will update this once I find out.
WARNING: Maple sometimes reorders the result from solve() so we can get a different ordering of the free variables as shown above.