Second Lemma of variation Calculus
If $u(x)$ is a differentiable function for $a\leq x \leq b$ and $$ \int_{a}^{b} u(x) \cdot \phi'(x)\: dx = 0$$ for all infinitely often differentiable functions $\phi(x)$ then $$u'(x) = 0 \quad \text{for all} \quad a\leq x \leq b \quad \text{and} \quad u(a) \cdot \phi(a) = u(b) \cdot \phi(b) = 0$$
$\textbf{Proof:}$ we use the integration by parts $$ 0 = \int_{a}^{b}u(x)\cdot\phi'(x)\:dx = u(b) \cdot \phi(b) - u(a) \cdot \phi(a) - \int_{a}^{b}u'(x)\cdot\phi(x)\:dx $$ Considering all test function $\phi(x)$ with $\phi(a) = \phi(b) = 0$ leads to the condition $u'(x) = 0$. We are free to choose test functions with arbitrary values at the end points $a$ and $b$, thus we arrive at $u(a)\cdot\phi(a) = u(b))\cdot\phi(b) = 0$
For a given function $f(x,u,u')$ we try to find $u(x)$ such that the functional $$ F(u) = \int_{a}^{b} f(x,u(x),u'(x))\:dx $$ has a critical value for the function $u$. If the functional $F$ attains its minimal value at the function $u(x)$ we conclude that $$ g(\varepsilon) = F(u + \varepsilon\phi) \geq F(u) \quad \text{for all $\varepsilon \in \mathbb{R}$ and arbitrary functions $\phi(x)$} $$ Thus the scalar function $g(\varepsilon)$ has a minimum at $\varepsilon = 0$ and thus the derivative should vanish. We require that $$ \frac{d\:g(0)}{d\varepsilon} = \frac{d}{d\varepsilon}F(u + \varepsilon\phi)\big|_{\varepsilon = 0} = 0\quad \text{for all functions} \quad \phi $$ To find the equations to be satisfied by the solution $u(x)$ we use linear approximations. For small values of $\Delta u$ and $\Delta u'$ we use a Taylor approximation to conclude \begin{align*} f(x, u + \Delta u, u' + \Delta u') &\approx f(x,u,u') + \frac{\partial f(x,u,u')}{\partial u}\Delta u + \frac{\partial f(x,u,u')}{\partial u'}\Delta u' \\ &= f(x,u,u') + f_u (x,u,u')\Delta u + f_{u'} (x,u,u')\Delta u' \\ f(x, u(x) + \varepsilon\phi(x), u'(x) + \varepsilon\phi'(x)) &= f(x,u(x),u'(x)) + \varepsilon f_u(x,u(x),u'(x))\phi(x) \\ &+ \varepsilon f_{u'}(x,u(x),u'(x))\phi'(x) + O(\varepsilon^2) \\ \end{align*} Now we examine the functional in question \begin{align*} g(0) &= F(u) = \int_{a}^{b}f(x,u(x),u'(x))\:dx \\ g(\varepsilon) &= F(u + \varepsilon\phi) = \int_{a}^{b}f(x,u(x) + \varepsilon\phi(x),u'(x) + \varepsilon\phi'(x))\:dx \\ &= \int_{a}^{b}f(x,u(x),u'(x)) + \varepsilon f_u(x,u(x),u'(x))\phi(x) + \varepsilon f_{u'}(x,u(x),u'(x))\phi'(x)\:dx \\ &= F(u) + \varepsilon \int_{a}^{b} f_u(x,u(x),u'(x))\phi(x) + f_{u'}(x,u(x),u'(x))\phi'(x)\:dx\tag{1} \end{align*} or $$ \frac{d}{d\varepsilon}F(u + \varepsilon\phi) \big|_{\epsilon = 0} = \int_{a}^{b} f_u(x,u(x),u'(x))\phi(x) + f_{u'}(x,u(x),u'(x))\phi'(x)\:dx\tag{2} $$ This integral has to vanish for all function $\phi(x)$ and we may use the Fundamental Lemma, leading to a necessary condition. An integration by parts leads to \begin{align*} 0 &= \int_{a}^{b} f_u(x,u(x),u'(x))\phi(x) + f_{u'}(x,u(x),u'(x))\phi'(x)\:dx\tag{3}\\ &= f_{u'}(x,u(x),u'(x))\phi'(x)\big|_{x = a}^b + \int_{a}^{b}\Big( f_u(x,u(x),u'(x)) - \frac{d}{dx}f_{u'}(x,u(x),u'(x))\:\Big)\: \phi(x)\:dx\tag{4} \end{align*} Since this expression has to vanish for all function $\phi(x)$ we need $$ \int_{a}^{b}f(x,u(x),u'(x))\:dx \: \text{extremal} = \left\{ \begin{array}{ll} \frac{d}{dx}f_{u'}(x,u(x),u'(x)) &= f_u(x,u(x),u'(x))\quad \quad \quad \quad \text{(5)}\\ f_{u'}(a,u(a),u'(a))\cdot\phi(a) &= 0 \quad \quad \quad \quad \quad \quad \quad \quad \quad \text{(6)}\\ f_{u'}(b,u(b),u'(b))\cdot\phi(b) &= 0 \\ \end{array} \right. $$
Here are my questions
- how can you go from (1) to (2), or what does the expression $\frac{d}{d\varepsilon}F(u + \varepsilon\phi) \big|_{\epsilon = 0}$ exactly means and how does it connect with the rest?
- how can you go from (3) to (4)
- how can you assert $\frac{d}{dx}f_{u'}(x,u(x),u'(x)) = f_u(x,u(x))$ at (5) from that proof
for the answer of each of those points, please detail your answer as much possible with step by step explanation