A generalised inverse extends matrix inversion to rectangular or singular matrices.

What is ?

Start with the generic linear system:

where:

  • is the matrix that maps the unknown to the required output
  • is the unknown vector
  • is the required output vector

The symbol does not represent a special robot matrix. In the robot application, is replaced by the tool-configuration Jacobian .

Choose the inverse

flowchart LR
    S["Linear system<br/>Ax = b"] --> Q{"Is A square<br/>and full rank?"}
    Q -- "YES" --> I["Use ordinary inverse<br/>x = A-inverse b"]
    Q -- "NO" --> P["Use pseudoinverse<br/>x-zero = A-plus b"]

If is square and full rank:

then is nonsingular and:

For a square matrix:

A rectangular matrix has no ordinary inverse. Describe it as full rank or rank-deficient, rather than singular or nonsingular.

Moore-Penrose pseudoinverse

The Moore-Penrose pseudoinverse is written as . It:

  • Always exists
  • Is unique
  • Reduces to when is square and nonsingular

For a full-rank matrix :

Important

These explicit formulas require the relevant full-rank condition. The pseudoinverse still exists when is rank-deficient, but these formulas cannot be used directly.

What solution does give?

Define the residual:

The pseudoinverse gives:

  • If exact solutions exist, is the solution with the smallest
  • If no exact solution exists, minimizes the residual

Thus, is the minimum-norm least-squares solution.

Example

Given:

is a wide matrix with full row rank because . Therefore:

Robot motion

The robot differential-motion equation is:

Match it to the generic equation :

Therefore:

Warning

In the generic equation , means the unknown vector. In the robot equation, this unknown becomes . The symbol is the required tool-configuration velocity.

This relation is the basis of Resolved-motion Rate Control. Near a singularity, small tool velocities can require very large joint velocities.

Formal definition

Let be an matrix. An matrix is a generalised inverse of when it satisfies at least property 1 or property 2:

The Moore-Penrose pseudoinverse satisfies all four properties.