If I fix $x \in M$ and $y \in M_0$, how do I show that the mapping $g: \mathbb{R} \rightarrow \mathbb{R}$ given by
$ g(s) := I[x+sy], \hspace{20pt} s \in \mathbb{R}$
is differentiable and what is then the derivative $g'(0)$ ?
I have the following setup:
Let U: $\mathbb{R}^3$ $\rightarrow\mathbb{R}$ be continuously differentiable, $x_1, x_2 \in \mathbb{R}^3 , \left[t_2,t_3\right]$ an interval with $t_2>t_1$ and
$M:= \left[x \in C^2 (\left[t_1,t_2\right], \mathbb{R}^3) | x(t_1)=x_1, x(t_2)=x_2 \right] $
$M_0:= \left[y \in C^2 (\left[t_1,t_2\right], \mathbb{R}^3) | y(t_1)=y(t_2)=0 \right] $
For $x \in M$ we define $I : M \rightarrow \mathbb{R}$ by
$ I\left[x\right] := \int_{t_1}^{t_2}\frac{1}{2}|\dot{x}|^2-U((x(t)) dt $