Consider a functional $F[y]$ that takes a function $y$ and returns a real value. In the calculus of variations we seek a function $y$ that maximizes (or minimizes) a functional $F[y]$.
We could write a derivative $\text dy/\text dx$ by
$$ y(x+\epsilon)=y(x)+\frac{\text dy}{\text dx}\epsilon+O(\epsilon^2) $$
for small $\epsilon>0$. Similarly, for a function of several variables $y(x_1,\cdots,x_D)$, the corresponding partial derivatives are defined by
$$ y(x_1+\epsilon_1,\cdots,x_D+\epsilon_D)=y(x_1,\cdots,x_D)+\sum_{i=1}^D\frac{\partial y}{\partial x_i}\epsilon_i+O(|\bm\epsilon|^2) $$
,with $\bm\epsilon=(\epsilon_1,\cdots,\epsilon_D)$.
In this way we could define a derivative of a functional $F[y]$ by
$$ F[y(x)+\epsilon\eta(x)]=F[y(x)]+\epsilon\int\frac{\delta F}{\delta y(x)}\eta(x)\ \text dx+O(\epsilon^2) $$
,for any smooth function $\eta(x)$ with vanishing on the boundary of the domain of integral. In the evaluation, we could find the $y$ which has requirement $\delta F/\delta y(x)=0$.
Consider a functional that is defined by an integral over a function $G(y,y^{\prime},x)$ that depends on both $y(x)$ and its derivative $y^{\prime}(x)$ as well as having a direct dependence on $x$
$$ F[y]=\int G(y(x),y^{\prime}(x),x)\ \text dx $$
where the value of $y(x)$ is assumed to be fixed at the boundary of the region of integration (which might be at infinity). If we now consider variations in the function $y(x)$, we obtain
$$ \begin{aligned} F[y(x)+\epsilon\eta(x)]&=F[y(x)]+\epsilon\int\left\{\frac{\partial G}{\partial y}\eta(x)+\frac{\partial G}{\partial y^{\prime}}\eta^{\prime}(x)\right\}\ \text dx+O(\epsilon^2)\\&= F[y(x)]+\epsilon\int\left\{\frac{\partial G}{\partial y}-\frac{\text d}{\text dx}\left(\frac{\partial G}{\partial y^{\prime}}\right)\right\}\eta(x)\ \text dx+O(\epsilon^2) \end{aligned} $$
by integrating the second term by parts and making use of the fact that $\eta(x)$ vanishes at the boundary of the integral.
Requiring that the functional derivative vanishes then gives
$$ \frac{\partial G}{\partial y}-\frac{\text d}{\text dx}\left(\frac{\partial G}{\partial y^{\prime}}\right)=0 $$
which are known as the Euler-Lagrange equations.