Let
be the projection onto
. Write
with
. Then we have
-

and hence
-

Suppose now that
-
is an endomorphism with
-

Let
.
Then there exists some
such that
-

Then
-

This means that the intersection of these linear subspaces is the zero space. For an arbitrary
,
we write
-

Here, the first summand belongs to the image and, because of
-

the second summand belongs to the kernel. Therefore, we have a direct sum decomposition.