SOLVER7 Study. Nothing Else.
2024 Board Paper Q26(b)

A function f is defined from \(R\rightarrow R\) as \(f(x) = ax + b,\) such that \(f(1)=1\) and \(f(2) = 3.\) Find function \(f(x).\) Hence, check whether function \(f(x)\) is one-one and onto or not.

CBSE Class 12 Maths · Relations and Functions

Solution

👶 Simple Explanation

Simple Explanation

Imagine a machine that takes a number, doubles it, and then subtracts one. Put in 1, you get 1. Put in 2, you get 3. That matching tells us exactly what the machine does. No two different numbers ever give the same result, so the machine never confuses inputs. Also, every possible output has exactly one input that produces it, so nothing is left out.

Answer: The function is \( f(x) = 2x - 1 \). It is both one-one (injective) and onto (surjective), hence a bijection from \( R \) to \( R \).

📖 Finding a Linear Function and Checking One-One & Onto

Detailed Explanation

A function of the form \( f(x) = ax + b \) is a linear function. Here \( a \) and \( b \) are unknown constants. If we are given two output values, we can form two equations and solve for \( a \) and \( b \). Once the function is known, we test two properties. A function is one-one (injective) if different inputs always give different outputs, that is \( f(x_1) = f(x_2) \Rightarrow x_1 = x_2 \). A function is onto (surjective) from \( R \) to \( R \) if every element \( y \) in the codomain \( R \) has some pre-image \( x \) in the domain such that \( f(x) = y \).

Formula Used

\( f(x) = ax + b \); one-one: \( f(x_1) = f(x_2) \Rightarrow x_1 = x_2 \); onto: for every \( y \in R \), there exists \( x \in R \) with \( f(x) = y \).

Solution

  1. Step 1: Use the given conditions to form equations. Since \( f(1) = 1 \), substitute \( x = 1 \) into \( f(x) = ax + b \) to get \[ a(1) + b = 1 \] which gives \[ a + b = 1. \]
  2. Step 2: Since \( f(2) = 3 \), substitute \( x = 2 \) to get \[ a(2) + b = 3 \] which gives \[ 2a + b = 3. \]
  3. Step 3: Solve the two equations. Subtract the first equation from the second: \[ (2a + b) - (a + b) = 3 - 1 \] which simplifies to \[ a = 2. \] Substitute \( a = 2 \) into \( a + b = 1 \) to get \[ 2 + b = 1 \] so \[ b = -1. \]
  4. Step 4: Write the function using the found values. With \( a = 2 \) and \( b = -1 \), the function is \[ f(x) = 2x - 1. \]
  5. Step 5: Check whether the function is one-one. Assume \( f(x_1) = f(x_2) \). Then \[ 2x_1 - 1 = 2x_2 - 1. \] Adding 1 to both sides and dividing by 2 gives \[ x_1 = x_2. \] Since equal outputs force equal inputs, \( f \) is one-one.
  6. Step 6: Check whether the function is onto. Let \( y \in R \) be any element of the codomain. We need \( x \) with \( f(x) = y \), so solve \[ 2x - 1 = y. \] This gives \[ x = \frac{y + 1}{2}. \] Since \( y \) is real, \( x \) is also real, so \( x \in R \). Thus every \( y \) has a pre-image, and \( f \) is onto.

Final Answer

The function is \( f(x) = 2x - 1 \). It is both one-one (injective) and onto (surjective), hence a bijection from \( R \) to \( R \).

Common Mistake

