The chapter guide on sets, relations and functions introduces the vocabulary of functions: domain, codomain, range, and the first tests for one-one and onto. This post takes one part of that chapter much further. It is about the types of functions and what happens to those types when functions are combined, because that is where JEE-style questions turn from routine into tricky. A question will not ask you to define "injective". It will give you a function with a parameter and ask for how many integer values of the parameter make it one-one. It will give you $g\circ f$ and ask what you can conclude about $f$. It will ask you to count the functions on a small set that satisfy $f\circ f=f$. It will hide a functional equation in a single line.
The aim here is a working toolkit. We will build tests for one-one and onto that actually work on the functions that appear in papers, a clean way to count maps with extra conditions (non-decreasing, idempotent, self-inverse), the rules that connect the type of $g\circ f$ to the types of $f$ and $g$, and a short method for inverses and functional equations. The chapter guide has the onto-count formula, the iteration of $\frac1{1-x}$ and the inverse of the hyperbolic tangent form; we will not repeat those, and every worked example below is different from the ones there.
Eleven worked examples follow the theory. Each numerical result was checked by a short computer calculation, and the counting examples were checked by listing all the cases, before being written here.
What this post covers
| Topic | What JEE-style questions ask |
|---|---|
| Injective (one-one) tests | Derivative sign, monotonicity, symmetry, parameter ranges |
| Surjective (onto) tests | Range equals codomain; restricting the codomain |
| Counting maps | One-one, onto, non-decreasing, idempotent, involutions |
| Composition | Domain of $f\circ g$, non-commutativity, what carries over |
| Inverse | Existence, restricting the domain, self-inverse functions |
| Functional equations | Linear systems from substitution, even and odd parts |
All of these are in the JEE Main syllabus under relations and functions. The Advanced paper uses the same ideas with harder algebra and with multiple-correct options, so the last worked example is in that format.
Injective, surjective, bijective: a precise working language
A function $f:A\to B$ is one-one if different inputs give different outputs: $f(x_1)=f(x_2)\Rightarrow x_1=x_2$. It is onto if every element of $B$ is an output: the range is all of $B$. It is bijective if it is both. Two points about the language deserve emphasis because most errors start there.
First, being onto is a statement about the codomain, and the codomain is part of the function's definition. The same formula $x^2$ is onto $[0,\infty)$ if the codomain is $[0,\infty)$ and not onto if the codomain is $\mathbb{R}$. When the question says $f:\mathbb{R}\to\mathbb{R}$, the codomain is $\mathbb{R}$, whatever the range turns out to be. When the question does not state a codomain, the usual reading is that the codomain equals the natural range or $\mathbb{R}$; check the options to see which reading the question intends.
Second, being one-one is a statement about the domain. Restricting a domain can make a function one-one, and this is the whole idea behind inverses of $x^2$, $\sin x$ and similar functions.
A function that is not one-one is called many-one. A function that is not onto is called into. Many-one and into are the exact negations, not separate types.
Also read: JEE Advanced Question Types: Numerical and Matching
Tests for one-one
There are five tests worth owning, and a good student chooses among them by looking at the function.
Test 1: the definition. Assume $f(x_1)=f(x_2)$ and try to deduce $x_1=x_2$. This works for rational functions of the form $\frac{ax+b}{cx+d}$ and for simple compositions. To show a function is not one-one, a single pair of distinct inputs with equal outputs is enough, so look for a symmetry or a repeated value.
Test 2: strict monotonicity. If $f'(x)>0$ for all $x$ in an interval (or $f'(x)\ge 0$ with equality only at isolated points), then $f$ is strictly increasing there and hence one-one. This is the test for cubics, exponentials with polynomial exponents, and every "for which values of $a$ is the function one-one" question. If $f'$ changes sign, $f$ turns back and is many-one.
Test 3: even functions. A non-constant even function on a symmetric domain is many-one, since $f(-x)=f(x)$ with $x\ne -x$ for $x\neq 0$. This disposes of $\cos x$, $|x|$, $x^2$, $x^4+x^2$ on $\mathbb{R}$ in one line.
Test 4: periodic functions. A non-constant periodic function on $\mathbb{R}$ is many-one, because $f(x+T)=f(x)$.
Test 5: the horizontal line test and turning points. Any continuous function with a local maximum or minimum in the interior of the domain is many-one, because the values on the two sides of the turning point are repeated. For a polynomial of odd degree, the derivative test settles the question; for even degree, the function always has a turning point and is many-one on $\mathbb{R}$.
A useful by-product: for a continuous function on an interval, one-one is equivalent to strictly monotonic. So a continuous one-one function on $\mathbb{R}$ is either strictly increasing or strictly decreasing, and it cannot have a turning point.
Tests for onto
The reliable way to test onto is to find the range and compare it with the codomain. The four methods from the chapter guide (solving for $x$ in terms of $y$, the discriminant method, completing the square or using bounds, and monotonicity with limits) all apply. Two shortcuts matter in this post.
For a continuous function, the range is an interval, and it is determined by the extreme values and by the limits at the ends. A continuous function $f:\mathbb{R}\to\mathbb{R}$ that is strictly increasing with $f(x)\to\pm\infty$ as $x\to\pm\infty$ is onto. Every odd-degree polynomial is onto $\mathbb{R}$, since it takes arbitrarily large positive and negative values and is continuous.
For a function between finite sets, onto and one-one are linked by size. If $|A|=|B|$ then one-one, onto and bijective are all equivalent. If $|A|<|B|$ the function cannot be onto; if $|A|>|B|$ it cannot be one-one. This is the pigeonhole principle, and it answers a number of "does there exist" questions without any calculation.
A common modification: "Find the set $B$ so that $f:\mathbb{R}\to B$ is onto." The answer is simply the range of $f$.
Counting maps beyond the basic formulas
Between finite sets $A$ and $B$ with $|A|=m$ and $|B|=n$, the standard counts are: all functions $n^m$, one-one functions $n(n-1)\cdots(n-m+1)$ when $m\le n$, and onto functions by inclusion-exclusion,
$$\sum_{k=0}^{n}(-1)^k\binom nk(n-k)^m .$$
JEE-style questions add conditions. The family is small, and each member has a clean count.
Strictly increasing maps from $\{1,\dots,m\}$ to $\{1,\dots,n\}$: a strictly increasing map is fixed by the set of values it takes, because the values must be written in increasing order. So the count is $\binom nm$.
Non-decreasing maps (values may repeat but never fall): these correspond to choosing $m$ values from $n$ with repetition allowed and arranging them in order. The count is $\binom{n+m-1}{m}$. For $m=3$ and $n=6$ this is $\binom83=56$; the worked examples confirm the count by direct listing.
Maps with $f\circ f=f$ (idempotent) on an $n$-element set: such a map fixes every point in its image. If the image has $k$ elements, choose the image in $\binom nk$ ways, make each of those $k$ points map to itself, and send each of the other $n-k$ points to any of the $k$ image points. The count is
$$\sum_{k=1}^{n}\binom nk\,k^{\,n-k}.$$
For $n=4$ this gives $4+24+12+1=41$.
Maps with $f\circ f=\text{identity}$ (involutions): such a map is a bijection that is its own inverse, so it consists of fixed points and swapped pairs. The count for $n=4$ is $10$: one identity, six single swaps, and three double swaps.
Maps with a fixed value at specified points, maps with $f(1)<f(2)$, maps with $f(x)\ne x$ for all $x$: reduce to the basic counts by a symmetry argument or by subtracting the complementary case. The symmetry argument for $f(1)<f(2)$ among one-one maps says that exactly half of the maps have $f(1)<f(2)$ and half have $f(1)>f(2)$.
Composition: domain, order and what carries over
The composite $g\circ f$ is defined by $(g\circ f)(x)=g(f(x))$. Three rules control all the questions.
Rule 1: domain. $g\circ f$ is defined at $x$ only if $x$ is in the domain of $f$ and $f(x)$ is in the domain of $g$. So the domain of $g\circ f$ is $\{x\in D_f: f(x)\in D_g\}$. Do not simplify the composite expression first and read off the domain from the simplified form. For $f(x)=x^2+1$ and $g(x)=\sqrt{x-1}$ the composite $g\circ f$ simplifies to $|x|$, and the domain is all real $x$; the composite $f\circ g$ simplifies to $x$, but its domain is only $[1,\infty)$, because $g$ must be defined first.
Rule 2: non-commutativity. $f\circ g$ and $g\circ f$ are generally different functions, even when both are defined. Solving $f(g(x))=g(f(x))$ is a question about equations, not about functions being equal.
Rule 3: associativity. $(h\circ g)\circ f=h\circ(g\circ f)$ always. This is what makes iteration $f\circ f\circ f$ unambiguous.
What carries over, and in which direction, is the heart of the matter. Suppose $f:A\to B$ and $g:B\to C$.
| Fact about $g\circ f$ | What it tells you |
|---|---|
| $g\circ f$ is one-one | $f$ is one-one. Nothing is forced on $g$ |
| $g\circ f$ is onto | $g$ is onto. Nothing is forced on $f$ |
| $f$ and $g$ both one-one | $g\circ f$ is one-one |
| $f$ and $g$ both onto | $g\circ f$ is onto |
| $g\circ f$ is bijective | $f$ one-one and $g$ onto; neither need be bijective |
The mnemonic is that the inner function $f$ has to keep inputs apart (one-one), and the outer function $g$ has to reach everything (onto). Counter-examples are easy to construct and worth remembering. Take $f:\{1\}\to\{1,2\}$, $f(1)=1$, and $g:\{1,2\}\to\{1\}$, $g(1)=g(2)=1$. Then $g\circ f$ is a bijection of $\{1\}$, yet $f$ is not onto and $g$ is not one-one.
Inverse: existence, restriction and self-inverse functions
A function has an inverse exactly when it is bijective. To find $f^{-1}$, write $y=f(x)$, solve for $x$ in terms of $y$, and swap the letters. The domain of $f^{-1}$ is the range of $f$ and the range of $f^{-1}$ is the domain of $f$. The graphs of $f$ and $f^{-1}$ are mirror images in the line $y=x$, so if $f$ is increasing and the graphs meet, they meet on $y=x$.
When a function is not one-one, restrict the domain to a piece on which it is, and choose the codomain equal to the range of that piece. For $f(x)=x^2-4x+7$, the vertex is at $x=2$, so $f$ is one-one on $[2,\infty)$ and also on $(-\infty,2]$. The choice of piece decides the sign in the inverse.
Self-inverse functions satisfy $f=f^{-1}$, which means $f(f(x))=x$. For a Möbius function $f(x)=\frac{ax+b}{cx-a}$ the coefficient of $x$ in the numerator and the constant in the denominator are negatives of each other, and this gives a self-inverse function. The condition is $a+d=0$ for $\frac{ax+b}{cx+d}$ (with $ad-bc\ne0$). Functions of the form $f(x)=k-x$, $f(x)=\frac kx$ and $f(x)=\frac{1}{x}$ are all self-inverse.
A fact worth owning: $(g\circ f)^{-1}=f^{-1}\circ g^{-1}$, with the order reversed. Also, if $f$ is increasing then so is $f^{-1}$.
Functional equations in one step
A typical equation looks like $f(x)+2f(1-x)=x^2$. The method is substitution: replace $x$ by the partner expression ($1-x$ here), obtain a second equation involving the same two unknowns $f(x)$ and $f(1-x)$, and solve the two equations as a linear system. Equations involving $f(x)$ and $f\left(\frac1x\right)$, or $f(x)$ and $f(-x)$, are handled the same way. For equations with $f(-x)$, the even and odd parts give a shortcut: every function on a symmetric domain is the sum of an even part $\frac{f(x)+f(-x)}{2}$ and an odd part $\frac{f(x)-f(-x)}{2}$.
Worked examples
Example 1 (single-correct). Which one of the following functions $\mathbb{R}\to\mathbb{R}$ is a bijection?
(A) $x^2+x$ (B) $x^3-x$ (C) $x^3+2x+1$ (D) $|x|+x$
Solution. Test each. (A) is a parabola with a turning point at $x=-\frac12$, so it is many-one. (B) has $f'(x)=3x^2-1$, which changes sign, so it has turning points and is many-one: indeed $f(0)=f(1)=f(-1)=0$. (D) equals $2x$ for $x\ge 0$ and $0$ for $x<0$, so it is many-one and its range is $[0,\infty)$. For (C), $f'(x)=3x^2+2>0$, so $f$ is strictly increasing, hence one-one; it is a continuous odd-degree polynomial, hence onto. Answer: (C).
Example 2 (numerical-value). Let $S=\{1,2,3,4\}$. Let $p$ be the number of functions $f:S\to S$ with $f(f(x))=f(x)$ for all $x$, and $q$ the number with $f(f(x))=x$ for all $x$. Find $p+q$.
Solution. For $p$, use $\sum_k\binom4k k^{4-k}$: $k=1$ gives $4\cdot1=4$; $k=2$ gives $6\cdot4=24$; $k=3$ gives $4\cdot3=12$; $k=4$ gives $1$. So $p=41$. For $q$, the map is an involution: the identity (1), one swapped pair with two fixed points ($\binom42=6$), two swapped pairs (3). So $q=10$. Both counts were confirmed by listing all $4^4=256$ functions. Answer: $51$.
Example 3 (numerical-value). For how many integer values of $a$ is $f(x)=x^3+ax^2+3x+5$ one-one on $\mathbb{R}$?
Solution. A cubic is one-one on $\mathbb{R}$ exactly when $f'(x)=3x^2+2ax+3$ does not change sign, that is, when its discriminant is at most zero (equality gives a single stationary point of inflexion, which does not break monotonicity). Discriminant: $4a^2-36\le0$, so $a^2\le9$ and $-3\le a\le3$. The integers are $-3,-2,\dots,3$. Answer: $7$.
Example 4 (numerical-value). Let $f(x)=2x+3$ and $g(x)=x^2$. If $\alpha$ and $\beta$ are the roots of $f(g(x))=g(f(x))$, find $\alpha^2+\beta^2$.
Solution. $f(g(x))=2x^2+3$ and $g(f(x))=(2x+3)^2=4x^2+12x+9$. Setting them equal gives $2x^2+12x+6=0$, that is, $x^2+6x+3=0$. Then $\alpha+\beta=-6$ and $\alpha\beta=3$, so $\alpha^2+\beta^2=36-6=30$. This example shows that $f\circ g\ne g\circ f$ in general and that equating them is an equation to solve. Answer: $30$.
Example 5 (numerical-value). Let $f(x)=\dfrac{x}{1+|x|}$ on $\mathbb{R}$. If $f^{(n)}$ denotes the $n$-fold composite, find $1\big/f^{(10)}\!\left(\tfrac12\right)$.
Solution. For $x>0$ we have $f(x)=\frac{x}{1+x}$, and $|f(x)|=\frac{|x|}{1+|x|}$. Then $1+|f(x)|=\frac{1+2|x|}{1+|x|}$, so $f(f(x))=\frac{x}{1+2|x|}$. By induction $f^{(n)}(x)=\frac{x}{1+n|x|}$. At $x=\frac12$ and $n=10$: $\frac{1/2}{1+5}=\frac1{12}$. The same value came from applying $f$ ten times with exact fractions. Answer: $12$.
Example 6 (single-correct). If $f(x)=\dfrac{ax+3}{x-2}$ is its own inverse, then $a$ equals
(A) $-2$ (B) $-3$ (C) $2$ (D) $3$
Solution. For $\frac{ax+b}{cx+d}$ to be self-inverse we need $a+d=0$. Here $d=-2$, so $a=2$. Direct check with $a=2$: $f(f(x))=\frac{2\cdot\frac{2x+3}{x-2}+3}{\frac{2x+3}{x-2}-2}=\frac{4x+6+3x-6}{2x+3-2x+4}=\frac{7x}{7}=x$. Answer: (C).
Example 7 (numerical-value). If $f$ satisfies $f(x)+2f(1-x)=x^2$ for all real $x$, find $3f(4)$.
Solution. Write the equation as (i) $f(x)+2f(1-x)=x^2$ and the substituted version (ii) $f(1-x)+2f(x)=(1-x)^2$. Double (ii) and subtract (i): $4f(x)+2f(1-x)-f(x)-2f(1-x)=2(1-x)^2-x^2$, so $3f(x)=x^2-4x+2$. At $x=4$: $3f(4)=16-16+2=2$. Substituting back, $f(4)=\frac23$ and $f(-3)=\frac{9+12+2}{3}=\frac{23}{3}$, and $f(4)+2f(-3)=\frac23+\frac{46}{3}=16=4^2$ as required. Answer: $2$.
Example 8 (numerical-value). The number of non-decreasing functions $f:\{1,2,3\}\to\{1,2,3,4,5,6\}$ (that is, $f(1)\le f(2)\le f(3)$) is ______.
Solution. Non-decreasing maps correspond to multisets of size 3 from 6 values, so the count is $\binom{6+3-1}{3}=\binom83=56$. A direct listing of all $6^3=216$ triples with $f(1)\le f(2)\le f(3)$ gave $56$ as well. For comparison, the strictly increasing maps number $\binom63=20$. Answer: $56$.
Example 9 (single-correct). Let $f(x)=x^2-4x+7$ with domain $[2,\infty)$ and codomain $[3,\infty)$. Then $f^{-1}(12)$ equals
(A) $5$ (B) $-1$ (C) $2+\sqrt{5}$ (D) $2-\sqrt{5}$
Solution. On $[2,\infty)$ the function is strictly increasing from $f(2)=3$, so it is a bijection onto $[3,\infty)$. Write $y=(x-2)^2+3$. Then $x-2=\sqrt{y-3}$, taking the positive root because $x\ge2$. So $f^{-1}(y)=2+\sqrt{y-3}$ and $f^{-1}(12)=2+3=5$. Check: $f(5)=25-20+7=12$. The other root $x=-1$ is outside the domain. Answer: (A).
Example 10 (single-correct). If $g(x)=x^2-x$ on $[-1,1]$, the range of $g(\sin x)$ over all real $x$ is
(A) $\left[-\tfrac14,\,2\right]$ (B) $[0,2]$ (C) $\left[-\tfrac14,\,0\right]$ (D) $\left[-1,\,1\right]$
Solution. As $x$ varies, $\sin x$ takes every value in $[-1,1]$, so the range is the range of $g$ on $[-1,1]$. The vertex of $g$ is at $t=\frac12$, inside the interval, with $g\left(\frac12\right)=-\frac14$. At the ends, $g(-1)=2$ and $g(1)=0$. So the range is $\left[-\frac14,2\right]$, which a numerical sweep of $g$ over $[-1,1]$ also gave. The trap is to evaluate only the end points and write $[0,2]$. Answer: (A).
Example 11 (multiple-correct, Advanced flavour). Let $f:\mathbb{R}\to\mathbb{R}$, $f(x)=x^2+1$, and $g:[1,\infty)\to\mathbb{R}$, $g(x)=\sqrt{x-1}$. Which of the following are correct?
(A) $f\circ g$ is defined on $[1,\infty)$ and equals $x$ there (B) $g\circ f(x)=|x|$ for every real $x$ (C) $g\circ f$ is one-one (D) $f\circ g$ is one-one
Solution. For (A): $f(g(x))=(\sqrt{x-1})^2+1=x$ on $[1,\infty)$, where $g$ is defined; correct. For (B): $f(x)=x^2+1\ge1$ is always in the domain of $g$, and $g(f(x))=\sqrt{x^2}=|x|$; correct. For (C): $|x|$ is even, so $g\circ f(1)=g\circ f(-1)=1$, and $g\circ f$ is not one-one; incorrect. This also illustrates the table above: $g\circ f$ is not one-one because $f$ is not. For (D): $f\circ g$ is the identity on $[1,\infty)$, which is one-one; correct. Answer: (A), (B), (D).
Common traps
- Reading onto without the codomain. Writing "$x^2$ is not onto" with no codomain stated is meaningless. Always compare the range with the stated codomain, and if the question changes the codomain, redo the test.
- Declaring a cubic one-one without checking the discriminant. The derivative of $x^3+ax^2+bx+c$ is a quadratic, and the function is one-one only when that quadratic does not take both signs. Students often use "discriminant less than zero" and lose the boundary case, where the derivative touches zero at one point and the function is still strictly increasing.
- Simplifying the composite before taking its domain. $f\circ g$ for the example above simplifies to $x$, but its domain is $[1,\infty)$, not $\mathbb{R}$. The rule is to take the domain from the definition, not from the simplified formula.
- Reversing the implication in composition. If $g\circ f$ is one-one then $f$ is one-one, not $g$. If $g\circ f$ is onto then $g$ is onto, not $f$. The inner function separates; the outer function reaches.
- Using the onto formula when the sets have the wrong sizes. For $m<n$ the number of onto maps is zero. The inclusion-exclusion sum gives $0$ in that case, but students who use a memorised closed form sometimes report a non-zero number.
- Counting idempotent maps as bijections only. $f\circ f=f$ allows many-one maps; the only bijective one is the identity. The sum over image sizes $k$ is the right tool.
- Choosing the wrong branch for the inverse. For $f(x)=x^2-4x+7$ restricted to $x\ge2$, the inverse is $2+\sqrt{y-3}$. On $x\le 2$ it would be $2-\sqrt{y-3}$. Check the sign against the domain by testing one point.
- Forgetting that $f^{-1}(x)\ne\frac1{f(x)}$. The superscript $-1$ on a function means inverse; the reciprocal is $[f(x)]^{-1}$ or $\frac1{f(x)}$. In a hurry, the two are confused.
- Applying "even implies many-one" on a one-sided domain. $x^2$ on $[0,\infty)$ is one-one. The argument needs a domain symmetric about the origin that contains a non-zero point.
- Solving a functional equation by guessing a form. Substitution always works for equations linking $f(x)$ and one transformed copy. If you guess a linear form, verify it in the original equation, since several forms satisfy part of it.
A one-page recap
- One-one: $f(x_1)=f(x_2)\Rightarrow x_1=x_2$; for continuous functions, one-one means strictly monotonic. Even, periodic and turning-point functions are many-one.
- Onto: range equals codomain. Odd-degree polynomials are onto $\mathbb{R}$.
- Finite sets: $|A|=|B|$ makes one-one and onto equivalent. One-one count $n(n-1)\cdots$; onto count by inclusion-exclusion.
- Strictly increasing maps $\binom nm$; non-decreasing maps $\binom{n+m-1}{m}$; idempotent maps $\sum_k\binom nk k^{n-k}$; involutions on four points: $10$.
- Domain of $g\circ f$: $\{x\in D_f: f(x)\in D_g\}$, read from the definition.
- $g\circ f$ one-one implies $f$ one-one; $g\circ f$ onto implies $g$ onto.
- $(g\circ f)^{-1}=f^{-1}\circ g^{-1}$; self-inverse Möbius functions have $a+d=0$.
- Functional equations: substitute the partner expression and solve the two linear equations.
Also read: Continuity of Piecewise Functions for JEE
How to practise this topic
Use the chapter tests for relations and functions as the main drill. Start with the first chapter test, and then do the second, third and fourth. The chapter has four tests of 15 questions each in our design, and the numerical-value questions in the later ones lean toward counting maps and parameter ranges. The book chapter has more solved problems: English, Hindi and Telugu. The full series is on the JEE shelf.
A 7-day plan we suggest:
| Day | Work |
|---|---|
| 1 | Read the injective and surjective tests; redo examples 1 and 3 without notes |
| 2 | Counting maps: examples 2 and 8, then twelve counting problems from the book chapter |
| 3 | Composition: domains, then examples 4 and 11; write the composition table from memory |
| 4 | Inverses: examples 6 and 9; find five inverses with restricted domains |
| 5 | Functional equations: example 7 and six more of the same shape |
| 6 | Chapter tests 1 and 2 under a 36-minute limit; log each error as concept, calculation or reading |
| 7 | Chapter tests 3 and 4; redo every wrongly answered question the next morning |
When the chapter feels secure, move to the JEE Main Mathematics practice tests and the full mocks, where relations and functions usually appear as one question per paper in our design. The free 10-question JEE Main mini mock gives a quick all-subject check without sign-up. Full mocks, practice tests and chapter tests are part of the Pro Pass. For related reading, see the post on sets and Venn diagram problems, which is the sibling of this post, the overview of sets, functions, complex numbers and quadratics, the guide to inverse trigonometric functions, and the method for keeping an error log.
Frequently asked questions
How do I decide quickly whether a function is one-one?
Look for a symmetry or a turning point first. If the function is even, periodic, or has a local maximum or minimum, it is many-one. If the derivative is always positive or always negative, it is one-one. For rational functions of the form $\frac{ax+b}{cx+d}$, the definition test is faster than the derivative.
If $g\circ f$ is onto, must $f$ be onto?
No. Only $g$ is forced to be onto. Take $f:\{1\}\to\{1,2\}$ with $f(1)=1$ and $g:\{1,2\}\to\{1\}$ constant; then $g\circ f$ is onto $\{1\}$ but $f$ is not onto. The mnemonic is that the outer function must reach the whole final codomain.
What is the difference between range and codomain, and why does it matter for onto?
The codomain is the set named in the definition of the function; the range is the set of values actually taken. A function is onto exactly when they are equal. Questions that say "find $B$ such that $f:A\to B$ is onto" are asking for the range.
How many non-decreasing functions are there from an $m$-element set to an $n$-element set?
The count is $\binom{n+m-1}{m}$, because a non-decreasing map is determined by choosing $m$ values with repetition allowed and listing them in order. Strictly increasing maps number $\binom nm$.
How do I find a function that is its own inverse?
Require $f(f(x))=x$. For $f(x)=\frac{ax+b}{cx+d}$ the condition is $a+d=0$. Functions such as $k-x$ and $\frac kx$ are self-inverse, and any function symmetric about the line $y=x$ is self-inverse.
How should I approach an equation with both $f(x)$ and $f(1-x)$?
Substitute $1-x$ for $x$ to get a second equation containing the same two unknowns, then solve the two equations as a linear system. Verify the final formula in the original equation, because an error in the substitution is easy to make and easy to catch that way.
Is the domain of $f\circ g$ the same as the domain of its simplified expression?
Not always. Take the domain from the definition: $x$ must be in the domain of the inner function, and the inner output must be in the domain of the outer function. Simplification can remove a restriction that was real.

Comments (0)
No comments yet. Be the first to share your thoughts.