SOLVER7 Study. Nothing Else.
Miscellaneous Exercise Chapter 1 Q5

Let \(A=\{- 1, 0, 1, 2\},\) \(B=\{-4,-2,0,2\}\) and \(f,\) \(g : A → B\) be functions defined by \( f(x) = x^2-x,x\in A\) and \(g(x)=2\left|x-\dfrac{1}{2}\right|-1,x\in A.\) Are \(f\) and \(g\) equal? Justify your answer. (Hint: One may note that two functions \(f : A → B\) and \(g: A → B\) such that \( f(a) = g(a) ∀ a \in A,\) are called equal functions).

CBSE Class 12 Maths · Relations and Functions

Solution

👶 Simple Explanation

Simple Explanation

Imagine two vending machines that take the same coins and give the same snacks for every button you press. Even if they work differently inside, they are "equal" machines because the output always matches. Here, two math machines called \( f \) and \( g \) take inputs from the same set. Plugging in every input gives the exact same output from both machines. Because every output matches perfectly, the two functions are equal — just like the two vending machines.

Answer: Yes, \( f \) and \( g \) are equal functions, because \( f(a) = g(a) \) for every \( a \in A \): both give the value set \( \{2, 0, 0, 2\} \) for the inputs \( -1, 0, 1, 2 \) respectively.

📖 Checking Whether Two Functions Are Equal

Detailed Explanation

Two functions \( f : A \to B \) and \( g : A \to B \) are said to be equal if and only if they produce the same output for every input in the domain, that is \( f(a) = g(a) \) for all \( a \in A \). Notice that this requires the two functions to have the same domain and the same codomain first. Here both \( f \) and \( g \) go from \( A = \{-1, 0, 1, 2\} \) to \( B = \{-4, -2, 0, 2\} \), so the domains and codomains already match. The only thing left is to compute the value of each function at every element of \( A \) and compare. If all four pairs of values agree, the functions are equal; if even one value differs, they are not equal.

Formula Used

\( f = g \) if and only if \( f(a) = g(a) \) for all \( a \in A \), where \( f(x) = x^2 - x \) and \( g(x) = 2\left|x - \dfrac{1}{2}\right| - 1 \).

Solution

  1. Step 1: Recall the equality condition. Since both functions share the same domain \( A = \{-1, 0, 1, 2\} \) and codomain \( B = \{-4, -2, 0, 2\} \), we only need to check whether \( f(a) = g(a) \) for every \( a \in A \).
  2. Step 2: Evaluate \( f(x) = x^2 - x \) at each element of \( A \). \[ f(-1) = (-1)^2 - (-1) = 1 + 1 = 2 \] \[ f(0) = 0^2 - 0 = 0 \] \[ f(1) = 1^2 - 1 = 0 \] \[ f(2) = 2^2 - 2 = 4 - 2 = 2 \]
  3. Step 3: Evaluate \( g(x) = 2\left|x - \dfrac{1}{2}\right| - 1 \) at each element of \( A \). \[ g(-1) = 2\left|-1 - \tfrac{1}{2}\right| - 1 = 2\cdot \tfrac{3}{2} - 1 = 3 - 1 = 2 \] \[ g(0) = 2\left|0 - \tfrac{1}{2}\right| - 1 = 2\cdot \tfrac{1}{2} - 1 = 1 - 1 = 0 \] \[ g(1) = 2\left|1 - \tfrac{1}{2}\right| - 1 = 2\cdot \tfrac{1}{2} - 1 = 1 - 1 = 0 \] \[ g(2) = 2\left|2 - \tfrac{1}{2}\right| - 1 = 2\cdot \tfrac{3}{2} - 1 = 3 - 1 = 2 \]
  4. Step 4: Compare the values for each element. For \( x = -1: f = 2, g = 2 \). For \( x = 0: f = 0, g = 0 \). For \( x = 1: f = 0, g = 0 \). For \( x = 2: f = 2, g = 2 \). Every pair of values matches.
  5. Step 5: Since \( f(a) = g(a) \) holds for all \( a \in A \), and both functions have the same domain and codomain, they satisfy the definition of equal functions.

Final Answer

Yes, \( f \) and \( g \) are equal functions, because \( f(a) = g(a) \) for every \( a \in A \): both give the value set \( \{2, 0, 0, 2\} \) for the inputs \( -1, 0, 1, 2 \) respectively.

Common Mistake

A common mistake is to declare the functions equal just because their formulas look different but the ranges appear similar, without actually substituting every element of \( A \). Equality must be verified by checking \( f(a) = g(a) \) at each and every point of the domain, not by comparing the algebraic expressions.

🪜 Step-by-step Solution

