\(\dfrac{1}{1-x}+\dfrac{1}{1+x}+\dfrac{2}{1+x^2}+\dfrac{4}{1+x^4}\)
\(=\dfrac{1+x+1-x}{\left(1-x\right)\left(1+x\right)}+\dfrac{2}{1+x^2}+\dfrac{4}{1+x^4}\)
\(=\dfrac{2}{1-x^2}+\dfrac{2}{1+x^2}+\dfrac{4}{1+x^4}\)
\(=\dfrac{2+2x^2+2-2x^2}{\left(1-x^2\right)\left(1+x^2\right)}+\dfrac{4}{1+x^4}\)
\(=\dfrac{4}{1-x^4}+\dfrac{4}{1+x^4}\)
\(=\dfrac{4+4x^4+4-4x^4}{\left(1-x^4\right)\left(1+x^4\right)}\)
\(=\dfrac{8}{1-x^8}\)