Text this: Generalized solution of boundary value problem with an inhomogeneous boundary condition