Analytical derivation of the scaling law for the inverse participation ratio in quasi-one-dimensional disordered systems