Building an inverse from first principles, measuring the cost of LU and SVD, and solving an equilibrium problem