4) Ta có: \(\left(x+3\right)\cdot\sqrt{10-x^2}=x^2-x-12\)
\(\Leftrightarrow\left(x+3\right)\cdot\sqrt{10-x^2}-\left(x-4\right)\left(x+3\right)=0\)
\(\Leftrightarrow\left(x+3\right)\left(\sqrt{10-x^2}-x+4\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x+3=0\\\sqrt{10-x^2}=x-4\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=-3\\10-x^2=x^2-8x+16\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=-3\\x^2-8x+16-10+x^2=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=-3\\2x^2-8x+6=0\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=-3\\2\left(x^2-4x+3\right)=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=-3\\\left(x-1\right)\left(x-3\right)=0\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=-3\\x=1\\x=3\end{matrix}\right.\)