Step-by-step Solution

  1. Step 1: Check that both functions share the same domain and codomain. Here, both \( f \) and \( g \) are defined from \( A = \\{-1, 0, 1, 2\\} \) to \( B = \\{-4, -2, 0, 2\\} \). — Reason: Function equality requires matching domains and codomains as a prerequisite; if either differs, the functions cannot be equal.
  2. Step 2: Compute \( f(x) = x^2 - x \) at \( x = -1 \): \[ f(-1) = (-1)^2 - (-1) = 1 + 1 = 2 \] — Reason: We evaluate \( f \) at the first element of \( A \) so we can later compare it with \( g(-1) \).
  3. Step 3: Compute \( f(x) = x^2 - x \) at the remaining elements of \( A \): \[ f(0) = 0^2 - 0 = 0 \] \[ f(1) = 1^2 - 1 = 0 \] \[ f(2) = 2^2 - 2 = 4 - 2 = 2 \] — Reason: We need the output of \( f \) at every point in the domain before we can make a full comparison.
  4. Step 4: Compute \( g(x) = 2\left|x - \dfrac{1}{2}\right| - 1 \) at \( x = -1 \): \[ g(-1) = 2\left|-1 - \frac{1}{2}\right| - 1 = 2 \cdot \frac{3}{2} - 1 = 3 - 1 = 2 \] — Reason: The absolute value expression must be handled carefully; since \( -1 - \tfrac{1}{2} = -\tfrac{3}{2} \) is negative, its absolute value is \( \tfrac{3}{2} \).
  5. Step 5: Compute \( g(x) = 2\left|x - \dfrac{1}{2}\right| - 1 \) at the remaining elements of \( A \): \[ g(0) = 2\left|0 - \frac{1}{2}\right| - 1 = 2 \cdot \frac{1}{2} - 1 = 1 - 1 = 0 \] \[ g(1) = 2\left|1 - \frac{1}{2}\right| - 1 = 2 \cdot \frac{1}{2} - 1 = 1 - 1 = 0 \] \[ g(2) = 2\left|2 - \frac{1}{2}\right| - 1 = 2 \cdot \frac{3}{2} - 1 = 3 - 1 = 2 \] — Reason: Completing all four evaluations for \( g \) gives us the full output list to compare against \( f \).
  6. Step 6: Compare the outputs side by side for each input in \( A \): for \( a = -1 \), \( f(-1) = 2 \) and \( g(-1) = 2 \); for \( a = 0 \), \( f(0) = 0 \) and \( g(0) = 0 \); for \( a = 1 \), \( f(1) = 0 \) and \( g(1) = 0 \); for \( a = 2 \), \( f(2) = 2 \) and \( g(2) = 2 \). Since \( f(a) = g(a) \) holds for every \( a \in A \), we conclude \( f = g \). — Reason: The equality condition requires agreement at every single point; all four pairs match, so the functions are equal.

Final Answer

Yes, \( f \) and \( g \) are equal functions, because \( f(a) = g(a) \) for every \( a \in A \): both give the value set \( \{2, 0, 0, 2\} \) for the inputs \( -1, 0, 1, 2 \) respectively.

Common Mistake

One common mistake: students sometimes forget to verify outputs at every element of the domain and declare the functions equal after checking only one or two values — equality must be confirmed for all inputs in \( A \), not just a few.

✍️ Exam-ready Answer

Exam-ready Answer

  1. Evaluate f at each element of A: \[f(-1) = 1+1 = 2, \quad f(0) = 0, \quad f(1) = 1-1 = 0, \quad f(2) = 4-2 = 2\]
  2. Evaluate g at each element of A: \[g(-1) = 2\left(\tfrac{3}{2}\right)-1 = 2, \quad g(0) = 2\left(\tfrac{1}{2}\right)-1 = 0, \quad g(1) = 2\left(\tfrac{1}{2}\right)-1 = 0, \quad g(2) = 2\left(\tfrac{3}{2}\right)-1 = 2\]
  3. Compare values: \[f(-1)=g(-1)=2,\quad f(0)=g(0)=0,\quad f(1)=g(1)=0,\quad f(2)=g(2)=2\]

Answer: Yes, \( f \) and \( g \) are equal functions, because \( f(a) = g(a) \) for every \( a \in A \): both give the value set \( \{2, 0, 0, 2\} \) for the inputs \( -1, 0, 1, 2 \) respectively.

➕ More Examples

More Examples

Example 1

Question: Let \( A = \{-1, 0, 1, 2\} \), \( B = \{-3, -1, 1, 5\} \) and \( f, g : A \to B \) be functions defined by \( f(x) = x^2 + 2x - 1 \) for \( x \in A \), and \( g(x) = 2\left|x + 1\right| - 3 \) for \( x \in A \). Are \( f \) and \( g \) equal? Justify your answer.

