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
MatrixInverse(A, options)
A
-
square Matrix
options
(optional) parameters; for a complete list, see LinearAlgebra[MatrixInverse]
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.
with⁡StudentLinearAlgebra:
M≔a,c|b,d
M≔abcd
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
M_I≔MatrixInverse⁡M
M_I≔da⁢d−b⁢c−ba⁢d−b⁢c−ca⁢d−b⁢caa⁢d−b⁢c
simplify⁡M·M_I
1001
The MatrixInverse command will not return a result for a non-square Matrix.
P≔1,2|3,4|1,7
P≔131247
For non-square matrices, use the Pseudoinverse command.
Pseudoinverse⁡P
9106131841106−19318−135328159
P·Pseudoinverse⁡P
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][Pseudoinverse]
Download Help Document