Source: https://www.maths-france.fr/MathSpe/Exercices/03-resume-matrices-sup.pdf