Solving problem 5.2 from the MIT course “18.06SC – Linear Algebra”.