I am interested in finding the general pattern for the partial fraction of: $$ \frac{1}{{{\left( 1+x \right)}^{n}}\left( 1+{{x}^{2}} \right)} $$ where $n=1,2,3,......$ here is the partial fractions from $n=1\quad to\quad 10$ $$ \left( \begin{matrix} 1 & \frac{1-u}{2\left( {{u}^{2}}+1 \right)}+\frac{1}{2(u+1)} \\ 2 & -\frac{u}{2\left( {{u}^{2}}+1 \right)}+\frac{1}{2(u+1)}+\frac{1}{2{{(u+1)}^{2}}} \\ 3 & \frac{-u-1}{4\left( {{u}^{2}}+1 \right)}+\frac{1}{4(u+1)}+\frac{1}{2{{(u+1)}^{2}}}+\frac{1}{2{{(u+1)}^{3}}} \\ 4 & \frac{1}{2{{(u+1)}^{3}}}+\frac{1}{2{{(u+1)}^{4}}}-\frac{1}{4\left( {{u}^{2}}+1 \right)}+\frac{1}{4{{(u+1)}^{2}}} \\ 5 & \frac{u-1}{8\left( {{u}^{2}}+1 \right)}-\frac{1}{8(u+1)}+\frac{1}{4{{(u+1)}^{3}}}+\frac{1}{2{{(u+1)}^{4}}}+\frac{1}{2{{(u+1)}^{5}}} \\ 6 & \frac{u}{8\left( {{u}^{2}}+1 \right)}-\frac{1}{8(u+1)}-\frac{1}{8{{(u+1)}^{2}}}+\frac{1}{4{{(u+1)}^{4}}}+\frac{1}{2{{(u+1)}^{5}}}+\frac{1}{2{{(u+1)}^{6}}} \\ 7 & \frac{u+1}{16\left( {{u}^{2}}+1 \right)}-\frac{1}{16(u+1)}-\frac{1}{8{{(u+1)}^{2}}}-\frac{1}{8{{(u+1)}^{3}}}+\frac{1}{4{{(u+1)}^{5}}}+\frac{1}{2{{(u+1)}^{6}}}+\frac{1}{2{{(u+1)}^{7}}} \\ 8 & -\frac{1}{8{{(u+1)}^{3}}}-\frac{1}{8{{(u+1)}^{4}}}+\frac{1}{4{{(u+1)}^{6}}}+\frac{1}{2{{(u+1)}^{7}}}+\frac{1}{2{{(u+1)}^{8}}}+\frac{1}{16\left( {{u}^{2}}+1 \right)}-\frac{1}{16{{(u+1)}^{2}}} \\ 9 & \frac{1-u}{32\left( {{u}^{2}}+1 \right)}+\frac{1}{32(u+1)}-\frac{1}{16{{(u+1)}^{3}}}-\frac{1}{8{{(u+1)}^{4}}}-\frac{1}{8{{(u+1)}^{5}}}+\frac{1}{4{{(u+1)}^{7}}}+\frac{1}{2{{(u+1)}^{8}}}+\frac{1}{2{{(u+1)}^{9}}} \\ 10 & -\frac{u}{32\left( {{u}^{2}}+1 \right)}+\frac{1}{32(u+1)}+\frac{1}{32{{(u+1)}^{2}}}-\frac{1}{16{{(u+1)}^{4}}}-\frac{1}{8{{(u+1)}^{5}}}-\frac{1}{8{{(u+1)}^{6}}}+\frac{1}{4{{(u+1)}^{8}}}+\frac{1}{2{{(u+1)}^{9}}}+\frac{1}{2{{(u+1)}^{10}}} \\ \end{matrix} \right) $$ Can any body see the pattern if any, Can we write it as a sum??
Problem background: I am trying to find a closed form for the integral: $$\int{\frac{1}{{{\left( 1+x \right)}^{n}}\left( 1+{{x}^{2}} \right)}dx}$$