DrazinInverse
✖
DrazinInverse
Details and Options

- The Drazin inverse of a square matrix m is a generalized inverse that is based on the invariant subspaces of m.
- The Drazin inverse is a generalized inverse just as the Moore–Penrose inverse is a generalized inverse. However, the Drazin inverse deals with invariant subspaces and relates to eigenvalue problems, solutions of differential and difference equations, etc., while the Moore–Penrose inverse deals with least squares and relates to fitting problems, SVD, approximation, etc.
- DrazinInverse[m] can be computed as
, where {t,c,n} is the list returned by CoreNilpotentDecomposition[m]. »
- The Drazin inverse
satisfies the relations
and
. »
- The nilpotency index
of a matrix is defined as the size of the largest Jordan block corresponding to the zero eigenvalue. The Drazin inverse
satisfies the relation
, where
is the nilpotency index of m. »
- For nonsingular square matrices m, the Drazin inverse
is equivalent to the standard inverse.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Compute the Drazin inverse of a matrix:

https://wolfram.com/xid/0ywdm9osmqsi-eu6znl

Drazin inverse of a 3×3 matrix:

https://wolfram.com/xid/0ywdm9osmqsi-h9m4gi

https://wolfram.com/xid/0ywdm9osmqsi-qlzc4

Verify a few properties of this generalized inverse:

https://wolfram.com/xid/0ywdm9osmqsi-efoxdc


https://wolfram.com/xid/0ywdm9osmqsi-e5ahws

Drazin inverse of a 4×4 matrix:

https://wolfram.com/xid/0ywdm9osmqsi-gcxuan

https://wolfram.com/xid/0ywdm9osmqsi-gj6akt

Verify the definition of DrazinInverse:

https://wolfram.com/xid/0ywdm9osmqsi-cct7li

https://wolfram.com/xid/0ywdm9osmqsi-glxh7l

https://wolfram.com/xid/0ywdm9osmqsi-boav1u

Scope (10)Survey of the scope of standard use cases
Basic Uses (6)
Drazin inverse of a machine-precision matrix:

https://wolfram.com/xid/0ywdm9osmqsi-drigy

Drazin inverse of a complex matrix:

https://wolfram.com/xid/0ywdm9osmqsi-y5nohf

Drazin inverse of an exact matrix:

https://wolfram.com/xid/0ywdm9osmqsi-pej2pi

Drazin inverse of an arbitrary-precision matrix:

https://wolfram.com/xid/0ywdm9osmqsi-p8sjhl

Drazin inverse of a symbolic matrix:

https://wolfram.com/xid/0ywdm9osmqsi-g6mfyb

The inversion of large machine-precision matrices is efficient:

https://wolfram.com/xid/0ywdm9osmqsi-dkq7nk

https://wolfram.com/xid/0ywdm9osmqsi-lx8juz

Special Matrices (4)
Drazin inverse of a sparse matrix is returned as a normal matrix:

https://wolfram.com/xid/0ywdm9osmqsi-jvkrfy


https://wolfram.com/xid/0ywdm9osmqsi-l1j6l2

Drazin inverse of a structured matrix:

https://wolfram.com/xid/0ywdm9osmqsi-wdjmwi


https://wolfram.com/xid/0ywdm9osmqsi-j45yx1

IdentityMatrix is its own Drazin inverse:

https://wolfram.com/xid/0ywdm9osmqsi-ksopv

Drazin inverse of a Hilbert matrix:

https://wolfram.com/xid/0ywdm9osmqsi-u403e4

Applications (3)Sample problems that can be solved with this function
Solve the matrix differential equation ,
with singular coefficients:

https://wolfram.com/xid/0ywdm9osmqsi-g0i7it
Both and
are singular, so the equation cannot be put in the standard form
:

https://wolfram.com/xid/0ywdm9osmqsi-14lo97

The solution is , where
solves
and
solves
:

https://wolfram.com/xid/0ywdm9osmqsi-ee9oys

Compare with the result given by DSolveValue:

https://wolfram.com/xid/0ywdm9osmqsi-po1t98

Find the general solution of the matrix difference equation with singular coefficient matrix
:

https://wolfram.com/xid/0ywdm9osmqsi-ctbsv6

https://wolfram.com/xid/0ywdm9osmqsi-hzi8ti

The solution is , where
is an arbitrary vector:

https://wolfram.com/xid/0ywdm9osmqsi-zer7z


