Evaluate the integral \( \int \frac{1 - k \cos^2 x}{\sin^k x \cos^2 x} dx \).
Show Hint
Trigonometric Derivative Patterns}
For complex trig integrals, test differentiation of likely answers
\(\frac{d}{dx}\left( \frac{\tan x}{\sin^k x} \right)\) gives the required pattern
Try reverse-engineering instead of full integration