For a linear map , its rank of a linear map is , and its nullity is . Choose a basis of its kernel and extend it to a basis of . Then span its image. They are linearly independent: a linear combination mapped to zero would belong to the kernel, contradicting independence of the extended basis unless all its coefficients vanish. Hence , proving
For endomorphisms of , define and . The image of the sum lies in the sum of the two images. Thus
To prove the product inequality, restrict to . This map has kernel and image : every vector in the intersection has a preimage in . Applying the rank-nullity theorem to the restricted map gives
Now put and . If both equalities hold, , while forces . Therefore , the sum has full rank, and the product has nullity . The sum is an isomorphism and the product is zero.
Conversely, if , then , giving . If the sum is also an isomorphism, its rank is . Thus , and the two inequalities become equalities. This proves the equality in the rank-sum and nullity-product inequalities in both directions.