I am working on a physics problem, but my issue is math-related. My professor skips some steps based on 'intuition' that I lack:
In a conservative system, to find out the nature of equilibrium points, we are looking at the potential energy functional, in general form given by $P[f(s)] = \int F(f(s)) ds$. (The problem is about deflection of beams, $s$ being the coordinate of the deflected elastic line.)
To me, it makes sense to perturb the function $f(s)$ to $f(s)+\epsilon g(s)$, $\epsilon$ being a small number. Then, $P[f + \epsilon g]$ is an ordinary function of $\epsilon$, so Taylor expansion works:
$$ \Delta P = P[f+\epsilon g] - P[f] = \epsilon \frac{dP[f+\epsilon g]}{d\epsilon}\big|_{\epsilon=0} + \frac{1}{2}\epsilon^2 \frac{d^2P[f+\epsilon g]}{d\epsilon^2}\big|_{\epsilon=0} +O(\epsilon^3). $$
Equilibrium requires that the first term on the RHS is zero, and for a stable equilibrium, the potential energy should be minimal, so it is necessary that $$ \frac{1}{2}\epsilon^2 \frac{d^2P[f+\epsilon g]}{d\epsilon^2}\big|_{\epsilon=0} \geq 0 \qquad (1) $$ for all $g$.
My problem arises when my professor says the above is more formal and involved, and that it would suffice to just collect powers of $f(s)$ and write the functional as $$ P[f(s)] = P_0 + P_1 + P_2 + \cdots, $$ where $P_i$ has $i$th-order terms in $f$. Then, apparently, equilibrium dictates that $P_1=0$ and a minimum requires that $$ P_2 \geq 0. \qquad (2) $$
Could anyone please show me how to go from (1) to (2)? I have tried a second Taylor expansion, now in $F$, but it confuses me, especially since it is not a variable but a function.