a) \(\left(x-2\right)\left(x+1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x-2=0\\x+1=0\end{matrix}\right.\) \(\Leftrightarrow\left[{}\begin{matrix}x=2\\x=-1\end{matrix}\right.\)
b) \(\left(x^2+5\right)\left(x^2-25\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x^2+5=0\\x^2-25=0\end{matrix}\right.\) \(\Leftrightarrow\left[{}\begin{matrix}x^2=-5\\x^2=25\end{matrix}\right.\) \(\Leftrightarrow x^2=25\) \(\Leftrightarrow x=\pm5\)