I was sitting with my friend in a park, when he thought of and asked for solving this inequality:
$$ \frac{7x+12}{x} \geq 3 $$
I was confident enough that I could solve this example as continued:
$$ 7x + 12 \geq 3x $$
$$ 4x \geq -12 $$
$$ x \geq -3 $$
He simply told me to put $x = -4$, and in the equation, I applied:
$$ \frac{-28+12}{-4} $$
It got $\frac{-16}{-4}$ which is 4, so it is false that $x \geq -3$. Where I am doing a mistake, and what would be the correct solution.
The problem is just when you send the variable "$x$" to the right hand side of the inequality because you are imposing (implicitly) that $x>0$ so as not to alter the direction of the inequality given by $\geqslant$.
If we want to avoid this, we can rewrite from the beginning $$\frac{7x+12}{x}\geqslant 3\iff \frac{7x+12}{x}-3\geqslant 0\iff \frac{4(x+3)}{x}\geqslant 0.$$
Now use the following fact:
$$\forall (x,y)\in \mathbf{R}\times\mathbf{R}^*: \frac{x}{y}\geqslant 0\iff [(x\geqslant 0)\wedge (y>0)]\vee [(x\leqslant 0)\wedge(y<0)]$$ Translation is:
Then $\frac{4(x+3)}{x}\geqslant 0$ iff either:
$4(x+3)\geqslant 0$ and $x>0$: it has the interval solution given bythe intersection of intervals of solution as $]0,+\infty[$.
$4(x+3)\leqslant 0$ and $x<0$: it has interval solution given by the intersection of intervals of solution as $]-\infty,-3]$.
Therefore, the set solution for $\frac{7x+12}{x}\geqslant 3$ is the union of intervals $$]-\infty,-3]\cup ]0,+\infty[.$$