The question
(a) Find ∫ex(1−cotx+cosec2x)dx
OR
(b) Evaluate ∫−2π2πx2sinxdx
Exam answer
(a)
Let I=∫ex(1−cotx+cosec2x)dx.
Here f(x)=1−cotx and f′(x)=cosec2x.
Why?
An integrand of the form ex times (a function plus its derivative) has a ready-made answer, so we look for that pattern.
Since dxd(cotx)=−cosec2x, the derivative of 1−cotx is 0−(−cosec2x)=cosec2x. So the bracket is f(x)+f′(x).
I=∫ex{f(x)+f′(x)}dx=exf(x)+C
Why?
This standard result is the product rule read backwards:
dxd[exf(x)]=exf(x)+exf′(x)
∴ I=ex(1−cotx)+C
(b)
Let f(x)=x2sinx.
f(−x)=(−x)2sin(−x)=−x2sinx=−f(x)
Why?
The limits −2π and 2π are symmetric about 0, so we test whether f is even or odd.
(−x)2=x2, and sine is odd: sin(−x)=−sinx. So f(−x)=−f(x), and f is odd.
(−x)2f(−x)=(−x)(−x)=x2=(x2)(−sinx)=−x2sinx
∵f(x) is an odd function, ∫−aaf(x)dx=0.
Why?
For an odd function, the area below the axis on one side of 0 cancels the area above it on the other side. Here a=2π.
Watch out: the property needs limits of the form −a to a. For an even function it gives 2∫0af(x)dx instead.
∴∫−π/2π/2x2sinxdx=0
Where this comes fromChapter 7, Integrals: ∫eˣ(f(x) + f′(x))dx; integral of an odd function.
Question type: (a) The ex shortcut; (b) Limits from −a to a
How to spot it: click to see
(a) Type 9. The ex shortcut: a function and its derivative in a bracket
Spot it: ex times a bracket of two parts, where one part is the derivative of the other.
Here: The bracket holds 1−cotx and cosec2x, and cosec2x is the derivative of 1−cotx. So take f(x)=1−cotx and write ex(1−cotx)+C at once.
(b) Type 11. Limits from −a to a: check odd or even
Spot it: the two limits are the same number with opposite signs.
Here: The limits are −2π and 2π. Putting −x leaves x2 alone but flips the sign of sinx, so x2sinx is odd and the integral is 0.
Quick lesson · Worked NCERT solutions · Interactive lesson