I got this problem on a test. The book didn't cover it (and I would not suggest this Trig text to anyone, the examples are horrible) and my teacher didn't cover it. These types of problems weren't even in the chapter test from the book so you can see how I was so distressed when I was tested on it. But I digress...

Simplify:

arcsin(sin x) if pi/2 =< x =< pi