I don't know where you got that since "f" was not given explicitely. It sounds to me like you are integrating f from 0 to 1 rather than f from 0 to 1/2 and then 1- f from 1/2 to 1.
Suppose f(x)= 0 for [itex]0\le x\le .4[/itex], f(x)= 5(x- .4) for [itex].4\le x\le .6[/itex], f(x)= 1 for [itex].6\le x\le 1[/itex]. That is, f is 0 from 0 to .4, then the straight line from (.4, 0) to (.6, 1), then is 1 from .6 to 1. What is the integral of that?
Now, do the same thing for , say .45 instead of .4 and .55 instead of .6- f(x)= 0 for [itex]0\le x\le .45[/itex], is the straight line from (.45, 0) to (.55, 1), then 1 from .55 to 1. What is the integral of that? (You don't even need to write out the formula for the function- the integral is the area of a right triangle.)
What happens as you keep moving those two points toward x= .5?