As you say, the zeroes are -2.5, 1, and 7. Suppose x< -2.5. Then each of the factors is negative. Since there are 4 factors, counting the '-2', there product, and the function value, is positive. Now take x between -2.5 and 1. The single factor (2x+ 5)= -2(x- 2.5) changes sign so there are now three negative factors: the function value is negative between -2.5 and 1. Take x between 1 and 7. Now the x-1 factor changes sign to positive and there are now 2 negative factors: the function value is positive between 1 and 7. Finally, if x> 7, all factors except the '-2' are positive: for x> 7, the function value is negative.