At x=1,f(x) is continuous,
⇒f(1−)=f(1)=f(1+)
⇒f(1)=3+c...(i)
⇒f(1+)=h→0lim2(1+h)+1
⇒f(1+)=h→0lim3+2h=3...(ii)
Using (i)and(ii),
⇒c=0
At x=0,f(x) is continuous,
⇒f(0−)=f(0)=f(0+)...(iii)
⇒f(0)=f(0+)=2...(iv)
So, f(0−) has to be equal to 2.
⇒h→0limh2a−bcos(2h)
⇒h→0limh2a−b1−2!4h2+4!16h4+...
⇒h→0limh2a−b+b2h2−32h4...
For limit to exist a−b=0 and limit is 2b...(v)
Using, (iii),(iv)and(v)
⇒a=b=1
Checking differentiability at x=0.
⇒LHD:h→0lim−hh21−cos2h−2
⇒h→0lim−h31−(1−2!4h2+4!16h4−...)−2h2=0
⇒RHD:h→0limh(0+h)2+2−2=0
Function is differentiable at every point in its domain
∴m=0
⇒m+a+b+c=0+1+1+0
⇒m+a+b+c=2