I need to prove the following statement:
Let $X$ be a deformation retract of $A$ by $r:X\to A$. Prove that $$H_q(X)\cong H_q(A)\oplus H_q(X,A)$$
Idea: As $r:X\to A$ is an homotopy equivalence, the induced map $H_q(r):H_q(X)\to H_q(A)$ must be an isomorphism. It is also know that $H_q(A)$ is a normal subgroup of $H_q(X)$ and $H_q(X,A)$ is isomorphic to $H_q(X)/H_q(A)$. My idea is consider that mapping: $$\begin{array}{rcll} \Phi:&H_q(X)&\longrightarrow &H_q(A)\oplus H_q(X,A)\\ &[T]&\longmapsto &\Phi[T]=H_q(r)[T]+pr[T] \end{array}$$ and prove that $\Phi$ is an isomorphism. Is it a good idea?
(we denote $pr$ as the projection $H_q(X)\to H_q(X)/H_q(A)$).
Note: This question has been solved here, but I can't understand anything.