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.
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.
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 β and β
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 x belongs to a set A, we write
xβA
If x does not belong to A, we write
xβ/A
πWays to Describe a Set
A set can be written in different ways:
Roster form
A={1,2,3,4}
Set-builder form
A={xβN:1β€xβ€4}
Descriptive form
A= the set of natural numbers from 1 to 4
---
Basic Symbols
πMembership and Inclusion Symbols
xβA means x is an element of A
xβ/A means x is not an element of A
AβB means every element of A is also an element of B
AβB means A is a proper subset of B
A=B means both sets have exactly the same elements
β οΈDo Not Mix Up These Symbols
β compares an element with a set
β compares a set with a set
For example, if A={1,2,3}, then
1βA is true
{1}βA is true
1βA is meaningless
{1}βA is false
---
Subsets
πSubset
A set A is a subset of a set B if every element of A belongs to B.
We write
AβB
If AβB and Aξ =B, then A is a proper subset of B, written as
AβB
βImportant Facts About Subsets
For every set A:
β βA
Aβ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
β
or sometimes by {}.
β οΈVery Important Distinction
These are different:
β = empty set
{β } = a set whose only element is the empty set
So:
β has 0 elements
{β } has 1 element
---
Equality of Sets
πWhen Two Sets Are Equal
Two sets A and B are equal if and only if they contain exactly the same elements.
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}, which of the following is true?" options=["1βA","1βA","1βA","β βA"] answer="C" hint="Distinguish carefully between membership and subset." solution="We check each statement.
1βA is meaningless because 1 is an element, not a set.
{1}βA is false because the elements of A are 1,2,3, not the set {1}.
{1}βA is true because every element of {1} belongs to A.
β βA is false because the empty set is not listed as an element of A.
Hence the correct option is Cβ."
:::
:::question type="NAT" question="A set has 4 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 4 elements, then the total number of subsets is
24=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
Therefore the answer is 14β."
:::
:::question type="MSQ" question="Which of the following statements are true?" options=["β βA for every set A","If AβB and BβA, then A=B","β has no elements","If a set has n elements, then it has 2n 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 {β } has exactly one element, namely β .
β is for element-to-set comparison, while β is for set-to-set comparison.
The empty set is a subset of every set.
A set with n elements has 2n subsets.
β and {β } 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) and (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)
where:
a is called the first component
b 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
βMost Important Fact
In general,
(a,b)ξ =(b,a)
unless
a=b
So order matters.
---
Basic Examples
(2,5) and (5,2) are different ordered pairs
(3,3) and (3,3) are equal
if (x+1,2x)=(5,8), then
x+1=5 and 2x=8
so x=4
---
Cartesian Product
πCartesian Product of Two Sets
If A and B are sets, then the Cartesian product of A and B is the set
AΓB={(a,b):aβA,Β bβB}
That is, AΓB is the set of all ordered pairs whose first component comes from A and second component comes from B.
πFinite Set Cardinality
If A and B are finite sets, then
β£AΓBβ£=β£Aβ£β β£Bβ£
---
Examples of Cartesian Products
If
A={1,2},B={a,b,c}
then
AΓB={(1,a),(1,b),(1,c),(2,a),(2,b),(2,c)}
So
β£AΓBβ£=2β 3=6
But
BΓA={(a,1),(a,2),(b,1),(b,2),(c,1),(c,2)}
and this is a different set from AΓB.
---
Important Properties
πBasic Properties
If A=β or B=β , then
AΓB=β
In general,
AΓBξ =BΓA
If AβC and BβD, then
AΓBβCΓD
If A and B are finite, then
β£AΓBβ£=β£Aβ£β£Bβ£
β οΈDo Not Confuse These
AΓB is a set of ordered pairs
AβͺB is a set of elements
AΓB is not the same thing as {a,b}
AΓA is not the same as A
---
Ordered Pair Equality
πEquality Rule
If
(p,q)=(r,s)
then necessarily
p=randq=s
This is one of the fastest tools in algebraic questions involving ordered pairs.
Example
If
(2xβ1,Β x+3)=(5,Β 7)
then
2xβ1=5
and
x+3=7
Both give
x=3
So the equality is consistent.
---
Cartesian Product with More Than Two Sets
πTriple Cartesian Product
For sets A,B,C,
AΓBΓC={(a,b,c):aβA,Β bβB,Β cβC}
If all three sets are finite, then
β£AΓBΓCβ£=β£Aβ£β£Bβ£β£Cβ£
Example
If
A={1,2},Β B={0,1},Β C={x,y}
then
β£AΓBΓCβ£=2β 2β 2=8
---
Relations as Subsets of Cartesian Products
πRelation
A relation from a set A to a set B is any subset of
AΓ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}
then
AΓB={(1,a),(1,b),(2,a),(2,b)}
A possible relation is
R={(1,a),(2,b)}
since RβAΓB.
---
Functions as Special Relations
πFunction
A function from A to B is a relation fβAΓB such that each element of A appears exactly once as first component.
So for every aβA, there is exactly one bβB such that
(a,b)β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 and β£Bβ£=n, then the number of ordered pairs in AΓB is
mn
If order matters and repetition is allowed from the same set A, then the count of ordered pairs from AΓA is
β£Aβ£2
Example
If A={1,2,3,4}, then
β£AΓAβ£=42=16
---
Common Mistakes
β οΈAvoid These Errors
β Writing (a,b)=(b,a) automatically
β They are equal only when a=b.
β Thinking AΓB=BΓA
β These are usually different because order changes.
β Forgetting that AΓB contains ordered pairs, not ordinary elements
β Each element has the form (a,b).
β Adding cardinalities instead of multiplying
β For finite sets,
β£AΓBβ£=β£Aβ£β£Bβ£
β Thinking every subset of AΓ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} and B={a,b,c}, then how many elements are there in AΓB?" options=["3","5","6","8"] answer="C" hint="Use the formula for the cardinality of a Cartesian product." solution="We have
β£Aβ£=2,β£Bβ£=3
So
β£AΓBβ£=β£Aβ£β£Bβ£=2β 3=6
Therefore the correct answer is Cβ."
:::
:::question type="NAT" question="If (2x+1,Β 3xβ2)=(7,Β 7), find the value of x." answer="3" hint="Equate corresponding components." solution="Equality of ordered pairs gives:
2x+1=7
and
3xβ2=7
From the first,
2x=6
so
x=3
Check in the second:
3(3)β2=9β2=7
So the value of x is 3β."
:::
:::question type="MSQ" question="Which of the following statements are true?" options=["If (a,b)=(c,d), then a=c and b=d.","In general, AΓB=BΓA.","A relation from A to B is a subset of AΓB.","If A is a set with 4 elements, then β£AΓ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ΓB and BΓA are different because order matters.
True. By definition, a relation from A to B is a subset of AΓB.
False. If β£Aβ£=4, then
β£AΓAβ£=4β 4=16
Hence the correct answer is A,Cβ."
:::
:::question type="SUB" question="Let A={1,2} and B={x,y,z}. Write AΓB explicitly and explain why AΓBξ =BΓA." answer="AΓB=(1,x),(1,y),(1,z),(2,x),(2,y),(2,z) and order matters, so AΓBξ =BΓA." hint="List all ordered pairs with first component from A and second from B." solution="By definition,
AΓB={(a,b):aβA,Β bβB}
So
AΓ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)}
These are not the same, because for example
(1,x)βAΓB
but
(1,x)β/BΓA
Hence
AΓBξ =BΓAβ
The reason is that ordered pairs depend on the order of components."
:::
---
Summary
βKey Takeaways for CMI
An ordered pair (a,b) remembers order.
(a,b)=(c,d) only when both corresponding components are equal.
AΓB is the set of all ordered pairs with first entry from A and second from B.
For finite sets, β£AΓ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 A and B be sets.
A relation R from A to B is any subset of the Cartesian product AΓB.
So,
RβAΓB
If (a,b)βR, we write
aRb
which means that a is related to b under the relation R.
πCartesian Product
If A and B are sets, then
AΓB={(a,b):aβA,Β bβB}
So every relation from A to B is built from ordered pairs taken from AΓB.
---
Domain, Codomain, and Range
πBasic Components of a Relation
Suppose RβAΓB.
The domain of R is the set of all first components that appear in R:
Dom(R)={aβA:βbβBΒ suchΒ thatΒ (a,b)βR}
The codomain is the target set B
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}
β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ΓA, then R is called a relation on the set A.
This is the setting where we study:
reflexive
symmetric
antisymmetric
transitive
---
Four Main Properties
πReflexive
A relation R on A is reflexive if
(a,a)βRforΒ everyΒ aβA
That is, every element is related to itself.
πSymmetric
A relation R on A is symmetric if
(a,b)βRβ(b,a)βR
for all a,bβA.
πAntisymmetric
A relation R on A is antisymmetric if
(a,b)βRΒ andΒ (b,a)βRβa=b
for all a,bβA.
This does not mean βnot symmetricβ.
It means two distinct elements cannot be related in both directions.
πTransitive
A relation R on A is transitive if
(a,b)βRΒ andΒ (b,c)βRβ(a,c)βR
for all a,b,cβ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) are present
Symmetric: every arrow aβb must be matched by bβa
Antisymmetric: if both aβb and bβa occur, then a=b
Transitive: whenever aβb and bβc are present, aβc must also be present
---
Equivalence Relations
πEquivalence Relation
A relation R on a set A is an equivalence relation if it is:
reflexive
symmetric
transitive
Examples:
equality on any set
congruence modulo n on integers
βhas the same remainder upon division by nβ
πEquivalence Class
If R is an equivalence relation on A, the equivalence class of aβA is
[a]={xβA:xRa}
Equivalent elements belong to the same class.
The set A gets partitioned into disjoint equivalence classes.
---
Partial Orders
πPartial Order
A relation R on a set A is a partial order if it is:
reflexive
antisymmetric
transitive
Examples:
β€ on real numbers
divisibility on positive integers
subset relation β 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ΓB, then the inverse relation Rβ1βBΓA is defined by
Rβ1={(b,a):(a,b)βR}
So the ordered pairs are reversed.
---
Composition of Relations
πComposition
Suppose
RβAΓB and
SβBΓC
Then the composition SβR is the relation from A to C defined by
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ΓB is a function from A to B if for every aβA, there exists exactly one bβB such that
(a,b)β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}
and
R={(1,1),(2,2),(3,3),(1,2),(2,1)}
Check its properties.
reflexive: yes, because (1,1),(2,2),(3,3) are all present
symmetric: yes, because (1,2) and (2,1) both occur
antisymmetric: no, because (1,2) and (2,1) occur with 1ξ =2
transitive: yes
So R is an equivalence relation.
---
Example 2
On positive integers, define aRb by
aRbβΊaβ£b
Then:
reflexive: yes, since aβ£a
symmetric: no
antisymmetric: yes
transitive: yes
So divisibility is a partial order.
---
Common Ready-to-Use Relations
πStandard Examples
Equality:
aRbβΊa=b This is both an equivalence relation and a partial order.
Less than or equal:
aRbβΊaβ€b This is a partial order, not an equivalence relation.
Congruence modulo n:
aRbβΊaβ‘b(modn) This is an equivalence relation.
Divisibility:
aRbβΊaβ£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)
β 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 A to B or on A
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} and R={(1,1),(2,2),(3,3),(1,2),(2,1)}. Which of the following is correct?" options=["R is reflexive and antisymmetric","R is symmetric but not reflexive","R is reflexive and symmetric but not antisymmetric","R is transitive but not symmetric"] answer="C" hint="Check diagonal pairs first, then compare (1,2) and (2,1)." solution="The relation contains (1,1),(2,2),(3,3), so it is reflexive.
It also contains both (1,2) and (2,1), so it is symmetric.
But antisymmetry fails because (1,2) and (2,1) are both in R while 1ξ =2.
Hence the correct statement is that R is reflexive and symmetric but not antisymmetric.
Therefore the correct option is 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 A has 2 elements and set B has 3 elements, then
β£AΓBβ£=2β 3=6
A relation from A to B is any subset of AΓB.
A set with 6 elements has
26=64
subsets.
Hence the number of relations is 64β."
:::
:::question type="MSQ" question="Which of the following relations on the set of integers are equivalence relations?" options=["aRbβΊaβb is divisible by 5","aRbβΊaβ€b","aRbβΊa and b have the same parity","aRbβΊaβ£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 β€ 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β."
:::
:::question type="SUB" question="On the set of positive integers, define aRb by aβ£b. Prove that R 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 a, we have
aβ£a
because a=aβ 1.
Antisymmetric:
Suppose
aβ£bandbβ£a
Then there exist positive integers m,n such that
b=amanda=bn
Substituting,
a=(am)n=a(mn)
Since a>0, we get
mn=1
Hence m=n=1, so
a=b
Therefore the relation is antisymmetric.
Transitive:
Suppose
aβ£bandbβ£c
Then there exist positive integers m,n such that
b=am,c=bn
So
c=(am)n=a(mn)
Hence
aβ£c
Thus the relation is transitive.
So R is a partial order.
It is not an equivalence relation because symmetry fails. For example,
2β£4
but
4β€2
Hence R is a partial order but not an equivalence relation."
:::
---
Summary
βKey Takeaways for CMI
A relation from A to B is any subset of AΓB.
Domain, codomain, and range are different concepts.
Reflexive, symmetric, antisymmetric, and transitive are the main structural properties.
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βY is a function, then:
X is the domain
Y is the codomain
the range or image is the set
f(X)={f(x):xβ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βY is a function if for each xβX, there exists a unique yβY such that
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βY:
Domain = set of allowed inputs
Codomain = target set declared in advance
Range = actual outputs produced
Always:
f(X)βY
But usually:
f(X)ξ =Y unless the function is onto.
Example
If f:RβR is given by
f(x)=x2
then:
domain = R
codomain = R
range = [0,β)
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:
xβ31β requires xξ =3
x2β4x+1β requires xξ =2,β2
(xβ1)(x+5)1β requires xξ =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β requires xβ₯2
5βxβ requires xβ€5
x2β9β requires x2β9β₯0 so
xβ€β3Β orΒ xβ₯3
πRestriction from a Logarithm
For real logarithms, the argument must be strictly positive.
Examples:
logx requires x>0
log(xβ2) requires x>2
log(xβ3x+1β) requires
xβ3x+1β>0
πRestriction from Combined Expressions
When several restrictions appear together, the domain is their intersection.
Example:
For
f(x)=x2β9xβ1ββ
we need:
xβ1β₯0βxβ₯1
x2β9ξ =0βxξ =3,β3
Combining,
Domain=[1,β)β{3}
---
Quantifier Language
βReading Function Statements Correctly
Statements about domain often use quantifiers such as:
βfor each x in Xβ
βthere exists y in Yβ
βthere exists a unique y in Yβ
These have different meanings.
For a function f:XβY:
For each xβX, there exists yβY such that f(x)=y
This is always true for a function.
For each yβY, there exists xβX such that f(x)=y
This means f is onto.
If for each x1β,x2ββX, f(x1β)=f(x2β) implies x1β=x2β
This means f is one-to-one.
π‘Very Important Distinction
βfor each x, there exists yβ is about whether the function is defined at every input in the domain.
βfor each y, there exists xβ 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)=x2β5x+61β
Factor the denominator:
x2β5x+6=(xβ2)(xβ3)
So we must exclude
x=2,3
Hence,
Domain=Rβ{2,3}
---
Example 2
Find the domain of
g(x)=4βx2β
We need
4βx2β₯0
So
x2β€4
Hence,
β2β€xβ€2
Therefore,
Domain=[β2,2]
---
Fast Domain Rules
πQuick Reference
For real-valued functions:
Polynomial β domain is all real numbers
Rational expression β denominator ξ =0
Square root β inside β₯0
Fourth root, sixth root, etc. β inside β₯0
Logarithm β argument >0
A(x)β1β requires
A(x)>0 because denominator cannot be zero
β οΈWatch This Carefully
There is a big difference between:
A(x)β requires A(x)β₯0
A(x)β1β requires 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}
(ββ,2)βͺ(2,β)
[1,β)
(ββ,β3]βͺ[3,β)
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 instead of >0 inside logarithms
β using β₯0 instead of >0 for A(x)β1β
β assuming every formula automatically defines a function on all real numbers
β misreading βfor each x there exists yβ 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)=x2β41β is" options=["R","Rβ{β2,2}","Rβ{2}","[β2,2]"] answer="B" hint="The denominator must be nonzero." solution="We need
x2β4ξ =0
So
(xβ2)(x+2)ξ =0
Hence
xξ =2,β2
Therefore the domain is Rβ{β2,2}β.
So the correct option is Bβ."
:::
:::question type="NAT" question="Find the number of integers in the domain of f(x)=9βx2β." 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
So
x2β€9
Hence
β3β€xβ€3
The integers in this interval are
β3,β2,β1,0,1,2,3
There are 7 such integers.
Therefore, the answer is 7β."
:::
:::question type="MSQ" question="Which of the following statements are always true for a function f:XβY?" options=["For each xβX, there exists yβY such that f(x)=y.","For each xβX, there exists a unique yβY such that f(x)=y.","For each yβY, there exists xβX such that f(x)=y.","f(X)βY."] answer="A,B,D" hint="Separate the basic function property from onto-ness." solution="1. True. A function must assign an output in Y to every input in X.
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β."
:::
:::question type="SUB" question="Find the domain of f(x)=x2β5x+6xβ1ββ." answer="[1,β)β2,3" hint="Use the square-root restriction and denominator restriction together." solution="We need the square root to be defined:
xβ1β₯0
so
xβ₯1
Also the denominator must be nonzero:
x2β5x+6ξ =0
Factor:
x2β5x+6=(xβ2)(xβ3)
So
xξ =2,3
Combining all restrictions, the domain is
[1,β)β{2,3}
Therefore, the required domain is [1,β)β{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 x there exists a unique yβ 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)+d,
avoid common mistakes involving hidden domain restrictions.
---
Core Idea
πRange of a Function
If a function is written as
y=f(x)
then the range of f is the set of all real numbers y for which there exists at least one allowed value of x such that
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 f:
Domain = all admissible values of x
Range = all values of f(x) obtained from those admissible values
Example:
f(x)=xβ2β
Then:
domain is xβ₯2
range is yβ₯0
---
Standard Range Facts
πBasic Functions and Their Ranges
Constant function:
f(x)=c Range: {c}
Linear function:
f(x)=ax+b,Β aξ =0 Range: all real numbers
Square function:
f(x)=x2 Range: [0,β)
Cubic function:
f(x)=x3 Range: all real numbers
Reciprocal function:
f(x)=x1β Range: all real numbers except 0
Absolute value:
f(x)=β£xβ£ Range: [0,β)
Square root:
f(x)=xβ Range: [0,β)
Exponential:
f(x)=ax,Β a>0,Β aξ =1 Range: (0,β)
Logarithm:
f(x)=logaβx,Β a>0,Β aξ =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) and solve for x
Then determine for which values of y the obtained x is valid.
Use known inequalities
Such as x2β₯0, β£xβ£β₯0, AM-GM, or
x+x1ββ₯2 or β€β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) and Eliminate x
πInverse-Style Range Method
Suppose
y=f(x)
Try to solve for x in terms of y.
Then ask:
for which y is the resulting x real?
for which y does it satisfy the original domain?
This is one of the safest general methods.
Example 1
Find the range of
y=x2+4x+7
Complete the square:
y=(x+2)2+3
Since
(x+2)2β₯0,
we get
yβ₯3
So the range is
[3,β)β
---
Example 2
Find the range of
y=xβ21β
Since xξ =2, the denominator is never zero, so
yξ =0
Also every nonzero real value of y is possible by taking
x=2+y1β
So the range is
Rβ{0}β
---
Method 2: Use Inequalities
πHigh-Value Range Inequalities
Some standard facts:
x2β₯0
(xβa)2β₯0
β£xβ£β₯0
if x>0, then
x+x1ββ₯2
if x<0, then
x+x1ββ€β2
therefore, for real xξ =0,
x+x1ββ(ββ,β2]βͺ[2,β)
Example 3
Find the range of
y=x+x1β,xξ =0
For x>0, by AM-GM,
x+x1ββ₯2
For x<0, write x=βt with t>0:
x+x1β=β(t+t1β)β€β2
Hence the range is
(ββ,β2]βͺ[2,β)β
---
Method 3: Transform Known Ranges
πEffect of Transformations
Suppose the range of f(x) is R.
Then:
f(x)+k shifts the range upward by k
af(x) scales the range by factor a
- if a<0, it also reflects vertically
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)β£ forces all outputs to be non-negative
Example 4
If the range of x2 is [0,β), then the range of
β3x2+5
is obtained by:
multiplying by β3: gives (ββ,0]
adding 5: gives (ββ,5]
So the range is
(ββ,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β
Solve for x:
y(x+1)=xβ1
yx+y=xβ1
x(yβ1)=β(1+y)
x=yβ1β(1+y)β
This is valid for every yξ =1.
So the range is
Rβ{1}β
---
Radical Functions and Range
πSquare Root Type
If
y=g(x)β
then automatically
yβ₯0
But not every non-negative value must always occur. After writing
y=g(x)β
square carefully:
y2=g(x)
Then check which yβ₯0 are actually possible.
Example 5
Find the range of
y=4βx2β
We need
4βx2β₯0ββ2β€xβ€2
Also
yβ₯0
Maximum occurs at x=0:
y=2
Minimum occurs at x=Β±2:
y=0
So the range is
[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))
first find the range of
u=g(x)
Then apply f only to those allowed values of u.
This is often much easier than treating the whole expression directly.
Example 6
Find the range of
y=x2+1β
Since
x2β₯0,
we get
x2+1β₯1
Hence
y=x2+1ββ₯1
Also y=1 occurs at x=0.
So the range is
[1,β)β
---
Modulus and Range
πAbsolute Value Effects
If
y=β£f(x)β£
then:
always yβ₯0
all negative values in the range of f are reflected upward
if range of f is (ββ,a], then range of β£fβ£ must be analyzed carefully depending on whether 0 lies inside that interval
Example 7
Find the range of
y=β£x2β4β£
Since
x2β4β[β4,β),
taking modulus gives all values from 0 upward.
So the range is
[0,β)β
---
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 x in terms of y
β Forgetting to check whether endpoint values are attained
β Using graph intuition without algebraic verification
---
Quick Recognition Sheet
πFast Recall
x2+aβ range starts at a
βx2+aβ range ends at a
xβa1β+bβ range is all real numbers except b
g(x)ββ range is a subset of [0,β)
axβ range (0,β)
logaβxβ range all real numbers
x+x1ββ range (ββ,β2]βͺ[2,β)
---
Practice Questions
:::question type="MCQ" question="The range of f(x)=x2+6x+11 is" options=["[2,β)","[11,β)","(ββ,2]","(ββ,11]"] answer="A" hint="Complete the square." solution="We write
x2+6x+11=(x+3)2+2
Since
(x+3)2β₯0,
we get
f(x)β₯2
Also f(β3)=2, so the minimum value is attained.
Hence the range is [2,β)β, so the correct option is Aβ."
:::
:::question type="NAT" question="Find the least value of x+x4β for x>0." answer="4" hint="Use AM-GM or set t=2xβ." solution="For x>0, apply AM-GM to x and x4β:
x+x4ββ₯2xβ x4ββ=24β=4
Equality holds when
x=x4β
So
x2=4βx=2
Thus the least value is 4β."
:::
:::question type="MSQ" question="Which of the following statements are true?" options=["The range of x+3β is [0,β)","The range of xβ11β is Rβ{0}","The range of x3 is all real numbers","The range of β£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 0, and every other real value is achieved.
True. Cubic functions take every real value.
False. β£xβ£β₯0, so its range is [0,β).
Hence the correct answer is A,B,Cβ."
:::
:::question type="SUB" question="Find the range of f(x)=x+3xβ2β." answer="Rβ{1}" hint="Set y=x+3xβ2β and solve for x." solution="Let
y=x+3xβ2β
Then
y(x+3)=xβ2yx+3y=xβ2x(yβ1)=β(2+3y)
So
x=yβ1β(2+3y)β
This is possible for every real y except
y=1
Now check whether y=1 can occur in the original equation:
x+3xβ2β=1βxβ2=x+3
which gives
β2=3,
impossible.
Hence y=1 is not in the range, and every other real value is.
Therefore the range is
Rβ{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) and solve for x.
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
This means:
A is the domain
B is the codomain
for each element of A, the function assigns exactly one element of B
πDomain, Codomain, Range
For a function
f:AβB
domain = the set A from which inputs are taken
codomain = the set B into which outputs are declared to lie
range or image set = the actual set of values attained by f(x) as x runs over A
So,
Range(f)={f(x):xβA}
and always
Range(f)β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
Then:
domain = R
codomain = R
range = [0,β)
So here the range is not equal to the codomain.
πSame Rule, Different Codomain
Now consider
g:Rβ[0,β),g(x)=x2
Then:
domain = R
codomain = [0,β)
range = [0,β)
Now the range equals the codomain.
β οΈDo Not Confuse These
For f(x)=x2 on R:
codomain is not automatically [0,β)
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βB is onto or surjective if every element of the codomain is hit by some element of the domain.
So f is surjective if
Range(f)=B
Thus surjectivity depends directly on the codomain.
πSame Rule, Different Surjectivity
Consider f(x)=x2.
If
f:RβR then f is not onto, because negative numbers are not attained.
If
f:Rβ[0,β) then fis 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
This function is one-one and onto, so it has inverse
fβ1(x)=xβ
But if we write
f:[0,β)βR,f(x)=x2
then it is not onto its codomain, so it is not invertible as a map onto R.
---
Codomain and Composition
πComposition Condition
If
f:AβB,g:CβD
then gβf is defined only when the outputs of f fit into the domain of g.
A standard safe condition is:
CodomainΒ ofΒ fβDomainΒ ofΒ g
or at least
RangeΒ ofΒ fβ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βB and SβA, then the image of S under f is
f(S)={f(x):xβS}
In particular,
f(A)=Range(f)
So
f(A)βB
---
Key Relationships
πMust-Know Relationships
For a function f:AβB:
domain = A
codomain = B
range = f(A)
f(A)βB
f is onto βΊf(A)=B
---
Minimal Worked Examples
Example 1
Consider
f:RβR,f(x)=x2
Then the codomain is R because that is declared in the function notation. But the actual outputs satisfy x2β₯0, so the range is
[0,β)
Hence range and codomain are different.
---
Example 2
Consider
f:Rβ[0,β),f(x)=x2
Now the range is exactly [0,β), 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β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βB, which of the following is always true?" options=["Codomain(f)=Range(f)","Range(f)βCodomain(f)","Domain(f)β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βB, every actual output f(x) must lie in the codomain B. Therefore,
Range(f)βCodomain(f)
The range need not equal the codomain, and not every function is onto.
Hence the correct option is Bβ."
:::
:::question type="NAT" question="Let f:RβR be defined by f(x)=x2+1. Find the least value in the range of f." answer="1" hint="Use the fact that x2β₯0 for all real x." solution="We have
f(x)=x2+1
Since x2β₯0 for all real x,
x2+1β₯1
Equality occurs when x=0.
So the least value in the range is 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βR defined by f(x)=x2, the codomain is [0,β).","For any function f:AβB, we always have f(A)β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)
False. If the function is written as f:RβR, then the codomain is R, not [0,β).
True. By definition, all outputs of f lie in the codomain.
Hence the correct answer is A,B,Dβ."
:::
:::question type="SUB" question="Consider the function f:RβR defined by f(x)=x2. Find its domain, codomain, and range. Is the function onto?" answer="Domain =R, Codomain =R, Range =[0,β), 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
So:
the domain is R
the codomain is R
Now determine the range. Since
x2β₯0 for all real x,
the set of actual outputs is
[0,β)
Thus:
Domain =R
Codomain =R
Range =[0,β)
To be onto, the range must equal the codomain. But
[0,β)ξ =R
Therefore the function is not onto.
So the final answer is:
DomainΒ =R,Β CodomainΒ =R,Β RangeΒ =[0,β),Β notΒ ontoβ."
:::
---
Summary
βKey Takeaways for CMI
codomain is the declared target set in f:AβB
range is the actual set of values attained by the function
always Range(f)β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
:::question type="MCQ" question="Let A={1,2} and B={x,y}. Which of the following is NOT a relation from A to B?" options=["{(1,x),(2,y)}", "{(1,y),(2,x),(1,x)}", "{(x,1),(y,2)}", "β "] answer="{(x,1),(y,2)}" hint="Recall that a relation from A to B must be a subset of AΓB." solution="The Cartesian product AΓB={(1,x),(1,y),(2,x),(2,y)}. A relation from A to B is any subset of AΓB. Option A, B, and D are all subsets of AΓB. Option C, however, contains ordered pairs where the first element is from B and the second from A. This is a relation from B to A, not from A to B. Therefore, β is a valid relation from A to B (the empty relation). The correct answer is {(x,1),(y,2)}. " :::
:::question type="NAT" question="Consider the relation R={(x,y)βZΓZβ£y=x2Β andΒ β1β€xβ€2}. What is the sum of all distinct elements in the range of R?" answer="6" hint="First, list all the ordered pairs in the relation R. 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}. We find the ordered pairs by substituting integer values for x from β1 to 2: If x=β1, y=(β1)2=1. So, (β1,1)βR. If x=0, y=(0)2=0. So, (0,0)βR. If x=1, y=(1)2=1. So, (1,1)βR. If x=2, y=(2)2=4. So, (2,4)βR. Thus, R={(β1,1),(0,0),(1,1),(2,4)}. The range of R is the set of all second components: Ran(R)={1,0,4}. The sum of all distinct elements in the range is 1+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=5. Let me double check my thought process. x=β1βΉy=1 x=0βΉy=0 x=1βΉy=1 x=2βΉy=4 Range = {0,1,4}. Sum = 0+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} or {0,2,4} or {1,2,3}. My range is {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 R?" My calculation for the range is correct: {0,1,4}. My calculation for the sum is correct: 0+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