a: \(VT=\dfrac{a^2\left(a-4\right)-\left(a-4\right)}{\left(a-2\right)\left(a^2+2a+4\right)-7a\left(a-2\right)}\)
\(=\dfrac{\left(a-4\right)\left(a-1\right)\left(a+1\right)}{\left(a-1\right)\left(a^2-5a+4\right)}\)
\(=\dfrac{\left(a-4\right)\left(a+1\right)}{\left(a-4\right)\left(a-1\right)}=\dfrac{a+1}{a-1}=VP\)
b: \(VT=\dfrac{x^3\left(x+1\right)+\left(x+1\right)}{x^4-x^3+x^2+x^2-x+1}\)
\(=\dfrac{\left(x+1\right)\left(x+1\right)\left(x^2-x+1\right)}{\left(x^2+1\right)\left(x^2-x+1\right)}\)
\(=\dfrac{\left(x+1\right)^2}{x^2+1}=VP\)