GaussianEliminationTutor - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim

Student[LinearAlgebra][GaussianEliminationTutor] - interactive and step-by-step Gaussian elimination

Calling Sequence

GaussianEliminationTutor(M, opts)

GaussianEliminationTutor(M, v, opts)










(optional) equation(s) of the form option=value where equation is output or displaystyle



The GaussianEliminationTutor command by default opens a Maplet window which allows you to work interactively through Gaussian elimination. Options provide other ways to show the step-by-step solutions, as described below.


The GaussianEliminationTutor(M) command calls the Matrix Property Analyzer form of the tutor. The tutor allows you to interactively reduce the Matrix M to row echelon form using Gaussian elimination.  You can then query for the rank, nullity, and bases for the row, column, and null spaces. It returns the reduced Matrix.


The GaussianEliminationTutor(M, v) command calls the System Solver form of the tutor. The tutor allows you to interactively solve the system M·x=v by reducing the augmented Matrix <M | v> to row echelon form using Gaussian elimination followed by backwards substitution. It returns the solution as a column Vector.


The above two forms of the tutor are mutually exclusive, and certain commands from one form are not available in the other. To access the other form, close the tutor, and call it again using the appropriate arguments. If no arguments are given, the tutor will start in the System Solver form by default.


Floating-point numbers in M or v are converted to rationals before computation begins.


The dimensions of the Matrix must be no greater than 5x5.


Note: There are two definitions of row echelon form. This tutor uses this definition, which requires only that pivot elements be nonzero.  (The other definition of row echelon form requires the pivot elements to be equal to 1.)


When the tutor is closed, the solution steps displayed in the tutor are re-displayed in the worksheet, with annotations showing the operations applied. Note that this display only and is not a value which can be further manipulated from within the worksheet. The value returned from the tutor, which can be used (for example, by referencing its equation label), is the state of the problem at the time the tutor was closed.


The following options can be used to control how the problem is displayed and what output is returned, giving the ability to generate step-by-step solutions directly without going through the Maplet tutor interface:


output = steps,canvas,script,record,list,print,printf,typeset,link (default: maplet)

The output options are described in Student:-Basics:-OutputStepsRecord.  Use output = steps to get the default settings for displaying ste


displaystyle= columns,compact,linear,brief (default: linear)

The displaystyle options are described in Student:-Basics:-OutputStepsRecord.












Gaussian Reduce120323250215 Subtract 2 times row 1 from row 2; (R2 = R2-2*R1)12030−12−10215 Add 2 times row 2 to row 3; (R3 = 2*R2+R3)12030−12−10053



Gaussian Solve120352325402152 Subtract 2 times row 1 from row 2; (R2 = R2-2*R1)120350−12−1−602152 Add 2 times row 2 to row 3; (R3 = 2*R2+R3)120350−12−1−60053−10Extract equations from the matrixx1+2x2+3x4=5x2+2x3x4=−65x3+3x4=−10Introduce free variablesx4=tx1+2x2+3t=5x2+2x3t=−65x3+3t=−10Solvex3x3=23t5Substitute solved value back into equationsx1+2x2+3t=5x2411t5=−6x3=23t5Solvex2x2=211t5Substitute solved value back into equationsx1+47t5=5x2=211t5x3=23t5Solvex1x1=1+7t5Substitute solved value back into equationsx1=1+7t5x2=211t5x3=23t5


See Also

Student[LinearAlgebra], Student[LinearAlgebra][AddRow], Student[LinearAlgebra][GaussianElimination], Student[LinearAlgebra][GaussJordanEliminationTutor], Student[LinearAlgebra][LinearSolve], Student[LinearAlgebra][LinearSolveTutor], Student[LinearAlgebra][MultiplyRow], Student[LinearAlgebra][SwapRow]