Explorations in Linear Algebra
Go to Maple Portal
Introduction
Solving Systems of Linear Equations
Inverses and Determinants
Vectors
Eigenvalues and Eigenvectors
Linear Transformations
Least Squares Approximation
See Also
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.
withStudentLinearAlgebra:
Define M to be a 3-by-4 Matrix.
M≔1,−1,3|1,−2,−7|2,3,1|5,−1,−5
M≔1125−1−23−13−71−5
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.
GaussianEliminationTutor⁡M
Figure 1: Gaussian Elimination
To compute the results directly instead of single-stepping through this process, use the GaussianElimination function.
GaussianElimination⁡M
11250−15400−55−60
To see a plot of this result, use the LinearSystemPlot function.
LinearSystemPlot⁡M
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.
A≔12,−5,0|−13,143,11|2,9,−56
A≔12−132−51439011−56
Determinant⁡A
−288118
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.
InverseTutorA
Figure 2: Inverse Tutor
The Student[LinearAlgebra] package also contains commands to calculate vectors. Define two vectors:
v≔5,−3,2
v≔5−32
w≔4,2,1
w≔421
Display a plot of the sum of two vectors. This works with 2-D or 3-D vectors.
VectorSumPlot⁡v,w
Calculate the cross product of two vectors.
v &x w
−7322
Display the cross product of two vectors.
CrossProductPlotv,w,vectorcolors=Green,Red,Blue
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.
M≔−1,−3,−6|3,5,6|−3,−3,−4
M≔−13−3−35−3−66−4
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
EigenvectorsTutor⁡M
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.
Eigenvectors⁡M
22−4,−11120112101
Plot the Eigenvectors.
EigenPlotM,eigenoptions=length=2,imageoptions=length=2
Plot the action of a linear transformation where the output can be an animation or a plot.
ApplyLinearTransformPlot1,12|−13,35 ,iterations=20
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.
LeastSquaresPlot1,1,2,3,4,2.5,5,4.1,6,7.2,x,y,boxoptions=color=LightSkyBlue,transparency=.5
To provide a better fit to the points, specify an algebraic curve.
LeastSquaresPlot1,1,2,3,4,2.5,5,4.1,6,7.2,x,y,curve=a⁢x3+b⁢x2+c⁢x+d,boxoptions=color=Magenta
Student[LinearAlgebra] package, &x, ApplyLinearTransformPlot, CrossProductPlot, Determinant, EigenPlot, Eigenvectors, EigenvectorsTutor, GaussianElimination, GaussianEliminationTutor, InverseTutor, LeastSquaresPlot, LinearSolveTutor, LinearSystemPlot, VectorSumPlot
Download Help Document