In my textbook the lagrangian density of the system is taken to be $\mathcal{L} = -\frac{1}{2} \partial^{\mu} \phi \partial_{\mu} \phi - \frac{1}{2}m^2 \phi^2$ where $\phi \equiv \phi(x)$ is a complex scalar field.
We then try to determine the equation of motion by using that the variation of action must vanish. The author then introduce a variation $\delta \phi$ and quickly writes:
$$0 = \delta s = \int d^4x\ \left[-\frac{1}{2} \partial ^{\mu} \delta \phi \partial_{\mu} \phi -\frac{1}{2} \partial ^{\mu} \phi \partial_{\mu} \delta\phi -m^2\phi\delta \phi\right]$$
So my question is simply, what is going on here? How do you obtain the expression in the brackets? How does it relate to $\mathcal{L}$.
For the record, the tensor notation is still new to me, so my confusion might be related to this.