A common mistake is to conclude a function is onto without actually solving \( f(x) = y \) for \( x \) and confirming that \( x \) lies in the domain \( R \). Just showing it is one-one does not prove it is onto; both properties must be checked separately.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Substitute the first given value \( f(1) = 1 \) into \( f(x) = ax + b \): \[ a(1) + b = 1 \] which gives \( a + b = 1 \). Reason: Each known input-output pair produces one equation in the two unknowns \( a \) and \( b \).
  2. Step 2: Substitute the second given value \( f(2) = 3 \) into \( f(x) = ax + b \): \[ a(2) + b = 3 \] which gives \( 2a + b = 3 \). Reason: A second equation is needed so we have a system that can be solved uniquely for both unknowns.
  3. Step 3: Subtract the first equation from the second to eliminate \( b \): \[ (2a + b) - (a + b) = 3 - 1 \] Simplifying gives \( a = 2 \). Reason: Subtracting eliminates the common term \( b \), leaving a single-variable equation that is easy to solve.
  4. Step 4: Substitute \( a = 2 \) back into \( a + b = 1 \): \[ 2 + b = 1 \] so \( b = -1 \). The function is therefore \[ f(x) = 2x - 1. \] Reason: Back-substitution gives the value of the remaining unknown, completing the identification of the function.
  5. Step 5: Check one-one (injective): Assume \( f(x_1) = f(x_2) \) for some \( x_1, x_2 \in R \). Then \[ 2x_1 - 1 = 2x_2 - 1. \] Cancelling \( -1 \) from both sides gives \( 2x_1 = 2x_2 \), and dividing by 2 gives \( x_1 = x_2 \). Reason: If the assumption \( f(x_1) = f(x_2) \) always forces \( x_1 = x_2 \), then no two different inputs share the same output, confirming injectivity.
  6. Step 6: Check onto (surjective): Let \( y \in R \) be arbitrary. We need to find \( x \in R \) such that \( f(x) = y \). Setting \[ 2x - 1 = y \] and solving gives \[ x = \frac{y + 1}{2}. \] Since \( y \in R \), we have \( x = \frac{y+1}{2} \in R \), and \( f\!\left(\frac{y+1}{2}\right) = y \). Reason: Explicitly finding a real pre-image for every real \( y \) proves that the codomain \( R \) is fully covered.

Final Answer

The function is \( f(x) = 2x - 1 \). It is both one-one (injective) and onto (surjective), hence a bijection from \( R \) to \( R \).

Common Mistake

One common mistake: students often verify injectivity or surjectivity for only a few specific values instead of using a general argument (arbitrary \( x_1, x_2 \) or arbitrary \( y \)), which does not constitute a valid proof.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Step 1: Find a and b: From \( f(1) = 1 \): \( a + b = 1 \). From \( f(2) = 3 \): \( 2a + b = 3 \). Subtracting: \( a = 2 \), then \( b = -1 \). So \[ f(x) = 2x - 1. \]
  2. Step 2: One-one check: \( f(x_1) = f(x_2) \Rightarrow 2x_1 - 1 = 2x_2 - 1 \Rightarrow x_1 = x_2 \). Hence one-one.
  3. Step 3: Onto check: For any \( y \in R \), set \( x = \frac{y + 1}{2} \in R \). Then \( f(x) = 2 \cdot \frac{y+1}{2} - 1 = y \). Hence onto.

Answer: The function is \( f(x) = 2x - 1 \). It is both one-one (injective) and onto (surjective), hence a bijection from \( R \) to \( R \).

➕ More Examples

More Examples

Example 1

Question: A function f: R → R is defined as \( f(x) = ax + b \). Given that \( f(2) = 5 \) and \( f(4) = 9 \), find \( f(x) \). Hence check whether \( f \) is one-one and onto.

Solution: Step 1 — Set up equations using the given conditions. From \( f(2) = 5 \): \[ 2a + b = 5 \quad \text{...(i)} \] From \( f(4) = 9 \): \[ 4a + b = 9 \quad \text{...(ii)} \] Step 2 — Solve the system. Subtracting (i) from (ii): \[ 2a = 4 \implies a = 2 \] Substituting \( a = 2 \) into (i): \[ 4 + b = 5 \implies b = 1 \] Step 3 — Write the function. Therefore \[ f(x) = 2x + 1 \] Step 4 — Check one-one. Let \( f(x_1) = f(x_2) \) for \( x_1, x_2 \in \mathbb{R} \). Then \[ 2x_1 + 1 = 2x_2 + 1 \implies 2x_1 = 2x_2 \implies x_1 = x_2 \] Since \( f(x_1) = f(x_2) \) implies \( x_1 = x_2 \), the function is one-one. Step 5 — Check onto. Let \( y \in \mathbb{R} \) be arbitrary. We need \( x \in \mathbb{R} \) such that \( f(x) = y \). \[ 2x + 1 = y \implies x = \frac{y - 1}{2} \] Since \( y \in \mathbb{R} \), we get \( x = \frac{y-1}{2} \in \mathbb{R} \) and \( f(x) = y \). Hence every element of the codomain has a pre-image, so \( f \) is onto.

Answer: \( f(x) = 2x + 1 \); \( f \) is both one-one and onto (bijective).