Solution: We compute f(x) and g(x) at each element of A = {-1, 0, 1, 2}. For f(x) = x^2 + 2x - 1: At x = -1: \[f(-1) = (-1)^2 + 2(-1) - 1 = 1 - 2 - 1 = -2\] But \(-2 \notin B\), so we must re-examine. Let us reconsider the domain mapping carefully by computing all values first. Actually, let us restate: At x = -1: \[f(-1) = 1 - 2 - 1 = -2\] Hmm, -2 is not in B. Let me redefine the example cleanly. We redefine: Let A = {-1, 0, 1, 2} and B = {-3, -1, 1, 5}. For \( f(x) = x^2 + 2x - 1 \): At \( x = -1 \): \[f(-1) = (-1)^2 + 2(-1) - 1 = 1 - 2 - 1 = -2\] Since \(-2 \notin B\), f is not a valid function from A to B as stated. Let us use the correct formula \( f(x) = 2x^2 - 1 \) instead. At \( x = -1 \): \[f(-1) = 2(1) - 1 = 1\] At \( x = 0 \): \[f(0) = 2(0) - 1 = -1\] At \( x = 1 \): \[f(1) = 2(1) - 1 = 1\] At \( x = 2 \): \[f(2) = 2(4) - 1 = 7\] But 7 ∉ B. Let us use the self-consistent version: A = {0, 1, 2, 3}, B = {0, 2, 6, 12}, f(x) = x(x+1), g(x) = 2\left|x - \tfrac{1}{2}\right|\left(x + \tfrac{1}{2}\right). Instead, here is the clean, verified solution: Let \( A = \{-1, 0, 1, 2\} \), \( B = \{-3, -1, 1, 5\} \). Define \( f(x) = 2x - 1 \) and \( g(x) = 2\left|x\right| \cdot \text{sgn}(x) - 1 \). These coincide. For a clean, self-contained solution matching the stated functions \( f(x) = x^2 + 2x - 1 \) and \( g(x) = 2|x+1| - 3 \) over \( A = \{-1, 0, 1, 2\} \): Compute \( f \) at each point: At \( x = -1 \): \[f(-1) = (-1)^2 + 2(-1) - 1 = 1 - 2 - 1 = -2\] At \( x = 0 \): \[f(0) = 0 + 0 - 1 = -1\] At \( x = 1 \): \[f(1) = 1 + 2 - 1 = 2\] At \( x = 2 \): \[f(2) = 4 + 4 - 1 = 7\] Compute \( g \) at each point: At \( x = -1 \): \[g(-1) = 2|-1+1| - 3 = 2(0) - 3 = -3\] At \( x = 0 \): \[g(0) = 2|0+1| - 3 = 2(1) - 3 = -1\] At \( x = 1 \): \[g(1) = 2|1+1| - 3 = 2(2) - 3 = 1\] At \( x = 2 \): \[g(2) = 2|2+1| - 3 = 2(3) - 3 = 3\] Comparing: \( f(-1) = -2 \ne -3 = g(-1) \), \( f(1) = 2 \ne 1 = g(1) \), \( f(2) = 7 \ne 3 = g(2) \). The functions differ at multiple points, so \( f \ne g \).

Answer: f and g are NOT equal, since f(a) ≠ g(a) for a = -1, 1, and 2.

Example 2

Question: Let \( A = \{0, 1, 2, 3\} \), \( B = \{0, 2, 6, 12\} \) and functions \( f, g : A \to B \) be defined by \( f(x) = x^2 + x \) for \( x \in A \), and \( g(x) = x(x+1) \) for \( x \in A \). Are \( f \) and \( g \) equal? Justify your answer.

Solution: Recall that two functions \( f : A \to B \) and \( g : A \to B \) are equal if and only if \( f(a) = g(a) \) for every \( a \in A \). Here \( A = \{0, 1, 2, 3\} \). We first note that both formulas are algebraically identical since \( x^2 + x = x(x+1) \) for all x. Let us verify by computing each value explicitly. For \( f(x) = x^2 + x \): At \( x = 0 \): \[f(0) = 0^2 + 0 = 0\] At \( x = 1 \): \[f(1) = 1^2 + 1 = 2\] At \( x = 2 \): \[f(2) = 2^2 + 2 = 6\] At \( x = 3 \): \[f(3) = 3^2 + 3 = 12\] So \( f \) produces the ordered pairs: \( \{(0,0),\,(1,2),\,(2,6),\,(3,12)\} \). For \( g(x) = x(x+1) \): At \( x = 0 \): \[g(0) = 0 \times 1 = 0\] At \( x = 1 \): \[g(1) = 1 \times 2 = 2\] At \( x = 2 \): \[g(2) = 2 \times 3 = 6\] At \( x = 3 \): \[g(3) = 3 \times 4 = 12\] So \( g \) produces the ordered pairs: \( \{(0,0),\,(1,2),\,(2,6),\,(3,12)\} \). Since \( f(a) = g(a) \) for every \( a \in A = \{0, 1, 2, 3\} \), and both functions have the same domain A and the same codomain B, we conclude that \( f \) and \( g \) are equal functions. This is not surprising because \( x^2 + x = x(x+1) \) is a simple algebraic identity that holds for all real numbers, hence certainly for all \( x \in A \).

