A method of analyzing the scaling violation of inclusive spectra in hard processes