Types of functions
This chapter rigorously defines and explores key classifications of functions: one-one, onto, bijective, constant, and identity. A comprehensive grasp of these fundamental function types is essential for success in CMI examinations, as they form the bedrock for advanced mathematical concepts and problem-solving within algebra and analysis.
---
Chapter Contents
|
| Topic |
|---|-------| | 1 | One-one functions | | 2 | Onto functions | | 3 | Bijective functions | | 4 | Constant functions | | 5 | Identity function |---
We begin with One-one functions.
Part 1: One-one functions
One-one Functions
Overview
A one-one function is a function that never takes the same value at two different inputs. In exam problems, this idea appears through direct definition, algebraic verification, graph tests, monotonicity, inverse functions, and domain restrictions. The real skill is to recognise when injectivity comes from structure and when it fails because symmetry or repetition is present. ---Learning Objectives
After studying this topic, you will be able to:
- Define one-one functions precisely.
- Test injectivity using the definition.
- Use graph-based and monotonicity-based criteria for one-one functions.
- Understand the relation between one-one functions and inverse functions.
- Identify how domain restrictions can make a function one-one.
Core Definition
A function is called one-one or injective if
for all .
Equivalent form:
A one-one function never repeats an output value at two different inputs.
Basic Examples
- on is one-one
- on is one-one
- on is not one-one because
- on is one-one
- on is not one-one
Direct Test from Definition
To test whether a function is one-one:
- Assume
- Simplify the equation.
- Try to conclude
If this always follows, the function is one-one.
Graph Interpretation
A function is one-one if and only if every horizontal line intersects its graph in at most one point.
- If a horizontal line cuts the graph twice, then two different -values give the same output.
- That means the function is not one-one.
- passes the horizontal line test
- fails it
- fails it on
Monotonicity and Injectivity
If a function is strictly increasing or strictly decreasing on its domain, then it is one-one.
That is:
- if , then is one-one
- if , then is one-one
Many exam questions can be solved by observing monotonicity instead of using the definition from scratch.
- is strictly increasing on , so it is one-one
- is strictly decreasing, so it is one-one
- is not monotone on all of , so it is not one-one there
Role of Domain Restrictions
A function may fail to be one-one on a large domain but become one-one after restricting the domain.
Examples:
- is not one-one on
- is one-one on
- is not one-one on
- is one-one on
When a function is symmetric or periodic, always ask whether the domain can be restricted to make it injective.
One-one and Inverse Functions
A function has an inverse function on its image if and only if it is one-one.
- has inverse
- on has no inverse as a function
- on has inverse
Common Non-Injective Patterns
A function is usually not one-one if it has:
- symmetry like
- periodicity like
- repeated turning points causing repeated output values
- modulus symmetry such as
Examples:
Minimal Worked Examples
Example 1 Test whether is one-one on . Assume Cross-multiply: Expand both sides: So Hence the function is one-one. --- Example 2 Test whether is one-one on . Rewrite: This is a parabola opening upward, so horizontal lines above cut it twice. Hence it is not one-one on . But on it is one-one. ---Algebraic Shortcuts
- Linear function with is always one-one on
- A non-constant polynomial of even degree is usually not one-one on all of
- A strictly monotone polynomial of odd degree may be one-one
- Rational functions of the form with are one-one on their domain
Common Mistakes
- ❌ confusing one-one with onto
- ❌ checking only a few sample values instead of proving the condition
- ❌ ignoring the domain
- ❌ assuming every increasing-looking graph is one-one without checking the whole domain
- ❌ forgetting that inverse exists only when the function is one-one on the chosen domain
CMI Strategy
- First inspect the graph shape mentally.
- Check whether symmetry or periodicity destroys injectivity.
- If the function looks monotone, use monotonicity.
- If needed, use the direct definition:
- Always keep the domain in view.
- If the function is not injective, think about whether a domain restriction fixes it.
Practice Questions
:::question type="MCQ" question="Which of the following functions is one-one on ?" options=["","","",""] answer="C" hint="Think about symmetry and monotonicity." solution="The function is not one-one because and have the same image. The function is not one-one because . The function is periodic, so it is not one-one on . The function is strictly increasing on , so it is one-one. Therefore the correct option is ." ::: :::question type="NAT" question="Find the value of for which the linear function fails to be one-one on ." answer="0" hint="When does a linear function become constant?" solution="A linear function is one-one on whenever . It fails to be one-one only when it becomes a constant function. That happens when . Therefore the answer is ." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["If is strictly increasing on its domain, then is one-one.","If is one-one, then every horizontal line intersects its graph in at most one point."," is one-one on .","A function can be both one-one and onto."] answer="A,B,C,D" hint="Separate injectivity, graph interpretation, and domain restriction carefully." solution="1. True. Strictly increasing functions are injective.Summary
- A one-one function never repeats an output at two different inputs.
- The cleanest tests are the definition, horizontal line test, and strict monotonicity.
- Domain matters critically.
- Many non-injective functions become injective after domain restriction.
- A function has an inverse on its image exactly when it is one-one.
- Symmetry and periodicity are common reasons for failure of injectivity.
---
Proceeding to Onto functions.
---
Part 2: Onto functions
Onto functions, also known as surjective functions, are fundamental in mathematics, ensuring that every element in a function's codomain is reached by at least one element from its domain. Mastering their properties is crucial for CMI problems involving function classification and counting.
---
Core Concepts
1. Definition of an Onto Function
A function X \to Y y \in Y x \in X f(x) = y f Y $.
Worked Example 1: Proving Onto for Finite Sets
Consider the function defined by , , . We determine if is an onto function.
Step 1: Identify codomain elements
> The codomain is . We must check if every element in is an image of some element in .
Step 2: Check for
> We observe . Thus, is in the range of .
Step 3: Check for
> We observe . Thus, is in the range of .
Answer: Since every element in the codomain has at least one pre-image in the domain , is an onto function.
Worked Example 2: Proving Onto for Real Functions
We examine if the function defined by is onto.
Step 1: Take an arbitrary element from the codomain
> Let be an arbitrary element in the codomain.
Step 2: Solve for
>
>
>
Step 3: Check if is in the domain
> For any , the value is always a real number. Therefore, for every in the codomain , there exists an in the domain such that .
Answer: The function is onto.
Worked Example 3: Disproving Onto for Real Functions
We determine if the function defined by is onto.
Step 1: Identify codomain elements that might not have pre-images
> The codomain is . We know that squares of real numbers are always non-negative.
Step 2: Choose a from the codomain with no pre-image
> Consider . We need to find an such that .
Step 3: Attempt to solve for and check domain
> The equation has no real solutions for .
Answer: Since there exists an element in the codomain that has no pre-image in the domain , the function is not onto.
:::question type="MCQ" question="Let be defined by . Is an onto function?" options=["Yes, because every integer can be written as .","No, because odd integers in the codomain do not have integer pre-images.","Yes, because for every , is an integer.","No, because is one-to-one."] answer="No, because odd integers in the codomain do not have integer pre-images." hint="Consider if every element in the codomain has a pre-image in the domain ." solution="Step 1: Understand the definition of an onto function.
> A function is onto if for every , there exists an such that .
Step 2: Consider an element in the codomain .
> Let (an odd integer) be an element in the codomain .
Step 3: Try to find a pre-image in the domain .
> We set , so .
> Solving for , we get .
Step 4: Check if is in the domain.
> The value is not an integer, so it is not in the domain . Therefore, has no pre-image in the domain .
Answer: The function is not onto because odd integers in the codomain do not have integer pre-images."
:::
---
2. Cardinality and Onto Functions
We establish a necessary condition for a function to be onto in the context of finite sets.
If a function is onto, then the cardinality of the domain must be greater than or equal to the cardinality of the codomain . That is, .
Worked Example 1: Impossibility of Onto Function
Consider sets and . We determine if a function can be onto.
Step 1: Compare cardinalities of domain and codomain
> We have and .
Step 2: Apply the cardinality condition
> Since (i.e., ), it is impossible for to be an onto function. There are more elements in the codomain than in the domain, so at least one element in the codomain will not have a pre-image.
Answer: A function cannot be onto.
:::question type="MCQ" question="Let and be finite sets. Which of the following statements about an onto function is always true?" options=["","There are infinitely many such functions.","","The function must also be one-to-one."] answer="" hint="Recall the definition of onto and its implications for the sizes of the sets." solution="Step 1: Understand the definition of an onto function.
> Every element in the codomain must be mapped to by at least one element in the domain .
Step 2: Consider the implication for cardinalities.
> If there are more elements in the codomain than in the domain , then by the Pigeonhole Principle, it is impossible for every element in to receive a mapping from . At least one element in would be left unmapped.
Step 3: Formulate the condition.
> Therefore, for a function to be onto, the number of elements in the domain must be at least as large as the number of elements in the codomain .
Answer: The statement is always true for an onto function between finite sets."
:::
---
3. Counting Onto Functions
We use the Principle of Inclusion-Exclusion to count the number of onto functions between two finite sets.
The number of onto functions from a set with to a set with is given by:
Where: is the size of the domain, is the size of the codomain. This formula is valid for . If , the number of onto functions is .
Worked Example:
We calculate the number of onto functions from a set with to a set with .
Step 1: Identify and
> Here, and .
Step 2: Apply the formula for
>
>
Step 3: Calculate each term
>
>
>
Answer: There are 6 onto functions from a set of size 3 to a set of size 2.
:::question type="NAT" question="How many onto functions are there from a set to a set ?" answer="14" hint="Use the inclusion-exclusion principle for counting onto functions, where and ." solution="Step 1: Identify the sizes of the domain and codomain.
> The domain has . The codomain has .
Step 2: Apply the formula for the number of onto functions.
>
> Substitute and :
>
Step 3: Expand and calculate the terms.
> For :
> For :
> For :
Step 4: Sum the terms.
>
Answer: 14"
:::
---
Advanced Applications
We consider functions involving multiple properties or more complex domains/codomains.
Worked Example: Onto and Injective Properties
We analyze the function defined by . We determine if is onto and if it is one-to-one.
Step 1: Check if is onto
> Let be an arbitrary element in the codomain.
> We need to find an such that , i.e., .
> Since , we can choose . Then (as ) and .
> Thus, for every in the codomain, there exists an in the domain such that .
Step 2: Conclude about onto property
> The function is onto.
Step 3: Check if is one-to-one
> A function is one-to-one if distinct elements in the domain map to distinct elements in the codomain.
> Consider and . Both and .
> However, and .
> Since for , the function is not one-to-one.
Answer: The function is onto but not one-to-one.
:::question type="MSQ" question="Let be defined by . Which of the following statements are true?" options=[" is onto."," is one-to-one.","The range of is .","The codomain of is ."] answer="The range of is " hint="Recall the definition of onto, one-to-one, range, and codomain for trigonometric functions." solution="Step 1: Analyze if is onto.
> A function is onto if its range equals its codomain. For , the domain is and the codomain is . The range of is . Since , is not onto. Thus, 'f is onto' is false.
Step 2: Analyze if is one-to-one.
> A function is one-to-one if distinct inputs map to distinct outputs. For , we know that and . Since but , is not one-to-one. Thus, 'f is one-to-one' is false.
Step 3: Analyze the range of .
> The range of the sine function is indeed . Thus, 'The range of is ' is true.
Step 4: Analyze the codomain of .
> The function is defined as , which means its codomain is explicitly stated as . The option states 'The codomain of is ', which is incorrect.
Answer: The range of is "
:::
---
Problem-Solving Strategies
We outline effective approaches for determining if a function is onto.
To demonstrate that a function is onto, follow these steps:
- Arbitrary : Start by taking an arbitrary element from the codomain .
- Solve for : Set and solve this equation for in terms of .
- Check domain: Verify that the expression for you found is always an element of the domain for all possible . If it is, the function is onto.
To show that a function is not onto, you only need to:
- Find a counterexample: Identify at least one specific element in the codomain .
- Show no pre-image: Prove that for this , there is no such that . This means is not in the range of .
---
Common Mistakes
Avoiding common pitfalls is crucial for accuracy in CMI exams.
❌ Students often confuse the codomain with the range. An onto function requires the range to be equal to the codomain, not just that the codomain is a superset of the range.
✅ Always explicitly check if every element in the stated codomain has a pre-image. For example, . Its range is , which is not equal to its codomain . So it's not onto.
❌ When solving for in , students sometimes forget to check if the resulting is valid for the given domain .
✅ Ensure that for every , the found (or its existence) is indeed within the specified domain . For example, if and , then for , , but for , , but (codomain is not ). Or consider , . For , , not in domain. For , , but only is in domain.
---
Practice Questions
:::question type="MCQ" question="Let be defined by . Is an onto function?" options=["Yes, because every natural number has a successor.","No, because in the codomain has no pre-image in .","Yes, because for every , is a natural number.","No, because is one-to-one."] answer="No, because in the codomain has no pre-image in ." hint="Check if every natural number in the codomain can be expressed as for some natural number ." solution="Step 1: Understand the function and its domain/codomain.
> means the domain and the codomain .
> The function is .
Step 2: Test for an arbitrary in the codomain.
> Let (the smallest element in the codomain). We need to find an such that .
> Setting , we get .
Step 3: Check if is in the domain.
> The value is not an element of the natural numbers .
> Therefore, in the codomain has no pre-image in the domain .
Answer: No, because in the codomain has no pre-image in ."
:::
:::question type="NAT" question="Let and . If is an onto function, what is the minimum number of elements in that must map to a specific element in ?" answer="1" hint="An onto function requires at least one pre-image for every element in the codomain." solution="Step 1: Understand the definition of an onto function.
> A function is onto if for every element , there exists at least one element such that .
Step 2: Apply to the question.
> The question asks for the minimum number of elements in that must map to a specific element in .
> The definition of onto directly states 'at least one'. There is no requirement for more than one pre-image for any element for the function to be onto.
Step 3: Consider an example.
> Let . If . Here, 'a' has 2 pre-images, 'b' has 1, 'c' has 2. The function is onto. The minimum number of pre-images for any element (like 'b') is 1.
Answer: 1"
:::
:::question type="MCQ" question="Let be defined by . Is an onto function?" options=["Yes, because for any in the codomain, is in the domain.","No, because can never be .","Yes, because the domain and codomain are properly restricted.","No, because the function is not one-to-one."] answer="Yes, because for any in the codomain, is in the domain." hint="To prove onto, take an arbitrary from the codomain and solve for . Then check if this is always in the domain." solution="Step 1: Take an arbitrary from the codomain.
> Let be an arbitrary element in the codomain. This means .
Step 2: Solve for .
>
>
>
>
>
>
Step 3: Check if is in the domain.
> The domain is . We need to ensure that is never equal to for .
> If , then . This implies , which simplifies to , a contradiction.
> Therefore, can never be .
> Also, since (by definition of the codomain), the denominator is never zero, so is always well-defined.
> Thus, for every , the corresponding is a real number and , so is in the domain .
Answer: Yes, because for any in the codomain, is in the domain."
:::
:::question type="MCQ" question="Which of the following functions is onto?" options=["","","",""] answer="" hint="For a function to be onto, its range must be . Check the range of each function." solution="Step 1: Analyze .
> The range of is . Since , this function is not onto.
Step 2: Analyze .
> The range of is . Since , this function is not onto.
Step 3: Analyze .
> For any real number , we can find a real number such that . The cube root of any real number is a real number. Thus, the range of is , which equals the codomain. This function is onto.
Step 4: Analyze .
> The range of is . Since , this function is not onto.
Answer: "
:::
:::question type="MSQ" question="Let be defined by . Which of the following statements are true?" options=[" is onto."," is one-to-one."," is bijective.","The equation has exactly one solution for in the domain for every in the codomain."] answer=" is onto., is one-to-one., is bijective.,The equation has exactly one solution for in the domain for every in the codomain." hint="Carefully consider the restricted domain and codomain. Analyze injectivity and surjectivity under these conditions." solution="Step 1: Check if is onto.
> Let be an arbitrary element in the codomain. We need to find such that , i.e., .
> Solving for , we get . Since the domain is , we must choose .
> For any , is a real number and , so is in the domain .
> Thus, is onto.
Step 2: Check if is one-to-one.
> Let such that .
> Then . This implies .
> Since both and are in , they must be non-negative. Therefore, .
> Thus, is one-to-one.
Step 3: Check if is bijective.
> Since is both onto and one-to-one, it is bijective.
Step 4: Check the number of solutions for .
> For any , we found that is the unique solution in the domain .
> Thus, the equation has exactly one solution for in the domain for every in the codomain.
Answer: is onto., is one-to-one., is bijective.,The equation has exactly one solution for in the domain for every in the codomain."
:::
---
Summary
|
| Formula/Concept | Expression |
|---|----------------|------------| | 1 | Onto Function Definition | For , . Range() = Codomain(). | | 2 | Cardinality Condition | If is onto, then . | | 3 | Number of Onto Functions | |---
What's Next?
This topic connects to:
- Injective Functions (One-to-One): Understanding onto functions is essential for distinguishing them from injective functions and for their combination.
- Bijective Functions: Functions that are both onto and injective, leading to inverse functions.
- Inverse Functions: A function has an inverse if and only if it is bijective, meaning it must be onto.
- Function Composition: Analyzing properties (like onto-ness) of composite functions.
---
Proceeding to Bijective functions.
---
Part 3: Bijective functions
Bijective Functions
Overview
A bijective function is one that is both one-one and onto. In CMI-style problems, bijections are important not only as definitions, but as the correct language for invertibility, counting arguments, composition, and constructing functions between sets. The main idea is simple: every output is hit exactly once. ---Learning Objectives
After studying this topic, you will be able to:
- Distinguish clearly between injective, surjective, and bijective functions.
- Test whether a given function is bijective.
- Understand why bijectivity is exactly the condition for existence of an inverse function.
- Use composition and finite-set counting in bijection problems.
- Solve medium to hard exam-style questions involving domain, codomain, and image.
Core Definitions
A function assigns to each element of exactly one element of .
- is the domain
- is the codomain
- the set is the image or range
A function is:
- Injective (one-one) if
- Surjective (onto) if every element of is the image of some element of , that is,
- Bijective if it is both injective and surjective
For a bijection :
- no two inputs share the same output
- no output is left unused
So every element of is matched with exactly one element of .
Test for Injectivity
To prove is injective, start from
and try to show
Test for Surjectivity
To prove is surjective, take an arbitrary and solve
for .
Bijectivity and Inverse Functions
A function has an inverse function if and only if is bijective.
If is bijective, then there exists a unique inverse such that
and
- injective prevents two inputs from collapsing to one output
- surjective ensures every output has a preimage
- together they make inverse possible
Finite Set View
If and are finite sets and is bijective, then
Also:
- if and is injective, then is automatically surjective
- if and is surjective, then is automatically injective
For infinite sets, injective does not automatically imply surjective, and surjective does not automatically imply injective.
Graphical View on Real Intervals
For functions on intervals of real numbers:
- injective every horizontal line meets the graph at most once
- bijective onto a stated codomain means every value in the codomain appears exactly once
- from to is bijective
- from to is not injective and not surjective
- from to is bijective
Domain and Codomain Matter
The formula alone does not decide bijectivity. The domain and codomain matter.
For example:
- , is not bijective
- , is bijective
Composition of Bijective Functions
If and are bijective, then is also bijective.
When a function looks difficult, sometimes it is easier to view it as a composition of simpler bijections.
Standard Examples
- , with
- ,
- ,
- ,
- ,
- ,
- ,
- constant functions on sets with more than one element
Minimal Worked Examples
Example 1 Check whether is bijective. Since is strictly increasing on , it is injective. For any , solve so This is real for every real . Hence is surjective and therefore bijective. --- Example 2 Check whether is bijective. It is not injective because It is not surjective onto because values less than are never attained. So it is not bijective. ---CMI Strategy
- Write domain and codomain first.
- Check injectivity and surjectivity separately.
- For surjectivity, solve carefully.
- For finite sets, use counting.
- If inverse is asked, first verify bijectivity.
- Watch for restricted domains like or .
Common Mistakes
- ❌ Checking only injectivity and calling the function bijective
- ❌ Ignoring codomain while testing onto-ness
- ❌ Assuming same formula means same function type under every domain
- ❌ Writing inverse without first proving bijectivity
- ❌ Using finite-set counting ideas for infinite sets without care
Practice Questions
:::question type="MCQ" question="Which of the following functions is bijective?" options=["","","",""] answer="B" hint="Check both injectivity and surjectivity." solution="Among the given functions, is strictly increasing on , so it is injective. Also every real number is attained, so it is surjective onto . Hence it is bijective. The others fail injectivity, surjectivity, or both. Therefore the correct option is ." ::: :::question type="NAT" question="Let be given by . Find ." answer="4" hint="On , is bijective." solution="Since the domain and codomain are both , the function is bijective. Its inverse is Therefore Hence the answer is ." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["Every bijective function is injective","Every bijective function is surjective","If and are finite sets with , then every injective map is bijective","If a function has an inverse function, then it must be bijective"] answer="A,B,C,D" hint="Use the definitions and the inverse-function theorem." solution="1. True, by definition of bijection.Summary
- A bijection is both injective and surjective.
- A function is invertible exactly when it is bijective.
- Domain and codomain are part of the problem, not decoration.
- On finite sets of equal size, injective and surjective are equivalent.
- Many function questions reduce to solving carefully.
- The phrase "every output exactly once" is the cleanest memory picture of bijection.
---
Proceeding to Constant functions.
---
Part 4: Constant functions
Constant Functions
Overview
A constant function is one of the simplest types of functions, but in exam questions it is often hidden inside logical language, range-based statements, injectivity, surjectivity, and composition. The main idea is that every input gets mapped to the same output. In CMI-style questions, the challenge is usually not the formula itself, but recognizing equivalent ways of saying that a function is constant. ---Learning Objectives
After studying this topic, you will be able to:
- define a constant function correctly
- recognize equivalent logical descriptions of constant functions
- determine the range of a constant function
- understand when a constant function can or cannot be one-one or onto
- use constant-function language in proofs and MCQ/MSQ/NAT settings
Core Definition
A function is called a constant function if there exists a fixed element such that
So all inputs in the domain have exactly the same output.
A function is constant if and only if
This says that the value of the function does not depend on the input.
Most Important Characterization
For a nonempty domain , the function is constant if and only if there exists a unique such that for every ,
This is one of the most standard logical descriptions of a constant function.
- existence means there is at least one such output value
- uniqueness means there is exactly one such output value
Range of a Constant Function
If is constant and is nonempty, then the range of has exactly one element.
So if for all , then
Hence,
For a constant function:
- codomain may contain many elements
- range contains only one element, provided the domain is nonempty
So a constant function does not mean the codomain has one element. It means the actual outputs collapse to one value.
Constant Function vs One-One and Onto
Assume is nonempty.
- If is constant and , then is not one-one.
- If is constant and , then is not onto.
- A constant function can be onto only when the codomain has exactly one element equal to the single attained value.
If , choose distinct .
Since is constant,
So different inputs have the same output, hence the function is not injective.
If the range has only one element but the codomain has more than one element, then not every element of the codomain is attained.
So the function cannot be onto unless the codomain itself is that one-element set.
Graphical Understanding
If for all real , then the graph is
which is a horizontal line.
- gives the line
- gives the line
A graph is the graph of a constant function exactly when it is a horizontal line.
Algebraic Examples
Example 1 This is constant because every input maps to . Its range is --- Example 2 This is also constant. Even though the domain is infinite, the output is still only one value. ---Equivalent Ways to Recognize a Constant Function
For a nonempty domain , the following are equivalent:
- is constant
- there exists such that for all
- there exists a unique such that for all
- for all , we have
- the range of has exactly one element
When a function question gives a complicated logical sentence, try converting it into one of these five forms.
Constant Functions and Composition
If is constant and is any function, then is constant.
Why? Because always equals one fixed value, so after applying , the result is still one fixed value.
Also, if is any function and is constant, then is constant.
Composing with a constant function often gives another constant function.
Constant Polynomial Functions
A polynomial such as
is a constant polynomial function.
Its degree is if the constant is nonzero.
The zero polynomial is also constant, though its degree is treated separately in standard school algebra.
Minimal Worked Examples
Example 1 Let satisfy Then is constant by definition, and its range is . --- Example 2 Suppose and is constant. Choose distinct . Then So cannot be one-one. ---Common Traps
- ❌ thinking a constant function must have a one-element codomain
- ❌ confusing codomain with range
- ❌ saying a constant function can be injective on a domain with more than one element
- ❌ forgetting that a constant function on a nonempty domain has range of size
- ❌ missing logical forms like “there exists a unique such that for every , ”
CMI Strategy
- first check whether all outputs are forced to be equal
- convert long logical statements into “all inputs map to one fixed value”
- compare range size with codomain size
- if , immediately note that a constant function cannot be one-one
- if and the domain is nonempty, immediately note that a constant function cannot be onto
Practice Questions
:::question type="MCQ" question="Let be a function with nonempty domain . Which of the following is equivalent to being a constant function?" options=["For every , "," is one-one"," is onto"," has exactly one element"] answer="A" hint="A constant function gives the same output for every input." solution="A function is constant exactly when all inputs give the same output. So the correct condition is The function need not be one-one or onto, and the codomain need not have one element. Hence the correct option is ." ::: :::question type="NAT" question="Let be defined by . Find the number of elements in the range of ." answer="1" hint="A constant function on a nonempty domain has exactly one output value." solution="Since , the set of actual outputs is So the range has exactly one element. Therefore, the answer is ." ::: :::question type="MSQ" question="Assume , , and is a constant function. Which of the following statements are true?" options=[" is not one-one"," is onto","The range of has exactly one element","There exists a unique such that for every , "] answer="A,C,D" hint="Use the definition and compare range with codomain." solution="Since is constant, all elements of map to one fixed value.Summary
- a constant function sends every input to the same output
- for a nonempty domain, the range of a constant function has exactly one element
- if the domain has more than one element, a constant function is not one-one
- if the codomain has more than one element, a constant function on a nonempty domain is not onto
- the logical statement “there exists a unique such that for every , ” is a standard characterization of constancy
- range and codomain must never be confused in function questions
---
Proceeding to Identity function.
---
Part 5: Identity function
Identity Function
Overview
The identity function is the simplest possible function on a set: it sends every element to itself. Even though it looks elementary, it plays a central role in composition, inverse functions, bijections, and function algebra. In abstract questions, the identity function behaves like the number does for multiplication: it is the neutral element for composition. ---Learning Objectives
After studying this topic, you will be able to:
- Define the identity function on a set correctly.
- Understand why domain and codomain must be the same set.
- Use identity functions in composition problems.
- Connect identity functions with inverse functions and bijections.
- Solve exam-style questions involving fixed points and functional identities.
Definition
For a set , the identity function on is the function
defined by
The identity function is defined from a set to itself. So
The domain and codomain are both .
Basic Properties
For every set :
- for all
- is bijective
If , then
and
whenever the compositions are defined.
Identity and Inverses
If is bijective, then its inverse satisfies
and
When you compose a function with its inverse:
- first go forward, then backward nothing changes
- first go backward, then forward nothing changes
That "nothing changes" map is exactly the identity function.
Graph of the Identity Function
For , the identity function is
Its graph is the straight line
- it is the graph of the identity function,
- the graph of an inverse function is the reflection of the graph of in the line
Identity Function Is Bijective
Injective:
If
,
then
Surjective:
For any , choose . Then
So the identity function is always bijective.
Fixed Points and Identity
A fixed point of a function is an element such that
Distinguishing Identity from "Looks Like Identity"
A function may have the formula , but it is not automatically the same identity function unless the domain and codomain are specified.
For example:
- , is
- , is
These are identity functions on different sets.
Composition Examples
If , then:
because
Also,
because
Minimal Worked Examples
Example 1 Let be given by Then and --- Example 2 Let Then Now and similarly So composition with the inverse gives the identity function. ---Functional Equations Involving Identity
Sometimes questions ask for functions satisfying:
These are not random formulas:
- means is a right inverse of
- means is a left inverse of
- if both hold, then
CMI Strategy
- Write the set first: identity always depends on the set.
- Check composition carefully; domains and codomains must match.
- When inverse is involved, look for identity after composition.
- If a function fixes every element, it is the identity on that set.
- For real-variable questions, remember that the graph is the line .
Common Mistakes
- ❌ Forgetting that identity depends on the underlying set
- ❌ Writing when the codomain is not
- ❌ Confusing any bijection with the identity function
- ❌ Assuming automatically implies
- ❌ Ignoring domain-codomain compatibility in composition
Practice Questions
:::question type="MCQ" question="The identity function on is" options=["","","",""] answer="C" hint="Identity sends each element to itself." solution="The identity function on sends each real number to itself. So it is given by Therefore the correct option is ." ::: :::question type="NAT" question="If on , find ." answer="7" hint="Composition of a bijection with its inverse gives identity." solution="Since is bijective on , its inverse exists. Also, Hence Therefore the answer is ." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["For every set , the identity function is bijective","","If , then ","If , then "] answer="A,B,D" hint="Check domain compatibility in composition." solution="1. True. Identity is always injective and surjective.Summary
- The identity function on is .
- It is always bijective and is its own inverse.
- It is the neutral element for function composition.
- A bijection composed with its inverse gives the identity.
- The graph of is the line .
- Identity functions depend on the underlying set, not just the formula .
Chapter Summary
Injective (One-one) functions: Map distinct elements of the domain to distinct elements of the codomain. Formally, .
Surjective (Onto) functions: Have a range equal to their codomain, meaning every element in the codomain has at least one pre-image in the domain.
Bijective functions: Are both injective and surjective. The existence of an inverse function is guaranteed if and only if a function is bijective.
Cardinality implications: For finite sets and , if is injective, then . If is surjective, then . If is bijective, then .
Constant functions: Map all elements of the domain to a single fixed element in the codomain, i.e., for some constant .
Identity function: A specific type of bijective function where for all in its domain, which must be equal to its codomain.
Chapter Review Questions
:::question type="MCQ" question="Which of the following functions is injective but not surjective?" options=["", "", "", ""] answer="" hint="Consider the range of each function relative to the codomain ." solution="The function is neither injective (e.g., ) nor surjective (range is ). The function is injective () but not surjective because its range is , which is a proper subset of . The function is both injective and surjective (bijective). The function is neither injective nor surjective."
:::
:::question type="NAT" question="Let and . How many distinct constant functions can be defined from to ?" answer="4" hint="A constant function maps all elements of its domain to a single element in its codomain." solution="For a function to be constant, all elements in must map to the same element in . Since there are 4 choices for this single element in (either , , , or ), there are 4 distinct constant functions."
:::
:::question type="MCQ" question="If is a bijective function, which of the following statements must be true?" options=["", "", "", "The function is necessarily "] answer="" hint="Recall the cardinality implications of injective and surjective functions for finite sets." solution="A bijective function is both injective and surjective. For finite sets, injectivity implies , and surjectivity implies . Therefore, for a bijective function, it must be that . The function is not necessarily ; that is the identity function, a specific type of bijective function."
:::
:::question type="NAT" question="Let be defined by . If is the identity function, find the value of ." answer="1" hint="The identity function is defined by for all in its domain." solution="For to be the identity function, it must satisfy for all . This means the coefficient of must be 1, and the constant term must be 0.
So, .
And .
Therefore, ."
:::
What's Next?
Having mastered the fundamental types of functions, you are well-prepared to delve into their applications and further properties. The concepts of injectivity, surjectivity, and bijectivity are crucial for understanding Inverse Functions and Function Composition, which are central to advanced topics in Algebra and Calculus. Furthermore, this foundation will be invaluable when exploring specific classes of functions such as polynomial, exponential, logarithmic, and trigonometric functions in greater detail.