\(a\text{)}.\:\left(x^2+2\right)^2-\left(x+2\right)\left(x-2\right)\left(x^2+4\right)\\ =x^4+4x^2+4-\left(x^2-4\right)\left(x^2+4\right)\\ =x^4+4x^2+4-x^4+16\\ =4x^2+20\)
\(b\text{)}.\:\left(x+1\right)^2-\left(x-1\right)^2-3\left(x+1\right)\left(x-1\right)\\ =\left(x+1+x-1\right)\left(x+1-x+1\right)-3\left(x^2-1\right)\\ =4x-3x^2+3\)