Clearly when we have or or . Since the function changes sign at the x-intercepts, checking the function value at values of x in between the x-intercepts will tell us the intervals where the function is positive.

, so when the function is negative.

, so when , the function is positive.

, so when , the function is negative.

, so when , the function is positive.

So this inequality is satisfied when