The first of the Gaussian drift primitives, , is an even function; the second, , is an odd function. Their derivatives follow by the fundamental theorem of calculus. In particular is the Dawson function, which behaves as . Since the error function tends to , the derivative of behaves as at either end. Integration therefore gives
Also on the left and on the right. The two inner overlaps are consequently
Expressing the outer expansions in requires the left constant and the right constant . Equating those constants gives the stated . This is exactly how a logarithmic overlap creates a switchback term: . Adding the outer solutions and removing these overlaps leaves the displayed additive composite expansion.
An integrating factor explains the second hint and the first-order inner calculation. For
multiplication by gives . The term already produces , and integrating the remaining terms twice gives , in terms of the Gaussian drift primitives. The homogeneous solutions are a constant and the error function. Hence
For the piecewise forcing in the inner problem, replaces and provides the continuously matched particular solution for . The coefficients and then account for the forcing.
The solution and its first derivative are continuous at : a jump would create a Dirac delta distribution or its derivative, absent from the forcing. Put , and . The outer expansions, fixed by the respective endpoint boundary conditions, are
Balancing diffusion and advection near gives the interior layer at a simple zero of advection with inner variable . The leading inner expansion solves , so matching to and gives
For the next term define the Gaussian drift primitives
Writing for the Heaviside step function, let . Its value and first derivative match at zero and . Thus
where the logarithmic overlaps fix
Here are the constants in the supplied large-positive- limits of . The terms are essential switchback terms; discarding them would not give accuracy through .
Subtracting the common overlap from the inner expansion and outer expansions gives the additive composite expansion
The standard overlap subtraction leaves . Replacing by changes the value only by uniformly and gives a composite with continuous first derivative. The last term restores the endpoint values through the retained order. When , and the order-one error-function jump disappears. An interior adjustment remains to accommodate the leading outer derivative mismatch, together with logarithmic matching when .
Reversing the diffusion sign changes the leading inner equation to . Its nonconstant solution grows like the integral of , so bounded matching forces the same leading value on both sides. The bulk is on the left and on the right; both endpoint conditions are instead supplied by decaying endpoint layers for reversed diffusion, of width . A weaker width- interior adjustment matches derivatives and selects . Indeed, its first-order equation has a non-growing solution only if
The leading structure is consequently
with the smaller interior correction understood. Unlike the positive-diffusion case, the endpoint values are not transported into two distinct order-one inner limits.