JEE Main 2026 · 23 January · evening · Single correct · +4 / −1
If f(x)={(a|x|+x²-2(sin |x|)(cos |x|))/x, ,x≠ 0; b, ,x=0
is continuous at x=0, then a+b is equal to :
- (a) 1
- (b) 2
- (c) 0
- (d) 4
Answer and solution
Answer (b) 2
Solution
Maths sir · 4 steps
Because of the |x|, work out the left and right limits separately and set them equal.
- Tidy the numerator. Use 2 sin|x|cos|x| = sin 2|x|. So for x ≠ 0, f(x) = (a|x| + x² - sin 2|x|)/x, and the standard limit (sin 2x)/x → 2 will do the work.
- Right-hand limit. For x > 0, |x| = x, so f(x) = a + x - (sin 2x)/x. As x → 0⁺ this tends to a + 0 - 2 = a - 2.
- Left-hand limit. For x < 0, |x| = -x, so the numerator is -ax + x² + sin 2x. Then f(x) = -a + x + (sin 2x)/x, which tends to -a + 2 as x → 0⁻.
a - 2 = 2 - a = b
- So. Setting the two limits equal gives a = 2. The common limit is then 0, so b = 0 and a + b = 2, which is option (b).
The idea to keep. Whenever |x| sits over a plain x, the sign flips across zero. Find both one-sided limits, equate them for continuity, then match f(0) to that common value.
Answer from the NTA final answer key. Solution by PrepWiser.