Solveeit Logo

Question

Question: If $f: A \rightarrow B$, where $A = \{a, b, c, d\}$ and $B = \{x, y, z\}$ and $f(a) = x$, then numbe...

If f:ABf: A \rightarrow B, where A={a,b,c,d}A = \{a, b, c, d\} and B={x,y,z}B = \{x, y, z\} and f(a)=xf(a) = x, then number of such INTO functions is

A

27

B

15

C

21

D

none of these

Answer

15

Explanation

Solution

To find the number of INTO functions from set A to set B with the given condition, we can use two approaches:

Approach 1: Total functions - ONTO functions

  1. Calculate the total number of functions: Given A={a,b,c,d}A = \{a, b, c, d\} and B={x,y,z}B = \{x, y, z\}. The condition is f(a)=xf(a) = x. This means the image of 'a' is fixed. For the remaining elements in A, i.e., {b,c,d}\{b, c, d\}, each can be mapped to any of the 3 elements in B ({x, y, z}). Number of choices for f(b)f(b) = 3 Number of choices for f(c)f(c) = 3 Number of choices for f(d)f(d) = 3 Total number of functions = 1×3×3×3=33=271 \times 3 \times 3 \times 3 = 3^3 = 27.

  2. Calculate the number of ONTO functions: An ONTO function means that every element in the codomain B must be the image of at least one element in the domain A. Since f(a)=xf(a) = x, the element 'x' in B is already covered. For the function to be ONTO, the remaining elements in B, i.e., {y,z}\{y, z\}, must be covered by the images of the remaining elements in A, i.e., {b,c,d}\{b, c, d\}. Let A={b,c,d}A' = \{b, c, d\} and B={x,y,z}B = \{x, y, z\}. We need to find the number of functions g:ABg: A' \rightarrow B such that yg(A)y \in g(A') and zg(A)z \in g(A').

    We use the Principle of Inclusion-Exclusion for this:

    • Total functions from AA' to BB is 3A=33=273^{|A'|} = 3^3 = 27.
    • Let PyP_y be the property that 'y' is not in the range of g(A)g(A'). This means g(A){x,z}g(A') \subseteq \{x, z\}. The number of such functions is 23=82^3 = 8.
    • Let PzP_z be the property that 'z' is not in the range of g(A)g(A'). This means g(A){x,y}g(A') \subseteq \{x, y\}. The number of such functions is 23=82^3 = 8.
    • Let PyPzP_y \cap P_z be the property that 'y' and 'z' are not in the range of g(A)g(A'). This means g(A){x}g(A') \subseteq \{x\}. The number of such functions is 13=11^3 = 1.

    The number of functions where 'y' is not covered OR 'z' is not covered is PyPz=Py+PzPyPz=8+81=15|P_y \cup P_z| = |P_y| + |P_z| - |P_y \cap P_z| = 8 + 8 - 1 = 15. The number of functions where both 'y' AND 'z' are covered by f({b,c,d})f(\{b, c, d\}) is: Total functions from AA' to BB - (Functions where y or z is not covered) =2715=12= 27 - 15 = 12. These 12 functions, combined with f(a)=xf(a)=x, ensure that all elements of B are covered. Thus, there are 12 ONTO functions.

  3. Calculate the number of INTO functions: An INTO function is a function that is not ONTO. Number of INTO functions = Total functions - Number of ONTO functions Number of INTO functions = 2712=1527 - 12 = 15.

Approach 2: Direct calculation of INTO functions

An INTO function means the range of ff, f(A)f(A), is a proper subset of BB. Since f(a)=xf(a) = x, 'x' must be in the range of ff. So, the possible ranges for INTO functions are subsets of BB that contain xx but are not equal to BB:

  1. Range is {x}\{x\}
  2. Range is {x,y}\{x, y\}
  3. Range is {x,z}\{x, z\}
  • Case 1: f(A)={x}f(A) = \{x\} This means all elements of A must map to 'x'. Since f(a)=xf(a)=x is given, we need f(b)=xf(b)=x, f(c)=xf(c)=x, f(d)=xf(d)=x. Number of functions = 1×1×1=11 \times 1 \times 1 = 1.

  • Case 2: f(A)={x,y}f(A) = \{x, y\} This means the elements {b,c,d}\{b, c, d\} must map to {x,y}\{x, y\} such that 'y' is in the range of f({b,c,d})f(\{b, c, d\}). Total functions from {b,c,d}\{b, c, d\} to {x,y}\{x, y\} is 23=82^3 = 8. From these, we must exclude functions where 'y' is not in the range (i.e., all elements map to 'x'). The number of such functions is 13=11^3 = 1. Number of functions for this case = 81=78 - 1 = 7.

  • Case 3: f(A)={x,z}f(A) = \{x, z\} This means the elements {b,c,d}\{b, c, d\} must map to {x,z}\{x, z\} such that 'z' is in the range of f({b,c,d})f(\{b, c, d\}). Total functions from {b,c,d}\{b, c, d\} to {x,z}\{x, z\} is 23=82^3 = 8. From these, we must exclude functions where 'z' is not in the range (i.e., all elements map to 'x'). The number of such functions is 13=11^3 = 1. Number of functions for this case = 81=78 - 1 = 7.

Total number of INTO functions = (Case 1) + (Case 2) + (Case 3) = 1+7+7=151 + 7 + 7 = 15.

Both approaches yield the same result.