frm -pi/2 to pi/2 both the graphs are the same
but for second graph sin-1(sinx) if u take x outside of the interval -pi/2 to pi/2
then u cant write sin-1(sinx) say sin-1(sin3Ï€/2) as 3Ï€/2 as the range of sin inverse is from -pi/2 to pi/2.
So u need to convert the x to a value between -pi/2 to pi/2.
hence the required graph.