[guided]We now prove the form-level identity behind the cohomology-level identity. Let $\omega \in Z^k(P)$ be a closed $k$-form on $P$. We must compare two $k$-forms on $M$: the direct pullback $(\psi \circ \varphi)^*\omega$ and the successive pullback $\varphi^*(\psi^*\omega)$.
Fix a point $x \in M$ and tangent vectors $v_1,\dots,v_k \in T_xM$. By the definition of pullback of a $k$-form,
\begin{align*}
((\psi \circ \varphi)^*\omega)_x(v_1,\dots,v_k)
&= \omega_{\psi(\varphi(x))}\bigl(d(\psi \circ \varphi)_x(v_1),\dots,d(\psi \circ \varphi)_x(v_k)\bigr).
\end{align*}
The only differential-geometric input needed here is the compatibility of the differential with composition:
\begin{align*}
d(\psi \circ \varphi)_x = d\psi_{\varphi(x)} \circ d\varphi_x.
\end{align*}
Substituting this identity into each tangent-vector slot gives
\begin{align*}
((\psi \circ \varphi)^*\omega)_x(v_1,\dots,v_k)
&= \omega_{\psi(\varphi(x))}\bigl(d\psi_{\varphi(x)}(d\varphi_x(v_1)),\dots,d\psi_{\varphi(x)}(d\varphi_x(v_k))\bigr).
\end{align*}
Now apply the definition of $\psi^*\omega$ at the point $\varphi(x) \in N$ to the tangent vectors $d\varphi_x(v_1),\dots,d\varphi_x(v_k) \in T_{\varphi(x)}N$. This yields
\begin{align*}
\omega_{\psi(\varphi(x))}\bigl(d\psi_{\varphi(x)}(d\varphi_x(v_1)),\dots,d\psi_{\varphi(x)}(d\varphi_x(v_k))\bigr)
&= (\psi^*\omega)_{\varphi(x)}\bigl(d\varphi_x(v_1),\dots,d\varphi_x(v_k)\bigr).
\end{align*}
Finally, applying the definition of $\varphi^*$ to the $k$-form $\psi^*\omega \in \Omega^k(N)$ gives
\begin{align*}
(\psi^*\omega)_{\varphi(x)}\bigl(d\varphi_x(v_1),\dots,d\varphi_x(v_k)\bigr)
&= (\varphi^*(\psi^*\omega))_x(v_1,\dots,v_k).
\end{align*}
Thus
\begin{align*}
((\psi \circ \varphi)^*\omega)_x(v_1,\dots,v_k)
= (\varphi^*(\psi^*\omega))_x(v_1,\dots,v_k).
\end{align*}
Because $x$ and $v_1,\dots,v_k$ were arbitrary, the two $k$-forms are equal on $M$:
\begin{align*}
(\psi \circ \varphi)^*\omega = \varphi^*(\psi^*\omega).
\end{align*}[/guided]