Continuity at x=0
limx→0−x2a−bcos2x=f(0)=2.
For the limit to exist, the numerator must be 0 at x=0: a−bcos(0)=0⟹a=b.
Using L'Hôpital's Rule: limx→02x2bsin2x=limx→024bcos2x=2b.
Given the limit is 2, then 2b=2⟹b=1,a=1.
Continuity at x=1
f(1)=12+c(1)+2=3+c.
limx→1+(2x+1)=3.
Setting them equal: 3+c=3⟹c=0.
Differentiability (m)
• At x=0: f′(x) for x>0 is 2x+c=2x. At x=0, f′(0+)=0. Using the expansion of cos2x, the left-hand derivative is also 0. So f is differentiable at x=0.
• At x=1: f′(1−)=2(1)+0=2. f′(1+)=2. It is differentiable at x=1.
Thus, m=0.
Final Calculation: m+a+b+c=0+1+1+0=2.