Maths - Matrix algebra - Inverse 2x2



m00 m01
m10 m11


m11 -m01
-m10 m00

where det is the determinant for a 2x2 matrix this is:

det = m00*m11 - m01*m10

The following calculator allows you to calculate the inverse for a 2x2 matrix. Enter the values into the matrix and then press "calc inverse " to display the result:


public final void invert(Matrix4d m1) {

double det=m1.m00*m1.m11 - m1.m01*m1.m10;
m00 = m1.m11/det;
m01 = -m1.m01/det;
m02 = -m1.m10/det;
m03 = m1.m00/det;

Further Information

metadata block
see also:
Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover Developing Games in Java

Other Math Books

Terminology and Notation

Specific to this page here:


This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.