We can write each entry of the matrix multiplication
Thus, this is a continuous function, and we can consider the inverse image of the closed set where
Since the set above is closed (it consists of one “point” in or one matrix depending on how you choose to look at it), so thus the inverse image, which is is also closed.