We want the limit x→0limx4cos(2x)+acos(4x)−b to remain finite.
For this to happen, every term of order lower than x4 in the numerator must vanish so that the first non-zero term is at least of order x4.
Use the Maclaurin series of cosine:
cos(kx)=1−2k2x2+24k4x4+O(x6).
Expand each cosine up to x4:
• cos(2x)=1−2(2)2x2+24(2)4x4=1−2x2+32x4.
• cos(4x)=1−2(4)2x2+24(4)4x4=1−8x2+332x4.
Substitute these into the numerator N(x):
N(x)=[1−2x2+32x4]+a[1−8x2+332x4]−b=(1+a−b)+(−2−8a)x2+(32+332a)x4+O(x6).
For N(x) to start from at least the x4 term, the constant term and the x2 term must be zero:
1+a−b=0−(1)
−2−8a=0−(2)
Solve equation (2) first:
−2−8a=0⇒8a=−2⇒a=−41.
Substitute a=−41 into (1):
1−41−b=0⇒43−b=0⇒b=43.
Therefore a+b=−41+43=21.
Hence the required value is 21, which corresponds to Option A.