Cách làm đơn giản nhất:
Do \(\int f\left(x\right)dx=F\left(x\right)\Rightarrow F'\left(x\right)=f\left(x\right)\)
Ta có: \(F\left(x\right)=A\sqrt{1-x^3}+\dfrac{B}{1+\sqrt{x}}\)
\(\Rightarrow F'\left(x\right)=\dfrac{A\left(-3x^2\right)}{2\sqrt{1-x^3}}+B.\left(-\dfrac{\dfrac{1}{2\sqrt{x}}}{\left(1+\sqrt{x}\right)^2}\right)\)
\(\Rightarrow F'\left(x\right)=\dfrac{-3A}{2}.\dfrac{x^2}{\sqrt{1-x^3}}-\dfrac{B}{2}.\dfrac{1}{\sqrt{x}\left(1+\sqrt{x}\right)^2}=f\left(x\right)\)
Đồng nhất hệ số ta được:
\(\left\{{}\begin{matrix}\dfrac{-3A}{2}=1\\\dfrac{-B}{2}=1\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}A=\dfrac{-2}{3}\\B=-2\end{matrix}\right.\) \(\Rightarrow A+B=-\dfrac{8}{3}\)