Determine $$\int \frac{\sec^2x-2021}{\sin^{2021}x} dx$$
I tried dividing by $\cos^{2021}x$ in both numerator and denominator which gave me a simplified form of $$\dfrac{\sec^{2021}x(\sec^2x-2021)}{\tan^{2021}x}$$ but that doesn't seem to help much.
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityDetermine $$\int \frac{\sec^2x-2021}{\sin^{2021}x} dx$$
I tried dividing by $\cos^{2021}x$ in both numerator and denominator which gave me a simplified form of $$\dfrac{\sec^{2021}x(\sec^2x-2021)}{\tan^{2021}x}$$ but that doesn't seem to help much.
Integrating by parts $$\int \frac{\sec^2(x)}{\sin^{n}(x)}\, dx=\frac{\tan(x)}{\sin^{n}(x)}-\int\frac{\tan(x)(-n\cos(x))}{\sin^{n+1}(x)}\,dx=\frac{\tan(x)}{\sin^{n}(x)}+\int\frac{n}{\sin^{n}(x)}\,dx.$$ Hence, after moving the remaining integral to the other side, we find $$\int \frac{\sec^2(x)-n}{\sin^{n}(x)}\, dx=\frac{\tan(x)}{\sin^{n}(x)}+c.$$