Is there a quick way of determining where a polynomial is positive/negative without actually plugging values?
Say you have a polynomial
$$1) f(x)=(x+a)(x+b)$$
or
$$2) f(x)=(x-a)(-x+b)(x-c)$$
How can one quickly know whether function $f(x)$ is positive or negative without plugging in random interval values between the roots?
Looking at $(x+a)(x+b)$, if $x$ is "large" then the polynomial is positive. Now imagine $x$ decreasing. Provided $a\neq b$, once $x$ crosses the larger of $-a, -b$, $f(x)$ will change sign. Once $x$ crosses the other one, it will change sign again.
This strategy needs to be modified if any of the roots are repeated. For example, $f(x)=(x-2)^5(x-3)^4$. This is positive for "large" $x$. Crossing below $3$ the sign does not change, because $4$ is even, so $f(x)$ is positive in $(2,3)$. Crossing below $2$ the sign does change, because $5$ is odd, so $f(x)$ is negative on $(-\infty, 2)$.