Elementary operations

What can we do to this matrix [Maple Math] in order to solve the equations? We can interchange any two equations at a time. We will call the resulting operation [Maple Math] if it exchanges the [Maple Math] -th and the [Maple Math] -th equation. In Maple, this can be accomplished by the swaprow command.

We can also multiply the [Maple Math] -th equation by a number [Maple Math] and add it to the [Maple Math] -th equation. We shall call this operation [Maple Math] . In Maple, this can be accomplished by the command addrow.

We can also multiply the [Maple Math] -th equation by a nonzero number k. We will accomplish this by a command we made up, called multrow . We may denote it by [Maple Math] .

For example, we illustrate a sequence of these operations which will be useful for solving the equations. We explain the steps later.

Operation [Maple Math] .

> M1:=swaprow(M,1,2);

[Maple Math]

Operation [Maple Math] .

> M2:=addrow(M1,1,3,-2);

[Maple Math]

Operation [Maple Math] .

> M3:=addrow(M2,2,3,-3);

[Maple Math]

Operation [Maple Math] .

> M4:=multrow(M3,3,-1);

[Maple Math]

>

These last equations are in a particularly nice form, if we think of them from bottom to top. The third, one solves for [Maple Math] , then the second can be solved for [Maple Math] , since it only involves [Maple Math] and the first one can then be solved for [Maple Math] . We could also do more operations which reflect the same work, but in a compact form!

> M5:=addrow(M4,3,2,-2);

[Maple Math]

> M6:=addrow(M5,3,1,-3);

[Maple Math]

> M7:=addrow(M6,2,1,1);

[Maple Math]

These are clearly solved, giving [Maple Math] , [Maple Math] and [Maple Math] .

Our aim is to understand and generalize this process. There are two simple maple commands which can readily give the stages M4 and M7 immediately. We wish to master them!

> gausselim(M),gaussjord(M);

[Maple Math]

>