Inverse is moved out, it was wroooong.

Looking for a method to finish it without doing linear equation solving.