Example 2

Question: A function f: R → R is defined as \( f(x) = ax + b \). Given that \( f(0) = -3 \) and \( f(3) = 6 \), find \( f(x) \). Hence check whether \( f \) is one-one and onto.

Solution: Step 1 — Set up equations using the given conditions. From \( f(0) = -3 \): \[ a(0) + b = -3 \implies b = -3 \quad \text{...(i)} \] From \( f(3) = 6 \): \[ 3a + b = 6 \quad \text{...(ii)} \] Step 2 — Solve the system. Substituting \( b = -3 \) into (ii): \[ 3a - 3 = 6 \implies 3a = 9 \implies a = 3 \] Step 3 — Write the function. Therefore \[ f(x) = 3x - 3 \] Step 4 — Check one-one. Let \( f(x_1) = f(x_2) \) for \( x_1, x_2 \in \mathbb{R} \). Then \[ 3x_1 - 3 = 3x_2 - 3 \implies 3x_1 = 3x_2 \implies x_1 = x_2 \] Since \( f(x_1) = f(x_2) \) implies \( x_1 = x_2 \), the function is one-one. Step 5 — Check onto. Let \( y \in \mathbb{R} \) be arbitrary. We need \( x \in \mathbb{R} \) such that \( f(x) = y \). \[ 3x - 3 = y \implies x = \frac{y + 3}{3} \] Since \( y \in \mathbb{R} \), we get \( x = \frac{y+3}{3} \in \mathbb{R} \) and \( f(x) = y \). Hence every element of the codomain has a pre-image, so \( f \) is onto.

Answer: \( f(x) = 3x - 3 \); \( f \) is both one-one and onto (bijective).

🎯 Try a Similar Question

Try a Similar Question

Question: A function f is defined from \( \mathbb{R} \to \mathbb{R} \) as \( f(x) = ax + b \), such that \( f(2) = 1 \) and \( f(4) = 7 \). Find the function \( f(x) \). Hence, check whether \( f(x) \) is one-one and onto.

Solution

  1. Step 1: Set up equations using the given conditions: We are given \( f(x) = ax + b \). Using \( f(2) = 1 \): \[ 2a + b = 1 \quad \cdots (1) \] Using \( f(4) = 7 \): \[ 4a + b = 7 \quad \cdots (2) \]
  2. Step 2: Solve for a and b: Subtract equation (1) from equation (2): \[ (4a + b) - (2a + b) = 7 - 1 \] \[ 2a = 6 \] \[ a = 3 \] Substitute \( a = 3 \) back into equation (1): \[ 2(3) + b = 1 \] \[ 6 + b = 1 \] \[ b = -5 \]
  3. Step 3: Write the function: Substituting \( a = 3 \) and \( b = -5 \), the function is: \[ f(x) = 3x - 5 \]
  4. Step 4: Check one-one (injective): Let \( x_1, x_2 \in \mathbb{R} \) such that \( f(x_1) = f(x_2) \). Then: \[ 3x_1 - 5 = 3x_2 - 5 \] \[ 3x_1 = 3x_2 \] \[ x_1 = x_2 \] Since \( f(x_1) = f(x_2) \) implies \( x_1 = x_2 \), the function is one-one (injective).
  5. Step 5: Check onto (surjective): Let \( y \in \mathbb{R} \) be any element of the codomain. We need to find \( x \in \mathbb{R} \) such that \( f(x) = y \). Set \( f(x) = y \): \[ 3x - 5 = y \] \[ x = \frac{y + 5}{3} \] Since \( y \in \mathbb{R} \), we have \( x = \frac{y+5}{3} \in \mathbb{R} \). Also, \[ f\left(\frac{y+5}{3}\right) = 3 \cdot \frac{y+5}{3} - 5 = y + 5 - 5 = y \] Every \( y \in \mathbb{R} \) has a pre-image in \( \mathbb{R} \), so \( f \) is onto (surjective).
  6. Step 6: Conclusion: The function \( f(x) = 3x - 5 \) is both one-one and onto, so it is a bijection from \( \mathbb{R} \) to \( \mathbb{R} \).

Answer: The function is \( f(x) = 3x - 5 \). It is both one-one (injective) and onto (surjective), hence a bijection from \( \mathbb{R} \) to \( \mathbb{R} \).

Everything you get with Solver7

More questions in Relations and Functions