For example, I know that $H^k(S^n \times I^m) = H^k(S^n)$ (where $I$ is an open interval) because there is a deformation retraction from $S^n \times I^m$ to $S^n$.
Why are the cohomology groups invariant under deformation retractions?
For example, I know that $H^k(S^n \times I^m) = H^k(S^n)$ (where $I$ is an open interval) because there is a deformation retraction from $S^n \times I^m$ to $S^n$.
Why are the cohomology groups invariant under deformation retractions?
I will outline a proof that the cohomology groups are preserved under homotopy equivalence. Every function is $C^{\infty}$.
Let $f : M \to N$. Then $f^*$ (pullback map) induces a map between $H^k_{de}(N) \to H^k_{de}(M)$.
Prove a generalization of Poincare's lemma that states that if $f,g : M \to N$ are homotopic then $f(\omega) - g(\omega)$ is an exact form. Therefore, they induce the same map from $H^k_{de}(N) \to H^k_{de}(M)$. (The proof of this is almost exactly the same as the proof of Poincare's lemma.)
Let $M$ and $N$ be homotopic manifolds. Let $f :M\to N$ and $g: N \to M$ be functions so that $f\circ g$ and $g\circ f$ are homotopic to the identity map. Then $(f\circ g)^* = g^*\circ f^*$ induces the identity map on $H^k_{de}$ and similarly for $(g\circ f)^*$. Therefore $f^*$ and $g^*$ are inverses of each other and give a bijection between $H^k_{de}(M)$ and $H^k_{de}(N)$.