While working on inequalities in an assignment, I happen to patterns and shortcuts for solving a handful of inequalities, taking the example $x^2-\left| 3x+2 \right|\le 8x$, it's solutions is $I=\left[ \frac{1}{2}(11-\sqrt{129}),\frac{1}{2}(11+\sqrt{129}) \right]$. First thing I notice is that the endpoints are equal to the zeroes of $x^2-\left| 3x+2 \right|= 8x.$ Other examples like $\frac{1}{3}x^{3}\lt 2x+1 $ also hold true, I hypothesize that there must be an implication of some sort where
If $f(x)=ax+b,$ where $a,b \in \mathbb{R^{+}}$ and $g(x) \neq f(x)+c$, where $c\in\mathbb{R}$, then the endpoints of $I$, the solution of the inequalities $f(x)\le g(x),f(x)\lt g(x),f(x)\ge g(x),f(x)\gt g(x)$ are the roots of $f(x)-g(x)$ greater than $0$.
Second thing is the relation between the solutions of $f(x)\le g(x)$ and $f(x)\gt g(x)$. Using the same examples , the solution of $x^2-\left| 3x+2 \right|\gt 8x$ is $I'=\left]-\infty ,\frac{1}{2}(11-\sqrt{129}) \right[\cup \left] \frac{1}{2}(11+\sqrt{129}) ,+\infty \right[$ . Which is exactly $I^{C}$, the complementary of $I$ to $\mathbb{R}$.By using other examples as evidence led me to believe that the following is true.
Let $I$ be the solution of $f(x)\le g(x),$ then the solution of $f(x)\gt g(x)$ is $I^{C}$.
My issue with this is that I am assuming all of these based on intuition, I would like help on how to prove the 2 statements if they are true or false. Help is appreciated! :)