In several (good) textbooks in calculus of variations one important step when dealing with the isoperimetric problem seems not to be properly addressed. The problem is as follows: let $G$ be a smooth enough function in three variables and let $$ K[y]=\int_a^b G(x,y,y')\,dx $$ be the corresponding functional on $C^1([a,b]).$ Suppose that $z \in C^1([a,b])$ is not a solution to Euler's equation for $K.$
Given distinct points $x_1,x_2 \in (a,b)$ and any positive $\varepsilon_1,\varepsilon_2 >0,$ we wish to have a pair of functions $h_1,h_2 \in C^1([a,b])$ such that
1) each $h_k$ is of constant sign on an open subinterval $(a_k,b_k)$ of $[a,b]$ such that $x_k \in (a_k,b_k),$ and vanishes outside $(a_k,b_k);$ the intervals $(a_1,b_1)$ and $(a_2,b_2)$ are to be disjoint;
2) $b_1-a_1 < \varepsilon_1$ and $|h_1(x)| < \varepsilon_2$ on $(a_1,b_1);$
3) $K[z]=K[z+h_1+h_2].$
Intuitively, such $h_1,h_2$ must exist (continuity, etc.), but at the moment I fail to see how to prove this simply and neatly (the books I've mentioned either take existence of $h_1,h_2$ in question for granted, or contain some vague remarks on continuity).