a) \(\left(x+3\right)^2-x\left(x-1\right)=2\)
\(\Leftrightarrow x^2+6x+9-x^2+x=2\)
\(\Leftrightarrow7x+9=2\)
\(\Leftrightarrow7x=2-9\)
\(\Leftrightarrow7x=-7\)
\(\Leftrightarrow x=\dfrac{-7}{7}=-1\)
b) \(\left(2x+3\right)^2-\left(x+1\right)\left(4x-3\right)=-1\)
\(\Leftrightarrow4x^2+12x+9-\left(4x^2-3x+4x-3\right)=-1\)
\(\Leftrightarrow4x^2+12x+9-4x^2+3x-4x+3=-1\)
\(\Leftrightarrow11x+12=-1\)
\(\Leftrightarrow11x=-13\)
\(\Leftrightarrow x=\dfrac{-13}{11}\)