The following is Exercise 4 page 40 in Functional Analysis book of Conway :
Let $\operatorname{P}$ and $\operatorname{Q}$ be projections. Show: (a) $\operatorname{Ρ+Q}$ is a projection if and only if $\operatorname{ranP} \perp \operatorname{ranQ}$. If $\operatorname{P+Q}$ is a projection, then $\operatorname{ran(P+Q)} = \operatorname{ranP} + \operatorname{ranQ}$ and $\operatorname{ker(P+Q)} = \operatorname{kerΡ} \cap \operatorname{kerQ}$. (b) $\operatorname{PQ}$ is a projection if and only if $\operatorname{PQ} = \operatorname{QP}$. If $\operatorname{PQ}$ is a projection, then $\operatorname{ran(PQ)} = \operatorname{ranP} \cap \operatorname{ranQ}$ and $\operatorname{ker(ΡQ)} = \operatorname{kerΡ} + \operatorname{kerQ}$.
My attempt for (a) : Let $ran Ρ \perp ran Q$. If $x \in ran Ρ$ then $x \in (ran Q)^{\perp} = \operatorname{ker}(Q)$ where the equality is by def (See Definition. 3.1. of the book). Thus (QP+PQ)(x)=0. If $x \in \operatorname{ker}(Ρ)$ then by symmetry of argument (QP+PQ)(x)=0. Since $H = \operatorname{ker}(Ρ) + ran P$ so QP+PQ = 0 and thus $(P+Q)^2=P+Q$. To complete the "if" part of (a) I have to show that $\operatorname{ker}(Ρ+Q) = (ran (Ρ+Q))^{\perp}$ which I couldn't do. For the "only if" part, see here. The answer in that link uses the claim that proving being Hermitian of an operator is enough for being Projection which there is no such discussion in the book! for the second part of (a), if $x \in \operatorname{ker}(Ρ) \cap \operatorname{ker}(Q)$ then obviously $x \in \operatorname{ker}(P+Q)$; I don't know how to prove the converse.
My attempt for (b) : If PQ=QP then PQ is a projection if I can prove $ker (PQ) = (ran PQ)^{\perp}$ which is not so clear.
Projection is defined in the book as follows :
3.1. Definition. An idempotent on H is a bounded linear operator Ε on H such that E^2 = E. A projection is an idempotent Ρ such that $ker Ρ = (ran P)^{\perp}$.
For any other way of proving the statements in the exercise I need to prove them as well i.e. only the definition given is the basic valid one!
Here's a way to complete the proof for the "if" direction.
First, we show that $\operatorname{ran}(P + Q) = \operatorname{ran}(P) + \operatorname{ran}(Q)$.
It is clear that $\operatorname{ran}(P + Q) \subset \operatorname{ran}(P) + \operatorname{ran}(Q)$ (why?). For any $x \in \operatorname{ran}(P)$, we note that $Px = x$ and $Qx = 0$. Thus, $(P + Q)x = Px + Qx = x$. Thus, $x \in \operatorname{ran}(P + Q)$. So, $\operatorname{ran}(P) \subset \operatorname{ran}(P + Q)$. By a symmetrical argument, $\operatorname{ran}(Q) \subset \operatorname{ran}(P + Q)$.
Because $\operatorname{ran}(P) \subset \operatorname{ran}(P + Q)$ and $\operatorname{ran}(Q) \subset \operatorname{ran}(P + Q)$, conclude that $\operatorname{ran}(P) + \operatorname{ran}(Q) \subset \operatorname{ran}(P + Q)$. The conclusion follows.
Now, note that $(\operatorname{ran}(P) + \operatorname{ran}(Q))^\perp = \ker(P) \cap \ker(Q)$ (why?). To show that $\operatorname{ran}(P + Q) \perp \ker(P + Q)$, it suffices to show that $$ \ker(P + Q) = \ker(P) \cap \ker(Q). $$ It is clear that $\ker(P) \cap \ker(Q) \subset \ker(P + Q)$ (why?). On the other hand, suppose that $(P + Q)x = 0$. Because $\operatorname{ran}(P) \cap \operatorname{ran}(Q) = \{0\}$, $Px + Qx = 0 \implies Px = Qx = 0$. That is, we only have $(P + Q)x = 0$ if $x \in \ker(P) \cap \ker(Q)$, which is to say that $\ker(P + Q) \subset \ker(P) \cap \ker(Q)$.
Here is one way to prove the "only if" direction. We make use of the following claim, which I will leave for you to prove.
Now, suppose that $\operatorname{ran}(P)$ and $\operatorname{ran}(Q)$ are not perpendicular. Deduce that there exists an element $x \in \operatorname{ran}(P)$ such that $\operatorname{Re} \langle x, Qx \rangle > 0$. Consequently, we find that $$ \|(P + Q)x\|^2 = \langle Px + Qx, Px + Qx \rangle \\ = \langle x + Qx,x + Qx \rangle \\ = \|x\|^2 + 2 \operatorname{Re}\langle Qx,x \rangle + \|Qx\|^2 > \|x\|^2. $$ By the above claim, this means that $P+Q$ cannot be a projection.
For the "if" direction of part b), I recommend that you show that $PQ = QP$ implies that $\operatorname{ran}(PQ) = \operatorname{ran}(P) \cap \operatorname{ran}(Q)$ and $\ker(PQ) = \ker(P) + \ker(Q)$ in a manner similar to my proof of the "if" direction for part a).
For the "only if" direction, (prove if necessary and) use the following fact.
Now, suppose that $PQ$ is a projection. It follows that $$ PQ = (PQ)^* = Q^*P^* = QP. $$ Thus, it follows that $PQ = QP$.