Which is not a mathematical function, hence it can not be symbolicaly
integrated like Cos or Sin.
What you are trying to integrate is a Step function, more specificaly
it is
2 UnitStep[x-1/2].
Try integrating it in that form...
Orestis