This question is inspired by regularized least squares, where it is stated that $$ X^TX + \lambda I $$ is guaranteed to be invertible for all $\lambda > 0$. Is there an intuitive reason for how adding a positive element along the diagonal of $X^TX$ guarantees invertibility?
I've tried to think about this in terms of full rank, determinants (> 0), eigenvalues (non-zero), but nothing is jumping out at me.
It's more than just for some $\lambda > 0$, it's actually for all $\lambda > 0$. The eigenvalues of $X^\top X$ are real and non-negative, and adding $\lambda I$ increases each eigenvalue by $\lambda$ (with the same eigenvector). Thus, every eigenvalue of $X^\top X + \lambda I$ is at least $\lambda$, which makes them all strictly positive.
If the nullspace of a matrix is non-trivial, then $0$ is an eigenvalue. Contrapositively, since $0$ is not an eigenvalue, $X^\top X + \lambda I$ is invertible.