Question : Let $p,q,r,s \in \mathbb R$ such that $pr=2(q+s)$. Show that either $f(x)=x^2+px+q=0$ or $g(x)=x^2+rx+s=0$ has real roots .
My method :
To the contrary suppose that both $f(x)$ and $g(x)$ has no real roots.
Now observe that $f(x)+g(x)=2x^2+(p+r)x+(q+s)=0$
Since $pr=2(q+s)$ , $f(x)+g(x)=2x^2+(p+r)x+\frac{pr}{2}=0$
$\Rightarrow f(x)+g(x)=x^2+(\frac{p}{2}+\frac{r}{2})x+\frac{p}{2}\cdot \frac{r}{2}=0$
$$\Rightarrow f(x)+g(x)=\left(x-\frac{p}{2}\right)\left(x-\frac{r}{2}\right)=0$$
So $f(x)+g(x)$ has two distinct real roots.
Thus $f(x)+g(x)<0$ for $x \in (\frac{p}{2},\frac{r}{2})$ if $r>p$.
But this is a contradiction as $f(x)>0$ and $g(x)>0$ for all $x \in \mathbb R $.
Thus either $f(x)=x^2+px+q=0$ or $g(x)=x^2+rx+s=0$ has real roots .
Am I correct ?
Can this be solved directly without using contradiction ?
You are correct.
Another approach, still using contradiction, is note that, if none of the polynomials have real roots, then $p^2-4q<0$ and $r^2-4s<0$. Thus $0\le p^2<4q$ and $0\le r^2<4s$. Therefore $p^2r^2<16qs$, and, by hypothesis, $4(q+s)^2<16qs$, or $\frac{q+s}{2}<\sqrt{qs}$, which is a contradiction for the MG-MA (note that $0\le p^2<4q$ implies $q>0$. Also $s>0$)