[step:Compute the Dirichlet index jump at each conjugate instant]Fix a conjugate time $c_i$. Choose numbers $r_i,s_i$ such that
\begin{align*}
a<r_i<c_i<s_i<b
\end{align*}
and such that no conjugate time lies in $(r_i,s_i]$ except $c_i$. Define
\begin{align*}
K_i
=
\{J:\,[a,c_i]\to TM \text{ Jacobi field along }\gamma|_{[a,c_i]}:J(a)=0,\ J(c_i)=0\}.
\end{align*}
Then $\dim K_i=m(c_i)$.
For every nonconjugate $t\in(r_i,s_i]\setminus\{c_i\}$, define the Dirichlet variation space
\begin{align*}
\mathcal V_0(t)
=
\{V \text{ piecewise smooth along }\gamma|_{[a,t]}:V(a)=V(t)=0\}
\end{align*}
and let
\begin{align*}
\iota(t)=\operatorname{ind}\bigl(I_{\gamma|_{[a,t]}}\big|_{\mathcal V_0(t)}\bigr).
\end{align*}
We now state precisely the local jump result being used. After parallel-trivialising $TM$ along $\gamma$ and rescaling each interval $[a,t]$ linearly to $[a,c_i]$, the Dirichlet index forms define a $C^1$ family of bounded symmetric Fredholm quadratic forms
\begin{align*}
Q_t:H^1_0([a,c_i];T_{\gamma(a)}M)&\to\mathbb R
\end{align*}
for $t\in(r_i,s_i]$ near $c_i$, where $Q_t$ represents $I_{\gamma|_{[a,t]}}$ under this transport. The [Dirichlet Index-Jump Lemma](/page/Dirichlet%20Index-Jump%20Lemma) says that if $Q_t$ is non-degenerate for $t\neq c_i$, has kernel $K_i$ at $t=c_i$, and has non-degenerate crossing form
\begin{align*}
\Gamma_i(J)=\left.\frac{d}{dt}\right|_{t=c_i}Q_t(\tilde J_t,\tilde J_t)
\end{align*}
for any $C^1$ extension $t\mapsto \tilde J_t$ with $\tilde J_{c_i}=J$, then
\begin{align*}
\iota(s_i)-\iota(r_i)=-\operatorname{sgn}(\Gamma_i),
\end{align*}
where $\operatorname{sgn}(\Gamma_i)$ is the number of positive eigenvalues minus the number of negative eigenvalues of $\Gamma_i$ on $K_i$.
Its hypotheses are satisfied on $(r_i,s_i]$: the Jacobi operator is a smooth formally self-adjoint second-order operator along $\gamma$, $r_i$ and $s_i$ are nonconjugate to $a$, the only degeneracy of the Dirichlet problem in $(r_i,s_i]$ occurs at $c_i$, and the degeneracy space is $K_i$. Green's identity for the Jacobi operator gives the crossing form
\begin{align*}
\Gamma_i:K_i&\to\mathbb R,\\
J&\mapsto -g_{\gamma(c_i)}(\nabla_tJ(c_i),\nabla_tJ(c_i)).
\end{align*}
If $J\in K_i$ and $\Gamma_i(J)=0$, then $\nabla_tJ(c_i)=0$. Together with $J(c_i)=0$, uniqueness for the Jacobi equation with terminal data gives $J=0$. Hence $\Gamma_i$ is negative definite on $K_i$, so $\operatorname{sgn}(\Gamma_i)=-\dim K_i$. The jump formula therefore gives
\begin{align*}
\iota(s_i)-\iota(r_i)=\dim K_i=m(c_i).
\end{align*}
Equivalently, as the right endpoint passes through $c_i$, the endpoint-zero index form gains exactly $m(c_i)$ negative directions and no other directions change sign.[/step]