Solve the following inequality. $$|x^2-5x+2|\leq 4.$$
I know how to interpret $|x-a|$ as the distance between $x$ and $a$ along the $x$-axis, but how does one interpret an absolute value of $|ax^2+bx+c|$?
For the inequality $|x^2-5x+2|\leq 4$ I factored the LHS and got $$\left|\left(x+\frac{\sqrt{7}-5}{2}\right)\left(x+\frac{5-\sqrt{7}}{2}\right)\right|\leq 4.$$
I don't know how to case-divide the LHS.
The absolute value is defined as $$|x|=\begin{cases} \hphantom{-}x,& x\geq 0\\ -x, & x < 0\end{cases}$$ so $$|x|\leq a$$ can be done by casework:
$x = |x| \leq a$, i.e. $0\leq x\leq a,$
$-x = |x| \leq a$, i.e. $-a\leq x< 0.$
Combined it gives us $$|x|\leq a \iff -a\leq x\leq a.$$
Now, by substitution we get $$|x^2-5x+2|\leq 4 \iff -4\leq x^2-5x+2 \leq 4$$ which boils down to solving two quadratic inequalities: $x^2-5x+6\geq 0$ and $x^2-5x-2\leq 0$ and taking intersection.