\(A=\left(4x^2-4xy+y^2\right)+\left(x^2+3x+\dfrac{9}{4}\right)-\dfrac{21}{4}\\ A=\left(2x-y\right)^2+\left(x+\dfrac{3}{2}\right)^2-\dfrac{21}{4}\ge-\dfrac{21}{4}\\ A_{min}=-\dfrac{21}{4}\Leftrightarrow\left\{{}\begin{matrix}2x=y\\x=-\dfrac{3}{2}\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}x=-\dfrac{3}{2}\\y=-3\end{matrix}\right.\)
\(B=\left[\left(x-1\right)\left(x+2\right)\right]\left[x\left(x+1\right)\right]=\left(x^2+x-2\right)\left(x^2+x\right)\\ B=\left(x^2+x\right)^2-2\left(x^2+x\right)\\ B=\left(x^2+x\right)^2-2\left(x^2+x\right)+1-1=\left(x^2+x-1\right)^2-1\ge-1\\ B_{min}=-1\Leftrightarrow x^2+x-1=0\Leftrightarrow\left(x+\dfrac{1}{2}\right)^2-\dfrac{5}{4}=0\\ \Leftrightarrow\left(x+\dfrac{1-\sqrt{5}}{2}\right)\left(x+\dfrac{1+\sqrt{5}}{2}\right)=0\\ \Leftrightarrow\left[{}\begin{matrix}x=\dfrac{1-\sqrt{5}}{2}\\x=\dfrac{1+\sqrt{5}}{2}\end{matrix}\right.\)