How to Find a Basis of Solutions to a Homogeneous System
At a glance
- 1. Write the matrix equation
Express the homogeneous system as Ax = 0 and identify the variables corresponding to the columns of A.
- 2. Reduce the matrix
Use Gaussian elimination to find the pivot columns and identify the free variables.
- 3. Choose free variables
Set one free variable to 1 and the others to 0, then solve for the pivot variables.
- 4. Form the basis
Use each resulting solution vector as a basis vector; every solution is a linear combination of them.
A homogeneous linear system has the form , where is a matrix and the right-hand side is the zero vector. Its solutions form a subspace, called the null space or kernel of . To find a set of basic solutions, you usually want a basis for that subspace: a collection of independent solution vectors from which every solution can be built.
The practical method is to row-reduce the coefficient matrix, write the pivot variables in terms of the free variables, and then construct one solution vector for each free variable. The number of vectors you obtain is the dimension of the null space.
What “basic solutions” means
In a typical linear algebra exercise, “basic solutions” means a basis for all solutions of the homogeneous system. Each basis vector must satisfy the system, the vectors must be linearly independent, and every solution must be a linear combination of them.
This is different from the term basic solution in linear programming, which has a more specific meaning involving selected variables and constraints. Unless the problem mentions linear programming, the null-space basis interpretation is generally intended.
The method
Suppose the system has variables, so has columns.
- Row-reduce to echelon form or reduced row-echelon form. Row operations do not change the solutions of .
- Mark the pivot columns. Variables corresponding to those columns are pivot variables; the remaining variables are free variables.
- Solve the reduced equations for the pivot variables in terms of the free variables.
- For each free variable, set it to and set all other free variables to . Substitute these values into the pivot-variable formulas to get a solution vector.
- Collect the resulting vectors. They form a basis for the solution space.
If there are free variables, this produces basis vectors. By the rank–nullity theorem, . If there are no free variables, the null space contains only the zero vector, and its basis is the empty set.
Worked example
Find a basis for the solutions of
The coefficient matrix is
Subtract twice the first row from the second. The resulting system is
The pivot variables are and ; the free variables are and . From the second equation,
Substituting this into the first equation gives
Let and . Then every solution has the form
Therefore one basis is
You can multiply a basis vector by any nonzero scalar without changing the basis. For example, the second vector can be replaced by , which avoids fractions. Both vectors satisfy the original equations, and the two free variables show that every solution is their linear combination.
Why the vectors form a basis
Each constructed vector is a solution because its free-variable values were substituted into the equations for the pivot variables. The vectors are independent because each has a in its own free-variable position and in the other free-variable positions. Finally, any solution is obtained by choosing values for all the free variables, so it is a linear combination of the constructed vectors.
These facts establish all three requirements: the vectors belong to the solution space, are linearly independent, and span the solution space.
Common mistakes
- Including the zero vector in the basis. The zero vector is always a solution, but it cannot be part of a linearly independent set. It is not a basis vector.
- Choosing pivot variables as the parameters. In the standard procedure, free variables are the parameters. Pivot variables are solved in terms of them.
- Making a separate vector for every variable. Only free variables produce basis vectors. Pivot variables are determined by the free variables.
- Forgetting the signs or fractions. Substitute each proposed vector into the original equations, not just the row-reduced equations, as a check.
- Assuming there is always a nonzero solution. If every variable is a pivot variable, then the only solution is .
A quick check on your final answer is to multiply the original matrix by each proposed basis vector. Every product must equal the zero vector.
References
- Linear Algebra and Its Applications — David C. Lay, Steven R. Lay, and Judi J. McDonald
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.