[step:Express the rectangular quotient through $\partial_{x_j}\partial_{x_i}f$]Define the rectangular second-difference map $D:(( -\delta,\delta)\setminus\{0\})\times(( -\delta,\delta)\setminus\{0\})\to\mathbb{R}$ by
\begin{align*}
D(s,t)=f(a+s e_i+t e_j)-f(a+s e_i)-f(a+t e_j)+f(a).
\end{align*}
Define the one-variable function $F_{s,t}:[0,s]\to\mathbb{R}$ if $s>0$, and $F_{s,t}:[s,0]\to\mathbb{R}$ if $s<0$, by
\begin{align*}
F_{s,t}(r)=f(a+r e_i+t e_j)-f(a+r e_i).
\end{align*}
The function $F_{s,t}$ is continuous on its closed interval and differentiable on its interior, because the partial derivative $\partial_{x_i}f$ exists at every point of the rectangle. Its derivative is
\begin{align*}
F_{s,t}'(r)=\partial_{x_i}f(a+r e_i+t e_j)-\partial_{x_i}f(a+r e_i).
\end{align*}
By the one-variable mean value theorem applied to $F_{s,t}$, there exists a real number $\theta_{s,t}$ strictly between $0$ and $1$ such that
\begin{align*}
D(s,t)=s\bigl(\partial_{x_i}f(a+\theta_{s,t}s e_i+t e_j)-\partial_{x_i}f(a+\theta_{s,t}s e_i)\bigr).
\end{align*}
Now define the one-variable function $G_{s,t}:[0,t]\to\mathbb{R}$ if $t>0$, and $G_{s,t}:[t,0]\to\mathbb{R}$ if $t<0$, by
\begin{align*}
G_{s,t}(q)=\partial_{x_i}f(a+\theta_{s,t}s e_i+q e_j).
\end{align*}
The function $G_{s,t}$ is continuous on its closed interval and differentiable on its interior, because the iterated partial derivative $\partial_{x_j}(\partial_{x_i}f)$ exists at every point of the rectangle. Its derivative is
\begin{align*}
G_{s,t}'(q)=\partial_{x_j}\partial_{x_i}f(a+\theta_{s,t}s e_i+q e_j).
\end{align*}
Applying the one-variable mean value theorem to $G_{s,t}$ gives a real number $\eta_{s,t}$ strictly between $0$ and $1$ such that
\begin{align*}
\partial_{x_i}f(a+\theta_{s,t}s e_i+t e_j)-\partial_{x_i}f(a+\theta_{s,t}s e_i)=t\,\partial_{x_j}\partial_{x_i}f(a+\theta_{s,t}s e_i+\eta_{s,t}t e_j).
\end{align*}
Therefore
\begin{align*}
\frac{D(s,t)}{st}=\partial_{x_j}\partial_{x_i}f(a+\theta_{s,t}s e_i+\eta_{s,t}t e_j).
\end{align*}[/step]