Application of the Riccati Equation to Solve Adsorption Problems