Ta có: \(\frac{a+1}{2a-2}-\frac{1}{2a^2-2}=\frac{\left(a+1\right)^2-1}{2\left(a^2-1\right)}=\frac{a^2+2a+1-1}{2\left(a^2-1\right)}=\frac{a\left(a+2\right)}{2\left(a^2-1\right)}\)
Vậy D=\(\frac{a\left(a+2\right)}{2\left(a^2-1\right)}.\frac{2\left(a+1\right)}{a+2}=\frac{a}{a-1}\)