Explorations in Linear Algebra
Go to Maple Portal Maple Portal for Math Educators
Solving Systems of Linear Equations
Inverses and Determinants
Eigenvalues and Eigenvectors
Least Squares Approximation
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:
Launching the tutor of choice from the Tools > Tutors menu and typing the equation.
Loading the Student[LinearAlgebra] package using the with command (or by selecting the package from the Tools > Load Package menu). After the package is loaded, you can access the tutorials from the Context Panel for the expression of interest under Student[LinearAlgebra] > Tutors.
Define M to be a 3-by-4 Matrix.
For other ways to enter a matrix, see How Do I Enter a Matrix and Student[LinearAlgebra] .
The Student[LinearAlgebra] package allows you to walk through the stages of solving systems of equations either using Gaussian Elimination or Gauss-Jordan 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 step-through functionality is presented in an easy to use maplet interface. When 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.) When finished, select Close to display the matrix in its reduced form to the Maple worksheet.
Reduce the Matrix M using the GaussianEliminationTutor.
Figure 1: Gaussian Elimination
To compute the results directly instead of single-stepping through this process, use the GaussianElimination function.
To see a plot of this result, use the LinearSystemPlot function.
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.
Since the determinant is non-zero, 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
The Student[LinearAlgebra] package also contains commands to calculate vectors.
Define two vectors:
Display a plot of the sum of two vectors. This works with 2-D or 3-D vectors.
Calculate the cross product of two vectors.
v &x w
Display the cross product of two vectors.
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 easy-to-use interface. These tutors are similar, and the Eigenvectors Tutor is demonstrated as follows.
Define a Matrix.
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.
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.
Plot the Eigenvectors.
Plot the action of a linear transformation where the output can be an animation or a plot.
See ApplyLinearTransformPlot for more details.
The LeastSquaresPlot allows you to plot 2-D or 3-D 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.
Student[LinearAlgebra] package, &x, ApplyLinearTransformPlot, CrossProductPlot, Determinant, EigenPlot, Eigenvectors, EigenvectorsTutor, GaussianElimination, GaussianEliminationTutor, InverseTutor, LeastSquaresPlot, LinearSolveTutor, LinearSystemPlot, VectorSumPlot
Download Help Document
What kind of issue would you like to report? (Optional)