b) Ta phân tích
\(f\left(x\right)=\frac{x^2+1}{\left(x-1\right)^3\left(x+3\right)}=\frac{A}{\left(x-1\right)^3}+\frac{B}{\left(x-1\right)^2}+\frac{C}{x-1}+\frac{D}{x+3}\)\(=\frac{A\left(x+3\right)+B\left(x-1\right)\left(x+3\right)+C\left(x-1\right)^2\left(x+3\right)+D\left(x-1\right)^3}{\left(x-1\right)^3\left(x+3\right)}\)
Thay x=1 và x=-3 vào hai tử số, ta được :
\(\begin{cases}x=1\rightarrow2=4A\rightarrow A=\frac{1}{2}\\x=-3\rightarrow10=-64D\rightarrow D=-\frac{5}{32}\end{cases}\)
Thay hai giá trị của A và D vào (*) và đồng nhất hệ số hai tử số, ta cso hệ hai phương trình :
\(\begin{cases}0=C+D\Rightarrow C=-D=\frac{5}{32}\\1=3A-3B+3C-D\Rightarrow B=\frac{3}{8}\end{cases}\)
\(\Rightarrow f\left(x\right)=\frac{1}{2\left(x-1\right)^3}+\frac{3}{8\left(x-1\right)^2}+\frac{5}{32\left(x-1\right)}-+\frac{5}{32\left(x+3\right)}\)
Vậy :
\(\int\frac{x^2+1}{\left(x-1\right)^3\left(x+3\right)}dx=\)\(\left(\frac{1}{2\left(x-1\right)^3}+\frac{3}{8\left(x-1\right)^2}+\frac{5}{32\left(x-1\right)}-+\frac{5}{32\left(x+3\right)}\right)dx\)
\(=-\frac{1}{a\left(x-1\right)^2}-\frac{3}{8\left(x-1\right)}+\frac{5}{32}\ln\left|x-1\right|-\frac{5}{32}\ln\left|x+3\right|+C\)
\(=-\frac{1}{a\left(x-1\right)^2}-\frac{3}{8\left(x-1\right)}+\frac{5}{32}\ln\left|\frac{x-1}{x+3}\right|+C\)