By the end of this chapter you'll be able to…

  • 1Read every object in the chapter as a subset of a Cartesian product, and every property as a condition on which pairs are present
  • 2Rebuild the counting formulas from independent binary choices rather than recalling them, including the power set, relations, reflexive and symmetric counts
  • 3Test a relation for reflexivity, symmetry and transitivity, and produce the standard counterexample showing the last two do not force the first
  • 4Use the correspondence between equivalence relations and partitions to count equivalence relations without a formula
  • 5Classify a function as one-one, onto, into or bijective, and count injections and surjections with the feasibility check applied first
  • 6Evaluate composites in the correct order, state precisely which properties transfer, and find domains by intersecting conditions and ranges by demanding a real solution
💡
Why this chapter matters in JEE Main
A three-element set carries 512 relations. Sixty-four are reflexive, sixty-four are symmetric, eight are both, and exactly five are equivalence relations. No formula produces that five, and the attempt to find one is what makes the chapter feel like an unmanageable list. The five comes from counting partitions instead: three singletons, a pair with a singleton left over in three ways, or one block of three. That is the whole chapter in one line, because every object here is a set of ordered pairs and every property is a condition on which pairs are present. Reflexive forces the diagonal in. Symmetric locks the rest into mirror couples. A function restricts how many pairs may leave each element. Once you see the cells, each counting formula is a fifteen-second argument you can rebuild under pressure rather than a fact you have to recall correctly.

Before you start — revise these

🔗
Fluency with interval notation and inequalities on the real line
🔗
The multiplication principle and combinations, from Permutations and Combinations
🔗
Solving a quadratic and reading the sign of its discriminant
🔗
Sketching simple graphs well enough to apply a horizontal-line test

Sets, Relations and Functions

A set with three elements. Its Cartesian product with itself has pairs, so it carries relations.

Of those , how many are equivalence relations?

The instinct is to count each property and combine. Reflexive relations number . Symmetric relations also number . Relations that are both come to . So the equivalence relations, being reflexive and symmetric and transitive, must be some part of that .

The answer is .

Property demandedCount on a -element set
nothing
reflexive
symmetric
reflexive and symmetric
all three, i.e. equivalence

Three of the eight die, and transitivity kills them. Take the relation containing the diagonal, the couple and the couple , but not . Then and force , which is absent. The same accident happens for each of the three choices of which single element is left out, so exactly of the fail.

reflexive symmetric both 3 locked in 6 free, so 2 to the 6 = 64 3 couples, each in or out diagonal free too, so 64 only 3 couples free, so 8 transitivity then kills 3 8 minus 3 = 5 equivalence relations every count is a tally of which cells are forced, locked together, or free

The right way to get never mentions relations. Cut into non-overlapping pieces: three singletons, or a pair with a singleton left over ( ways), or one block of three. That is .

Equivalence relations are partitions. That is the chapter in one line, and it is why no formula exists for counting them.

The organising ideaWhat it buys
Every object here is a set of ordered pairsrelations, functions and their counts are one subject
Every property is a condition on which pairs are presenteach formula becomes a fifteen-second argument, not a memory

1. Sets, Representation and the Power Set

Set. A well-defined collection of distinct objects.

Well-defined is doing real work. "The set of tall students" is not a set, because membership is not decidable.

FormExample
Roster
Set-builder

Two rules catch people out.

Order is irrelevant. and are the same set.

Repetition does not count. has two elements, not three.

Power set : the set of all subsets of , including and itself.

Each element is in or out of a given subset, independently.

Notice the shape of that argument. Every counting formula below reuses this exact skeleton: find the independent choices, then raise to their number.

Illustration 1

How many subsets of a -element set have an even number of elements?

The tempting route is to add binomial coefficients: .

The independent-choice route is faster and needs no arithmetic. Fix one element, say . Choose freely whether each of the other elements is in or out, giving half-formed subsets. Now has no choice at all: it goes in exactly when it is needed to make the size even.

So even-sized subsets number , and by the same argument so do odd-sized ones. The two counts are equal for every , which the binomial sum hides.

2. Operations and Their Algebra

LawStatement
Commutative, same for
Associative
Distributive, and the reverse
Identity,
Idempotent,

Trap. In arithmetic, multiplication distributes over addition but addition does not distribute over multiplication. In set algebra each operation distributes over the other. JEE has exploited that asymmetry.

De Morgan's laws. Complementing swaps the two operations.

In words, and this fixes them permanently: not in either one means outside both; not in both means outside at least one.

