SOLVER7 Study. Nothing Else.
2026 Board Paper Q22(a)

Check whether \(f : R –\{3\}\rightarrow R\) defined as \(f(x)=\dfrac{x-2}{x-3}\) is onto or not.

CBSE Class 12 Maths · Relations and Functions

Solution

👶 Simple Explanation

Simple Explanation

Imagine a vending machine where every button must give you a snack. If one button never gives anything, the machine is broken. A function works the same way: every output value in the codomain must be reachable from some input. Here, the function is \( f(x) = \frac{x-2}{x-3} \). When we try to get the output \( y = 1 \), no input works. So the value \( 1 \) is like a broken button. Because one output is unreachable, the function is NOT onto.

Answer: The range of \( f \) is \( \mathbb{R} - \{1\} \), while the codomain is \( \mathbb{R} \). Since these are not equal (the value \( y = 1 \) has no pre-image), the function \( f \) is NOT onto.

📖 Checking if f(x) = (x-2)/(x-3) is Onto

Detailed Explanation

A function \( f : A \to B \) is called onto (or surjective) if every element of the codomain \( B \) has at least one pre-image in the domain \( A \). In other words, the range of \( f \) must equal the codomain \( B \). Here the codomain is \( \mathbb{R} \). To test whether \( f \) is onto, we take any element \( y \) in the codomain and try to solve \( f(x) = y \) for \( x \) in the domain \( \mathbb{R} - \{3\} \). If for some value of \( y \) there is no valid \( x \), then that \( y \) has no pre-image, and \( f \) is not onto.

Formula Used

\( f \) is onto \( \iff \) Range of \( f = \) Codomain. Given \( f(x) = \dfrac{x-2}{x-3} \).

Solution

  1. Step 1: Let \( y \) be any arbitrary element of the codomain \( \mathbb{R} \). For \( f \) to be onto, there must exist some \( x \in \mathbb{R} - \{3\} \) such that \( f(x) = y \). So we set up the equation \[ \frac{x-2}{x-3} = y. \]
  2. Step 2: Solve this equation for \( x \) in terms of \( y \). Cross-multiplying gives \[ x - 2 = y(x - 3). \] Expanding the right side, \[ x - 2 = xy - 3y. \]
  3. Step 3: Collect the terms containing \( x \) on one side. \[ x - xy = 2 - 3y. \] Factor out \( x \) on the left. \[ x(1 - y) = 2 - 3y. \] Therefore \[ x = \frac{2 - 3y}{1 - y}. \]
  4. Step 4: This expression for \( x \) is valid only when the denominator \( 1 - y \ne 0 \), that is when \( y \ne 1 \). So for every \( y \ne 1 \), we can find a corresponding \( x \). But when \( y = 1 \), the expression is undefined, meaning there is no \( x \) mapping to \( 1 \).
  5. Step 5: Confirm that \( y = 1 \) truly has no pre-image. Suppose \( f(x) = 1 \). Then \[ \frac{x-2}{x-3} = 1 \] gives \[ x - 2 = x - 3, \] which simplifies to \[ -2 = -3, \] a contradiction. Hence no \( x \) gives \( f(x) = 1 \).
  6. Step 6: Since \( y = 1 \) belongs to the codomain \( \mathbb{R} \) but has no pre-image in the domain, the range of \( f \) is \( \mathbb{R} - \{1\} \), which is not equal to the codomain \( \mathbb{R} \).

Final Answer

The range of \( f \) is \( \mathbb{R} - \{1\} \), while the codomain is \( \mathbb{R} \). Since these are not equal (the value \( y = 1 \) has no pre-image), the function \( f \) is NOT onto.

Common Mistake

