Using Maple to learn Linear Algebra
Maple has a number of facilities that can help you get proficient in linear algebra. There are special Student versions of some of the packages, and there are some Tutors.
First we load the Linear Algebra part of the Student package. As usual, the first statement i a restart statement.
As you can see, there are many commands. In contrast to the full LinearAlgebra package this package has a restricted number of options to each command, meaning that they are easier to use. Some of the general commands from the Linear Algebra package have been given new names, which explain what they do.
Here are some examples.
Row operations can be carried out step by step using the commands from Students[LinearAlgebra]. the following examples should be self-explanatory.
These three commands, which implement the three basic row operations, are in the LinearAlgebra package covered by one command, RowOperations, with many more options.
There is a command called Pivot, which implements pivoting around an entry, meaning that by using row operations the entries both below and above the pivot position are changed to zeroes. Here is an example using the matrix above, and the entry in the second row and third column as pivot. Note that the entry is not scaled to be 1.
Echelon form and reduced echelon form
What we call finding the echelon form of a matrix is in Maple called Gaussian elimination. Here it is applied to the matrix A above.
The reduced row echelon form is obtained as follows:
There are two interactive tutors that you can use either to perform the reductions on your own, or what Maple do it for you. They are usefull for practice. Once you give the command, a new window opens, and it is in this window that the interaction takes place. The two commands are
Solving systems of linear equations
Suppose we regard the above matrix A as the augmented matrix for a linear system of three equations in three unknown. Then we can solve this system by the command
If we want to specify the coefficient matrix and the right hand side, then it can be done as follows.
If there are free variables, then you can specify them. Here is an example with a homogeneous equation.
Warning: The algorithms used by Maple may not always choose the free variable that you expect. Here is an example:
There is also a tutor available for practicing solving linear equations. The command is
First you have to decide, by choosing an option in a window, whether to base the solution on the echelon form or the reduced echelon form. I recommend the latter, thus choose Gauss Jordan Elimination. This tutor is probably not at useful as the ones practicing finding the (reduced) echelon form.
It is possible to visualize small linear systems as systems of (non)-intersecting lines and planes. The tutor illustrating this is called by the command