Solving Homogeneous System

A system of linear equations is homogeneous if all of the constant terms are zero. From Solving System of Linear Equations, the general form of homogeneous system of linear equations can be written as:

a11x1 + a12x2 + a13x3 + … + a1nxn = 0
a21x1 + a22x2 + a23x3 + … + a2nxn = 0
… … … …
am1x1 + am2x2 + am3x3 + … + amnxn = 0

which can be written in matrix form

AX = 0

Every homogeneous system of linear equations has at least one solution, which is X = 0. It is called zero solution or trivial solution.

  • If det(A) is non-zero, then it is the unique solution.
  • if det(A) is zero, then there is an infinite number of solutions.

An important technique for solving a homogeneous system of linear equations AX = 0 is to form the augmented matrix M = [ A | 0 ] and reduce M to reduced row echelon form.

Solving with MathPACK Solver

To reduce the augmented matrix M to reduced row echelon form, you can use the function rref() in MathPACK Solver.

Function Signature

U = rref(A)

 

Example

Solve the homogeneous linear system of equations.
x1 + x2 – 2x3 = 0
3x1 + 2x2 + 4x3 = 0
4x1 + 3x2 + 2x3 = 0
From the given system of linear equations, we can write it in the matrix form
AX = 0
Where:
A = [1, 1, -2; 3, 2, 4; 4, 3, 2];
X = [x1;x2;x3];
So, we can create matrix A and construct augmented matrix M by:

»A = [1, 1, -2; 3, 2, 4; 4, 3, 2]; 
»M = zeros(3, 4); 
»M(1:3,1:3) = A;
Reduce M to reduced row echelon form using rref bundled function

»rref(M) 
ans = 
    1 0 8 0  
    0 1 -10 0 
    0 0 0 0 
Rewrite system in the equations form.
x1 + 0 + 8x3 = 0
0 + x2 – 10x3 = 0
Thus:
x1 = – 8x3
x2 = 10x3
Let s=x3, then
x1 = – 8s
x2 = 10s
x3 = s
The solution vector X will be:
X = [-8; 10; 1]s
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply