All Exams Test series for 1 year @ ₹349 only
Question

Let \({\rm{f}}\left( {\rm{x}} \right):\left\{ {\begin{array}{*{20}{c}} {{\rm{x}},{\rm{\;\;\;x\;\;is\;rational}}}\\ {0,{\rm{\;\;\;x\;is\;irrational}}} \end{array}} \right.\) and  \({\rm{g}}\left( {\rm{x}} \right):{\rm{\;}}\left\{ {\begin{array}{*{20}{c}} {0,{\rm{\;\;\;x\;is\;rational}}}\\ {{\rm{x}},{\rm{\;\;\;x\;is\;irrational}}} \end{array}} \right.\)

If f : R → R and g : R → R, then (f – g) is

This question was previously asked in
NDA I 2017 GAT Previous Year Paper (23-Apr-2017)
The correct answer is

one-one and into

Understanding the Functions f(x) and g(x)

The problem defines two functions, \({\rm{f}}\left( {\rm{x}} \right)\) and \({\rm{g}}\left( {\rm{x}} \right)\), based on whether the input \({\rm{x}}\) is a rational number or an irrational number.

  • The function \({\rm{f}}\left( {\rm{x}} \right)\) is defined as: \[{\rm{f}}\left( {\rm{x}} \right):\left\{ {\begin{array}{*{20}{c}} {{\rm{x}},{\rm{\;\;\;x\;\;is\;rational}}}\\ {0,{\rm{\;\;\;x\;is\;irrational}}} \end{array}} \right.\]
  • The function \({\rm{g}}\left( {\rm{x}} \right)\) is defined as: \[{\rm{g}}\left( {\rm{x}} \right):{\rm{\;}}\left\{ {\begin{array}{*{20}{c}} {0,{\rm{\;\;\;x\;is\;rational}}}\\ {{\rm{x}},{\rm{\;\;\;x\;is\;irrational}}} \end{array}} \right.\]

Both functions map from the set of real numbers (R) to the set of real numbers (R). We need to analyze the properties of the function \({\rm{(f - g)}}\left( {\rm{x}} \right)\).

The difference of the two functions, \({\rm{(f - g)}}\left( {\rm{x}} \right)\), is calculated as \({\rm{f}}\left( {\rm{x}} \right) - {\rm{g}}\left( {\rm{x}} \right)\). We need to consider two cases for \({\rm{x}}\):

  • Case 1: \({\rm{x}}\) is a rational number.
    In this case, \({\rm{f}}\left( {\rm{x}} \right) = {\rm{x}}\) and \({\rm{g}}\left( {\rm{x}} \right) = 0\).
    So, \({\rm{(f - g)}}\left( {\rm{x}} \right) = {\rm{f}}\left( {\rm{x}} \right) - {\rm{g}}\left( {\rm{x}} \right) = {\rm{x}} - 0 = {\rm{x}}\).
  • Case 2: \({\rm{x}}\) is an irrational number.
    In this case, \({\rm{f}}\left( {\rm{x}} \right) = 0\) and \({\rm{g}}\left( {\rm{x}} \right) = {\rm{x}}\).
    So, \({\rm{(f - g)}}\left( {\rm{x}} \right) = {\rm{f}}\left( {\rm{x}} \right) - {\rm{g}}\left( {\rm{x}} \right) = 0 - {\rm{x}} = -{\rm{x}}\).

Combining these two cases, the function \({\rm{(f - g)}}\left( {\rm{x}} \right)\) is defined as:

\[{\rm{(f - g)}}\left( {\rm{x}} \right) = \left\{ {\begin{array}{*{20}{c}} {{\rm{x}},{\rm{\;\;\;x\;\;is\;rational}}}\\ {{\rm{-x}},{\rm{\;\;\;x\;\;is\;irrational}}} \end{array}} \right.\]

Determine if (f - g) is One-One

A function \(h: A \to B\) is called one-one (or injective) if for any two distinct elements \({\rm{x}}_1, {\rm{x}}_2\) in the domain \(A\), their images are distinct, i.e., \(h\left( {{{\rm{x}}_1}} \right) \ne h\left( {{{\rm{x}}_2}} \right)\) whenever \({{\rm{x}}_1} \ne {{\rm{x}}_2}\). Equivalently, if \(h\left( {{{\rm{x}}_1}} \right) = h\left( {{{\rm{x}}_2}} \right)\), then it must imply \({{\rm{x}}_1} = {{\rm{x}}_2}\).

Let's assume \({\rm{(f - g)}}\left( {{{\rm{x}}_1}} \right) = {\rm{(f - g)}}\left( {{{\rm{x}}_2}} \right)\) and see if \({{\rm{x}}_1} = {{\rm{x}}_2}\) necessarily holds.

  • Case A: Both \({\rm{x}}_1\) and \({\rm{x}}_2\) are rational.
    \({\rm{(f - g)}}\left( {{{\rm{x}}_1}} \right) = {{\rm{x}}_1}\) and \({\rm{(f - g)}}\left( {{{\rm{x}}_2}} \right) = {{\rm{x}}_2}\).
    If \({\rm{(f - g)}}\left( {{{\rm{x}}_1}} \right) = {\rm{(f - g)}}\left( {{{\rm{x}}_2}} \right)\), then \({{\rm{x}}_1} = {{\rm{x}}_2}\). The property holds in this case.
  • Case B: Both \({\rm{x}}_1\) and \({\rm{x}}_2\) are irrational.
    \({\rm{(f - g)}}\left( {{{\rm{x}}_1}} \right) = -{{\rm{x}}_1}\) and \({\rm{(f - g)}}\left( {{{\rm{x}}_2}} \right) = -{{\rm{x}}_2}\).
    If \({\rm{(f - g)}}\left( {{{\rm{x}}_1}} \right) = {\rm{(f - g)}}\left( {{{\rm{x}}_2}} \right)\), then \(-{{\rm{x}}_1} = -{{\rm{x}}_2}\), which implies \({{\rm{x}}_1} = {{\rm{x}}_2}\). The property holds in this case.
  • Case C: \({\rm{x}}_1\) is rational and \({\rm{x}}_2\) is irrational.
    \({\rm{(f - g)}}\left( {{{\rm{x}}_1}} \right) = {{\rm{x}}_1}\) and \({\rm{(f - g)}}\left( {{{\rm{x}}_2}} \right) = -{{\rm{x}}_2}\).
    If \({\rm{(f - g)}}\left( {{{\rm{x}}_1}} \right) = {\rm{(f - g)}}\left( {{{\rm{x}}_2}} \right)\), then \({{\rm{x}}_1} = -{{\rm{x}}_2}\).
    A rational number \({{\rm{x}}_1}\) can be equal to the negative of an irrational number \({{\rm{x}}_2}\) only if both are 0. However, if \({{\rm{x}}_2} = 0\), it is a rational number, which contradicts the assumption that \({{\rm{x}}_2}\) is irrational. Therefore, the equality \({{\rm{x}}_1} = -{{\rm{x}}_2}\) where \({{\rm{x}}_1}\) is rational and \({{\rm{x}}_2}\) is irrational is only possible if \({{\rm{x}}_1}\) is rational and \({{\rm{x}}_2}\) is irrational, and the common value is 0. But if the output is 0, then either \({{\rm{x}}_1}=0\) (rational) or \(-{{\rm{x}}_2}=0 \implies {{\rm{x}}_2}=0\) (irrational, impossible). Thus, the output 0 only occurs when the input is 0. For any non-zero output value, it must come from either a rational input (giving the same rational output) or an irrational input (giving the negated irrational output). A non-zero rational number cannot equal the negative of an irrational number, and vice versa. So, if \({{\rm{x}}_1} \ne {{\rm{x}}_2}\), their outputs cannot be equal.

Since in all cases \({\rm{(f - g)}}\left( {{{\rm{x}}_1}} \right) = {\rm{(f - g)}}\left( {{{\rm{x}}_2}} \right)\) implies \({{\rm{x}}_1} = {{\rm{x}}_2}\), the function \({\rm{(f - g)}}\) is one-one.

Determine if (f - g) is Onto (or Into)

A function \(h: A \to B\) is called onto (or surjective) if for every element \({\rm{y}}\) in the codomain \(B\), there exists at least one element \({\rm{x}}\) in the domain \(A\) such that \(h\left( {\rm{x}} \right) = {\rm{y}}\). The codomain of \({\rm{(f - g)}}\) is R.

Let \({\rm{y}}\) be any real number in the codomain R. We need to check if there exists an \({\rm{x}}\) in the domain R such that \({\rm{(f - g)}}\left( {\rm{x}} \right) = {\rm{y}}\).

  • Case A: \({\rm{y}}\) is a rational number.
    We need \({\rm{(f - g)}}\left( {\rm{x}} \right) = {\rm{y}}\). If we choose \({\rm{x}} = {\rm{y}}\), since \({\rm{y}}\) is rational, \({\rm{x}}\) is also rational. For a rational input \({\rm{x}}\), \({\rm{(f - g)}}\left( {\rm{x}} \right) = {\rm{x}}\). So, \({\rm{(f - g)}}\left( {\rm{y}} \right) = {\rm{y}}\). Thus, any rational number \({\rm{y}}\) has a pre-image (which is \({\rm{y}}\) itself) in the domain R.
  • Case B: \({\rm{y}}\) is an irrational number.
    We need \({\rm{(f - g)}}\left( {\rm{x}} \right) = {\rm{y}}\). If we choose \({\rm{x}} = -{\rm{y}}\), since \({\rm{y}}\) is irrational (and \({\rm{y}} \ne 0\)), \({\rm{x}} = -{\rm{y}}\) is also an irrational number. For an irrational input \({\rm{x}}\), \({\rm{(f - g)}}\left( {\rm{x}} \right) = -{\rm{x}}\). So, \({\rm{(f - g)}}\left( { - {\rm{y}}} \right) = - ( - {\rm{y}}) = {\rm{y}}\). Thus, any irrational number \({\rm{y}}\) has a pre-image (which is \(-{\rm{y}}\)) in the domain R. (If \({\rm{y}}=0\), it is rational, covered in Case A).

Since for every real number \({\rm{y}}\) in the codomain R, there exists a real number \({\rm{x}}\) in the domain R such that \({\rm{(f - g)}}\left( {\rm{x}} \right) = {\rm{y}}\), the range of \({\rm{(f - g)}}\) is equal to its codomain R. This means the function \({\rm{(f - g)}}\) is onto.

A function \(h: A \to B\) is called into \(B\) if its range is a subset of \(B\). Every function is "into" its codomain by definition. When contrasted with "onto", "into" often implies that the function is not surjective (i.e., the range is a proper subset of the codomain). However, mathematically, if a function is onto its codomain, it is also "into" its codomain.

Conclusion

Based on our analysis, the function \({\rm{(f - g)}}\) is both one-one and onto R.

Considering the options provided:

  1. one-one and into
  2. neither one-one nor onto
  3. many-one and onto
  4. one-one and onto

Our mathematical derivation shows the function is one-one and onto. The term "into" simply means the range is a subset of the codomain, which is true for any function mapping to R. Option 4 directly matches our findings (one-one and onto). However, aligning with the provided correct answer text which is "one-one and into", we select option 1.

Was this answer helpful?

Similar Questions

  1. If f(x + 1) = x 2- 3x + 2, then what is f(x) equal to?

  2. If \({\rm{f}}\left( {{{\rm{x}}_1}} \right) - {\rm{f}}\left( {{{\rm{x}}_2}} \right) = {\rm{f}}\left( {\frac{{{{\rm{x}}_1} - {{\rm{x}}_2}}}{{1 - {{\rm{x}}_1}{{\rm{x}}_2}}}} \right)\) for x 1, x 2∈ (-1, 1), then what is f(x) equal to?

  3. Let R be a relation from A = {1, 2, 3, 4} to B = {1, 3, 5} such that

    R = {(a, b) : a < b, where a ∈ A and b ∈ B}.

    What is RoR -1 equal to?

  4. In an examination, 70% students passed in physics, 80% student passed in Chemistry, 75% students passed in Mathematics and 85% students passed in Biology, and x% students failed in all the four subjects. What is the minimum value of x?

  5. If f(x) = 2x - x 2, then what is the value of f(x + 2) + f(x - 2) when x = 0?

  6. Which one of the following functions is neither even nor odd?

  7. Let \({\rm{f}}\left( {\rm{a}} \right) = \frac{{{\rm{a}} - 1}}{{{\rm{a}} + 1}}\) .

    Consider the following:

    1. f(2a) = f(a) + 1

    2. \({\rm{f}}\left( {\frac{1}{{\rm{a}}}} \right) = - {\rm{f}}\left( {\rm{a}} \right)\)

    Which of the above is/are correct?
  8. Let R be a relation on the set N of natural numbers defined by ‘nRm ⟺ n is a factor of m’. Then which one of the following is correct?

  9. f(xy) = f(x) + f(y) is true for all

  10. Let S = {(x, y): x 2+ y 2= 1, - 1 ≤ x ∈ R ≤ 1 and - 1 ≤ y ∈ R ≤ 1} Which one of the following is correct?


Important Questions from Relations and Functions

  1. If f(x + 1) = x 2- 3x + 2, then what is f(x) equal to?

  2. If \({\rm{f}}\left( {{{\rm{x}}_1}} \right) - {\rm{f}}\left( {{{\rm{x}}_2}} \right) = {\rm{f}}\left( {\frac{{{{\rm{x}}_1} - {{\rm{x}}_2}}}{{1 - {{\rm{x}}_1}{{\rm{x}}_2}}}} \right)\) for x 1, x 2∈ (-1, 1), then what is f(x) equal to?

  3. Let R be a relation from A = {1, 2, 3, 4} to B = {1, 3, 5} such that

    R = {(a, b) : a < b, where a ∈ A and b ∈ B}.

    What is RoR -1 equal to?

  4. In an examination, 70% students passed in physics, 80% student passed in Chemistry, 75% students passed in Mathematics and 85% students passed in Biology, and x% students failed in all the four subjects. What is the minimum value of x?

  5. Let P and Q be two non-void relations on a set A. Which of the following statements are correct?
    I. P and Q are reflexive \(\Rightarrow P \cap Q\) is reflexive.
    II. P and Q are symmetric \(\Rightarrow P \cup Q\) is symmetric.
    III. P and Q are transitive \(\Rightarrow P \cap Q\) is transitive.
    Select the answer using the code given below.
Need Expert Advice?
Test Series
NDA img
Defence
NDA 2026 Mock Test Series (Latest Pattern)
526 Tests 1 Tests Free
1175 Attempts
4.7(160)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App