Question
If , then the value of is equal to _____.
Official answer and solution
- Official answer
- 4
- From
- Official GATE 2014 answer key
Solution
Split the absolute value integral over intervals where the integrand has a constant sign.
-
For , , so .
-
Determine the sign of :
- For : .
- For : .
-
Split the integral:
-
Indefinite integration by parts: .
-
Evaluate each definite integral:
- First interval :
- Second interval :
- First interval :
-
Combine the results:
Since , we have .
Final answer
4
Common trap
Integrating x sin x directly without splitting for absolute value, which would give 0.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 3
- Question
- 16 of 65, printed as CS Q.6
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.