Question
Mathematics Question on Functions
Let f(x)={−a x+aif −a≤x≤0,if 0<x≤a where a>0 and g(x)=(f(∣x∣)−∣f(x)∣)/2. Then the function g:[−a,a]→[−a,a] is:
neither one-one nor onto.
both one-one and onto.
one-one.
onto.
neither one-one nor onto.
Solution
Given the piecewise function: f(x)={−a x+aif −a≤x≤0if 0<x≤a
and the function: g(x)=2f(∣x∣)−∣f(x)∣.
We will analyze the behavior of g(x) over the domain [−a,a].
Case 1: x∈[−a,0] In this interval, ∣x∣=−x and f(x)=−a.
Thus: f(∣x∣)=−aand∣f(x)∣=∣−a∣=a.
Substituting into the expression for g(x): g(x)=2−a−a=−a.
Case 2: x∈(0,a] In this interval, ∣x∣=x and f(x)=x+a.
Thus: f(∣x∣)=x+aand∣f(x)∣=∣x+a∣=x+a.
Substituting into the expression for g(x): g(x)=2(x+a)−(x+a)=0. Behavior of g(x): - For x∈[−a,0], g(x)=−a. - For x∈(0,a], g(x)=0.
Since g(x) takes only two distinct values (−a and 0) over the entire interval [−a,a], it is clear that: - g(x) is not one-one (injective) because different inputs give the same output. - g(x) is not onto (surjective) because it does not cover the entire range [−a,a].
Therefore: g(x) is neither one-one nor onto.