how to find principal domain of trig functions