Given,
f(x)=asin(2π[x])+[2−x],a∈R
Now given x→−1limf(x) exists,
So x→−1+limasin(π2[x])+[2−x]=−a+2
And x→−1−limasin(π2[x])+[2−x]=0+3=3
So, x→−1limf(x) exist when −a+2=3⇒a=−1
Now,
∫04f(x)dx=∫01f(x)dx+∫12f(x)dx+∫23f(x)dx+∫34f(x)dx
⇒∫04f(x)dx=∫01−sin(2π[x])+[2−x]dx+∫12−sin(2π[x])+[2−x]dx+∫23−sin(2π[x])+[2−x]dx+∫34−sin(2π[x])+[2−x]dx
=∫01(0+1)dx+∫12(−1+0)dx+∫23(0−1)dx+∫34(1−2)dx
=1−1−1−1=−2