The N cell problem can be solved analytically by a matrix formulation. The problem of time varying inflows needs a Green's function approach. To start with lets solve the 1D time varying input via the Green's function approach...