thats exactly what i was doing. But i sort of tested it out with a simple quadratic like a(a+1)>0.
normally, you would get a>0 and a<-1, but by doing it the way you have up there ^, you get a>0 and a>-1???
You don't normally get a>0 and a<-1 -- you get a>0 OR a<-1. You need to make the distinction between 'and' and 'or.'
The reason you arrive at this
tan(x) > 0 and tan(x) + 1 > 0
OR
tan(x) < 0 and tan(x) + 1 < 0
is because for a product of two numbers to be positive, they have to be the same sign.
So you need tan(x) > 0 and tan(x) + 1 > 0 to be true simultaneously, or tan(x) < 0 and tan(x) + 1 < 0 to be true simultaneously.
For the case where tan(x) > 0 and tan(x) + 1 > 0, this is equivalent to tan(x) > 0 and tan(x) > -1, which simplifies to tan(x) > 0 (in other words we need tan(x) to be both greater than 0 and -1, which can only happen if it's greater than 0)
For the case where tan(x) < 0 and tan(x) + 1 < 0, this is equivalent to tan(x) < 0 and tan(x) < -1, and this simplifies to tan(x) < -1 (same logic as before)
Combining the two cases, we get tan(x) < -1 or tan(x) > 0