Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Yes, the last formula is true : it is $\phi_1 \phi_2^T$ and not $\phi_2 \phi_2^T$. I edited the post to put the case $p=2$ and I think I found the general case proof. Concerning the integrals, I think they are mandatory because the matrix $\phi_1 \phi_1^T$ with $t$ fixed has rank 1 and $\int \phi_1 \phi_1^T$ can have any rank.