Given a square matrix A with an eigenvalue λ, the eigenspace of λ is the kernel of A − λI, that is the subspace of vectors x satisfying Ax = λx. The eigenspaces form a direct sum, and A is diagonalizable if and only if this direct sum equals the whole space. The definition applies equally to a linear map of a vector space.