Remove the first spatial derivative by the Dirichlet gauge transform for constant drift:
The nonzero exponential factor preserves the zero side and top values; it also preserves on the bottom. A separated product has the spatial eigenvalue problems
The nontrivial solutions are for and for . There is no zero spatial mode in either direction. The temporal equation gives , where
Therefore the mixed-boundary drift-diffusion eigenmodes on a rectangle give
At the temporal factors are one, giving the required expansion. The sine and mixed-end cosine bases are complete and orthogonal for . In particular,
The factor four comes from the product of the two squared basis norms, each .