InverseTutor - 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][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

withStudentLinearAlgebra:

M1,2,0|2,3,2|0,2,1

M120232021

(1)

M1

152545251525452515

(2)

InverseTutorM

InverseTutorM,output=steps

Compute the inverse of this matrix120232021Augment 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−10001452515 Subtract 4 times row 3 from row 1; (R1 = R1-4*R3)10015254501−22−10001452515 Add 2 times row 3 to row 2; (R2 = 2*R3+R2)100152545010251525001452515We have found the inverse152545251525452515

(3)

See Also

Student/LinearAlgebra/`^`, Student[LinearAlgebra], Student[LinearAlgebra][AddRow], Student[LinearAlgebra][MultiplyRow], Student[LinearAlgebra][SwapRow]