Let $\mathbf{Y}$ be a $p$-dimensional random vector with $\mathbb{E}|\mathbf{Y}|^2<\infty$. Show that $$\text{Cov}(\mathbf{Y})=\mathbb{E}[(\mathbf{Y}-\mathbb{E}\mathbf{Y})\mathbf{Y}^T]$$
I tried using the fact that $$\text{Cov}(\mathbf{Y})=\mathbb{E}[(\mathbf{Y}-\mathbb{E}\mathbf{Y})(\mathbf{Y}-\mathbb{E}\mathbf{Y})^T]$$
and then expanding it and simplifying it, but I couldn't derive the former.
How do I go about with this?