I have troubles understanding how to derive the formula for viscosity in terms of the mean free path $$\eta\sim \rho \lambda \bar v$$ where $\bar v$ is the average molecular velocity of the gas, $\lambda$ is the mean free path and $\rho$ is the density. I was following the derivation on the wikipedia article as well as a very similar one in page 8 here.
The derivation considers a moving slab in a liquid/gas, which induces a gradient of the velocity $u_x$ between the moving slab and a stationary one. The first relation I have problems with is $\langle u_x \rangle=\frac{1}{2}\lambda du_x/dy$, where $\langle u_x \rangle$ is the average velocity in the $x$ direction (parallel with the direction of the moving slab) of particle crossing a control surface and $\lambda$ is the mean free path (the wikipedia article strangely does not have the factor of 2). This is explained by (see the second link) assuming that there are particles crossing the surface from all distances from $0$ to $\lambda$ (which makes sense). Then it is explained that the velocity changes linearly with distance (which makes sense, if the particles are to hit the control surface at the same time, particles further away must move faster). This would give $\langle u_x\rangle\sim\frac{1}{\lambda}\int_0^\lambda s ds=\frac{1}{2}\lambda$ (the first term is just the distribution of particles from 0 to $\lambda$ and the integrand is the velocity dependence).
However, the overall proprtionality factor is $du_x/dy$ and I have no idea how to get that (I also do not understand the remaining parts of the derivation either so help on the full derivation would be very much appreciated)