We have f(x)=limn→∞1+x2n+1−x2ncos(2πx)−x2nsin(x−1).
To evaluate this limit, we need to consider different cases based on the value of ∣x∣.
Case 1: ∣x∣<1. Here x2n→0 and x2n+1→0 as n→∞. So f(x)=1+0−0cos(2πx)−0=cos(2πx).
Case 2: ∣x∣>1. We divide numerator and denominator by x2n:
f(x)=limn→∞x2n1+x−1x2ncos(2πx)−sin(x−1)=0+x−10−sin(x−1)=x−1−sin(x−1)
Case 3: x=1. Then x2n=1 and x2n+1=1. So f(1)=1+1−1cos(2π)−sin(0)=11−0=1.
Case 4: x=−1. Then x2n=(−1)2n=1 and x2n+1=(−1)2n+1=−1. So f(−1)=1+(−1)−1cos(−2π)−sin(−2)=−11−sin(−2)=−11+sin2=−(1+sin2).
Now let us check continuity at the critical points x=1 and x=−1.
At x=1: From Case 1 (as x→1−): cos(2π⋅1)=1. From Case 2 (as x→1+): x−1−sin(x−1)→−1 (since x−1sin(x−1)→1). The function value is f(1)=1. Since the left limit is 1 but the right limit is −1, the function is discontinuous at x=1.
At x=−1: From Case 1 (as x→−1+): cos(2π(−1))=cos(−2π)=1. From Case 2 (as x→−1−): −1−1−sin(−1−1)=−2−sin(−2)=−2sin2=−2sin2. The function value is f(−1)=−(1+sin2). The left limit is −2sin2 and the right limit is 1, neither of which equals −(1+sin2). So the function is discontinuous at x=−1.
For all other points, the function is continuous (being composed of continuous functions in each region, with the regions being open intervals).
Therefore f is continuous for all x∈R−{−1,1}.
Hence, the correct answer is Option 2.