where $H_0,H_1$ are sufficiently differentiable along the extremal for the derivatives below to exist. Let $\varphi(t)=H_1(x^*(t),p(t))$ be the switching function. For a function $G(x,p)$, write $\frac{dG}{dt}$ for the total derivative of $G(x^*(t),p(t))$ along the Hamiltonian extremal, using the state and adjoint equations and treating the control value on the arc as the scalar variable $u(t)$. Suppose the extremal has a singular arc of order $r\ge 1$ on $I$: for $k<2r$ the expression $\frac{d^k\varphi}{dt^k}$ is independent of $u$, while $\frac{d^{2r}\varphi}{dt^{2r}}$ depends on $u$ with nonzero partial derivative with respect to the scalar control. A necessary condition for a normal minimizing singular extremal is