Show the worked solution\[\boxed{\int \frac{dx}{x^p}\ \text{diverges near }0\text{ for }p\ge1\text{ and at }\infty\text{ for }p\le1}\](A) Near \(0\), \(\sin x\approx x\) and \(1-\cos x\approx\frac{x^2}{2}\), so the integrand behaves like \(\frac{2}{x}\) — diverges.(B) \(\int_0^X\cos x\,dx\) stays bounded and \(\frac{1}{1+x}\) decreases to \(0\), so the integral converges by Dirichlet's test — convergent.(C) \(\frac{x}{1+x^2}\sim\frac1x\) at \(\infty\); indeed \(\int_0^X\frac{x}{1+x^2}dx=\frac12\ln(1+X^2)\to\infty\) — diverges.(D) \(\frac{1-\cos x}{x^5/2}\approx\frac{x^2/2}{x^5/2}=\frac{1}{x^3}\) near \(0\) — diverges.Answer: B
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com