The diffusion generator is . On a compact subinterval of , the coefficient is bounded, and the Itô formula up to its exit time gives
because . Increasing compact subintervals proves the local-martingale property up to . The notation at an exit endpoint is understood with its continuous endpoint extension when needed; stopping on below is always well-defined. This is the martingale property of a scale function of a one-dimensional diffusion.
For the hitting ratio there are two necessary qualifications: and almost surely. A usual scale function is strictly monotone, which ensures the first condition, but the printed hypotheses alone ensure neither. Under these conditions, is a bounded local martingale and hence a uniformly integrable martingale. The optional stopping theorem gives
Continuity prevents simultaneous hitting of distinct endpoints, and almost sure exit makes these two probabilities sum to one. Solving yields the boundary hitting probability from a diffusion scale function
The hypotheses for a diffusion scale hitting formula cannot be omitted here. Take , drift , and . All printed coefficient and differential conditions hold, but neither endpoint is ever reached, so the left side is zero whereas the displayed ratio is strictly positive. A constant is another allowed solution of the printed differential equation and makes its denominator zero. In general the bounded stopped martingale has a limit , and optional stopping instead gives
The following parts have nondegenerate diffusion and strictly monotone powers, and their finite-exit properties are justified explicitly.