Advanced

Moore-Penrose Pseudoinverse Calculator (2×2)

The Moore-Penrose pseudoinverse A† generalises the concept of a matrix inverse to matrices that are singular or even non-square. Enter any 2×2 matrix and the calculator returns A† along with the matrix rank and a numerical check that A · A† · A = A.
Enter four numbers: row 1 space-separated, then row 2 on the next line.
Determinant of A
10

Non-zero → A is invertible; A† = A⁻¹

Matrix rank
2
Frobenius norm ‖A‖
5.477226
A†[1,1]
0.4
A†[1,2]
-0.1
A†[2,1]
-0.2
A†[2,2]
0.3
Verification error ‖AA†A − A‖
0
How matrix A deforms the unit square — the pseudoinverse reverses this map as far as possible
Step by step
  1. 1

    a × d

    3 × 4 = 12
  2. 2

    b × c

    1 × 2 = 2
  3. 3

    Determinant det = ad − bc

    12 − 2 = 10
    A non-zero determinant means the matrix is invertible and A† = A⁻¹.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

The Moore-Penrose pseudoinverse A† of a 2×2 matrix equals the ordinary inverse when det ≠ 0, or Aᵀ/‖A‖² when rank = 1. It solves Ax = b in the least-squares sense when no exact solution exists. Enter a, b, c, d and the calculator returns A†, rank, Frobenius norm and a numerical verification.

Formula
rank 2: A† = A⁻¹ = (1/det) [[d,−b],[−c,a]] • rank 1: A† = Aᵀ / ‖A‖²_F • rank 0: A† = 0
How this is calculated

For an invertible 2×2 matrix (det ≠ 0) the pseudoinverse is exactly the ordinary inverse, computed from the adjugate formula: A⁻¹ = (1/det) × [[d, −b], [−c, a]]. No additional processing is needed — the Moore-Penrose conditions are automatically satisfied.

For a singular 2×2 matrix (det = 0 but at least one non-zero entry, i.e. rank 1), the pseudoinverse simplifies to Aᵀ / ‖A‖²_F, where ‖A‖_F is the Frobenius norm √(a²+b²+c²+d²). This comes from the SVD: a rank-1 matrix A = σ u vᵀ has pseudoinverse A† = (1/σ) v uᵀ, and dividing the transpose by the squared Frobenius norm is algebraically equivalent for rank-1 matrices.

The verification row "‖AA†A − A‖" measures how well A† satisfies the first Moore-Penrose condition, A A† A = A. A value close to zero (≤ 10⁻¹⁰) confirms the result is numerically correct. Practical limitations: only 2×2 matrices are supported; extend to larger matrices via SVD libraries in languages like Python (numpy.linalg.pinv) or MATLAB (pinv).

Frequently asked questions

A singular matrix has no ordinary inverse, so you cannot solve Ax = b exactly. A† gives the least-squares solution x = A†b that minimises ‖Ax − b‖², which is the best you can do when the system is under- or over-determined.

Yes. When det(A) ≠ 0 the Moore-Penrose pseudoinverse equals the ordinary inverse A⁻¹. The pseudoinverse generalises the inverse to all matrices, so it is always safe to use A† even when you do not know in advance whether A is invertible.

Four conditions: (1) A A† A = A, (2) A† A A† = A†, (3) (A A†)ᵀ = A A†, (4) (A† A)ᵀ = A† A. The verification row checks condition 1 numerically.

Also known as

moore penrose pseudoinverse
matrix pseudoinverse calculator
generalized inverse 2x2
pinv calculator
least squares inverse matrix
a dagger matrix calculator
singular matrix inverse

APA

TG we-Calculate Editorial Team. (2026). Moore-Penrose Pseudoinverse Calculator (2×2) [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/pseudoinverse-calculator

Chicago

TG we-Calculate Editorial Team. "Moore-Penrose Pseudoinverse Calculator (2×2)." TG we-Calculate. 2026. https://we-calculate.com/calculator/pseudoinverse-calculator.

IEEE

TG we-Calculate Editorial Team, "Moore-Penrose Pseudoinverse Calculator (2×2)," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/pseudoinverse-calculator

BibTeX

@misc{wecalculate_pseudoinverse_calculator, title = {Moore-Penrose Pseudoinverse Calculator (2×2)}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/pseudoinverse-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?