Given : f(x)=⎧⎪⎨⎪⎩limn→∞ex2−1+[(a+b)x−(a−b)]x2nx2n+1+cosx−1,x∈R−{0}k,x=0
⇒f(x)=⎧⎪
⎪
⎪
⎪
⎪
⎪⎨⎪
⎪
⎪
⎪
⎪
⎪⎩ex2−1cosx−1,0<x2<1k,x=0(a+b)x−(a−b)x,x2>1
Checking the continuity at x=1, we get
limx→1−ex2−1cosx−1=e−1cos1−1limx→1+(a+b)x−(a−b)x=2b⇒b=e−12(cos1−1)
Checking the continuity at x=−1, we get
limx→−1+ex2−1cosx−1=e−1cos1−1limx→−1−(a+b)x−(a−b)x=−(a+b)−a+b−1⇒2a=e−1(cos1−1)∴a=b
So,
f(x)=⎧⎪
⎪
⎪
⎪
⎪
⎪⎨⎪
⎪
⎪
⎪
⎪
⎪⎩ex2−1cosx−1,0<x2<1k,x=0e−1(cos1−1),x2>1
Now, as f(x) is continuous for all x∈R, so
f(0)=limx→0ex2−1cosx−1
Using L'Hospital's Rule, we get
⇒k=limx→0ex2×2x−sinx=−2∴|k|=2