Which trigonometric function requires a domain restriction of [0, pi/2) ∪ (pi/2 , pi]

The ANSWER is f(x) = secx ----- PLEASE EXPLAIN THANK YOU!!!!!