a)
\(\frac{1}{x^2+x+1}dx=\frac{1}{\left(x-\frac{1}{4}\right)^2+\left(\frac{\sqrt{3}}{2}\right)^2}dx\)
Đặt
\(\left(x-\frac{1}{4}\right)=\frac{\sqrt{3}}{2}tant\) => dx=\(\frac{\sqrt{3}}{2}\left(1+tan^2t\right)dt\) =>\(\frac{1}{x^2+x+1}dx=\frac{1}{\frac{3}{4}\left(1+tan^2t\right)+\frac{3}{4}}\left(1+tan^2t\right)dt=\frac{3}{4}dt=\frac{3}{4}t+C\)
Với \(\left(x-\frac{1}{4}\right)=\frac{\sqrt{3}}{2}tant=>t=\left(\frac{2\sqrt{3}}{4x-1}\right)\)
Câu b nhá :
\(\frac{1}{x^2+2x+2}dx=\frac{1}{\left(x+1\right)^2+\left(\sqrt{2^2}\right)}dx\)
Đặt
\(x+1=\sqrt{2}tant=>dx=\sqrt{2}\left(1+tan^2t\right)dt\)
=> \(\frac{1}{x^2+2x+3}dx=\frac{1}{2\left(tan^2t+1\right)}.\left(1+tan^2t\right)dt=\frac{1}{2}dt=\frac{1}{2}t+C\)
Với
\(x+1=\sqrt{2}tant=>tant=\frac{x+1}{\sqrt{2}}<=>t=arctan\left(\frac{x+1}{\sqrt{2}}\right)\)