The function on the interval is equal to the maximum of several functions of the form (where and are different, and all are positive). It is given that . Prove that the sum of the lengths of the sections on which the function increases is equal to the sum of the lengths of the sections on which the function decreases.