Tacó
\(\int\frac{1+xsin\left(x\right)}{cos^2\left(x\right)}dx\\ =\int\frac{1}{cos^2x}dx+\int xd\left(\frac{1}{cosx}\right)\\ =tanx+\frac{x}{cosx}-\int\frac{1}{cosx}dx\\ =tanx+\frac{x}{cosx}-\int\frac{1}{1-sin^2x}d\left(sinx\right)\\ =KQ\)
Chỗ cos hay tan với x tự cách nha. Mình đang ôn thi nên kiểu này quên nhanh lắm, sai thì thông cảm nhé
Lời giải:
\(P=\int \frac{1+x\sin x}{\cos ^2x}dx=\int \frac{1}{\cos ^2x}dx+\int \frac{x\sin x}{\cos ^2x}dx\)
Ta thấy:
\(\int \frac{1}{\cos ^2x}dx=\tan x+c\)
Dựa vào công thức $u,v$:
\( \int \frac{x\sin x}{\cos ^2x}dx\)\(=x\sin x\tan x-\int \tan x(\sin x+x\cos x)dx\)
\(=x\sin x\tan x-\int \tan x\sin xdx-\int x\tan x\cos xdx\)
\(=x\sin x\tan x-\int \frac{\sin ^2x}{\cos x}dx-\int x\sin xdx\)
Trong đó:
\(\int \frac{\sin ^2x}{\cos x}=\int \frac{\sin ^2xd(\sin x)}{\cos ^2x}=\int \frac{\sin ^2xd(\sin x)}{1-\sin ^2x}=\int \frac{t^2dt}{1-t^2}=\int (-1+\frac{1}{1-t^2})dt\)
\(=-\int dt+\int \frac{dt}{1-t^2}=-\int dt+\frac{1}{2}\int (\frac{1}{1-t}+\frac{1}{1+t})dt\)
\(=-t-\frac{1}{2}\ln |t-1|+\frac{1}{2}\ln |t+1|+c=-\sin x-\frac{1}{2}\ln |\sin x-1|+\frac{1}{2}\ln |\sin x+1|+c\)
Và:
\(\int x\sin xdx=x(-\cos x)+\int \cos xdx=-x\cos x+\sin x+c\)
Do đó:
\(\int \frac{x\sin x}{\cos ^2x}dx=x\sin x\tan x+\frac{1}{2}\ln |\frac{\sin x-1}{\sin x+1}|+x\cos x+c\)
\(\Rightarrow P=\tan x+x\sin x\tan x+\frac{1}{2}\ln |\frac{\sin x-1}{\sin x+1}|+x\cos x+c\)