Considering
$$\nabla (\frac{1}{2} \vec{A} \cdot \vec{A}) $$
The full identity has some cross product terms. But, when I try and work from this expression by itself with the summation convention I get the following (wrong) derivation
$$= \partial_i(\frac{1}{2} A_j A_j)$$ $$= \frac{1}{2}(A_j\partial_i A_j + A_j\partial_i A_j)$$ $$=\vec{A} \cdot \nabla \vec{A}$$
Clearly, the cross terms have not popped up (and I very much know the standard method of starting with the cross terms) but why have they gone? Where have I implicitly assumed $\nabla \times \vec{A} = 0$?