Degenerate matrices, a mixture of PDE, algebra and topology