Positive fraction: The fraction $\frac{a}{b}$ is positive if its numerator and denominator have the same sign, i.e. positive together or negative together. This means that $a$ and $b$ are positive, or $a$ and $b$ are negative.
Negative fraction: The fraction $\frac{a}{b}$ is negative if the numerator and denominator have opposite signs. This means that $a$ is positive and $b$ is negative or $a$ is negative and $b$ is positive.
The first-order rational functions
In this paragraph, we will give you a unified and simple technique to solve rational inequalities of the for $$ \frac{f(x)}{g(x)}\ge 0,$$ where $f(x)$ and $g(x)$ are afine functions of the forme $ax+b$.
Example I: Solve the rational inequality
$$\frac{x-2}{x+1}\ge 0,$$
Proof: As the fraction is positive then we have $x-2\ge 0$ and $x+1>0$ or $x-2\le 0$ and $x+1<0$. This means that $$x\ge 0\quad\text{and}\quad x>-1,$$
or $$ x\le 2\quad\text{and}\quad x<-1.$$
It follows that $x\in [2,+\infty)$ or $x\in (-\infty,-1)$. Thus the set $\mathcal{S}$ of solutions of the rational inequality is $$\mathcal{S}=[2,+\infty)\cup (-\infty,1).$$
Example II: Determine the solution of the following rational inequality $$\frac{3x-2}{x+1}\ge 2.$$ This problem can also be reformulated as $$ \frac{3x-2}{x+1}-2\ge 0.$$
By calculating this difference, we only need to solve the following rational inequality $$\frac{x-3}{x+1}\ge 0.$$ Using the same arguments as in Example I, we deduce that the set of solution is $$ \mathcal{S}=[3,+\infty)\cup (-\infty,-1).$$
Rational inequalities with quadratic functions
Determine the set of solutions $\mathcal{S}$ of the following rational inequality $$ \frac{3x^2+5x+2}{x^2+2x}\ge 0.$$ The same principle can also be applied to these types of inequalities. As the solutions depend on the sign of the quadratic functions $3x^2+5x+2$ and $x^2+2x$, then the first work to do is to determine the signs of these functions.
Using the chapter of quadratic equations, we can write $$ 3x^2+5x+2=(x+1)(x+\frac{2}{3})$$ and $$ x^2+2x=x(x+2).$$ We deduce that $3x^2+5x+2$ is positive if $$x\in (-\infty,-1]\cup [-\frac{2}{3},+\infty),$$ and it is negative if $$x\in [-1,-\frac{2}{3}].$$ Similarly, $x^2+2x$ is strictly positive if $$x\in (-\infty,-2)\cup (0,+\infty),$$ and it is negative if $x\in (-2,0)$. Now $x$ is a solution of the rational inequality if $$x\in (-\infty,-2)\cup [-1,-\frac{2}{3}].$$
Note: The same technique can also be applied for rational inequalities defined by the polynomial functions with higher degrees.