https://wolfram.com/xid/0ywdm9osmqsi-krggx

Compute the effective resistance matrix of a graph:

https://wolfram.com/xid/0ywdm9osmqsi-bs6hja

https://wolfram.com/xid/0ywdm9osmqsi-bhdgyl

Compute the effective graph resistance:

https://wolfram.com/xid/0ywdm9osmqsi-07sb8

Properties & Relations (8)Properties of the function, and connections to other functions
DrazinInverse is the same as Inverse for invertible matrices:

https://wolfram.com/xid/0ywdm9osmqsi-fuusb6

https://wolfram.com/xid/0ywdm9osmqsi-e89jk


https://wolfram.com/xid/0ywdm9osmqsi-dwk84u

DrazinInverse[m] satisfies the relations and
:

https://wolfram.com/xid/0ywdm9osmqsi-dqkz43

https://wolfram.com/xid/0ywdm9osmqsi-esyaed

Verify the required properties:

https://wolfram.com/xid/0ywdm9osmqsi-y9cj5


https://wolfram.com/xid/0ywdm9osmqsi-kd2fmr

Unlike PseudoInverse, it is not necessarily the case that :

https://wolfram.com/xid/0ywdm9osmqsi-1bmv4v

The other Moore–Penrose equations [more info] need not be satisfied, either:

https://wolfram.com/xid/0ywdm9osmqsi-905xm

DrazinInverse is invariant under matrix conjugation, that is :

https://wolfram.com/xid/0ywdm9osmqsi-qyogpv

https://wolfram.com/xid/0ywdm9osmqsi-6sgspn

DrazinInverse can be computed with CoreNilpotentDecomposition:

https://wolfram.com/xid/0ywdm9osmqsi-qr4px

https://wolfram.com/xid/0ywdm9osmqsi-d107wk

https://wolfram.com/xid/0ywdm9osmqsi-jz2ks3

https://wolfram.com/xid/0ywdm9osmqsi-liecfh

For a diagonal matrix m, DrazinInverse[m] is a diagonal matrix with nonzero elements inverted:

https://wolfram.com/xid/0ywdm9osmqsi-ogbte3

Consider the Jordan matrix given by JordanDecomposition[m]:

https://wolfram.com/xid/0ywdm9osmqsi-kmg1yh
DrazinInverse maps blocks with zero diagonals to zero, and other blocks to their inverse:

https://wolfram.com/xid/0ywdm9osmqsi-4o65ic


https://wolfram.com/xid/0ywdm9osmqsi-k0nsre

Define a function for computing the index of a square matrix:

https://wolfram.com/xid/0ywdm9osmqsi-x3d5e
Compute the index of a matrix:

https://wolfram.com/xid/0ywdm9osmqsi-dnf8yp

https://wolfram.com/xid/0ywdm9osmqsi-f76odt

DrazinInverse[m] satisfies the relation , where k is the index of m:

https://wolfram.com/xid/0ywdm9osmqsi-ghet3r

PseudoInverse[m] can be computed using DrazinInverse as :

https://wolfram.com/xid/0ywdm9osmqsi-xlw4hn

https://wolfram.com/xid/0ywdm9osmqsi-7ipetg

Wolfram Research (2021), DrazinInverse, Wolfram Language function, https://reference.wolfram.com/language/ref/DrazinInverse.html.
Text
Wolfram Research (2021), DrazinInverse, Wolfram Language function, https://reference.wolfram.com/language/ref/DrazinInverse.html.
Wolfram Research (2021), DrazinInverse, Wolfram Language function, https://reference.wolfram.com/language/ref/DrazinInverse.html.
CMS
Wolfram Language. 2021. "DrazinInverse." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DrazinInverse.html.
Wolfram Language. 2021. "DrazinInverse." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DrazinInverse.html.
APA
Wolfram Language. (2021). DrazinInverse. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DrazinInverse.html
Wolfram Language. (2021). DrazinInverse. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DrazinInverse.html
BibTeX
@misc{reference.wolfram_2025_drazininverse, author="Wolfram Research", title="{DrazinInverse}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/DrazinInverse.html}", note=[Accessed: 26-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_drazininverse, organization={Wolfram Research}, title={DrazinInverse}, year={2021}, url={https://reference.wolfram.com/language/ref/DrazinInverse.html}, note=[Accessed: 26-March-2025
]}