Real number $k$ satisfies $x^2+px+q=0$ and $l$ satisfies $x^2-px-q=0$. Prove that between $k$ and $l$ there is a solution to the equation $x^2-2px-2q=0$.
I started the solution this way: $$ k = \frac{-p\pm\sqrt{p^2-4q}}{2} $$ $$ l = \frac{p\pm\sqrt{p^2+4q}}{2} $$ $$ x = p\pm\sqrt{p^2+2q} $$ But I failed to compare these solutions. What should be done next?
Let $k^2+pk+q=0$, $l^2-pl-q=0$ and $h(x)=x^2-2px-2q$.
Then $$ h(k)=k^2-2pk-2q =-pk-q-2pk-2q=-3pk-3q=-3(pk+q)=3k^2 $$ and $$ h(l)=l^2-2pl-2q=pl+q-2pl-2q=-pl-q=-l^2 $$
So we have $h(k)>0$ and $h(l)<0.$ So by IVT $h(x)=0$ has one root between $k$ and $l$.