Competency-Based Questions (CBQ) · Question 35 of 80
Let f: R R and g:[0,∞) R be the functions defined by f(x)=x² and g(x)=√x .
Question 354 marksMedium
Let f:R→R and g:[0,∞)→R be the functions defined by f(x)=x2 and g(x)=x.
Attempt any four of the following five sub-questions.
(a) Find the domain and the range of f.
(b) Find the domain and the range of g, and explain why the domain of g cannot be the whole of R.
(c) Determine whether f is one-one and whether it is onto, justifying each answer with a specific value.
(d) Determine whether g is one-one and whether it is onto, justifying each answer.
(e) Find the composite (g∘f)(x), explain why it is defined for every real x, and state its domain and range.
(a) The domain of f is R, as declared in the stem.
For the range: x2≥0 for every real x, so no negative number is an output. And every y≥0is an output, since f(y)=(y)2=y. Hence
range(f)=[0,∞).
(b) The domain of g is [0,∞), as declared. It cannot be the whole of R: for a negative input such as x=−4 there is no real number whose square is −4, so −4 is not a real number and the rule would fail to assign an output. A function must give an output to every element of its domain, so the negatives must be excluded.
For the range: x≥0 always, and every y≥0 is attained, since g(y2)=y2=y for y≥0 and y2 lies in [0,∞). Hence
range(g)=[0,∞).
(c)f is neither one-one nor onto.
Not one-one.f(−1)=(−1)2=1 and f(1)=12=1, so f(−1)=f(1) while −1=1. Two different inputs share an output.
Not onto. The codomain declared in the stem is R, but by part (a) the range is only [0,∞), a proper subset of R. Concretely, take y=−1: the equation x2=−1 has no real solution, so −1 has no pre-image and is missed.
(d)g is one-one but not onto.
One-one. Suppose g(x1)=g(x2), that is x1=x2, with x1,x2≥0. Squaring both sides gives x1=x2. (Squaring is safe here because both sides are non-negative.)
Not onto. The codomain is R, but the range is [0,∞) by part (b). Take y=−2: since x is never negative, no x≥0 satisfies g(x)=−2, so −2 has no pre-image.
Note that gwould be onto if its codomain were written as [0,∞) instead of R. Whether a function is onto depends on the codomain you declare, not on the formula alone.
(e)
(g∘f)(x)=g(f(x))=g(x2)=x2=∣x∣.
Why it is defined for every real x. The composite g∘f needs every output of f to be a legal input for g. The outputs of f form [0,∞) by part (a), and the domain of g is exactly [0,∞). So
range(f)=[0,∞)=domain(g),
the containment holds, and g can be applied after f at every real x without exception.
The last step deserves care:x2 is ∣x∣, not x. Check at x=−3: (−3)2=9=3=∣−3∣, whereas x itself is −3. The square root always returns the non-negative root.
Domain and range. The domain of g∘f is R. Its range is [0,∞), since ∣x∣ is never negative and every y≥0 equals ∣y∣.