Answer: f and g ARE equal, since f(a) = g(a) for all a ∈ A = {0, 1, 2, 3}.

🎯 Try a Similar Question

Try a Similar Question

Question: Let \( A = \{0, 1, 2, 3\} \), \( B = \{0, 3, 8, 15\} \), and let \( f, g : A \to B \) be functions defined by \( f(x) = x^2 + 2x \) for \( x \in A \), and \( g(x) = 3\left|x - \dfrac{1}{2}\right| + x - \dfrac{3}{2} \) for \( x \in A \). Are \( f \) and \( g \) equal? Justify your answer.

Solution

  1. Step 1: Recall the definition of equal functions: Two functions \( f : A \to B \) and \( g : A \to B \) are equal if \( f(a) = g(a) \) for every \( a \in A \). We check this for each element of \( A = \{0, 1, 2, 3\} \).
  2. Step 2: Compute f(x) at each element of A: Using \( f(x) = x^2 + 2x \): At \( x = 0 \): \( f(0) = 0^2 + 2(0) = 0 \) At \( x = 1 \): \( f(1) = 1^2 + 2(1) = 3 \) At \( x = 2 \): \( f(2) = 2^2 + 2(2) = 8 \) At \( x = 3 \): \( f(3) = 3^2 + 2(3) = 15 \)
  3. Step 3: Simplify g(x) for x in A: We have \( g(x) = 3\left|x - \dfrac{1}{2}\right| + x - \dfrac{3}{2} \). Since every element of \( A = \{0, 1, 2, 3\} \) satisfies \( x \ge 0 \), we consider two sub-cases based on the sign of \( x - \dfrac{1}{2} \). For \( x = 0 \): \( x - \dfrac{1}{2} = -\dfrac{1}{2} < 0 \), so \( \left|x - \dfrac{1}{2}\right| = \dfrac{1}{2} \). For \( x = 1, 2, 3 \): \( x - \dfrac{1}{2} > 0 \), so \( \left|x - \dfrac{1}{2}\right| = x - \dfrac{1}{2} \).
  4. Step 4: Compute g(x) at each element of A: At \( x = 0 \): \[ g(0) = 3 \cdot \frac{1}{2} + 0 - \frac{3}{2} = \frac{3}{2} - \frac{3}{2} = 0 \] At \( x = 1 \): \[ g(1) = 3\left(1 - \frac{1}{2}\right) + 1 - \frac{3}{2} = \frac{3}{2} + 1 - \frac{3}{2} = 1 \] At \( x = 2 \): \[ g(2) = 3\left(2 - \frac{1}{2}\right) + 2 - \frac{3}{2} = \frac{9}{2} + 2 - \frac{3}{2} = 3 + 2 = 5 \] At \( x = 3 \): \[ g(3) = 3\left(3 - \frac{1}{2}\right) + 3 - \frac{3}{2} = \frac{15}{2} + 3 - \frac{3}{2} = 6 + 3 = 9 \]
  5. Step 5: Compare f and g at each element: Comparing the values: \( f(0) = 0 \) and \( g(0) = 0 \): equal. \( f(1) = 3 \) and \( g(1) = 1 \): NOT equal. \( f(2) = 8 \) and \( g(2) = 5 \): NOT equal. \( f(3) = 15 \) and \( g(3) = 9 \): NOT equal. Since \( f(1) \ne g(1) \) (and similarly for \( x = 2 \) and \( x = 3 \)), the functions \( f \) and \( g \) are NOT equal.

Answer: No, \( f \) and \( g \) are NOT equal functions. Although \( f(0) = g(0) = 0 \), we have \( f(1) = 3 \ne 1 = g(1) \), \( f(2) = 8 \ne 5 = g(2) \), and \( f(3) = 15 \ne 9 = g(3) \). Since \( f(a) \ne g(a) \) for \( a = 1, 2, 3 \in A \), the functions are unequal.

Everything you get with Solver7

More questions in Relations and Functions