Illustration 2

Check the second distributive law, , on , , , and see why the arithmetic analogue fails.

Left side: , so .

Right side: and , whose intersection is .

They agree. Now run the arithmetic analogue with as and as : , while .

Set operations are idempotent and arithmetic ones are not, and that is exactly the difference. Expanding the right side produces terms, which collapse back to ; expanding produces , which does not collapse to .

Counting with overlaps

Shared elements would otherwise be counted twice.

Inclusion-exclusion: add singles, subtract pairs, add the triple back.

Illustration 3

Of readers, take paper , take , take ; take and , take and , take and , and take all three. How many take exactly two?

The pairwise figures already include the triple-takers, and that is the whole difficulty.

At least one: .

Each of the three pairwise counts contains the triple-takers, so subtract them once from each pair.

Exactly one is then , and the check holds: .

Trap. "Both and " means . "Only and " means . Read which one the question asked before computing anything.

3. The Cartesian Product: Where Pairs Come From

Cartesian product : the set of all ordered pairs with first entry from and second from .

Ordered means , and therefore unless or one of them is empty.

This is the pivot of the chapter. Everything from here is a subset of some Cartesian product; the topics differ only in which subsets are allowed.

Illustration 4

For and , find .

A pair lies in both products exactly when is in and in , and likewise.

So the intersection is , here , giving .

The general identity is worth keeping: the product operation distributes over intersection on both sides.

4. Relations as Sets of Pairs

Relation from to : any subset of .

That is the whole definition. No formula, no pattern and no rule is required.

has elements; a subset takes or leaves each one.

On a single -element set the pairs live in , so there are relations, which is the the chapter opened with.

Named extremeContents
Empty relationno pairs at all
Universal relationevery pair of

Both are legitimate relations, and JEE tests whether you will accept them.

Domain of a relation: the first entries actually used. Range: the second entries actually used. Neither has to exhaust or .

5. Types of Relations

Each named type is a condition on which pairs must be present, so each definition converts directly into a count.

TypeConditionCount on an -set
Reflexiveevery present
Symmetric present forces
Transitive and force no closed formula
Equivalenceall threeBell number

Transitivity has no formula because it is not a partition of the cells into independent choices: whether one cell may be empty depends on which others are filled. If a question asks you to count transitive relations, the set will be small enough to enumerate.

Illustration 5

On let mean " divides ". Test all three properties.

Reflexive: every number divides itself, so all six diagonal pairs are present. Yes.

Symmetric: holds because divides , but fails. No.

Transitive: if and then and , so . Yes.

So divisibility is reflexive and transitive but not symmetric. It is in fact antisymmetric: and together force for positive integers.

Reflexive, antisymmetric and transitive is a partial order, not an equivalence relation. The word "partial" records that some pairs are simply incomparable: neither nor .

The trap that catches almost everyone

Does symmetric plus transitive imply reflexive?

The argument looks complete: gives by symmetry, and the two together give by transitivity.

It fails, because the argument needs some with to exist before it can start. An element related to nothing at all never enters the chain.

Symmetric, transitive, and not reflexive, because is missing.

Trap. The identity relation is exactly the diagonal and nothing else. A reflexive relation must contain the diagonal but may contain anything else too. Every identity relation is reflexive; the converse is false.

6. Equivalence Relations and Partitions

Equivalence relation: reflexive, symmetric and transitive at once. This is the most examined idea in the chapter.

Its importance is structural. For each , collect everything related to into the equivalence class .

Those classes are either identical or completely disjoint. They never overlap partially, and the proof is one line: if lies in and in then and , so , so the two classes coincide.

Both directions hold. Every partition defines an equivalence relation, by relating two elements when they land in the same block.

the 5 partitions of {1, 2, 3}, and therefore the 5 equivalence relations 123 all separate identity relation, 3 pairs 123 132 231 one pair together, one alone: 3 ways 5 pairs each 123 all together: universal relation, 9 pairs 1 + 3 + 1 = 5, counted without ever listing a relation

That correspondence converts a hard question into an easy one: counting equivalence relations means counting partitions.

Equivalence relations (Bell number)
11
22
35
415
552

Illustration 6

Which three of the eight reflexive-and-symmetric relations on fail transitivity, and how do the surviving five match the five partitions?

Each of the eight is the diagonal plus a choice of which of the three couples , , to include.

Couples includedTransitive?Partition
noneyes
any one of the threeyesthat pair, plus a singleton
any two of the threenonone
all threeyes

