TA có
\(\int\frac{x+2}{x\left(x-3\right)}dx=\int\frac{x-3+5}{x\left(x-3\right)}dx=\int\left(\frac{1}{x}+\frac{5}{x\left(x-3\right)}\right)dx=\int\frac{1}{x}dx+5\int\frac{1}{x\left(x-3\right)}dx\)
=\(\int\frac{1}{x}dx+\frac{5}{3}\int\left(\frac{1}{x-3}-\frac{1}{x}\right)dx=-\frac{2}{3}\int\frac{1}{x}dx+\frac{5}{3}\int\frac{1}{x-3}dx=\frac{-2}{3}ln\left|x\right|+\frac{5}{3}ln\left|x-3\right|+C\)