An analytic solution of the inhomogenous coupled diffusion problem