Let us solve the following rational inequality.
f(x)={x+1}/{x^2+x-6} le 0f(x)=x+1x2+x−6≤0
Set the numerator equal to zero, and solve for xx.
x+1=0 => x=-1x+1=0⇒x=−1
(Note: f(-1)=0f(−1)=0)
Set the denominator equal to zero, and solve for xx.
x^2+x-6=(x+3)(x-2)=0 => x=-3,2x2+x−6=(x+3)(x−2)=0⇒x=−3,2
(Note: f(-3)f(−3) and f(2)f(2) are undefined.)
Using x=-3,-1,2x=−3,−1,2 above to split the number line into open intervals:
(-infty,-3), (-3,-1),(-1,2)(−∞,−3),(−3,−1),(−1,2), and (2,infty)(2,∞)
Using sample numbers x=-4,-2,0,3x=−4,−2,0,3 for each interval above, respectively, we can determine the sign of (LHS).
f(-4)=-2<0 => f(x)<0f(−4)=−2<0⇒f(x)<0 on (-infty,-3)(−∞,−3)
f(-2)=1/4>0 => f(x)>0f(−2)=14>0⇒f(x)>0 on (-3,-1)(−3,−1)
f(0)=-1/6<0 => f(x)<0f(0)=−16<0⇒f(x)<0 on (-1,2)(−1,2)
f(3)=2/3>0 => f(x)>0f(3)=23>0⇒f(x)>0 on (2,infty)(2,∞)
Hence, f(x) le 0f(x)≤0 on (-infty,-3)cup[-1,2)(−∞,−3)∪[−1,2).
(Note: -1−1 is included since f(-1)=0f(−1)=0.)
The graph of y=f(x)y=f(x) looks like:
I hope that this was helpful.