Student[LinearAlgebra][InverseTutor] - interactive and step-by-step Matrix inverse
Calling Sequence
InverseTutor(M, opts)
Parameters
M
-
square Matrix
opts
(optional) equation(s) of the form option=value where equation is output or displaystyle
Description
The InverseTutor command by default opens a Maplet window which allows you to interactively find the inverse of a matrix. Options provide other ways to show the step-by-step solutions, as described below.
The InverseTutor(M) command allows you to interactively find the inverse, if it exists, of the square Matrix M by using row operations to reduce the augmented Matrix M|Id to Id|1M where Id is the identity Matrix of the same dimension as M. It returns the inverse Matrix.
Floating-point numbers in M are converted to rationals before computation begins.
The dimensions of the Matrix must be no greater than 5x5.
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 step-by-step solution output.
displaystyle= columns,compact,linear,brief (default: linear)
The displaystyle options are described in Student:-Basics:-OutputStepsRecord.
Examples
with⁡StudentLinearAlgebra:
M≔1,2,0|2,3,2|0,2,1
M≔120232021
M−1
1525−4525−1525−452515
InverseTutor⁡M
InverseTutor⁡M,output=steps
Compute the inverse of this matrix120232021•Augment matrix with the identity matrix; then find row operations to produce the identity on the left side which will give the inverse on the right side.120100232010021001• Subtract 2 times row 1 from row 2; (R2 = R2-2*R1)1201000−12−210021001• Multiply row 2 by -1; (R2 = -1*R2)12010001−22−10021001• Subtract 2 times row 2 from row 1; (R1 = R1-2*R2)104−32001−22−10021001• Subtract 2 times row 2 from row 3; (R3 = R3-2*R2)104−32001−22−10005−421• Multiply row 3 by 1/5; (R3 = 1/5*R3)104−32001−22−10001−452515• Subtract 4 times row 3 from row 1; (R1 = R1-4*R3)1001525−4501−22−10001−452515• Add 2 times row 3 to row 2; (R2 = 2*R3+R2)1001525−4501025−1525001−452515•We have found the inverse1525−4525−1525−452515
See Also
Student/LinearAlgebra/`^`, Student[LinearAlgebra], Student[LinearAlgebra][AddRow], Student[LinearAlgebra][MultiplyRow], Student[LinearAlgebra][SwapRow]
Compatibility
The Student[LinearAlgebra][InverseTutor] command was updated in Maple 2021.
The output and displaystyle options were introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
Download Help Document