Find the values of $a$ for which $x^2-ax+2=0$ has one root in $[0,1]$ and other root in $[1,\infty]$.
The twoo rots are $$\frac{a\pm\sqrt{a^2-8}}{2}$$
The smaller root should be less than $1$.
So $$a-\sqrt{a^2-8}\le 2$$ $$a-2\le\sqrt{a^2-8}$$ $$a^2+4-4a\le a^2-8$$ $$a\ge 3$$
How will I find the upper bound for $a$? And what is the general approach to solve such problems where the roots are constrained between two values?
First the two roots need to exist, then $$a^2>8.$$
Then the two conditions are
$$a-\sqrt{a^2-8}\le2,\\a+\sqrt{a^2-8}\ge2,$$ or $$a-2,2-a\le\sqrt{a^2-8}.$$
This is equivalent to
$$(a-2)^2\le a^2-8,\\12\le 4a.$$
This condition is stronger than the first one.