ĐKXĐ: mọi \(x\)
Ta có \(x^2+4x+7=\left(x+4\right)\sqrt{x^2+7}\)
\(\Leftrightarrow\left(x+4\right)\sqrt{x^2+7}-x^2-4x-7=0\)
\(\Leftrightarrow\left(x+4\right)\left(\sqrt{x^2+7}-4\right)-x^2-4x+4x-7+16=0\) ( thêm bớt )
\(\Leftrightarrow\left(x+4\right)\left(\sqrt{x^2+7}-4\right)-\left(x^2-9\right)=0\)
\(\Leftrightarrow\left(x+4\right)\dfrac{x^2-9}{\sqrt{x^2+7}+4}-\left(x^2-9\right)=0\)
\(\Leftrightarrow\left(x^2-9\right)\left(\dfrac{x+4}{\sqrt{x^2+7}+4}-1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x^2-9=0\\\dfrac{x+4}{\sqrt{x^2+7}+4}-1=0\end{matrix}\right.\) \(\Leftrightarrow\left[{}\begin{matrix}x=\pm3\\\dfrac{x+4}{\sqrt{x^2+7}+4}=1\left(\text{*}\right)\end{matrix}\right.\)
Giải (*), ta được phương trình
\(\left(\text{*}\right)\Leftrightarrow x+4=\sqrt{x^2+7}+4\)
\(\Leftrightarrow\sqrt{x^2+7}=x\)
\(\Leftrightarrow x^2+7=x^2\)
\(\Leftrightarrow7=0\) ( vô lý )
Suy ra phương trình (*) vô nghiệm
Vậy \(S=\left\{\pm3\right\}\)