100% FREE Updated: Apr 2026 Algebra and Functions Relations and Functions

Basic function language

Comprehensive study notes on Basic function language for CMI BS Hons preparation. This chapter covers key concepts, formulas, and examples needed for your exam.

Basic function language

This chapter introduces the fundamental concepts underpinning function theory within Algebra and Functions. It meticulously defines sets, ordered pairs, relations, and their associated propertiesβ€”domain, range, and codomainβ€”laying the essential groundwork for advanced topics. Mastery of these foundational elements is critical for success in CMI examinations, as they constitute the prerequisite knowledge for comprehending subsequent functional analysis.

---

Chapter Contents

|

| Topic |

|---|-------| | 1 | Sets and subsets | | 2 | Ordered pairs and Cartesian product | | 3 | Relations | | 4 | Domain | | 5 | Range | | 6 | Codomain |

---

We begin with Sets and subsets.

Part 1: Sets and subsets

Sets and Subsets

Overview

Sets are the basic language of modern mathematics. Before studying functions, relations, and mappings, one must be comfortable with membership, subsets, set operations, and the logic of inclusion. In CMI-style questions, this topic is usually tested through careful definitions, counting subsets, power sets, interval/set description, and symbolic manipulation using union, intersection, and complement. ---

Learning Objectives

❗ By the End of This Topic

After studying this topic, you will be able to:

  • understand the meaning of a set, an element, and a subset

  • distinguish between ∈\in and βŠ†\subseteq

  • work with union, intersection, difference, and complement

  • count subsets and understand the power set

  • translate between verbal, roster, and set-builder descriptions

  • avoid common logical errors involving empty set and singleton sets

---

What is a Set?

πŸ“– Set

A set is a well-defined collection of objects.

If an object xx belongs to a set AA, we write

x∈A\qquad x \in A

If xx does not belong to AA, we write

xβˆ‰A\qquad x \notin A

πŸ“ Ways to Describe a Set

A set can be written in different ways:

  • Roster form

A={1,2,3,4}\qquad A=\{1,2,3,4\}

  • Set-builder form

A={x∈N:1≀x≀4}\qquad A=\{x \in \mathbb{N} : 1 \le x \le 4\}

  • Descriptive form

A=\qquad A= the set of natural numbers from 11 to 44

---

Basic Symbols

πŸ“ Membership and Inclusion Symbols
    • x∈Ax \in A means xx is an element of AA
    • xβˆ‰Ax \notin A means xx is not an element of AA
    • AβŠ†BA \subseteq B means every element of AA is also an element of BB
    • AβŠ‚BA \subset B means AA is a proper subset of BB
    • A=BA = B means both sets have exactly the same elements
⚠️ Do Not Mix Up These Symbols
    • ∈\in compares an element with a set
    • βŠ†\subseteq compares a set with a set
For example, if A={1,2,3}A=\{1,2,3\}, then
    • 1∈A1 \in A is true
    • {1}βŠ†A\{1\} \subseteq A is true
    • 1βŠ†A1 \subseteq A is meaningless
    • {1}∈A\{1\} \in A is false
---

Subsets

πŸ“– Subset

A set AA is a subset of a set BB if every element of AA belongs to BB.

We write

AβŠ†B\qquad A \subseteq B

If AβŠ†BA \subseteq B and Aβ‰ BA \ne B, then AA is a proper subset of BB, written as

AβŠ‚B\qquad A \subset B

❗ Important Facts About Subsets

For every set AA:

    • βˆ…βŠ†A\varnothing \subseteq A

    • AβŠ†AA \subseteq A


So every set has at least two subsets:
    • the empty set

    • the set itself

---

Empty Set

πŸ“– Empty Set

The empty set is the set with no elements. It is denoted by

βˆ…\qquad \varnothing

or sometimes by {}\{\}.

⚠️ Very Important Distinction

These are different:

    • βˆ…\varnothing = empty set

    • {βˆ…}\{\varnothing\} = a set whose only element is the empty set


So:
    • βˆ…\varnothing has 00 elements

    • {βˆ…}\{\varnothing\} has 11 element

---

Equality of Sets

πŸ“ When Two Sets Are Equal

Two sets AA and BB are equal if and only if they contain exactly the same elements.

A common proof method is:

    • show AβŠ†BA \subseteq B

    • show BβŠ†AB \subseteq A


Then conclude

A=B\qquad A=B

---

Set Operations

πŸ“ Union, Intersection, Difference

For sets AA and BB:

  • Union:

AβˆͺB={x:x∈AΒ orΒ x∈B}\qquad A \cup B = \{x : x \in A \text{ or } x \in B\}

  • Intersection:

A∩B={x:x∈A and x∈B}\qquad A \cap B = \{x : x \in A \text{ and } x \in B\}

  • Difference:

Aβˆ–B={x:x∈AΒ andΒ xβˆ‰B}\qquad A \setminus B = \{x : x \in A \text{ and } x \notin B\}

  • Complement:

If UU is the universal set, then
Ac=Uβˆ–A\qquad A^c = U \setminus A

πŸ“ Basic Identities
    • Aβˆͺβˆ…=AA \cup \varnothing = A
    • Aβˆ©βˆ…=βˆ…A \cap \varnothing = \varnothing
    • AβˆͺA=AA \cup A = A
    • A∩A=AA \cap A = A
    • AβˆͺU=UA \cup U = U
    • A∩U=AA \cap U = A
    • AβˆͺAc=UA \cup A^c = U
    • A∩Ac=βˆ…A \cap A^c = \varnothing
---

De Morgan's Laws

πŸ“ De Morgan's Laws

With respect to a universal set UU,

    • (AβˆͺB)c=Ac∩Bc(A \cup B)^c = A^c \cap B^c

    • (A∩B)c=AcβˆͺBc(A \cap B)^c = A^c \cup B^c


These are very important in logic, set algebra, and function language.

---

Power Set and Number of Subsets

πŸ“– Power Set

The power set of a set AA, denoted by P(A)\mathcal{P}(A), is the set of all subsets of AA.

πŸ“ Counting Subsets

If a finite set AA has nn elements, then:

    • number of subsets of AA is 2n\qquad 2^n

    • number of proper subsets of AA is 2nβˆ’1\qquad 2^n - 1

    • number of non-empty subsets of AA is 2nβˆ’1\qquad 2^n - 1

    • number of non-empty proper subsets of AA is 2nβˆ’2\qquad 2^n - 2

πŸ’‘ Why 2n2^n?

For each element, there are exactly two choices:

    • include it

    • do not include it


So for nn independent choices, the total number of subsets is

2β‹…2⋅…⋅2=2n\qquad 2 \cdot 2 \cdot \ldots \cdot 2 = 2^n

---

Intervals as Sets

πŸ“ Useful Interval Language

Real-number sets are often written in interval notation:

    • (a,b)={x∈R:a<x<b}(a,b)=\{x \in \mathbb{R}: a<x<b\}

    • [a,b]={x∈R:a≀x≀b}[a,b]=\{x \in \mathbb{R}: a\le x\le b\}

    • (a,b]={x∈R:a<x≀b}(a,b]=\{x \in \mathbb{R}: a<x\le b\}

    • [a,b)={x∈R:a≀x<b}[a,b)=\{x \in \mathbb{R}: a\le x<b\}


This language becomes important later in domains and ranges of functions.

---

Minimal Worked Examples

Example 1 Let A={1,2,3}\qquad A=\{1,2,3\} List all subsets of AA. The subsets are βˆ…,Β {1},Β {2},Β {3},Β {1,2},Β {1,3},Β {2,3},Β {1,2,3}\qquad \varnothing,\ \{1\},\ \{2\},\ \{3\},\ \{1,2\},\ \{1,3\},\ \{2,3\},\ \{1,2,3\} So there are 23=8\qquad 2^3=8 subsets. --- Example 2 Let A={1,2,3,4},B={3,4,5}\qquad A=\{1,2,3,4\}, \quad B=\{3,4,5\} Then A∩B={3,4}\qquad A \cap B = \{3,4\} AβˆͺB={1,2,3,4,5}\qquad A \cup B = \{1,2,3,4,5\} Aβˆ–B={1,2}\qquad A \setminus B = \{1,2\} Bβˆ–A={5}\qquad B \setminus A = \{5\} ---

Common Logical Traps

⚠️ Avoid These Errors
    • ❌ thinking βˆ…βˆˆA\varnothing \in A for every set AA
    • ❌ confusing βˆ…\varnothing with {βˆ…}\{\varnothing\}
    • ❌ confusing x∈Ax \in A with {x}βŠ†A\{x\} \subseteq A
    • ❌ forgetting that order does not matter in sets
    • ❌ repeating an element while counting set size
    • ❌ assuming Aβˆ–B=Bβˆ–AA \setminus B = B \setminus A
---

Strategy for CMI-Type Questions

πŸ’‘ CMI Strategy

  • Read symbols very carefully. Many questions are really about notation.

  • When proving equality, use double inclusion.

  • When counting subsets, think in binary choice form.

  • For symbolic set algebra, translate union as β€œor” and intersection as β€œand”.

  • Keep empty set and singleton-set distinctions explicit.

  • In interval problems, rewrite in set-builder form if needed.

---

Practice Questions

