I'm an AP Calc teacher. A problem I gave my students states:

Find the general solution to the exact differential equation.

So taking the anti derivative,

That's fine. The solution also notes:

Can anyone explain why this domain restriction is in place? I understand that there is a discontinuity at pi/2, but why does it choose this specific interval? Is it because the initial value is given at 0?

Thanks for any help.