a. \(x^2-2x+2\left|x-1\right|-7=0\)
\(\Rightarrow\left[{}\begin{matrix}x^2-2x+2\left(x-1\right)-7=0\\x^2-2x-2\left(x-1\right)-7=0\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x^2-9=0\\x^2-4x-5=0\end{matrix}\right.\) \(\Rightarrow\left[{}\begin{matrix}x^2=9\\\left(x-5\right)\left(x+1\right)=0\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x=\pm3\\x=5\\x=-1\end{matrix}\right.\)
b: Ta có: \(\left(x^2+3x+2\right)\left(x^2+7x+12\right)=24\)
\(\Leftrightarrow\left(x^2+5x+4\right)\left(x^2+5x+6\right)=24\)
\(\Leftrightarrow\left(x^2+5x\right)^2+10\cdot\left(x^2+5x\right)=0\)
\(\Leftrightarrow x\left(x+5\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x=0\\x=-5\end{matrix}\right.\)