Answer: (C) cotx
Key idea: The standard result is ∫ex[f(x)+f′(x)]dx=exf(x)+c. So we look for a function f(x) that appears in the bracket together with its own derivative.
Step 1 — Look for a function and its derivative in the bracket.
The bracket is cotx−cosec2x. We know that dxd(cotx)=−cosec2x.
Step 2 — Match the standard form.
Taking f(x)=cotx, we get f′(x)=−cosec2x. So the bracket is exactly f(x)+f′(x).
∫ex(cotx−cosec2x)dx=excotx+c
Step 3 — Read off f(x).
Comparing with exf(x)+c gives f(x)=cotx.
Why the others are wrong:
- (A) For f(x)=cotx+cosecx, the sum f+f′ also contains cosecx−cosecxcotx, which is not in the bracket.
- (B) For f(x)=cot2x, the sum f+f′ is cot2x−2cotxcosec2x, which is a different expression.
- (D) For f(x)=cosecx, the sum f+f′ is cosecx−cosecxcotx, which is not the given bracket.
Therefore, the correct option is (C).