
Douglas B. answered 07/29/20
Trig tutor with masters degree in applied math
Hi Andrew,
You ask a great question. For the particular function you are considering, you have what is called a 'removable singularity' at x = pi/2. Although not technically defined at pi/2 as written, the function is continuous and differentiable everywhere in the neighborhood of pi/2. So, if we integrate it, for any upper bound x, the integral will actually be differentiable, even though we have a hole at pi/2 -- pretty interesting.