Take couples and but not . Then and , so transitivity demands , which is absent. The three two-couple relations fail for exactly this reason, in each case because the missing couple is forced by the other two.

So , matching exactly, and the failure has a clean meaning: two couples sharing an element already merge all three elements into one block.

Illustration 7

On the integers define when is divisible by . Verify it is an equivalence relation and describe its classes.

Reflexive: , divisible by .

Symmetric: .

Transitive: and .

The classes group integers by remainder on division by , giving exactly five classes: .

Every integer lies in precisely one, and together they cover . That is the partition the theory promised, and it is why this relation is written .

7. Functions: A Relation with a Rule

Function : a relation in which every element of is the first entry of exactly one pair.

Two conditions hide in that sentence, and separating them makes the definition usable.

ConditionWhat it forbidsExample ruled out
every is usedan input with no image on all of
no is used twicean input with two images as of

Nothing at all is required of . Codomain elements may be hit many times or not at all, and that freedom is the entire content of the next section.

a function not a function not a function AB AB AB unused codomain point is allowed a domain point with no arrow a domain point with two arrows

Each of the elements of chooses independently among the elements of .

Trap. The exponent is the size of the domain, because the domain elements do the choosing. Reversing it is the single most common slip in this chapter.

Range: the values actually taken, always a subset of the codomain. Keeping range and codomain apart is essential, because the gap between them is the whole meaning of onto.

8. One-One, Onto and Into

TermMeaningCondition
One-one (injective)distinct inputs, distinct outputs
Onto (surjective)every codomain element is hitrange codomain
Intoat least one is missedrange is a proper subset
Bijectiveboth at oncea perfect pairing

Vocabulary warning. In Indian textbooks and in the JEE syllabus, into means specifically not onto. Much of the international literature uses it merely to mean a function with a stated codomain, with no such implication. Follow the JEE usage in the exam.

To prove one-one: assume , derive . Graphically, no horizontal line may cut the curve twice. Strict monotonicity gives it free.

To prove onto: take arbitrary in the codomain and produce an mapping to it. To disprove, exhibit one unreachable value.

The first domain element has choices, the next because it must avoid the first, and so on for factors.

That is inclusion-exclusion again: subtract the functions missing at least one codomain element, then correct for double subtraction.

When the two notions coincide and the count of bijections is . That coincidence is a finite-set fact and does not survive on infinite sets.

Illustration 8

From a -element set to a -element set, count the one-one functions and the onto functions.

One-one: the three inputs pick distinct images in order, giving , which is .

Onto: zero. Three inputs produce at most three distinct outputs, so at least two of the five codomain elements are never reached. No arithmetic is needed; the pigeonhole principle settles it.

Reverse the sets and both answers flip. From a -set to a -set there are no injections at all, and the surjections number .

Trap. Check feasibility before reaching for a formula. The injective formula is meaningless when , and the surjective sum silently returns when .

Illustration 9

Show that given by is one-one but not onto, even though domain and codomain are the same set.

One-one. For the function is , which strictly increases. For it is , also strictly increasing. The two pieces agree at , so increases strictly on all of and is therefore injective.

Not onto. Since always, no value outside is ever attained. The range is , a proper subset of .

So an injective self-map of an infinite set need not be surjective. On a finite set that cannot happen, which is precisely what makes infinite sets different, and JEE has used this gap to build "one-one but into" options.

9. Composition of Functions

For and :

Read right to left. The function written first is applied last, and misreading the order is the commonest error in composition questions.

PropertyHolds?
Associative, yes
Commutative, no, in general

How properties travel is one-directional, and the asymmetry is examinable.

IfThen
and both one-one is one-one
and both onto is onto
is one-one is one-one; need not be
is onto is onto; need not be

The inner function controls injectivity of the composite; the outer function controls surjectivity.

ABC fg 1 2 1 2 3 1 2 g sends 2 and 3 to the same place f never lands on 3, so the composite never sees g fail

Illustration 10

For , find and hence applied four times.

The common denominator cancels top and bottom, which is why the result is so much simpler than the starting expression.

Now apply the same map twice more.

So composed with itself four times is the identity, and has order under composition. Asking for is then trivial: , so the answer is .

10. Finding Domains and Ranges

Domain questions are reliable marks and reduce to a checklist of what a real expression forbids.

ExpressionRequirement
, strictly

When several appear together, impose every condition and intersect the resulting sets.