A common mistake is to conclude \( f \) is onto just because we can solve for \( x \) in terms of \( y \), while forgetting to check the excluded value where the denominator \( 1 - y = 0 \). Missing \( y = 1 \) leads to the wrong conclusion.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Pick an arbitrary element \( y \) from the codomain \( \mathbb{R} \) and ask: does there exist some \( x \in \mathbb{R} - \{3\} \) such that \( f(x) = y \)? Set up the equation \[ \frac{x-2}{x-3} = y. \] — Reason: This is the standard surjectivity test; if we can always find such an \( x \), the function is onto.
  2. Step 2: Cross-multiply both sides to eliminate the fraction: \[ x - 2 = y(x - 3). \] Then expand the right-hand side: \[ x - 2 = xy - 3y. \] — Reason: Clearing the denominator converts the equation into a linear form that is easier to solve for \( x \).
  3. Step 3: Bring all terms involving \( x \) to the left side: \[ x - xy = 2 - 3y. \] Factor \( x \) out on the left: \[ x(1 - y) = 2 - 3y. \] — Reason: Grouping \( x \)-terms allows us to isolate \( x \) in the next step.
  4. Step 4: Divide both sides by \( (1 - y) \) to solve for \( x \): \[ x = \frac{2 - 3y}{1 - y}. \] — Reason: This gives an explicit pre-image \( x \) for any given \( y \), provided the denominator is non-zero.
  5. Step 5: Identify when the solution breaks down. The expression \( x = \dfrac{2 - 3y}{1 - y} \) is undefined whenever \( 1 - y = 0 \), i.e., when \( y = 1 \). For every other real number \( y \ne 1 \), a valid pre-image \( x \) exists. — Reason: Division by zero is undefined, so \( y = 1 \) cannot be achieved by any \( x \) in the domain.
  6. Step 6: Verify that the pre-image found for \( y \ne 1 \) actually lies in the domain \( \mathbb{R} - \{3\} \). Check whether \( x = \dfrac{2 - 3y}{1 - y} \) can equal \( 3 \): setting it equal to \( 3 \) gives \( 2 - 3y = 3(1 - y) = 3 - 3y \), so \( 2 = 3 \), which is a contradiction. Therefore \( x \ne 3 \) for all valid \( y \), confirming \( x \in \mathbb{R} - \{3\} \). — Reason: We must ensure the pre-image respects the domain restriction of \( f \).
  7. Step 7: Conclude the range. Since a pre-image exists for every \( y \in \mathbb{R} \) except \( y = 1 \), the range of \( f \) is \( \mathbb{R} - \{1\} \). Compare this with the codomain \( \mathbb{R} \): because \( \mathbb{R} - \{1\} \ne \mathbb{R} \), the function fails the onto condition. — Reason: Surjectivity requires Range \( = \) Codomain; even one missing output value disqualifies the function.

Final Answer

The range of \( f \) is \( \mathbb{R} - \{1\} \), while the codomain is \( \mathbb{R} \). Since these are not equal (the value \( y = 1 \) has no pre-image), the function \( f \) is NOT onto.

Common Mistake

One common mistake: students check only that the formula for \( x \) exists (denominator \( \ne 0 \)) but forget to verify whether the resulting \( x \) truly belongs to the domain \( \mathbb{R} - \\{3\\} \). Always confirm the pre-image satisfies every domain restriction before concluding the function is onto.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Set \( f(x) = y \): \[ \frac{x-2}{x-3} = y \]
  2. Step 2: Solve for \( x \): \[ x - 2 = y(x-3) \implies x(1-y) = 2 - 3y \implies x = \frac{2-3y}{1-y} \]
  3. Step 3: Valid only when \( 1 - y \ne 0 \), i.e., \( y \ne 1 \). So Range of \( f \) = \( \mathbb{R} - \{1\} \ne \mathbb{R} \).

Answer: The range of \( f \) is \( \mathbb{R} - \{1\} \), while the codomain is \( \mathbb{R} \). Since these are not equal (the value \( y = 1 \) has no pre-image), the function \( f \) is NOT onto.

➕ More Examples

More Examples

Example 1

Question: Check whether the function \( f : \mathbb{R} - \{2\} \to \mathbb{R} \) defined as \( f(x) = \dfrac{x + 1}{x - 2} \) is onto or not.

Solution: We check whether every real number \( y \in \mathbb{R} \) has a pre-image in the domain \( \mathbb{R} - \{2\} \). Let \( y = f(x) \), i.e., \( y = \dfrac{x + 1}{x - 2} \). Solving for \( x \): \[ y(x - 2) = x + 1 \] \[ xy - 2y = x + 1 \] \[ xy - x = 2y + 1 \] \[ x(y - 1) = 2y + 1 \] \[ x = \frac{2y + 1}{y - 1}, \quad y \ne 1 \] Now, \( x \) is not defined when \( y = 1 \). That is, for \( y = 1 \in \mathbb{R} \), there is no \( x \in \mathbb{R} - \{2\} \) such that \( f(x) = 1 \). To verify: \[ \frac{x + 1}{x - 2} = 1 \Rightarrow x + 1 = x - 2 \Rightarrow 1 = -2 \] which is a contradiction. Since \( y = 1 \) in the codomain \( \mathbb{R} \) has no pre-image in the domain, the function is NOT onto.

Answer: f is NOT onto, since y = 1 has no pre-image in the domain.

Example 2

Question: Check whether the function \( f : \mathbb{R} - \{-4\} \to \mathbb{R} \) defined as \( f(x) = \dfrac{2x + 3}{x + 4} \) is onto or not.

