Inverse - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Student[LinearAlgebra]

  

MatrixInverse

  

compute the inverse of a square Matrix or the Moore-Penrose pseudo-inverse of a Matrix

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

MatrixInverse(A, options)

Parameters

A

-

square Matrix

options

-

(optional) parameters; for a complete list, see LinearAlgebra[MatrixInverse]

Description

• 

The MatrixInverse(A) function, where A is a nonsingular square Matrix, returns the Matrix inverse A-1. If A is recognized as a singular Matrix, an error message is returned.

• 

If A is a nonsingular n⁢x⁢n Matrix, the inverse A-1 is computed such that A·A-1=I, where I is the n⁢x⁢n identity Matrix.

Examples

> 

with⁡StudentLinearAlgebra:

> 

M≔a,c|b,d

M≔abcd

(1)

To compute the inverse of the 2x2 matrix, M, by hand:

> 

1a⁢d−b⁢c⁢d,−c|−b,a

da⁢d−b⁢c−ba⁢d−b⁢c−ca⁢d−b⁢caa⁢d−b⁢c

(2)
> 

M_I≔MatrixInverse⁡M

M_I≔da⁢d−b⁢c−ba⁢d−b⁢c−ca⁢d−b⁢caa⁢d−b⁢c

(3)
> 

simplify⁡M·M_I

1001

(4)

The MatrixInverse command will not return a result for a non-square Matrix.

> 

P≔1,2|3,4|1,7

P≔131247

(5)

For non-square matrices, use the Pseudoinverse command.

> 

Pseudoinverse⁡P

9106131841106−19318−135328159

(6)
> 

P·Pseudoinverse⁡P

1001

(7)

Compatibility

• 

The Student[LinearAlgebra][MatrixInverse] command was introduced in Maple 2020.

• 

For more information on Maple 2020 changes, see Updates in Maple 2020.

See Also

Student[LinearAlgebra]

Student[LinearAlgebra][Pseudoinverse]