You do not mean that "t" is not defined. The function, f, is not defined for t between -pi and -pi/2. I would take it to be 0 between -pi and pi/2. So you just integrate between -pi/2 and pi/2.
(But note on your paper that no definition is given between -pi and -pi/2 and that you are assuming f is 0 there.)