I know that in LA, you can represent a square matrix $\mathbf{A} \in \mathbb{R}^{n \times n}$ with its eigenvalues and eigenvectors.
Why is it not possible to have an equivalent equation for infinite dimension? Like for a self-adjoint compact linear operator in Hilbert space, can it somehow be represented with its eigenfunctions/eigenvalues?
Am I getting mixed up? I just started functional analysis very recently - so any extra explanation would truly be appreciated.