For the Brownian first-passage time to a line, set and choose , so . The Exponential martingale for Brownian motion , stopped at , obeys
The optional stopping theorem at the bounded time gives expectation one. The contribution from is at most , and tends to zero. Taking therefore yields
Letting shows that the hitting probability is one for and for ; in the latter case the hitting-time law has mass at infinity.
To derive the finite-time linear-boundary Brownian first-passage distribution, put . This is Brownian motion with drift , and the event is . For driftless Brownian motion, the Brownian reflection principle says that the joint endpoint density on this event equals the normal density when and the reflected density when , where . The constant-drift change of measure weights these densities by . Thus the crossing probability is
Completing the square gives respectively and . Substituting proves
The density weighting follows directly from the Exponential martingale for Brownian motion, or the Girsanov theorem, on the fixed finite horizon; it does not require eventual hitting.
For the barrier digital call, under the risk-neutral measure in the Black-Scholes model,
Assume , put and . The upper stock barrier is reached exactly when reaches . The payment is at the fixed maturity , not at the random hitting time. Hence its price is
If , use the deterministic path instead: the value is if that path reaches by , and zero otherwise. The nondegenerate formula concerns the usual positive-volatility model.