Trap. Solving the conditions separately and reporting their union is a standard and costly mistake. Each condition is a requirement, not an alternative.

Ranges have no checklist. Two methods cover almost everything in JEE.

Invert. Write , solve for , and ask which give a real answer.

Use monotonicity. On an interval where is monotonic, the range runs between the endpoint values.

Illustration 11

Find the range of over all real .

First check the denominator never vanishes: its discriminant is , so the domain is all of and no exclusion is needed.

Set and clear the fraction into a quadratic in .

For a real to exist the discriminant must be non-negative.

The case has to be checked separately, because the quadratic degenerates to a linear equation there. It gives , which is legitimate, so stays in the range.

Both endpoints are attained, at the values where the discriminant is exactly zero, which is the signature of a maximum or minimum reached rather than approached.

Summary

Every object here is a set of ordered pairs, and every property is a condition on which pairs are present.

Independent binary choices generate every count: , and each formula below is the same argument with different cells forced or locked.

Each set operation distributes over the other, unlike arithmetic, because set operations are idempotent. De Morgan's laws say complementing swaps union with intersection.

Inclusion-exclusion adds singles, subtracts pairs, adds the triple back; "exactly two" needs the triple removed three times over.

A relation from to is any subset of , so there are of them, with no pattern required.

Reflexive relations number , symmetric ones , both together ; transitivity has no closed formula because its cells are not independent.

Symmetric plus transitive does not give reflexive: an element related to nothing never enters the argument.

Equivalence relations correspond exactly to partitions, which is why a -element set carries of them and not or .

A function is a relation using every domain element exactly once, so there are of them, with the domain size in the exponent.

Injections number and need ; surjections need inclusion-exclusion and need ; when the finite sets match in size the two coincide, and on infinite sets they do not.

In a composite the function written first is applied last. A one-one composite forces the inner function one-one, an onto composite forces the outer one onto, and neither converse holds.

Domain conditions are imposed and then intersected, never united. Ranges come from inverting and demanding a real solution, or from monotonicity.

Key formulas & results

Everything to memorise for the exam hall, in one card. Screenshot this for revision.

The organising principle
every object here is a set of ordered pairs, and every property is a condition on which pairs are present
Reflexive forces the diagonal in, symmetric locks the rest into mirror couples, and a function restricts how many pairs leave each element. Every counting formula is a consequence.
Size of the power set
|P(A)| = 2^n for a set A with n elements
Each element is independently in or out, giving n binary choices. Every other count in the chapter reuses this skeleton: find the free choices, raise 2 to their number.
De Morgan's laws
Read in words: not in either one means outside both; not in both means outside at least one. Complementing swaps the two operations.
Inclusion-exclusion for three sets
Add singles, subtract pairs, add the triple back. For exactly two, take the sum of the pairwise counts and subtract three times the triple, because each pairwise figure already contains it.
Size of a Cartesian product
Ordered means A \times B is not B \times A unless the sets are equal. Their intersection is (A \cap B) \times (A \cap B), of size |A \cap B| squared.
Number of relations
A relation is any subset of the product, with no requirement of a formula or pattern. The empty and universal relations both count.
Reflexive, symmetric, and both
Diagonal forced leaves n^2-n free; symmetry leaves the diagonal free plus n(n-1)/2 couples; both together leave only the couples. On n = 3 that is 64, 64 and 8.
Why transitivity has no formula
the cells are not independent: whether one may be empty depends on which others are filled
On a three-element set only 5 of the 8 reflexive-and-symmetric relations survive transitivity, because two couples sharing an element force the third.
Equivalence relations and partitions
equivalence relations on a set correspond exactly to partitions of it
Count partitions instead. The Bell numbers run 1, 2, 5, 15, 52 for n = 1 to 5, and each is obtained by listing block structures rather than by any formula.
Number of functions
N = n^m from a domain of size m to a codomain of size n
The domain size is the exponent, because the domain elements do the choosing. Reversing it is the commonest slip in the chapter.
Injections and surjections
n!/(n-m)! injections, valid only for m at most n; sum over r of (-1)^r C(n,r)(n-r)^m surjections, needing m at least n
Check feasibility before computing. From a 3-set to a 5-set there are 60 injections and zero surjections, by pigeonhole and with no arithmetic.
Composition and what it transfers
Read right to left: the function written first is applied last. Neither converse holds, because the composite never evaluates g outside the range of f.
Domain checklist, then intersect
even root needs argument at least 0; denominator non-zero; logarithm strictly positive; reciprocal of a root strictly positive
Every condition is a requirement, so intersect them. Reporting the union is a standard and costly error.
⚠️

