I'm confused about the evaluation of the functional derivative of Equation 1.12, $$J[f] = \int [f(y)]^p \phi(y) dy$$ on page 13 of Quantum Field Theory for the Gifted Amateur in Chapter 1.
Here are the steps shown in the text: $$\begin{align} \frac{\delta J[f]}{\delta f(x)} &= \lim \limits_{\epsilon \to 0} \frac{1}{\epsilon} \left[\int [f(y) + \epsilon \delta(y - x)]^p\phi(y) dy - \int [f(y)]^p \phi(y) dy \right] \\ &= p[f(x)]^{p-1}\phi(x) \end{align}\tag{1.12}$$
How do they get from the first line to the second?