The Lagrangian density for a single real scalar field theory is \begin{equation}\mathcal{L}=\frac{1}{2}(\partial_{\mu}\phi)^{2}-V(\phi)\end{equation} I have often seen this written \begin{equation}\mathcal{L}=\frac{1}{2}\partial_{\mu}\phi\partial^{\mu}\phi-V(\phi)\end{equation} which appears to differ in the kinetic term.
Specifically \begin{equation}(\partial_{\mu}\phi)^{2}=(\partial_{\mu}\phi)(\partial^{\mu}\phi)\neq\partial_{\mu}\phi\partial^{\mu}\phi=(\partial_{\mu}\phi)(\partial^{\mu}\phi)+\phi\partial_{\mu}\partial^{\mu}\phi\end{equation} where the product rule has been used in the last equality. Is this just sloppy notation (which is acceptable because only first derivatives in the field are considered anyway), or is my maths very bad?