Determination of the optimum expansion order