Solution: We check whether every real number \( y \in \mathbb{R} \) has a pre-image in the domain \( \mathbb{R} - \{-4\} \). Let \( y = f(x) \), i.e., \( y = \dfrac{2x + 3}{x + 4} \). Solving for \( x \): \[ y(x + 4) = 2x + 3 \] \[ xy + 4y = 2x + 3 \] \[ xy - 2x = 3 - 4y \] \[ x(y - 2) = 3 - 4y \] \[ x = \frac{3 - 4y}{y - 2}, \quad y \ne 2 \] Now, \( x \) is not defined when \( y = 2 \). That is, for \( y = 2 \in \mathbb{R} \), there is no \( x \in \mathbb{R} - \{-4\} \) such that \( f(x) = 2 \). To verify: \[ \frac{2x + 3}{x + 4} = 2 \Rightarrow 2x + 3 = 2x + 8 \Rightarrow 3 = 8 \] which is a contradiction. We should also verify that for all \( y \ne 2 \), the solution \( x = \dfrac{3 - 4y}{y - 2} \) lies in the domain, i.e., \( x \ne -4 \). Suppose \( x = -4 \): \[ \frac{3 - 4y}{y - 2} = -4 \Rightarrow 3 - 4y = -4(y - 2) = -4y + 8 \Rightarrow 3 = 8 \] which is again a contradiction, so \( x \) never equals \( -4 \). Thus for every \( y \ne 2 \), the pre-image exists in the domain. Since \( y = 2 \) in the codomain \( \mathbb{R} \) has no pre-image in the domain, the function is NOT onto.

Answer: f is NOT onto, since y = 2 has no pre-image in the domain.

🎯 Try a Similar Question

Try a Similar Question

Question: Check whether \( f : \mathbb{R} - \{5\} \to \mathbb{R} \) defined as \( f(x) = \dfrac{2x + 1}{x - 5} \) is onto or not.

Solution

  1. Step 1: Set up the equation to find the range: Let \( y \in \mathbb{R} \) (codomain) be any arbitrary element. We need to check whether there exists \( x \in \mathbb{R} - \{5\} \) such that \( f(x) = y \). So we set: \[ \frac{2x + 1}{x - 5} = y \]
  2. Step 2: Solve for x in terms of y: Multiplying both sides by \( (x - 5) \): \[ 2x + 1 = y(x - 5) \] Expanding the right side: \[ 2x + 1 = xy - 5y \] Collecting terms with \( x \) on one side: \[ 2x - xy = -5y - 1 \] Factoring out \( x \): \[ x(2 - y) = -5y - 1 \] Dividing both sides by \( (2 - y) \), provided \( y \ne 2 \): \[ x = \frac{-5y - 1}{2 - y} \]
  3. Step 3: Check when x is valid (i.e., x is in the domain): The value \( x = \frac{-5y - 1}{2 - y} \) is defined only when \( 2 - y \ne 0 \), i.e., when \( y \ne 2 \). When \( y = 2 \), the equation \( 2x + 1 = 2(x - 5) \) gives \( 2x + 1 = 2x - 10 \), which simplifies to \( 1 = -10 \), a contradiction. So there is no pre-image for \( y = 2 \).
  4. Step 4: Verify x is not equal to 5 for valid y: We also need to confirm \( x \ne 5 \) for the pre-image to lie in the domain \( \mathbb{R} - \{5\} \). Suppose \( x = 5 \); then \( \frac{-5y - 1}{2 - y} = 5 \), giving \( -5y - 1 = 10 - 5y \), i.e., \( -1 = 10 \), another contradiction. So \( x \ne 5 \) always holds for valid \( y \).
  5. Step 5: Determine the range and conclude: For every \( y \in \mathbb{R} \) with \( y \ne 2 \), the pre-image \( x = \frac{-5y - 1}{2 - y} \) exists in \( \mathbb{R} - \{5\} \). However, for \( y = 2 \), no pre-image exists. Therefore, the range of \( f \) is \( \mathbb{R} - \{2\} \), which is a proper subset of the codomain \( \mathbb{R} \). Since Range\((f) \ne \mathbb{R}\), the function \( f \) is NOT onto.

Answer: The range of \( f \) is \( \mathbb{R} - \{2\} \), while the codomain is \( \mathbb{R} \). Since these are not equal (the value \( y = 2 \) has no pre-image in \( \mathbb{R} - \{5\} \)), the function \( f \) is NOT onto.

Everything you get with Solver7

More questions in Relations and Functions