The Problem:
What is the value of $q$ in $x^2+6x+q=0$, if the distance between solutions is greater than 4.
The Result: $q\in(-\infty,5)$
My Solution:
$$x_{1}+x_{2}=-6\\x_{1}\cdot x_{2}=q\\|x_{1}-x_{2}|>4 $$ $$ x_{1}-x_{2} >4\hspace{0.2cm} \diagup^{2} \hspace{1cm} \lor \hspace{1cm}x_{1}-x_{2}<-4\hspace{0.2cm} \diagup^{2}\\(x_{1}+x_{2})^2 >16+4x_{1} x_{2}\hspace{0.2cm} \hspace{1cm} \hspace{1cm}(x_{1}+x_{2})^2 <16+4x_{1} x_{2}\hspace{0.2cm}\\ (-6)^2>16+4q\hspace{3cm} (-6)^2<16+4q\\ 5>q\hspace{6.5cm} 5<q \\ q\in(-\infty,5)\cup(5,\infty) $$ Squareing the inequalities helped me substitute Vieta's formulas, does this cause a problem of getting wrong solutions? If so, why? What is the other way of solving this problem using Vieta's formulas?
i have got $$|2\sqrt{9-q}|>4$$ and from here we get $$\sqrt{9-q}>2$$ and from here we get $$5>q$$