a: \(A=25a^2+50a+25+10\left(a^2-2a-3\right)+a^2-6a+9\)
\(=26a^2+46a+34+10a^2-20a-30\)
\(=36a^2+26a+4\)
b: \(B=\dfrac{1}{4}\left(x^2-2x+1\right)+x^2-1+x^2+2x+1\)
\(=\dfrac{1}{4}x^2-\dfrac{1}{2}x+\dfrac{1}{4}+2x^2+2x\)
\(=\dfrac{9}{4}x^2+\dfrac{3}{2}x+\dfrac{1}{4}\)