# Treat symbols as elements of a non-commutative field

I want to invert a matrix, {{a,b},{c,d}}, where a,b,c,d are elements of a non-commutative field (for example invertible matrices). However when I use the function Inverse, it outputs elements as $\dfrac{d}{da-bc}$, while I actually need $(da-bc)^{-1} d$.

Is there a way to specify in Mathematica that a,b,c,d should be treated as elements of a non-commutative field?

• I think you'll have to write your own NoncommutativeInverse function. – QuantumDot Sep 22 '16 at 12:34

NCInverse[{{a, b}, {c, d}}] // MatrixForm