Question 221 of 416MediumMCQ
The integral ∫(xsinx+cosx)2x2dx is equal to (where C is a constant of integration): Solutions · 1
Official solution
Note dxd(xsinx+cosx)=xcosx. Write x2=xcosx⋅cosxx so
\[I=\int\frac{x\cos x}{(x\sin x+\cos x)^2}\cdot\frac{x}{\cos x}\,dx\]
Integrating by parts with u=cosxx=xsecx and dv=(xsinx+cosx)2xcosxdx (so v=−xsinx+cosx1):
\[I=\frac{-x\sec x}{x\sin x+\cos x}-\int\frac{-1}{x\sin x+\cos x}\cdot\frac{d}{dx}(x\sec x)\,dx\]
dxd(xsecx)=secx+xsecxtanx=secx⋅cosxcosx+xsinx⋅cosx1⋯, and simplifying gives
\[I=\frac{-x\sec x}{x\sin x+\cos x}+\int\sec^2x\,dx=\frac{-x\sec x}{x\sin x+\cos x}+\tan x+C\] Answer the question to unlock