Let f(x)={−a,x+a,−a≤x≤0,0<x≤a, where a>0 and g(x)=(f(∣x∣)−∣f(x)∣)/2. Then the function g:[−a,a]→[−a,a] is
Show answer and solution
Correct answer: Option 1
For −a≤x<0, f(∣x∣)=a−x and ∣f(x)∣=a, giving g(x)=−x/2. At x=0, g(0)=(−a−a)/2=−a. For 0<x≤a, both terms in the numerator equal x+a, so g(x)=0.
Thus g(x)=⎩⎨⎧−x/2,−a,0,−a≤x<0,x=0,0<x≤a. Every positive input has the same image, so g is not one-one. Its range is {−a}∪[0,a/2], which is smaller than [−a,a], so it is not onto. Option (1) is correct.