a.
\(a^2+a^2\left(a+1\right)^2+\left(a+1\right)^2=a^2+\left(a^2+a\right)^2+a^2+2a+1\)
\(=\left(a^2+a\right)^2+2\left(a^2+a\right)+1=\left(a^2+a+1\right)^2\)
b.
\(\Leftrightarrow\left\{{}\begin{matrix}\left(x+\dfrac{1}{y}\right)^2-\dfrac{x}{y}=3\\x+\dfrac{1}{y}+\dfrac{x}{y}=3\end{matrix}\right.\)
\(\Rightarrow\left(x+\dfrac{1}{y}\right)^2+x+\dfrac{1}{y}=6\)
\(\Rightarrow\left[{}\begin{matrix}x+\dfrac{1}{y}=2\Rightarrow\dfrac{x}{y}=1\\x+\dfrac{1}{y}=-3\Rightarrow\dfrac{x}{y}=6\end{matrix}\right.\)
TH1: \(\left\{{}\begin{matrix}x+\dfrac{1}{y}=2\\\dfrac{x}{y}=1\end{matrix}\right.\) \(\Rightarrow...\)