Traps JEE Main sets — and how to dodge them

These are the exact option-traps and misreads that cost marks under negative marking.

WATCH OUT
Putting the codomain size in the exponent when counting functions
Ask who is doing the choosing. Each domain element must pick exactly one image, so the number of independent choices equals the domain size and the count is n^m. Rebuilding that sentence is faster than remembering which way round it went.
Why it happens: Both set sizes are in play and the formula is recalled rather than rebuilt.
WATCH OUT
Concluding that a symmetric and transitive relation must be reflexive
The chain never starts unless some b with aRb exists, and an element related to nothing is untouched by it. On {1,2,3}, R = {(1,1),(1,2),(2,1),(2,2)} is symmetric and transitive but misses (3,3). Keep that counterexample ready, because JEE has asked this directly.
Why it happens: The chain aRb, then bRa, then aRa looks like a complete proof.
WATCH OUT
Reaching for a formula to count equivalence relations
There is none. Count partitions instead. On a three-element set the answer is 1 + 3 + 1 = 5, obtained by listing block structures, and the Bell numbers 1, 2, 5, 15, 52 cover every case JEE can ask.
Why it happens: Reflexive and symmetric each had a clean power of two, so transitivity looks as though it should too.
WATCH OUT
Confusing exactly two with at least two in inclusion-exclusion
Subtract the triple count once from each of the three pairwise counts, so exactly two equals the sum of the pairs minus three times the triple. Check the arithmetic by confirming exactly one plus exactly two plus all three returns the at-least-one total.
Why it happens: The pairwise figures given in the question already include everyone who took all three.
WATCH OUT
Uniting the conditions when finding a domain
Each condition is something the expression requires, not an alternative it offers, so intersect. For a square root divided by a logarithm both requirements hold simultaneously, and the domain is where every one of them is satisfied at once.
Why it happens: Several conditions appear and the word or slips in where and belongs.
WATCH OUT
Assuming a one-one function on the reals must be onto
That coincidence is a finite-set fact. The function x/(1 + |x|) from R to R is strictly increasing, hence injective, but its range is only the open interval from minus one to one. Infinite domains break the equivalence, and JEE builds one-one-but-into options on exactly this gap.
Why it happens: On a finite set of matching size, injective and surjective really do coincide.

Exam-pattern practice

PYQ-style questions with full solutions. Work through them as a readiness check — mark yourself honestly and get your gap report at the end.

Readiness check

Are you exam-ready for Sets, Relations and Functions?

12 problems from this chapter. Try each one, reveal the worked solution, mark yourself honestly — get your gap report at the end.

12 questions~8 min

5-minute revision

The whole chapter, distilled. Read this the night before the exam.

  • 512 relations on a three-element set, 64 reflexive, 64 symmetric, 8 both, and only 5 equivalence relations
  • Every count is a tally of cells: which are forced in, which are locked into couples, which are free
  • Set operations distribute over each other because they are idempotent; arithmetic ones do not
  • De Morgan: complementing swaps union and intersection
  • Exactly two equals the sum of the pairwise counts minus three times the triple
  • A relation is any subset of the product; the empty and universal relations are legitimate
  • Symmetric plus transitive does not force reflexive, because an element related to nothing never enters the chain
  • Equivalence relations are partitions, which is the only practical way to count them
  • Functions number n^m with the domain size in the exponent; injections need m at most n and surjections need m at least n
  • In a composite the function written first is applied last; one-one travels inward, onto travels outward
  • Domain conditions are intersected, never united; ranges come from inverting and demanding a real root

JEE Main question blueprint

How this topic is asked, tier by tier — so you can prep to the pattern.

Typical weightage: 4

Question styleMarks eachTypical countWhat it tests
Relations and their types21
Functions, domain and range11
Sets, counting and composition11

Exam-hall strategy

