Given A=[−1,1] and f:A→A,f(x)=x∣x∣
Which implies f(x)=x2 for x>0 and f(x)=−x2 for x<0
When x goes from 0 to 1 , the function f(x)=x2 goes from 0 to 1 and when x goes from 0 to −1, the function f(x)=−x2 goes from 0 to −1
So as x moves from −1 to 1,f(x) also moves from −1 to 1 as shown in the figure So, the given function is one-one and onto function.