I found this question in a book.
Find the value range of $p$ if interval $(1,2)$ lies between the roots of $$2^x + 2^{2-x} + p = 0.$$
The answer given is $(-\infty,-5)$. I tried solving the problem by taking the $\log$ with base $2$ of both sides, giving $$x+ 2-x + (\log_2 p)= 0$$ or $$\log_2 p = -2$$ implying $p=1/4$. However, this is not the right answer.
How should I approach this problem?
Let $z=2^x$ then the equation becomes $$Q(z):=z^2 +pz+4=0.$$ Hence the interval $(1,2)$ lies between the roots of the original equation in $x$ if and only if the interval $(2^1,2^2)=(2,4)$ lies between the roots of the second degree polynomial $Q(z)$. Since $Q$ is convex (the coefficient of $z^2$ is positive), this happens if and only if $$Q(2)=4+2p+4<0\quad\text{and}\quad Q(4)=16+4p+4<0.$$ That is $p<\min(-4,-5)=-5$.