Explorations in Linear Algebra
Go to Maple Portal Maple Portal for Math Educators

Introduction


The Student[LinearAlgebra] package contains numerous commands to assist students with concepts presented in an introductory course in Linear Algebra. In addition to the various computation commands, this package also comes equipped with visualization commands and interactive commands to single step through Linear Algebra concepts. For an overview of the package, see Student[LinearAlgebra].
The commands and tutors provided in the Student[LinearAlgebra] package can be accessed by:
1.

Launching the tutor of choice from the Tools > Tutors menu and typing the equation.

2.

Loading the Student[LinearAlgebra] package using the with command (or by selecting the package from the Tools > Load Package menu) . Once the package is loaded, you can access the tutorials from the context menu by rightclicking (Controlclick, for Macintosh) on the equation of interest.



Solving Systems of Linear Equations


Define a threebyfour Matrix and call it M.
 (1) 
For other ways to enter a matrix, see Student[LinearAlgebra] and How do I ... enter a matrix? from the How do I part of the Maple Portal.
The Student[LinearAlgebra] package allows you to walk through the stages of solving systems of equations either using Gaussian Elimination or GaussJordan Elimination reduction methods. At any stage in the problem, you can ask for a hint, apply a rule or jump to the matrix in reduced row echelon form. This stepthrough functionality is presented in an easy to use maplet interface. Once the matrix is in reduced row echelon form, these tutors give you the option to query for the rank, nullity, and bases for the row, column, and null spaces. (The LinearSolveTutor will also let you see the solution in terms of equations.) Once complete, select Close to display the matrix in its reduced form to the Maple worksheet.
Reduce the Matrix M using the GaussinanEliminationTutor.

Figure 1: Gaussian Elimination



To compute the results directly instead of singlestepping through this process, use the GaussianElimination function.
 (2) 
To see a plot of this result, use the LinearSystemPlot function.


Inverses and Determinants


Using the Determinant function, you can easily calculate the determinant of a Matrix. A Matrix is said to be invertible if the determinant of this Matrix does not equal zero.
 (3) 
 (4) 
Since the determinant is nonzero, you can calculate the inverse of this Matrix. The InverseTutor command is an interactive tutor that allows you to apply an elementary row operation, request a hint, go back a step, or request the solution. After each computation, the previous and current states of the matrix are displayed, as well as text descriptions of the recently applied step.

Figure 2: Inverse Tutor





Vectors


The Student[LinearAlgebra] package also contains commands to calculate vectors.
Define two vectors:
 (5) 
 (6) 
Display a plot of the sum of two vectors. This works with 2D or 3D vectors.
Calculate the cross product of two vectors.
 (7) 
Display the cross product of two vectors.


Eigenvalues and Eigenvectors


The Student[LinearAlgebra] package provides two tutors where you can walk through the process of calculating the eigenvectors and eigenvalues of a Matrix in an easytouse interface. These tutors are similar. Here we demonstrate the Eigenvectors Tutor.
Define a Matrix.
 (8) 
The EigenvectorsTutor takes you through the process of calculating the eigenvectors of a Matrix within a sequence of several windows.
•

You have the option of working through the process of finding the eigenvalues. When asked Do you wish to go through the process of finding the eigenvalues?



•

Yes: the tutor takes you through the steps to find the eigenvalues



•

No: the tutor goes directly to a window displaying the eigenvalues


•

For each eigenvalue, you have the option of working through the process of finding the eigenvector.



•

Yes: the tutor takes you through the steps to find the eigenvalues



•

No: the tutor goes directly to a window displaying the eigenvalues


•

For each eigenvalue, you have the option of working through the process of finding the eigenvector.



•

Find Eigenvector: the tutor takes you through the steps



•

Skip Calculation: show the eigenvector without going through the steps





Figure 3: Find the eigenvalues in the Eigenvector Tutor




Figure 4: Find the eigenvectors in the Eigenvector Tutor



To directly compute the eigenvalues and eigenvectors, use the Eigenvalues and Eigenvectors commands. The result of the Eigenvectors command is an expression sequence with two elements: the first is a vector whose elements are the eigenvalues, and the second is a Matrix whose column vectors consist of the corresponding eigenvectors.
 (9) 
Plot the Eigenvectors.


Linear Transformations


Plot the action of a linear transformation where the output can be an animation or a plot.


Least Squares Approximation


The LeastSquaresPlot allows you to plot 2D or 3D points and a least squares fit to those points. The plot shows the least squares fit curve and boxes that represent the errors associated with the fit. See LeastSquaresPlot for more information.
To provide a better fit to the points, specify an algebraic curve.


See Also


Student[LinearAlgebra] package, &x, ApplyLinearTransformPlot, CrossProductPlot, Determinant, EigenPlot, Eigenvectors, EigenvectorsTutor, GaussianElimination, GaussianEliminationTutor, InverseTutor, LeastSquaresPlot, LinearSolveTutor, LinearSystemPlot, VectorSumPlot

Go to Maple Portal Maple Portal for Math Educators
