I am solving the following inequality, please look at it and tell me whether am I correct or not. This is an example in Howard Anton's book and I solved it on my own as given below, but the book has solved it differently! I want to confirm that my solution is also valid.


For $ab$ to be positive either
Here, $a=x-5$ and $b=x+2$
They are both positive if $x>5$. They are both negative if $x<-2$. Either of these will solve the problem