:::question type="MCQ" question="If A={1,2,3}A=\{1,2,3\}, which of the following is true?" options=["1βŠ†A1 \subseteq A","1∈A\\{1\\} \in A","1βŠ†A\\{1\\} \subseteq A","βˆ…βˆˆA\varnothing \in A"] answer="C" hint="Distinguish carefully between membership and subset." solution="We check each statement.
  • 1βŠ†A1 \subseteq A is meaningless because 11 is an element, not a set.
  • {1}∈A\{1\} \in A is false because the elements of AA are 1,2,31,2,3, not the set {1}\{1\}.
  • {1}βŠ†A\{1\} \subseteq A is true because every element of {1}\{1\} belongs to AA.
  • βˆ…βˆˆA\varnothing \in A is false because the empty set is not listed as an element of AA.
  • Hence the correct option is C\boxed{C}." ::: :::question type="NAT" question="A set has 44 elements. How many non-empty proper subsets does it have?" answer="14" hint="Use the total number of subsets first." solution="If a set has 44 elements, then the total number of subsets is 24=16\qquad 2^4 = 16 Among these:
    • one subset is the empty set
    • one subset is the set itself
    So the number of non-empty proper subsets is 16βˆ’2=14\qquad 16 - 2 = 14 Therefore the answer is 14\boxed{14}." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["βˆ…βŠ†A\varnothing \subseteq A for every set AA","If AβŠ†BA \subseteq B and BβŠ†AB \subseteq A, then A=BA=B","βˆ…\\{\varnothing\\} has no elements","If a set has nn elements, then it has 2n2^n subsets"] answer="A,B,D" hint="Recall the role of the empty set and the power set." solution="1. True. The empty set is a subset of every set.
  • True. This is the double inclusion criterion for equality of sets.
  • False. The set {βˆ…}\{\varnothing\} has exactly one element, namely βˆ…\varnothing.
  • True. A set with nn elements has 2n2^n subsets.
  • Hence the correct answer is A,B,D\boxed{A,B,D}." ::: :::question type="SUB" question="Let A={1,2,3,4}A=\{1,2,3,4\} and B={2,4,6}B=\{2,4,6\}. Find A∩BA \cap B, AβˆͺBA \cup B, and Aβˆ–BA \setminus B." answer="A∩B=2,4,AβˆͺB=1,2,3,4,6,Aβˆ–B=1,3A \cap B=\\{2,4\\},\\ A \cup B=\\{1,2,3,4,6\\},\\ A \setminus B=\\{1,3\\}" hint="Intersection means common elements, union means all elements, and difference means elements of AA not in BB." solution="We compare the elements of the two sets. The elements common to both AA and BB are 22 and 44, so A∩B={2,4}\qquad A \cap B = \{2,4\} The union contains all distinct elements from both sets, so AβˆͺB={1,2,3,4,6}\qquad A \cup B = \{1,2,3,4,6\} The difference Aβˆ–BA \setminus B means elements of AA that are not in BB, so Aβˆ–B={1,3}\qquad A \setminus B = \{1,3\} Therefore, A∩B={2,4},Β AβˆͺB={1,2,3,4,6},Β Aβˆ–B={1,3}\boxed{A \cap B=\{2,4\},\ A \cup B=\{1,2,3,4,6\},\ A \setminus B=\{1,3\}}." ::: ---

    Summary

    ❗ Key Takeaways for CMI

    • ∈\in is for element-to-set comparison, while βŠ†\subseteq is for set-to-set comparison.

    • The empty set is a subset of every set.

    • A set with nn elements has 2n2^n subsets.

    • βˆ…\varnothing and {βˆ…}\{\varnothing\} are completely different objects.

    • Union means β€œor”, intersection means β€œand”, and set difference means β€œin one but not the other”.

    • Sets are the language in which relations and functions are naturally expressed.

    ---

    πŸ’‘ Next Up

    Proceeding to Ordered pairs and Cartesian product.

    ---

    Part 2: Ordered pairs and Cartesian product

    Ordered Pairs and Cartesian Product

    Overview

    Ordered pairs and Cartesian products form the language in which relations and functions are written. This topic looks elementary, but in CMI-style questions it is often tested through counting, set construction, domain-codomain reasoning, and logical precision. The key point is that order matters in ordered pairs, and Cartesian products create the universe from which relations and functions are built. ---

    Learning Objectives

    ❗ By the End of This Topic

    After studying this topic, you will be able to:

    • define and interpret an ordered pair correctly.

    • distinguish between (a,b)(a,b) and (b,a)(b,a).

    • construct Cartesian products of finite sets.

    • count the number of elements in a Cartesian product.

    • describe relations and functions as subsets of Cartesian products.

    ---

    Ordered Pair

    πŸ“– Ordered Pair

    An ordered pair is an expression of the form

    (a,b)\qquad (a,b)

    where:

      • aa is called the first component

      • bb is called the second component


    Two ordered pairs are equal if and only if their corresponding components are equal:

    (a,b)=(c,d)β€…β€ŠβŸΊβ€…β€Ša=cΒ andΒ b=d\qquad (a,b) = (c,d) \iff a=c \text{ and } b=d

    ❗ Most Important Fact

    In general,

    (a,b)β‰ (b,a)\qquad (a,b) \ne (b,a)

    unless

    a=b\qquad a=b

    So order matters.

    ---

    Basic Examples

    • (2,5)(2,5) and (5,2)(5,2) are different ordered pairs
    • (3,3)(3,3) and (3,3)(3,3) are equal
    • if (x+1,2x)=(5,8)(x+1,2x)=(5,8), then
    x+1=5\qquad x+1=5 and 2x=8\qquad 2x=8 so x=4x=4 ---

    Cartesian Product

    πŸ“– Cartesian Product of Two Sets

    If AA and BB are sets, then the Cartesian product of AA and BB is the set

    AΓ—B={(a,b):a∈A,Β b∈B}\qquad A \times B = \{(a,b) : a \in A,\ b \in B\}

    That is, AΓ—BA \times B is the set of all ordered pairs whose first component comes from AA and second component comes from BB.

    πŸ“ Finite Set Cardinality

    If AA and BB are finite sets, then

    ∣AΓ—B∣=∣Aβˆ£β‹…βˆ£B∣\qquad |A \times B| = |A|\cdot|B|

    ---

    Examples of Cartesian Products

    If A={1,2},B={a,b,c}\qquad A=\{1,2\},\quad B=\{a,b,c\} then AΓ—B={(1,a),(1,b),(1,c),(2,a),(2,b),(2,c)}\qquad A\times B=\{(1,a),(1,b),(1,c),(2,a),(2,b),(2,c)\} So ∣AΓ—B∣=2β‹…3=6\qquad |A\times B|=2\cdot 3=6 But BΓ—A={(a,1),(a,2),(b,1),(b,2),(c,1),(c,2)}\qquad B\times A=\{(a,1),(a,2),(b,1),(b,2),(c,1),(c,2)\} and this is a different set from AΓ—BA\times B. ---

    Important Properties

    πŸ“ Basic Properties

    • If A=βˆ…A=\varnothing or B=βˆ…B=\varnothing, then

    AΓ—B=βˆ…\qquad A\times B=\varnothing

    • In general,

    A×B≠B×A\qquad A\times B \ne B\times A

    • If AβŠ†CA \subseteq C and BβŠ†DB \subseteq D, then

    AΓ—BβŠ†CΓ—D\qquad A\times B \subseteq C\times D

    • If AA and BB are finite, then

    ∣AΓ—B∣=∣A∣∣B∣\qquad |A\times B|=|A||B|

    ⚠️ Do Not Confuse These
      • AΓ—BA\times B is a set of ordered pairs
      • AβˆͺBA\cup B is a set of elements
      • AΓ—BA\times B is not the same thing as {a,b}\{a,b\}
      • AΓ—AA\times A is not the same as AA
    ---

    Ordered Pair Equality

    πŸ“ Equality Rule

    If

    (p,q)=(r,s)\qquad (p,q)=(r,s)

    then necessarily

    p=randq=s\qquad p=r \quad \text{and} \quad q=s

    This is one of the fastest tools in algebraic questions involving ordered pairs.

    Example If (2xβˆ’1,Β x+3)=(5,Β 7)\qquad (2x-1,\ x+3)=(5,\ 7) then 2xβˆ’1=5\qquad 2x-1=5 and x+3=7\qquad x+3=7 Both give x=3\qquad x=3 So the equality is consistent. ---

    Cartesian Product with More Than Two Sets

    πŸ“– Triple Cartesian Product

    For sets A,B,CA,B,C,

    AΓ—BΓ—C={(a,b,c):a∈A,Β b∈B,Β c∈C}\qquad A\times B\times C = \{(a,b,c): a\in A,\ b\in B,\ c\in C\}

    If all three sets are finite, then

    ∣AΓ—BΓ—C∣=∣A∣∣B∣∣C∣\qquad |A\times B\times C|=|A||B||C|

    Example If A={1,2},Β B={0,1},Β C={x,y}\qquad A=\{1,2\},\ B=\{0,1\},\ C=\{x,y\} then ∣AΓ—BΓ—C∣=2β‹…2β‹…2=8\qquad |A\times B\times C|=2\cdot 2\cdot 2=8 ---

    Relations as Subsets of Cartesian Products

    πŸ“– Relation

    A relation from a set AA to a set BB is any subset of

    AΓ—B\qquad A\times B

    So a relation does not need to contain all ordered pairs; it can contain some of them.

    Example If A={1,2},Β B={a,b}\qquad A=\{1,2\},\ B=\{a,b\} then AΓ—B={(1,a),(1,b),(2,a),(2,b)}\qquad A\times B=\{(1,a),(1,b),(2,a),(2,b)\} A possible relation is R={(1,a),(2,b)}\qquad R=\{(1,a),(2,b)\} since RβŠ†AΓ—BR \subseteq A\times B. ---

    Functions as Special Relations

    πŸ“– Function

    A function from AA to BB is a relation fβŠ†AΓ—Bf \subseteq A\times B such that each element of AA appears exactly once as first component.

    So for every a∈Aa\in A, there is exactly one b∈Bb\in B such that

    (a,b)∈f\qquad (a,b)\in f

    πŸ’‘ Why Ordered Pairs Matter in Functions

    A function is literally described by ordered pairs:

      • first component = input

      • second component = output


    That is why understanding ordered pairs and Cartesian products is necessary before studying functions properly.

    ---

    Counting Questions

    πŸ“ How Many Ordered Pairs?

    If ∣A∣=m|A|=m and ∣B∣=n|B|=n, then the number of ordered pairs in AΓ—BA\times B is

    mn\qquad mn

    If order matters and repetition is allowed from the same set AA, then the count of ordered pairs from AΓ—AA\times A is

    ∣A∣2\qquad |A|^2

    Example If A={1,2,3,4}A=\{1,2,3,4\}, then ∣AΓ—A∣=42=16\qquad |A\times A|=4^2=16 ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ Writing (a,b)=(b,a)(a,b)=(b,a) automatically
    βœ… They are equal only when a=ba=b.
      • ❌ Thinking AΓ—B=BΓ—AA\times B = B\times A
    βœ… These are usually different because order changes.
      • ❌ Forgetting that AΓ—BA\times B contains ordered pairs, not ordinary elements
    βœ… Each element has the form (a,b)(a,b).
      • ❌ Adding cardinalities instead of multiplying
    βœ… For finite sets, ∣AΓ—B∣=∣A∣∣B∣\qquad |A\times B|=|A||B|
      • ❌ Thinking every subset of AΓ—BA\times B is a function
    βœ… A function is a very special kind of subset.
    ---

    CMI Strategy

    πŸ’‘ How to Think in Exam Questions

    • First check whether order matters.

    • If the question asks for all possible input-output combinations, think Cartesian product.

    • If the question asks for a relation, think subset of a Cartesian product.

    • If the question asks for a function, check uniqueness of second component for each first component.

    • In counting problems, multiply sizes, do not add them.

    ---

    Practice Questions

    :::question type="MCQ" question="If A={1,2}A=\{1,2\} and B={a,b,c}B=\{a,b,c\}, then how many elements are there in AΓ—BA\times B?" options=["33","55","66","88"] answer="C" hint="Use the formula for the cardinality of a Cartesian product." solution="We have ∣A∣=2,∣B∣=3\qquad |A|=2,\quad |B|=3 So ∣AΓ—B∣=∣A∣∣B∣=2β‹…3=6\qquad |A\times B|=|A||B|=2\cdot 3=6 Therefore the correct answer is C\boxed{C}." ::: :::question type="NAT" question="If (2x+1,Β 3xβˆ’2)=(7,Β 7)(2x+1,\ 3x-2)=(7,\ 7), find the value of xx." answer="3" hint="Equate corresponding components." solution="Equality of ordered pairs gives: 2x+1=7\qquad 2x+1=7 and 3xβˆ’2=7\qquad 3x-2=7 From the first, 2x=6\qquad 2x=6 so x=3\qquad x=3 Check in the second: 3(3)βˆ’2=9βˆ’2=7\qquad 3(3)-2=9-2=7 So the value of xx is 3\boxed{3}." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["If (a,b)=(c,d)(a,b)=(c,d), then a=ca=c and b=db=d.","In general, AΓ—B=BΓ—AA\times B = B\times A.","A relation from AA to BB is a subset of AΓ—BA\times B.","If AA is a set with 44 elements, then ∣AΓ—A∣=8|A\times A|=8."] answer="A,C" hint="Check equality, order, and counting carefully." solution="1. True. This is the defining property of equality of ordered pairs.
  • False. In general, AΓ—BA\times B and BΓ—AB\times A are different because order matters.
  • True. By definition, a relation from AA to BB is a subset of AΓ—BA\times B.
  • False. If ∣A∣=4|A|=4, then
  • ∣AΓ—A∣=4β‹…4=16\qquad |A\times A|=4\cdot 4=16 Hence the correct answer is A,C\boxed{A,C}." ::: :::question type="SUB" question="Let A={1,2}A=\{1,2\} and B={x,y,z}B=\{x,y,z\}. Write AΓ—BA\times B explicitly and explain why AΓ—Bβ‰ BΓ—AA\times B \ne B\times A." answer="AΓ—B=(1,x),(1,y),(1,z),(2,x),(2,y),(2,z)A\times B=\\{(1,x),(1,y),(1,z),(2,x),(2,y),(2,z)\\} and order matters, so AΓ—Bβ‰ BΓ—AA\times B \ne B\times A." hint="List all ordered pairs with first component from AA and second from BB." solution="By definition, AΓ—B={(a,b):a∈A,Β b∈B}\qquad A\times B=\{(a,b):a\in A,\ b\in B\} So AΓ—B={(1,x),(1,y),(1,z),(2,x),(2,y),(2,z)}\qquad A\times B=\{(1,x),(1,y),(1,z),(2,x),(2,y),(2,z)\} Now BΓ—A={(x,1),(x,2),(y,1),(y,2),(z,1),(z,2)}\qquad B\times A=\{(x,1),(x,2),(y,1),(y,2),(z,1),(z,2)\} These are not the same, because for example (1,x)∈AΓ—B\qquad (1,x)\in A\times B but (1,x)βˆ‰BΓ—A\qquad (1,x)\notin B\times A Hence AΓ—Bβ‰ BΓ—A\qquad \boxed{A\times B \ne B\times A} The reason is that ordered pairs depend on the order of components." ::: ---

    Summary

    ❗ Key Takeaways for CMI

    • An ordered pair (a,b)(a,b) remembers order.

    • (a,b)=(c,d)(a,b)=(c,d) only when both corresponding components are equal.

    • AΓ—BA\times B is the set of all ordered pairs with first entry from AA and second from BB.

    • For finite sets, ∣AΓ—B∣=∣A∣∣B∣|A\times B|=|A||B|.

    • Relations are subsets of Cartesian products.

    • Functions are special relations with exactly one output for each input.

    ---

    πŸ’‘ Next Up

    Proceeding to Relations.

    ---

    Part 3: Relations

    Relations

    Overview

    Relations are the language used to describe how elements of one set are connected to elements of another set, or to the same set. In CMI-style algebra, this topic is not just about definitions: it tests whether you can move comfortably between set notation, ordered pairs, properties of relations, and the transition from a general relation to a special relation like a function, an equivalence relation, or an order relation. ---

    Learning Objectives

    ❗ By the End of This Topic

    After studying this topic, you will be able to:

    • define a relation as a subset of a Cartesian product

    • find domain, codomain, and range of a relation

    • test whether a relation is reflexive, symmetric, antisymmetric, and transitive

    • distinguish between a general relation and a function

    • identify equivalence relations and partial orders

    ---

    Core Definition

    πŸ“– Relation Between Two Sets

    Let AA and BB be sets.

    A relation RR from AA to BB is any subset of the Cartesian product AΓ—BA\times B.

    So,

    RβŠ†AΓ—B\qquad R \subseteq A\times B

    If (a,b)∈R(a,b)\in R, we write

    aRb\qquad aRb

    which means that aa is related to bb under the relation RR.

    πŸ“ Cartesian Product

    If AA and BB are sets, then

    AΓ—B={(a,b):a∈A,Β b∈B}\qquad A\times B = \{(a,b): a\in A,\ b\in B\}

    So every relation from AA to BB is built from ordered pairs taken from AΓ—BA\times B.

    ---

    Domain, Codomain, and Range

    πŸ“ Basic Components of a Relation

    Suppose RβŠ†AΓ—BR\subseteq A\times B.

      • The domain of RR is the set of all first components that appear in RR:

    Dom⁑(R)={a∈A:βˆƒb∈BΒ suchΒ thatΒ (a,b)∈R}\qquad \operatorname{Dom}(R)=\{a\in A:\exists b\in B \text{ such that } (a,b)\in R\}

      • The codomain is the target set BB


      • The range or image set is the set of all second components that actually appear:

    Ran⁑(R)={b∈B:βˆƒa∈AΒ suchΒ thatΒ (a,b)∈R}\qquad \operatorname{Ran}(R)=\{b\in B:\exists a\in A \text{ such that } (a,b)\in R\}

    ❗ Very Important Distinction
      • codomain = full target set
      • range = only the values actually hit
    These are equal only in special cases.
    ---

    Relations on a Set

    πŸ“– Relation on a Set

    If RβŠ†AΓ—AR\subseteq A\times A, then RR is called a relation on the set AA.

    This is the setting where we study:

      • reflexive

      • symmetric

      • antisymmetric

      • transitive

    ---

    Four Main Properties

    πŸ“ Reflexive

    A relation RR on AA is reflexive if

    (a,a)∈Rfor every a∈A\qquad (a,a)\in R \quad \text{for every } a\in A

    That is, every element is related to itself.

    πŸ“ Symmetric

    A relation RR on AA is symmetric if

    (a,b)∈Rβ‡’(b,a)∈R\qquad (a,b)\in R \Rightarrow (b,a)\in R

    for all a,b∈Aa,b\in A.

    πŸ“ Antisymmetric

    A relation RR on AA is antisymmetric if

    (a,b)∈RΒ andΒ (b,a)∈Rβ‡’a=b\qquad (a,b)\in R \text{ and } (b,a)\in R \Rightarrow a=b

    for all a,b∈Aa,b\in A.

    This does not mean β€œnot symmetric”.
    It means two distinct elements cannot be related in both directions.

    πŸ“ Transitive

    A relation RR on AA is transitive if

    (a,b)∈RΒ andΒ (b,c)∈Rβ‡’(a,c)∈R\qquad (a,b)\in R \text{ and } (b,c)\in R \Rightarrow (a,c)\in R

    for all a,b,c∈Aa,b,c\in A.

    ---

    How to Read These Quickly

    πŸ’‘ Fast Testing Method

    When checking a relation on a finite set:

    • Reflexive: check whether all diagonal pairs (a,a)(a,a) are present

    • Symmetric: every arrow aβ†’ba\to b must be matched by bβ†’ab\to a

    • Antisymmetric: if both aβ†’ba\to b and bβ†’ab\to a occur, then a=ba=b

    • Transitive: whenever aβ†’ba\to b and bβ†’cb\to c are present, aβ†’ca\to c must also be present

    ---

    Equivalence Relations

    πŸ“– Equivalence Relation

    A relation RR on a set AA is an equivalence relation if it is:

      • reflexive

      • symmetric

      • transitive


    Examples:
      • equality on any set

      • congruence modulo nn on integers

      • β€œhas the same remainder upon division by nn”

    πŸ“ Equivalence Class

    If RR is an equivalence relation on AA, the equivalence class of a∈Aa\in A is

    [a]={x∈A:xRa}\qquad [a]=\{x\in A: xRa\}

    Equivalent elements belong to the same class.
    The set AA gets partitioned into disjoint equivalence classes.

    ---

    Partial Orders

    πŸ“– Partial Order

    A relation RR on a set AA is a partial order if it is:

      • reflexive

      • antisymmetric

      • transitive


    Examples:
      • ≀\le on real numbers

      • divisibility on positive integers

      • subset relation βŠ†\subseteq on a power set

    ❗ Difference Between Equivalence and Order
      • equivalence relation uses symmetric
      • partial order uses antisymmetric
    These are very different ideas.
    ---

    Inverse Relation

    πŸ“ Inverse of a Relation

    If RβŠ†AΓ—BR\subseteq A\times B, then the inverse relation Rβˆ’1βŠ†BΓ—AR^{-1}\subseteq B\times A is defined by

    Rβˆ’1={(b,a):(a,b)∈R}\qquad R^{-1}=\{(b,a):(a,b)\in R\}

    So the ordered pairs are reversed.

    ---

    Composition of Relations

    πŸ“ Composition

    Suppose
    RβŠ†AΓ—B\qquad R\subseteq A\times B
    and
    SβŠ†BΓ—C\qquad S\subseteq B\times C

    Then the composition S∘RS\circ R is the relation from AA to CC defined by

    (a,c)∈S∘Rβ€…β€ŠβŸΊβ€…β€Šβˆƒb∈BΒ suchΒ thatΒ (a,b)∈RΒ andΒ (b,c)∈S\qquad (a,c)\in S\circ R \iff \exists b\in B \text{ such that } (a,b)\in R \text{ and } (b,c)\in S

    This idea is very useful in function language and multi-step mappings. ---

    Relation vs Function

    πŸ“– When is a Relation a Function?

    A relation fβŠ†AΓ—Bf\subseteq A\times B is a function from AA to BB if for every a∈Aa\in A, there exists exactly one b∈Bb\in B such that

    (a,b)∈f\qquad (a,b)\in f

    So a function is a very special kind of relation:

      • every input must be used

      • every input must have exactly one output

    ⚠️ Do Not Confuse These

    A general relation may:

      • leave some elements of the domain unused

      • assign several outputs to one input


    A function cannot do either of these.

    ---

    Minimal Worked Examples

    Example 1 Let A={1,2,3}\qquad A=\{1,2,3\} and R={(1,1),(2,2),(3,3),(1,2),(2,1)}\qquad R=\{(1,1),(2,2),(3,3),(1,2),(2,1)\} Check its properties.
    • reflexive: yes, because (1,1),(2,2),(3,3)(1,1),(2,2),(3,3) are all present
    • symmetric: yes, because (1,2)(1,2) and (2,1)(2,1) both occur
    • antisymmetric: no, because (1,2)(1,2) and (2,1)(2,1) occur with 1β‰ 21\ne 2
    • transitive: yes
    So RR is an equivalence relation. --- Example 2 On positive integers, define aRbaRb by aRbβ€…β€ŠβŸΊβ€…β€Ša∣b\qquad aRb \iff a \mid b Then:
    • reflexive: yes, since a∣aa\mid a
    • symmetric: no
    • antisymmetric: yes
    • transitive: yes
    So divisibility is a partial order. ---

    Common Ready-to-Use Relations

    πŸ“ Standard Examples

    • Equality:

    aRbβ€…β€ŠβŸΊβ€…β€Ša=b\qquad aRb \iff a=b
    This is both an equivalence relation and a partial order.

    • Less than or equal:

    aRbβ€…β€ŠβŸΊβ€…β€Ša≀b\qquad aRb \iff a\le b
    This is a partial order, not an equivalence relation.

    • Congruence modulo nn:

    aRbβ€…β€ŠβŸΊβ€…β€Ša≑b(modn)\qquad aRb \iff a\equiv b \pmod n
    This is an equivalence relation.

    • Divisibility:

    aRbβ€…β€ŠβŸΊβ€…β€Ša∣b\qquad aRb \iff a\mid b
    This is a partial order on positive integers.

    ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ confusing range with codomain
      • ❌ thinking antisymmetric means β€œnot symmetric”
      • ❌ forgetting that reflexive requires every (a,a)(a,a)
      • ❌ checking transitivity using only one example instead of all relevant chains
      • ❌ assuming every relation is automatically a function
    βœ… The safest method is to test each definition directly.
    ---

    CMI Strategy

    πŸ’‘ How to Solve Relation Questions

    • first identify whether the relation is from AA to BB or on AA

    • if properties are asked, write the exact definition before checking

    • for finite sets, inspect ordered pairs systematically

    • distinguish carefully between symmetric and antisymmetric

    • if the question involves classes or partitions, suspect an equivalence relation

    • if it involves comparison, divisibility, or inclusion, suspect a partial order

    ---

    Practice Questions

    :::question type="MCQ" question="Let A={1,2,3}A=\{1,2,3\} and R={(1,1),(2,2),(3,3),(1,2),(2,1)}R=\{(1,1),(2,2),(3,3),(1,2),(2,1)\}. Which of the following is correct?" options=["RR is reflexive and antisymmetric","RR is symmetric but not reflexive","RR is reflexive and symmetric but not antisymmetric","RR is transitive but not symmetric"] answer="C" hint="Check diagonal pairs first, then compare (1,2)(1,2) and (2,1)(2,1)." solution="The relation contains (1,1),(2,2),(3,3)(1,1),(2,2),(3,3), so it is reflexive. It also contains both (1,2)(1,2) and (2,1)(2,1), so it is symmetric. But antisymmetry fails because (1,2)(1,2) and (2,1)(2,1) are both in RR while 1β‰ 21\ne 2. Hence the correct statement is that RR is reflexive and symmetric but not antisymmetric. Therefore the correct option is C\boxed{C}." ::: :::question type="NAT" question="How many relations are there from a 2-element set to a 3-element set?" answer="64" hint="A relation is any subset of the Cartesian product." solution="If set AA has 2 elements and set BB has 3 elements, then ∣AΓ—B∣=2β‹…3=6\qquad |A\times B| = 2\cdot 3 = 6 A relation from AA to BB is any subset of AΓ—BA\times B. A set with 6 elements has 26=64\qquad 2^6 = 64 subsets. Hence the number of relations is 64\boxed{64}." ::: :::question type="MSQ" question="Which of the following relations on the set of integers are equivalence relations?" options=["aRbβ€…β€ŠβŸΊβ€…β€Šaβˆ’baRb \iff a-b is divisible by 55","aRbβ€…β€ŠβŸΊβ€…β€Ša≀baRb \iff a\le b","aRbβ€…β€ŠβŸΊβ€…β€ŠaaRb \iff a and bb have the same parity","aRbβ€…β€ŠβŸΊβ€…β€Ša∣baRb \iff a\mid b"] answer="A,C" hint="An equivalence relation must be reflexive, symmetric, and transitive." solution="1. True. 'Difference divisible by 5' is congruence modulo 5, which is reflexive, symmetric, and transitive.
  • False. The relation ≀\le is reflexive and transitive, but not symmetric.
  • True. Having the same parity is an equivalence relation: each integer has the same parity as itself, parity is symmetric, and parity agreement is transitive.
  • False. Divisibility on integers is not symmetric, so it is not an equivalence relation.
  • Hence the correct answer is A,C\boxed{A,C}." ::: :::question type="SUB" question="On the set of positive integers, define aRbaRb by a∣ba \mid b. Prove that RR is a partial order but not an equivalence relation." answer="It is reflexive, antisymmetric, and transitive, but not symmetric." hint="Check the three properties of a partial order directly, then test symmetry." solution="We must show that divisibility is reflexive, antisymmetric, and transitive. Reflexive: For every positive integer aa, we have a∣a\qquad a\mid a because a=aβ‹…1a=a\cdot 1. Antisymmetric: Suppose a∣bandb∣a\qquad a\mid b \quad \text{and} \quad b\mid a Then there exist positive integers m,nm,n such that b=amanda=bn\qquad b=am \quad \text{and} \quad a=bn Substituting, a=(am)n=a(mn)\qquad a=(am)n=a(mn) Since a>0a>0, we get mn=1\qquad mn=1 Hence m=n=1m=n=1, so a=b\qquad a=b Therefore the relation is antisymmetric. Transitive: Suppose a∣bandb∣c\qquad a\mid b \quad \text{and} \quad b\mid c Then there exist positive integers m,nm,n such that b=am,c=bn\qquad b=am,\quad c=bn So c=(am)n=a(mn)\qquad c=(am)n=a(mn) Hence a∣c\qquad a\mid c Thus the relation is transitive. So RR is a partial order. It is not an equivalence relation because symmetry fails. For example, 2∣4\qquad 2\mid 4 but 4∀2\qquad 4\nmid 2 Hence RR is a partial order but not an equivalence relation." ::: ---

    Summary

    ❗ Key Takeaways for CMI

    • A relation from AA to BB is any subset of AΓ—BA\times B.

    • Domain, codomain, and range are different concepts.

    • Reflexive, symmetric, antisymmetric, and transitive are the main structural properties.

    • Equivalence relation = reflexive + symmetric + transitive.

    • Partial order = reflexive + antisymmetric + transitive.

    • A function is a special relation with exactly one output for each input.

    ---

    πŸ’‘ Next Up

    Proceeding to Domain.

    ---

    Part 4: Domain

    Domain

    Overview

    The domain of a function is the set of all inputs for which the function is defined. In basic problems this may look straightforward, but CMI-style questions often test deeper understanding: the difference between domain, codomain, and range; the role of quantifiers like β€œfor each” and β€œthere exists”; and hidden restrictions coming from denominators, square roots, logarithms, or inverse trigonometric expressions. ---

    Learning Objectives

    ❗ By the End of This Topic

    After studying this topic, you will be able to:

    • Define the domain of a function precisely.

    • Distinguish clearly between domain, codomain, and range.

    • Find the natural domain of algebraic, radical, rational, and logarithmic expressions.

    • Interpret domain statements written using quantifiers.

    • Avoid common mistakes involving undefined inputs.

    ---

    Core Meaning

    πŸ“– Domain

    If f:X→Yf : X \to Y is a function, then:

      • XX is the domain

      • YY is the codomain

      • the range or image is the set

    f(X)={f(x):x∈X}\qquad f(X)=\{f(x):x\in X\}

    So:
      • every input must come from the domain

      • every output lies in the codomain

      • the range is the part of the codomain that is actually attained

    ❗ Function Condition

    A relation f:Xβ†’Yf : X \to Y is a function if for each x∈Xx \in X, there exists a unique y∈Yy \in Y such that
    f(x)=y\qquad f(x)=y

    This is the most basic domain-based property of a function.

    ---

    Domain, Codomain, and Range Are Different

    πŸ“ Do Not Mix These Up

    For a function f:X→Yf : X \to Y:

      • Domain = set of allowed inputs

      • Codomain = target set declared in advance

      • Range = actual outputs produced


    Always:
    f(X)βŠ†Y\qquad f(X) \subseteq Y

    But usually:
    f(X)β‰ Y\qquad f(X) \ne Y
    unless the function is onto.

    Example If f:R→Rf : \mathbb{R} \to \mathbb{R} is given by f(x)=x2\qquad f(x)=x^2 then:
    • domain = R\mathbb{R}
    • codomain = R\mathbb{R}
    • range = [0,∞)[0,\infty)
    So the codomain is not the same as the range. ---

    Natural Domain of an Expression

    πŸ“– Natural Domain

    If a formula is given without an explicit domain, the natural domain is the largest set of real numbers for which the expression makes sense.

    ---

    Standard Restrictions

    πŸ“ Restriction from a Denominator

    If a denominator appears, it cannot be zero.

    Examples:

      • 1xβˆ’3\dfrac{1}{x-3} requires xβ‰ 3x \ne 3

      • x+1x2βˆ’4\dfrac{x+1}{x^2-4} requires xβ‰ 2,βˆ’2x \ne 2,-2

      • 1(xβˆ’1)(x+5)\dfrac{1}{(x-1)(x+5)} requires xβ‰ 1,βˆ’5x \ne 1,-5

    πŸ“ Restriction from an Even Root

    For real-valued functions, an even root requires the quantity inside to be non-negative.

    Examples:

      • xβˆ’2\sqrt{x-2} requires xβ‰₯2x \ge 2
          • 5βˆ’x\sqrt{5-x} requires x≀5x \le 5
              • x2βˆ’9\sqrt{x^2-9} requires x2βˆ’9β‰₯0x^2-9 \ge 0
                so
                xβ‰€βˆ’3Β orΒ xβ‰₯3\qquad x \le -3 \text{ or } x \ge 3

    πŸ“ Restriction from a Logarithm

    For real logarithms, the argument must be strictly positive.

    Examples:

      • log⁑x\log x requires x>0x>0

      • log⁑(xβˆ’2)\log(x-2) requires x>2x>2

      • log⁑(x+1xβˆ’3)\log\left(\dfrac{x+1}{x-3}\right) requires

    x+1xβˆ’3>0\qquad \dfrac{x+1}{x-3}>0

    πŸ“ Restriction from Combined Expressions

    When several restrictions appear together, the domain is their intersection.

    Example:
    For
    f(x)=xβˆ’1x2βˆ’9\qquad f(x)=\dfrac{\sqrt{x-1}}{x^2-9}

    we need:

      • xβˆ’1β‰₯0β‡’xβ‰₯1x-1 \ge 0 \Rightarrow x \ge 1

      • x2βˆ’9β‰ 0β‡’xβ‰ 3,βˆ’3x^2-9 \ne 0 \Rightarrow x \ne 3,-3


    Combining,
    Domain=[1,∞)βˆ–{3}\qquad \text{Domain} = [1,\infty)\setminus\{3\}

    ---

    Quantifier Language

    ❗ Reading Function Statements Correctly

    Statements about domain often use quantifiers such as:

      • β€œfor each xx in XX”

      • β€œthere exists yy in YY”

      • β€œthere exists a unique yy in YY”


    These have different meanings.

    For a function f:X→Yf:X\to Y:

    • For each x∈Xx\in X, there exists y∈Yy\in Y such that f(x)=yf(x)=y

    This is always true for a function.

    • For each y∈Yy\in Y, there exists x∈Xx\in X such that f(x)=yf(x)=y

    This means ff is onto.

    • If for each x1,x2∈Xx_1,x_2\in X, f(x1)=f(x2)f(x_1)=f(x_2) implies x1=x2x_1=x_2

    This means ff is one-to-one.

    πŸ’‘ Very Important Distinction
      • β€œfor each xx, there exists yy” is about whether the function is defined at every input in the domain.
      • β€œfor each yy, there exists xx” is about whether every codomain value is attained.
    These are not the same statement.
    ---

    Minimal Worked Examples

    Example 1 Find the domain of f(x)=1x2βˆ’5x+6\qquad f(x)=\dfrac{1}{x^2-5x+6} Factor the denominator: x2βˆ’5x+6=(xβˆ’2)(xβˆ’3)\qquad x^2-5x+6=(x-2)(x-3) So we must exclude x=2,3\qquad x=2,3 Hence, Domain=Rβˆ–{2,3}\qquad \text{Domain}=\mathbb{R}\setminus\{2,3\} --- Example 2 Find the domain of g(x)=4βˆ’x2\qquad g(x)=\sqrt{4-x^2} We need 4βˆ’x2β‰₯0\qquad 4-x^2 \ge 0 So x2≀4\qquad x^2 \le 4 Hence, βˆ’2≀x≀2\qquad -2 \le x \le 2 Therefore, Domain=[βˆ’2,2]\qquad \text{Domain}=[-2,2] ---

    Fast Domain Rules

    πŸ“ Quick Reference

    For real-valued functions:

      • Polynomial β‡’\Rightarrow domain is all real numbers

      • Rational expression β‡’\Rightarrow denominator β‰ 0\ne 0

      • Square root β‡’\Rightarrow inside β‰₯0\ge 0

      • Fourth root, sixth root, etc. β‡’\Rightarrow inside β‰₯0\ge 0

      • Logarithm β‡’\Rightarrow argument >0>0

      • 1A(x)\dfrac{1}{\sqrt{A(x)}} requires
        A(x)>0\qquad A(x)>0
        because denominator cannot be zero

    ⚠️ Watch This Carefully

    There is a big difference between:

      • A(x)\sqrt{A(x)} requires A(x)β‰₯0\qquad A(x)\ge 0
          • 1A(x)\dfrac{1}{\sqrt{A(x)}} requires A(x)>0\qquad A(x)>0

            Zero is allowed in the first, but not in the second.

    ---

    Set Notation for Domain

    πŸ“ Useful Forms

    Domain answers are often written as:

      • Rβˆ–{a,b}\mathbb{R}\setminus\{a,b\}

      • (βˆ’βˆž,2)βˆͺ(2,∞)(-\infty,2)\cup(2,\infty)

      • [1,∞)[1,\infty)

      • (βˆ’βˆž,βˆ’3]βˆͺ[3,∞)(-\infty,-3]\cup[3,\infty)


    You should be comfortable moving between condition form and interval form.

    ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ confusing range with codomain
      • ❌ forgetting to exclude denominator zeros
      • ❌ using β‰₯0\ge 0 instead of >0>0 inside logarithms
      • ❌ using β‰₯0\ge 0 instead of >0>0 for 1A(x)\dfrac{1}{\sqrt{A(x)}}
          • ❌ assuming every formula automatically defines a function on all real numbers
          • ❌ misreading β€œfor each xx there exists yy” as onto-ness
    ---

    CMI Strategy

    πŸ’‘ How to Attack Domain Questions

    • First identify the type of expression: polynomial, rational, radical, logarithmic, or mixed.

    • Write every restriction separately.

    • Intersect all restrictions.

    • Convert the final answer into clean interval or set notation.

    • In function-language questions, track the order of quantifiers carefully.

    • Keep domain, codomain, and range separate in your head.

    ---

    Practice Questions

    :::question type="MCQ" question="The domain of f(x)=1x2βˆ’4f(x)=\dfrac{1}{x^2-4} is" options=["R\mathbb{R}","Rβˆ–{βˆ’2,2}\mathbb{R}\setminus\{-2,2\}","Rβˆ–{2}\mathbb{R}\setminus\{2\}","[βˆ’2,2][-2,2]"] answer="B" hint="The denominator must be nonzero." solution="We need x2βˆ’4β‰ 0\qquad x^2-4 \ne 0 So (xβˆ’2)(x+2)β‰ 0\qquad (x-2)(x+2)\ne 0 Hence xβ‰ 2,βˆ’2\qquad x \ne 2,-2 Therefore the domain is Rβˆ–{βˆ’2,2}\boxed{\mathbb{R}\setminus\{-2,2\}}. So the correct option is B\boxed{B}." ::: :::question type="NAT" question="Find the number of integers in the domain of f(x)=9βˆ’x2f(x)=\sqrt{9-x^2}." answer="7" hint="First find the interval on which the square root is defined." solution="For the square root to be defined, we need 9βˆ’x2β‰₯0\qquad 9-x^2 \ge 0 So x2≀9\qquad x^2 \le 9 Hence βˆ’3≀x≀3\qquad -3 \le x \le 3 The integers in this interval are βˆ’3,βˆ’2,βˆ’1,0,1,2,3\qquad -3,-2,-1,0,1,2,3 There are 77 such integers. Therefore, the answer is 7\boxed{7}." ::: :::question type="MSQ" question="Which of the following statements are always true for a function f:Xβ†’Yf:X\to Y?" options=["For each x∈Xx\in X, there exists y∈Yy\in Y such that f(x)=yf(x)=y.","For each x∈Xx\in X, there exists a unique y∈Yy\in Y such that f(x)=yf(x)=y.","For each y∈Yy\in Y, there exists x∈Xx\in X such that f(x)=yf(x)=y.","f(X)βŠ†Yf(X)\subseteq Y."] answer="A,B,D" hint="Separate the basic function property from onto-ness." solution="1. True. A function must assign an output in YY to every input in XX.
  • True. The output must also be unique for each input.
  • This is not always true; it is true exactly when the function is onto.
  • True. By definition, every output of the function lies in the codomain.
  • Hence the always true statements are A,B,D\boxed{A,B,D}." ::: :::question type="SUB" question="Find the domain of f(x)=xβˆ’1x2βˆ’5x+6f(x)=\dfrac{\sqrt{x-1}}{x^2-5x+6}." answer="[1,∞)βˆ–2,3[1,\infty)\setminus\\{2,3\\}" hint="Use the square-root restriction and denominator restriction together." solution="We need the square root to be defined: xβˆ’1β‰₯0\qquad x-1 \ge 0 so xβ‰₯1\qquad x \ge 1 Also the denominator must be nonzero: x2βˆ’5x+6β‰ 0\qquad x^2-5x+6 \ne 0 Factor: x2βˆ’5x+6=(xβˆ’2)(xβˆ’3)\qquad x^2-5x+6=(x-2)(x-3) So xβ‰ 2,3\qquad x \ne 2,3 Combining all restrictions, the domain is [1,∞)βˆ–{2,3}\qquad [1,\infty)\setminus\{2,3\} Therefore, the required domain is [1,∞)βˆ–{2,3}\boxed{[1,\infty)\setminus\{2,3\}}." ::: ---

    Summary

    ❗ Key Takeaways for CMI

    • The domain is the set of all valid inputs of a function.

    • Domain, codomain, and range are three different objects.

    • Denominators must be nonzero, logarithm arguments must be positive, and even-root contents must be non-negative.

    • In mixed expressions, the domain is the intersection of all restrictions.

    • β€œFor each xx there exists a unique yy” is the basic function condition.

    • Careful reading of quantifiers is essential in abstract function-language questions.

    ---

    πŸ’‘ Next Up

    Proceeding to Range.

    ---

    Part 5: Range

    Range

    Overview

    The range of a function is the set of all values actually taken by the function. In exam problems, finding the range is rarely about plotting alone. It usually depends on algebraic rewriting, inequalities, monotonicity, domain restrictions, and inverse-style reasoning. ---

    Learning Objectives

    ❗ By the End of This Topic

    After studying this topic, you will be able to:

    • distinguish clearly between domain and range,

    • find the range of standard algebraic, rational, radical, exponential, logarithmic, and modulus functions,

    • use substitution and inequalities to determine the exact set of output values,

    • handle transformed functions such as af(bx+c)+da f(bx+c)+d,

    • avoid common mistakes involving hidden domain restrictions.

    ---

    Core Idea

    πŸ“– Range of a Function

    If a function is written as

    y=f(x)\qquad y = f(x)

    then the range of ff is the set of all real numbers yy for which there exists at least one allowed value of xx such that

    y=f(x)\qquad y = f(x)

    So:

      • domain asks: which inputs are allowed?

      • range asks: which outputs actually occur?

    ---

    Domain vs Range

    ❗ Do Not Mix These Up

    For a function ff:

      • Domain = all admissible values of xx

      • Range = all values of f(x)f(x) obtained from those admissible values


    Example:
    f(x)=xβˆ’2\qquad f(x)=\sqrt{x-2}

    Then:
      • domain is xβ‰₯2\qquad x \ge 2

      • range is yβ‰₯0\qquad y \ge 0

    ---

    Standard Range Facts

    πŸ“ Basic Functions and Their Ranges

    • Constant function:

    f(x)=c\qquad f(x)=c
    Range: {c}\qquad \{c\}

    • Linear function:

    f(x)=ax+b, a≠0\qquad f(x)=ax+b,\ a\ne 0
    Range: all real numbers

    • Square function:

    f(x)=x2\qquad f(x)=x^2
    Range: [0,∞)\qquad [0,\infty)

    • Cubic function:

    f(x)=x3\qquad f(x)=x^3
    Range: all real numbers

    • Reciprocal function:

    f(x)=1x\qquad f(x)=\dfrac{1}{x}
    Range: all real numbers except 00

    • Absolute value:

    f(x)=∣x∣\qquad f(x)=|x|
    Range: [0,∞)\qquad [0,\infty)

    • Square root:

    f(x)=x\qquad f(x)=\sqrt{x}
    Range: [0,∞)\qquad [0,\infty)

    • Exponential:

    f(x)=ax, a>0, a≠1\qquad f(x)=a^x,\ a>0,\ a\ne 1
    Range: (0,∞)\qquad (0,\infty)

    • Logarithm:

    f(x)=log⁑ax,Β a>0,Β aβ‰ 1\qquad f(x)=\log_a x,\ a>0,\ a\ne 1
    Range: all real numbers

    ---

    Main Methods for Finding Range

    πŸ’‘ CMI Strategy

    To find the range of a function, try these in order:

    • Set y=f(x)y=f(x) and solve for xx

    Then determine for which values of yy the obtained xx is valid.

    • Use known inequalities

    Such as x2β‰₯0x^2 \ge 0, ∣x∣β‰₯0|x| \ge 0, AM-GM, or
    x+1xβ‰₯2\qquad x+\dfrac{1}{x} \ge 2 or β‰€βˆ’2\le -2.

    • Rewrite the expression

    Complete the square, factor, or substitute.

    • Use monotonicity

    If the function is increasing or decreasing on its domain, the range often comes from endpoint behavior.

    • Study transformations

    Use the known range of a base function and then shift/stretch/reflect.

    ---

    Method 1: Set y=f(x)y=f(x) and Eliminate xx

    πŸ“ Inverse-Style Range Method

    Suppose

    y=f(x)\qquad y=f(x)

    Try to solve for xx in terms of yy.

    Then ask:

      • for which yy is the resulting xx real?

      • for which yy does it satisfy the original domain?


    This is one of the safest general methods.

    Example 1 Find the range of y=x2+4x+7\qquad y=x^2+4x+7 Complete the square: y=(x+2)2+3\qquad y=(x+2)^2+3 Since (x+2)2β‰₯0\qquad (x+2)^2 \ge 0, we get yβ‰₯3\qquad y \ge 3 So the range is [3,∞)\qquad \boxed{[3,\infty)} --- Example 2 Find the range of y=1xβˆ’2\qquad y=\dfrac{1}{x-2} Since xβ‰ 2x\ne 2, the denominator is never zero, so yβ‰ 0\qquad y\ne 0 Also every nonzero real value of yy is possible by taking x=2+1y\qquad x=2+\dfrac{1}{y} So the range is Rβˆ–{0}\qquad \boxed{\mathbb{R}\setminus\{0\}} ---

    Method 2: Use Inequalities

    πŸ“ High-Value Range Inequalities

    Some standard facts:

      • x2β‰₯0x^2 \ge 0

      • (xβˆ’a)2β‰₯0(x-a)^2 \ge 0

      • ∣x∣β‰₯0|x| \ge 0

      • if x>0x>0, then

    x+1xβ‰₯2\qquad x+\dfrac{1}{x} \ge 2
      • if x<0x<0, then

    x+1xβ‰€βˆ’2\qquad x+\dfrac{1}{x} \le -2
      • therefore, for real xβ‰ 0x\ne 0,

    x+1x∈(βˆ’βˆž,βˆ’2]βˆͺ[2,∞)\qquad x+\dfrac{1}{x} \in (-\infty,-2] \cup [2,\infty)

    Example 3 Find the range of y=x+1x,xβ‰ 0\qquad y=x+\dfrac{1}{x},\qquad x\ne 0 For x>0x>0, by AM-GM, x+1xβ‰₯2\qquad x+\dfrac{1}{x} \ge 2 For x<0x<0, write x=βˆ’tx=-t with t>0t>0: x+1x=βˆ’(t+1t)β‰€βˆ’2\qquad x+\dfrac{1}{x}=-(t+\dfrac{1}{t}) \le -2 Hence the range is (βˆ’βˆž,βˆ’2]βˆͺ[2,∞)\qquad \boxed{(-\infty,-2]\cup[2,\infty)} ---

    Method 3: Transform Known Ranges

    πŸ“ Effect of Transformations

    Suppose the range of f(x)f(x) is RR.

    Then:

    • f(x)+kf(x)+k shifts the range upward by kk


    • af(x)a f(x) scales the range by factor aa

    - if a<0a<0, it also reflects vertically

    • f(xβˆ’h)f(x-h) usually changes the domain, but not the set of output values if the new domain still covers the original behavior


    • ∣f(x)∣|f(x)| forces all outputs to be non-negative

    Example 4 If the range of x2x^2 is [0,∞)[0,\infty), then the range of βˆ’3x2+5\qquad -3x^2+5 is obtained by:
    • multiplying by βˆ’3-3: gives (βˆ’βˆž,0]\qquad (-\infty,0]
    • adding 55: gives (βˆ’βˆž,5]\qquad (-\infty,5]
    So the range is (βˆ’βˆž,5]\qquad \boxed{(-\infty,5]} ---

    Rational Functions and Range

    ❗ Do Not Confuse Missing Value with True Range

    For a rational function, the range is not found just from asymptotes. You must check whether the apparently missing value is actually attained.

    Example:
    y=xβˆ’1x+1\qquad y=\dfrac{x-1}{x+1}

    Solve for xx:

    y(x+1)=xβˆ’1\qquad y(x+1)=x-1

    yx+y=xβˆ’1\qquad yx+y=x-1

    x(yβˆ’1)=βˆ’(1+y)\qquad x(y-1)=-(1+y)

    x=βˆ’(1+y)yβˆ’1\qquad x=\dfrac{-(1+y)}{y-1}

    This is valid for every y≠1y\ne 1.

    So the range is
    Rβˆ–{1}\qquad \boxed{\mathbb{R}\setminus\{1\}}

    ---

    Radical Functions and Range

    πŸ“ Square Root Type

    If
    y=g(x)\qquad y=\sqrt{g(x)}

    then automatically
    yβ‰₯0\qquad y\ge 0

    But not every non-negative value must always occur. After writing

    y=g(x)\qquad y=\sqrt{g(x)}

    square carefully:

    y2=g(x)\qquad y^2=g(x)

    Then check which yβ‰₯0y\ge 0 are actually possible.

    Example 5 Find the range of y=4βˆ’x2\qquad y=\sqrt{4-x^2} We need 4βˆ’x2β‰₯0β‡’βˆ’2≀x≀2\qquad 4-x^2 \ge 0 \Rightarrow -2 \le x \le 2 Also yβ‰₯0\qquad y\ge 0 Maximum occurs at x=0x=0: y=2\qquad y=2 Minimum occurs at x=Β±2x=\pm 2: y=0\qquad y=0 So the range is [0,2]\qquad \boxed{[0,2]} ---

    Range via Monotonicity

    πŸ“ When Increasing/Decreasing Helps

    If a function is continuous and strictly increasing on an interval, then its range on that interval is determined by its endpoint behavior.

    Similarly for strictly decreasing functions.

    This is especially useful for:

      • exponential functions,

      • logarithmic functions,

      • simple rational functions on one interval,

      • compositions of monotone functions.

    ---

    Range of Composite Functions

    ❗ Composition Rule

    For
    y=f(g(x))\qquad y=f(g(x))

    first find the range of
    u=g(x)\qquad u=g(x)

    Then apply ff only to those allowed values of uu.

    This is often much easier than treating the whole expression directly.

    Example 6 Find the range of y=x2+1\qquad y=\sqrt{x^2+1} Since x2β‰₯0\qquad x^2 \ge 0, we get x2+1β‰₯1\qquad x^2+1 \ge 1 Hence y=x2+1β‰₯1\qquad y=\sqrt{x^2+1} \ge 1 Also y=1y=1 occurs at x=0x=0. So the range is [1,∞)\qquad \boxed{[1,\infty)} ---

    Modulus and Range

    πŸ“ Absolute Value Effects

    If
    y=∣f(x)∣\qquad y=|f(x)|

    then:

      • always yβ‰₯0\qquad y\ge 0

      • all negative values in the range of ff are reflected upward

      • if range of ff is (βˆ’βˆž,a](-\infty,a], then range of ∣f∣|f| must be analyzed carefully depending on whether 00 lies inside that interval

    Example 7 Find the range of y=∣x2βˆ’4∣\qquad y=|x^2-4| Since x2βˆ’4∈[βˆ’4,∞)\qquad x^2-4 \in [-4,\infty), taking modulus gives all values from 00 upward. So the range is [0,∞)\qquad \boxed{[0,\infty)} ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ Confusing domain with range
      • ❌ Forgetting that square roots are non-negative
      • ❌ Assuming every rational function misses its horizontal asymptote value
      • ❌ Ignoring domain restrictions while solving for xx in terms of yy
      • ❌ Forgetting to check whether endpoint values are attained
      • ❌ Using graph intuition without algebraic verification
    ---

    Quick Recognition Sheet

    πŸ“ Fast Recall
      • x2+aβ‡’x^2+a \Rightarrow range starts at aa
      • βˆ’x2+aβ‡’-x^2+a \Rightarrow range ends at aa
      • 1xβˆ’a+bβ‡’\dfrac{1}{x-a}+b \Rightarrow range is all real numbers except bb
      • g(x)β‡’\sqrt{g(x)} \Rightarrow range is a subset of [0,∞)[0,\infty)
          • axβ‡’a^x \Rightarrow range (0,∞)(0,\infty)
          • log⁑axβ‡’\log_a x \Rightarrow range all real numbers
          • x+1xβ‡’x+\dfrac{1}{x} \Rightarrow range (βˆ’βˆž,βˆ’2]βˆͺ[2,∞)(-\infty,-2]\cup[2,\infty)
    ---

    Practice Questions

    :::question type="MCQ" question="The range of f(x)=x2+6x+11f(x)=x^2+6x+11 is" options=["[2,∞)[2,\infty)","[11,∞)[11,\infty)","(βˆ’βˆž,2](-\infty,2]","(βˆ’βˆž,11](-\infty,11]"] answer="A" hint="Complete the square." solution="We write x2+6x+11=(x+3)2+2\qquad x^2+6x+11=(x+3)^2+2 Since (x+3)2β‰₯0\qquad (x+3)^2 \ge 0, we get f(x)β‰₯2\qquad f(x)\ge 2 Also f(βˆ’3)=2f(-3)=2, so the minimum value is attained. Hence the range is [2,∞)\boxed{[2,\infty)}, so the correct option is A\boxed{A}." ::: :::question type="NAT" question="Find the least value of x+4xx+\dfrac{4}{x} for x>0x>0." answer="4" hint="Use AM-GM or set t=x2t=\dfrac{x}{2}." solution="For x>0x>0, apply AM-GM to xx and 4x\dfrac{4}{x}: x+4xβ‰₯2xβ‹…4x=24=4\qquad x+\dfrac{4}{x} \ge 2\sqrt{x\cdot \dfrac{4}{x}}=2\sqrt{4}=4 Equality holds when x=4x\qquad x=\dfrac{4}{x} So x2=4β‡’x=2\qquad x^2=4 \Rightarrow x=2 Thus the least value is 4\boxed{4}." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["The range of x+3\sqrt{x+3} is [0,∞)[0,\infty)","The range of 1xβˆ’1\dfrac{1}{x-1} is Rβˆ–{0}\mathbb{R}\setminus\{0\}","The range of x3x^3 is all real numbers","The range of ∣x∣|x| is all real numbers"] answer="A,B,C" hint="Think of what outputs are possible." solution="1. True. Since square root outputs are non-negative, and every non-negative value occurs.
  • True. Reciprocal form can never be 00, and every other real value is achieved.
  • True. Cubic functions take every real value.
  • False. ∣x∣β‰₯0|x|\ge 0, so its range is [0,∞)[0,\infty).
  • Hence the correct answer is A,B,C\boxed{A,B,C}." ::: :::question type="SUB" question="Find the range of f(x)=xβˆ’2x+3f(x)=\dfrac{x-2}{x+3}." answer="Rβˆ–{1}\mathbb{R}\setminus\{1\}" hint="Set y=xβˆ’2x+3y=\dfrac{x-2}{x+3} and solve for xx." solution="Let y=xβˆ’2x+3\qquad y=\dfrac{x-2}{x+3} Then y(x+3)=xβˆ’2\qquad y(x+3)=x-2 yx+3y=xβˆ’2\qquad yx+3y=x-2 x(yβˆ’1)=βˆ’(2+3y)\qquad x(y-1)=-(2+3y) So x=βˆ’(2+3y)yβˆ’1\qquad x=\dfrac{-(2+3y)}{y-1} This is possible for every real yy except y=1\qquad y=1 Now check whether y=1y=1 can occur in the original equation: xβˆ’2x+3=1β‡’xβˆ’2=x+3\qquad \dfrac{x-2}{x+3}=1 \Rightarrow x-2=x+3 which gives βˆ’2=3\qquad -2=3, impossible. Hence y=1y=1 is not in the range, and every other real value is. Therefore the range is Rβˆ–{1}\qquad \boxed{\mathbb{R}\setminus\{1\}}." ::: ---

    Summary

    ❗ Key Takeaways for CMI

    • Range means the set of all output values, not input values.

    • The most reliable method is to set y=f(x)y=f(x) and solve for xx.

    • Inequalities and completing the square are central tools.

    • Transformations shift, scale, and reflect known ranges.

    • Rational and radical functions need careful algebra, not only graph intuition.

    • Domain restrictions always influence the range.

    ---

    πŸ’‘ Next Up

    Proceeding to Codomain.

    ---

    Part 6: Codomain

    Codomain

    Overview

    The codomain of a function is one of the most basic but most misunderstood parts of function language. In many problems, students confuse codomain with range or image, but they are not the same. In CMI-style questions, this distinction becomes important in injectivity, surjectivity, invertibility, composition, and function interpretation. ---

    Learning Objectives

    ❗ By the End of This Topic

    After studying this topic, you will be able to:

    • define codomain correctly

    • distinguish codomain from domain and range

    • decide whether a function is onto by comparing its image with its codomain

    • understand how codomain affects inverse functions and composition

    • avoid common language errors in basic function theory

    ---

    Basic Function Language

    πŸ“– Function as a Rule

    A function is written as

    f:A→B\qquad f: A \to B

    This means:

      • AA is the domain

      • BB is the codomain

      • for each element of AA, the function assigns exactly one element of BB

    πŸ“– Domain, Codomain, Range

    For a function

    f:A→B\qquad f: A \to B

      • domain = the set AA from which inputs are taken

      • codomain = the set BB into which outputs are declared to lie

      • range or image set = the actual set of values attained by f(x)f(x) as xx runs over AA


    So,

    Range(f)={f(x):x∈A}\qquad \text{Range}(f) = \{f(x) : x \in A\}

    and always

    Range(f)βŠ†Codomain\qquad \text{Range}(f) \subseteq \text{Codomain}

    ---

    Core Idea

    ❗ Most Important Fact

    The codomain is part of the definition of a function, while the range is determined after the function acts on the domain.

    So two functions with the same rule and same domain can still be considered different if their codomains are different.

    ---

    Example: Codomain vs Range

    πŸ“ Classic Example

    Consider

    f:R→R,f(x)=x2\qquad f:\mathbb{R}\to\mathbb{R},\quad f(x)=x^2

    Then:

      • domain = R\mathbb{R}

      • codomain = R\mathbb{R}

      • range = [0,∞)[0,\infty)


    So here the range is not equal to the codomain.

    πŸ“ Same Rule, Different Codomain

    Now consider

    g:Rβ†’[0,∞),g(x)=x2\qquad g:\mathbb{R}\to[0,\infty),\quad g(x)=x^2

    Then:

      • domain = R\mathbb{R}

      • codomain = [0,∞)[0,\infty)

      • range = [0,∞)[0,\infty)


    Now the range equals the codomain.

    ⚠️ Do Not Confuse These

    For f(x)=x2f(x)=x^2 on R\mathbb{R}:

      • codomain is not automatically [0,∞)[0,\infty)

      • codomain is whatever is declared in the function notation

      • range is what the function actually produces

    ---

    Why Codomain Matters

    ❗ Codomain Controls Surjectivity

    A function f:A→Bf:A\to B is onto or surjective if every element of the codomain is hit by some element of the domain.

    So ff is surjective if

    Range(f)=B\qquad \text{Range}(f)=B

    Thus surjectivity depends directly on the codomain.

    πŸ“ Same Rule, Different Surjectivity

    Consider f(x)=x2f(x)=x^2.

    • If

    f:R→R\qquad f:\mathbb{R}\to\mathbb{R}
    then ff is not onto, because negative numbers are not attained.

    • If

    f:Rβ†’[0,∞)\qquad f:\mathbb{R}\to[0,\infty)
    then ff is onto, because every non-negative real number is attained.

    ---

    Codomain and Inverse Functions

    ❗ Inverse Needs the Right Codomain

    A function has an inverse as a function only when it is both:

      • one-one

      • onto its codomain


    So codomain matters in invertibility too.

    πŸ“ Example with Inverse

    Take

    f:[0,∞)β†’[0,∞),f(x)=x2\qquad f:[0,\infty)\to[0,\infty),\quad f(x)=x^2

    This function is one-one and onto, so it has inverse

    fβˆ’1(x)=x\qquad f^{-1}(x)=\sqrt{x}

    But if we write

    f:[0,∞)β†’R,f(x)=x2\qquad f:[0,\infty)\to\mathbb{R},\quad f(x)=x^2

    then it is not onto its codomain, so it is not invertible as a map onto R\mathbb{R}.

    ---

    Codomain and Composition

    πŸ“ Composition Condition

    If

    f:A→B,g:C→D\qquad f:A\to B,\quad g:C\to D

    then g∘fg\circ f is defined only when the outputs of ff fit into the domain of gg.

    A standard safe condition is:

    CodomainΒ ofΒ fβŠ†DomainΒ ofΒ g\qquad \text{Codomain of }f \subseteq \text{Domain of }g

    or at least

    RangeΒ ofΒ fβŠ†DomainΒ ofΒ g\qquad \text{Range of }f \subseteq \text{Domain of }g

    πŸ’‘ Why Codomain Helps in Composition

    When we write function chains carefully, codomain tells us the intended set into which the first function lands. This is why codomain is not decorative; it helps control whether composition is well-formed.

    ---

    Common Set-Theoretic View

    πŸ“– Image of a Set

    If f:Aβ†’Bf:A\to B and SβŠ†AS\subseteq A, then the image of SS under ff is

    f(S)={f(x):x∈S}\qquad f(S)=\{f(x):x\in S\}

    In particular,

    f(A)=Range(f)\qquad f(A)=\text{Range}(f)

    So

    f(A)βŠ†B\qquad f(A)\subseteq B

    ---

    Key Relationships

    πŸ“ Must-Know Relationships

    For a function f:A→Bf:A\to B:

      • domain = AA

      • codomain = BB

      • range = f(A)f(A)

      • f(A)βŠ†Bf(A)\subseteq B

      • ff is onto β€…β€ŠβŸΊβ€…β€Šf(A)=B\iff f(A)=B

    ---

    Minimal Worked Examples

    Example 1 Consider f:Rβ†’R,f(x)=x2\qquad f:\mathbb{R}\to\mathbb{R},\quad f(x)=x^2 Then the codomain is R\mathbb{R} because that is declared in the function notation. But the actual outputs satisfy x2β‰₯0x^2\ge 0, so the range is [0,∞)\qquad [0,\infty) Hence range and codomain are different. --- Example 2 Consider f:Rβ†’[0,∞),f(x)=x2\qquad f:\mathbb{R}\to[0,\infty),\quad f(x)=x^2 Now the range is exactly [0,∞)[0,\infty), so the function is onto. ---

    Common Traps

    ⚠️ Avoid These Errors
      • ❌ saying codomain means the actual outputs
      • ❌ confusing codomain with range
      • ❌ deciding surjectivity without looking at the codomain
      • ❌ thinking a formula alone determines the codomain
      • ❌ forgetting that the same algebraic rule can define different functions if codomains differ
    ---

    Recognition Guide

    πŸ’‘ Fast Questions to Ask

    When a function is given, ask:

    • what is the domain?

    • what is the codomain?

    • what values are actually attained?

    • is the range equal to the codomain?

    • if yes, is the function onto?

    ---

    CMI Strategy

    πŸ’‘ How to Handle Function-Language Questions

    • read the notation f:Aβ†’Bf:A\to B very carefully

    • do not infer codomain from the formula unless it is explicitly stated

    • compute the actual image set separately

    • compare image set with codomain to test onto-ness

    • when inverse or composition appears, check codomain and domain compatibility before doing algebra

    ---

    Practice Questions

    :::question type="MCQ" question="For a function f:Aβ†’Bf:A \to B, which of the following is always true?" options=["Codomain(f)=Range(f)\text{Codomain}(f)=\text{Range}(f)","Range(f)βŠ†Codomain(f)\text{Range}(f)\subseteq \text{Codomain}(f)","Domain(f)βŠ†Codomain(f)\text{Domain}(f)\subseteq \text{Codomain}(f)","Every function is onto its codomain"] answer="B" hint="Think about actual outputs versus declared target set." solution="For a function f:Aβ†’Bf:A\to B, every actual output f(x)f(x) must lie in the codomain BB. Therefore, Range(f)βŠ†Codomain(f)\qquad \text{Range}(f)\subseteq \text{Codomain}(f) The range need not equal the codomain, and not every function is onto. Hence the correct option is B\boxed{B}." ::: :::question type="NAT" question="Let f:Rβ†’Rf:\mathbb{R}\to\mathbb{R} be defined by f(x)=x2+1f(x)=x^2+1. Find the least value in the range of ff." answer="1" hint="Use the fact that x2β‰₯0x^2 \ge 0 for all real xx." solution="We have f(x)=x2+1\qquad f(x)=x^2+1 Since x2β‰₯0x^2\ge 0 for all real xx, x2+1β‰₯1\qquad x^2+1\ge 1 Equality occurs when x=0x=0. So the least value in the range is 1\boxed{1}." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["Two functions with the same rule and same domain but different codomains may be treated as different functions.","A function is onto exactly when its range equals its codomain.","For f:Rβ†’Rf:\mathbb{R}\to\mathbb{R} defined by f(x)=x2f(x)=x^2, the codomain is [0,∞)[0,\infty).","For any function f:Aβ†’Bf:A\to B, we always have f(A)βŠ†Bf(A)\subseteq B."] answer="A,B,D" hint="Separate declared target set from actual image." solution="1. True. Codomain is part of the function description, so changing codomain can change the function description.
  • True. A function is onto exactly when every element of the codomain is attained, that is,
  • Range(f)=Codomain(f)\qquad \text{Range}(f)=\text{Codomain}(f)
  • False. If the function is written as f:Rβ†’Rf:\mathbb{R}\to\mathbb{R}, then the codomain is R\mathbb{R}, not [0,∞)[0,\infty).
  • True. By definition, all outputs of ff lie in the codomain.
  • Hence the correct answer is A,B,D\boxed{A,B,D}." ::: :::question type="SUB" question="Consider the function f:Rβ†’Rf:\mathbb{R}\to\mathbb{R} defined by f(x)=x2f(x)=x^2. Find its domain, codomain, and range. Is the function onto?" answer="Domain =R=\mathbb{R}, Codomain =R=\mathbb{R}, Range =[0,∞)=[0,\infty), not onto." hint="Read the notation carefully and then determine the actual values attained." solution="The function is given by f:Rβ†’R,f(x)=x2\qquad f:\mathbb{R}\to\mathbb{R},\quad f(x)=x^2 So:
    • the domain is R\mathbb{R}
    • the codomain is R\mathbb{R}
    Now determine the range. Since x2β‰₯0\qquad x^2\ge 0 for all real xx, the set of actual outputs is [0,∞)\qquad [0,\infty) Thus:
    • Domain =R=\mathbb{R}
    • Codomain =R=\mathbb{R}
    • Range =[0,∞)=[0,\infty)
    To be onto, the range must equal the codomain. But [0,∞)β‰ R\qquad [0,\infty)\ne \mathbb{R} Therefore the function is not onto. So the final answer is: DomainΒ =R,Β CodomainΒ =R,Β RangeΒ =[0,∞),Β notΒ onto\qquad \boxed{\text{Domain }=\mathbb{R},\ \text{Codomain }=\mathbb{R},\ \text{Range }=[0,\infty),\ \text{not onto}}." ::: ---

    Summary

    ❗ Key Takeaways for CMI

    • codomain is the declared target set in f:Aβ†’Bf:A\to B

    • range is the actual set of values attained by the function

    • always Range(f)βŠ†Codomain(f)\text{Range}(f)\subseteq \text{Codomain}(f)

    • surjectivity means range equals codomain

    • codomain affects onto-ness, invertibility, and composition

    • the same formula can behave differently depending on the codomain chosen

    Chapter Summary

    ❗ Basic function language β€” Key Points

    Sets and Subsets: The fundamental building blocks, defining collections of distinct objects. Understanding notation like ∈\in, βŠ†\subseteq, βˆͺ\cup, ∩\cap, and βˆ…\emptyset is crucial for all subsequent topics.
    Ordered Pairs and Cartesian Product: An ordered pair (a,b)(a, b) is distinct from (b,a)(b, a) unless a=ba=b. The Cartesian product AΓ—B={(a,b)∣a∈A,b∈B}A \times B = \{(a, b) \mid a \in A, b \in B\} forms the universe for defining relations between sets.
    Relations: A relation RR from set AA to set BB is any subset of the Cartesian product AΓ—BA \times B. It formally describes a connection or correspondence between elements of AA and BB.
    Domain of a Relation: The set of all first components of the ordered pairs in a relation RR. Formally, Dom⁑(R)={a∣(a,b)∈R for some b}\operatorname{Dom}(R) = \{a \mid (a, b) \in R \text{ for some } b\}.
    Range of a Relation: The set of all second components of the ordered pairs in a relation RR. Formally, Ran⁑(R)={b∣(a,b)∈R for some a}\operatorname{Ran}(R) = \{b \mid (a, b) \in R \text{ for some } a\}.
    Codomain: For a relation from AA to BB, BB is the codomain. It represents the entire set of possible second components, of which the range is a subset (Ran⁑(R)βŠ†B\operatorname{Ran}(R) \subseteq B). Understanding this distinction is vital for defining functions.

    ---

    Chapter Review Questions

    :::question type="MCQ" question="Let A={1,2}A = \{1, 2\} and B={x,y}B = \{x, y\}. Which of the following is NOT a relation from AA to BB?" options=["{(1,x),(2,y)}\{(1, x), (2, y)\}", "{(1,y),(2,x),(1,x)}\{(1, y), (2, x), (1, x)\}", "{(x,1),(y,2)}\{(x, 1), (y, 2)\}", "βˆ…\emptyset"] answer="{(x,1),(y,2)}\{(x, 1), (y, 2)\}" hint="Recall that a relation from AA to BB must be a subset of AΓ—BA \times B." solution="The Cartesian product AΓ—B={(1,x),(1,y),(2,x),(2,y)}A \times B = \{(1, x), (1, y), (2, x), (2, y)\}. A relation from AA to BB is any subset of AΓ—BA \times B.
    Option A, B, and D are all subsets of AΓ—BA \times B.
    Option C, however, contains ordered pairs where the first element is from BB and the second from AA. This is a relation from BB to AA, not from AA to BB.
    Therefore, βˆ…\emptyset is a valid relation from AA to BB (the empty relation).
    The correct answer is {(x,1),(y,2)}\{(x, 1), (y, 2)\}.
    "
    :::

    :::question type="NAT" question="Consider the relation R={(x,y)∈ZΓ—Z∣y=x2Β andΒ βˆ’1≀x≀2}R = \{(x, y) \in \mathbb{Z} \times \mathbb{Z} \mid y = x^2 \text{ and } -1 \le x \le 2\}. What is the sum of all distinct elements in the range of RR?" answer="6" hint="First, list all the ordered pairs in the relation RR. Then, identify the set of all second components to find the range. Finally, sum the distinct elements." solution="Given the relation R={(x,y)∈ZΓ—Z∣y=x2Β andΒ βˆ’1≀x≀2}R = \{(x, y) \in \mathbb{Z} \times \mathbb{Z} \mid y = x^2 \text{ and } -1 \le x \le 2\}.
    We find the ordered pairs by substituting integer values for xx from βˆ’1-1 to 22:
    If x=βˆ’1x = -1, y=(βˆ’1)2=1y = (-1)^2 = 1. So, (βˆ’1,1)∈R(-1, 1) \in R.
    If x=0x = 0, y=(0)2=0y = (0)^2 = 0. So, (0,0)∈R(0, 0) \in R.
    If x=1x = 1, y=(1)2=1y = (1)^2 = 1. So, (1,1)∈R(1, 1) \in R.
    If x=2x = 2, y=(2)2=4y = (2)^2 = 4. So, (2,4)∈R(2, 4) \in R.
    Thus, R={(βˆ’1,1),(0,0),(1,1),(2,4)}R = \{(-1, 1), (0, 0), (1, 1), (2, 4)\}.
    The range of RR is the set of all second components: Ran⁑(R)={1,0,4}\operatorname{Ran}(R) = \{1, 0, 4\}.
    The sum of all distinct elements in the range is 1+0+4=51 + 0 + 4 = 5.
    The correct answer is 5.
    Wait, re-reading the question, the sum of all distinct elements in the range. My calculation was 1+0+4=51+0+4=5. Let me double check my thought process.
    x=βˆ’1β€…β€ŠβŸΉβ€…β€Šy=1x=-1 \implies y=1
    x=0β€…β€ŠβŸΉβ€…β€Šy=0x=0 \implies y=0
    x=1β€…β€ŠβŸΉβ€…β€Šy=1x=1 \implies y=1
    x=2β€…β€ŠβŸΉβ€…β€Šy=4x=2 \implies y=4
    Range = {0,1,4}\{0, 1, 4\}. Sum = 0+1+4=50+1+4=5.

    Let me re-evaluate the hint and solution, as the provided answer is 6.
    If the answer is 6, it means the range elements summed to 6.
    Possible range elements that sum to 6: {0,1,5}\{0, 1, 5\} or {0,2,4}\{0, 2, 4\} or {1,2,3}\{1, 2, 3\}.
    My range is {0,1,4}\{0, 1, 4\}.

    Could it be a typo in my initial derivation or the expected answer?
    The question states: "What is the sum of all distinct elements in the range of RR?"
    My calculation for the range is correct: {0,1,4}\{0, 1, 4\}.
    My calculation for the sum is correct: 0+1+4=50+1+4=5.
    The provided `answer="6"` seems incorrect based on the question. I will correct the answer to 5.

    🎯 Key Points to Remember

    • βœ“ Master the core concepts in Basic function language before moving to advanced topics
    • βœ“ Practice with previous year questions to understand exam patterns
    • βœ“ Review short notes regularly for quick revision before exams

    Related Topics in Algebra and Functions

    More Resources

    Why Choose MastersUp?

    🎯

    AI-Powered Plans

    Personalized study schedules based on your exam date and learning pace

    πŸ“š

    15,000+ Questions

    Verified questions with detailed solutions from past papers

    πŸ“Š

    Smart Analytics

    Track your progress with subject-wise performance insights

    πŸ”–

    Bookmark & Revise

    Save important questions for quick revision before exams

    Start Your Free Preparation β†’

    No credit card required β€’ Free forever for basic features