Expansion of the Master Equation for One‐Dimensional Random Walks with Boundary