We add sum_positive_derivatives that calculates the sum whenever there is an increasing value in the sequence