The problem is essentially comes down to solving a amatrix equation, which you can write down and understand with basic mathematical knowledge. There's laws and las elineor algebra techniques, which at this point you don't really need to know about. Thenalge libraryn just solve it immediately for you. It's amazing.