Battle-tested tips from mentors and toppers for this topic under the sectional clock.

  1. For any counting question, draw or imagine the grid of pairs and ask of each cell whether it is forced in, locked to another, or free. Almost every formula in this chapter is recoverable in fifteen seconds that way, which is faster and safer than recalling four similar-looking powers of two.
  2. Check feasibility before applying an injection or surjection formula. If the domain is bigger than the codomain there are no injections; if it is smaller there are no surjections. Both answers are zero with no arithmetic, and JEE sets options that reward spotting it.
  3. When a question asks for equivalence relations, stop counting relations and start listing partitions. For n at most 4 the enumeration takes under a minute and the Bell numbers 1, 2, 5, 15, 52 confirm it.
  4. In survey questions, underline whether the wording says both or only, and at least or exactly, before writing a single number. The arithmetic is short; the reading is where the marks are lost.
  5. For domains, list every condition the expression imposes, solve each on its own line, then take the intersection on the number line rather than in your head. For ranges, invert and demand a real solution, remembering to test the degenerate value separately.

Beyond the exam

Where this skill shows up in the job you're competing for — and in life.

Equivalence relations are how any classification scheme i…

Equivalence relations are how any classification scheme is made rigorous: blood groups, congruence classes in modular arithmetic, and the residue classes behind every checksum and cryptographic key all rely on the guarantee that classes never partially overlap

Relational databases take the definition literally

Relational databases take the definition literally, storing a relation as a table of tuples, so a join is an operation on subsets of a Cartesian product and inclusion-exclusion is what a query planner uses to estimate result sizes

Hash tables and file deduplication depend on injectivity:…

Hash tables and file deduplication depend on injectivity: a hash that is one-one on the data actually stored gives collision-free lookup, and the whole design problem is that a finite codomain makes true injectivity impossible on unbounded input

Where else this topic is tested

Prepare once, score in every exam that asks it.

JEE Main
JEE Advanced
CBSE Class 12 Boards
BITSAT
WBJEE

Questions aspirants ask

Pulled from the Q&A community and mentor sessions.

Because the reflexive and symmetric counts come from partitioning the cells of the grid into independent choices, and transitivity does not partition that way. Reflexivity forces the three diagonal cells and leaves the other six entirely free, giving 2 to the sixth. Symmetry locks the off-diagonal cells into mirror couples, each wholly in or wholly out. In both cases whether one cell is filled has no bearing on whether another may be. Transitivity is different: whether the cell (2,3) may be empty depends on whether (2,1) and (1,3) are filled, so the choices interlock and no product of twos describes them. On a three-element set this is why only 5 of the 8 reflexive-and-symmetric relations survive, and the three that die are exactly those containing two couples that share an element.

The codomain is the target set you declare when you write f from A to B, and it is a matter of choice. The range is the set of values the function actually produces, and it is a matter of fact. The range is always contained in the codomain, and onto means precisely that the two are equal. This matters because the same rule can be onto or into depending only on how you declared the codomain: x squared from R to R is into, since negatives are never produced, while x squared from R to the non-negative reals is onto with no change to the rule itself. When a JEE option says into, it is a claim about that declared codomain, so read the arrow before judging the formula.

Use monotonicity where you can. A function that is strictly increasing everywhere, or strictly decreasing everywhere, is automatically one-one, because distinct inputs must give distinct outputs. That usually means computing a derivative and checking it keeps one sign, which is often a two-line job where the algebraic route is long. The graphical version is the horizontal-line test: if some horizontal line meets the curve twice, two inputs share an output. Watch for functions built in pieces, such as x/(1 + |x|), where each piece increases and the pieces agree at the join, so the whole thing still increases. Piecewise definitions that jump back down are exactly where the shortcut fails.

Because the composite only reports what comes out at the far end, and the outer function can repair anything the inner one missed. Let f send 1 to 1 and 2 to 2 from {1,2} into {1,2,3}, so f misses 3 and is not onto. Let g send 1 to 1, 2 to 2 and 3 to 2 from {1,2,3} onto {1,2}. Then the composite hits both 1 and 2, so it is onto, while f is not. The general statement is that surjectivity travels outward and injectivity travels inward: an onto composite forces the outer function onto, and a one-one composite forces the inner function one-one. Neither converse holds, and the reason is the same in both directions, that the composite never evaluates g outside the range of f.

Invert. Write y equal to the expression, clear denominators into an equation in x, and ask for which y a real solution exists. For a rational function with a quadratic on top or bottom this produces a quadratic in x, and the condition is that its discriminant be non-negative, which is an inequality in y that you solve directly. For (x-1)/(x^2-3x+3) this gives (3y+1)(1-y) at least 0, so the range is the closed interval from minus one third to one. Two checks matter. Handle separately any y that makes the quadratic degenerate to a linear equation, since the discriminant test does not apply there. And note that endpoints where the discriminant is exactly zero are attained rather than approached, which is how you decide between a closed and an open bracket.
Header Logo