Chapter 2 ยท Relations and Functions

2.3 Functions and Their Graphs

A function is a relation in which every input has exactly one output. Real functions have graphs, and seven standard ones โ€” identity, constant, polynomial, rational, modulus, signum and greatest integer $[x]$ โ€” are the building blocks for everything that follows.

Type a number into a calculator and press $x^2$: you always get one answer, and the same input always gives the same answer. Feed a student's marks into a grading table and out comes exactly one grade. A rule that produces a single, definite output for every allowed input is called a function, and it is the most important idea in school mathematics โ€” the formula $A=\pi r^2$, the conversion $F=\tfrac95C+32$, and the price of a taxi ride as a function of distance are all examples.

In Section 2.2 a relation could send an element to several partners, or to none. A function is the special relation that does neither. In this section we define functions precisely, learn to find the domain and range of a real function given by a formula, and draw the graphs of the standard real functions. Two of them, the modulus function $|x|$ and the greatest integer function $[x]$, have corners and jumps that make them favourites of both Board and JEE examiners.

Functions

๐Ÿ“˜ Definition 2.6 โ€” Function

A relation $f$ from a non-empty set $A$ to a non-empty set $B$ is called a function (or map) from $A$ to $B$, written $f : A\to B$, if every element of $A$ has exactly one image in $B$. The image of $x$ is written $f(x)$ ("$f$ of $x$"), so $(x,y)\in f$ means $y=f(x)$.

The set $A$ is the domain of $f$, $B$ is its codomain, and the set of all images $\{f(x) : x\in A\}$ is its range, a subset of $B$.

Two things can stop a relation from being a function: an element of $A$ with no image, or an element of $A$ with two or more images. In an arrow diagram, a function has exactly one arrow leaving each element of $A$. Several arrows may arrive at the same element of $B$, and some elements of $B$ may receive none โ€” both are allowed.

โœ๏ธ Example 1 โ€” Function or not?
Let $A=\{1,2,3,4\}$ and $B=\{1,4,9,16,25\}$. Which of these relations from $A$ to $B$ are functions? For each function, state its range.
(a) $R_1=\{(1,1),(2,4),(3,9),(4,16)\}$ (b) $R_2=\{(1,1),(2,4),(2,9),(3,9),(4,16)\}$ (c) $R_3=\{(1,4),(2,4),(3,4),(4,4)\}$ (d) $R_4=\{(1,1),(2,4),(4,16)\}$
Test For each $x\in A=\{1,2,3,4\}$, count the pairs with first component $x$. A function needs exactly one for every $x$.
(a), (b) (a) One pair each: a function, $f(x)=x^2$, with range $\{1,4,9,16\}$ โ€” note $25\in B$ is not reached. (b) $2$ has two images, $4$ and $9$: not a function.
(c) One pair each (all with image $4$): a function โ€” a constant function โ€” with range $\{4\}$.
(d) $3$ has no image: not a function from $A$ to $B$. (It is a function from $\{1,2,4\}$ to $B$.)
โœ๏ธ Example 2 โ€” Values and range from a formula
(a) $f : \{-2,-1,0,1,2\}\to\mathbb{Z}$ is given by $f(x)=x^2+1$. Find its range.
(b) $g : \mathbb{N}\to\mathbb{N}$ is given by $g(x)=2x+1$. Find $g(1)$, $g(10)$, and the range of $g$. Is $8$ an image?
(a) $f(-2)=5$, $f(-1)=2$, $f(0)=1$, $f(1)=2$, $f(2)=5$. Range $=\{1,2,5\}$ โ€” five inputs but only three outputs, since $f(-x)=f(x)$.
(b) $g(1)=3$, $g(10)=21$. As $x$ runs through $1,2,3,\dots$, $g(x)$ runs through $3,5,7,\dots$: the range is the set of odd natural numbers greater than $1$, i.e. $\{3,5,7,9,\dots\}$.
Is 8 an image? $2x+1=8$ gives $x=\tfrac72\notin\mathbb{N}$. So $8$ is in the codomain $\mathbb{N}$ but not in the range.

Real Functions, Their Domains and Ranges

๐Ÿ“˜ Definition 2.7 โ€” Real function; natural domain

A function whose codomain is $\mathbb{R}$ (or a subset of it) is a real-valued function; if its domain is also a subset of $\mathbb{R}$, it is a real function.

When a real function is given only by a formula, such as $f(x)=\dfrac{1}{x-3}$, we agree that its domain is the largest set of real numbers $x$ for which the formula gives a real number. To find it, remove from $\mathbb{R}$ every $x$ that makes a denominator zero or puts a negative number under a square root.

The graph of a real function $f$ is the set $\{(x,f(x)) : x \text{ in the domain}\}$ โ€” a subset of $\mathbb{R}\times\mathbb{R}$, drawn in the Cartesian plane. To find the range, set $y=f(x)$ and ask which values of $y$ can actually occur โ€” often by solving for $x$ in terms of $y$.

โœ๏ธ Example 3 โ€” Domain and range of real functions
Find the domain and range of (a) $f(x)=\dfrac{1}{x-3}$ (b) $g(x)=\sqrt{x-2}$ (c) $h(x)=x^2+4$; and the domain of (d) $k(x)=\dfrac{x+1}{x^2-5x+6}$.
(a) The denominator vanishes at $x=3$, so the domain is $\mathbb{R}-\{3\}$. For the range, put $y=\dfrac1{x-3}$; then $x=3+\dfrac1y$, which is a real number in the domain for every $y\ne0$, while $y=0$ is impossible (a fraction with numerator $1$ is never $0$). Range $=\mathbb{R}-\{0\}$.
(b) We need $x-2\ge0$: domain $[2,\infty)$. A square root is never negative, and $y=\sqrt{x-2}$ gives $x=y^2+2$ for every $y\ge0$: range $[0,\infty)$.
(c) Every real $x$ is allowed: domain $\mathbb{R}$. Since $x^2\ge0$, $h(x)\ge4$, and $y=x^2+4$ is reached by $x=\sqrt{y-4}$ for every $y\ge4$: range $[4,\infty)$.
(d) $x^2-5x+6=(x-2)(x-3)$ is zero at $x=2$ and $x=3$. Domain $=\mathbb{R}-\{2,3\}$.
๐Ÿ“ Theorem 2.4 โ€” Vertical line test

A set $G$ of points in the Cartesian plane is the graph of a function of $x$ (with $y$ the output) if and only if no vertical line meets $G$ in more than one point.

Proof. The vertical line $x=a$ meets $G$ at the points $(a,y)\in G$. If $G$ is the graph of a function $f$, the only such point is $(a,f(a))$ โ€” or none if $a$ is outside the domain. Conversely, if every vertical line meets $G$ at most once, then each $a$ that occurs as a first component has exactly one partner $y$, so $G$ defines a function on the set of these $a$. $\blacksquare$

Interactive 1 โ€” The Vertical Line Test

A vertical line sweeps across the picture, and every point where it meets the curve is marked. If at some position it meets the curve twice, that value of $x$ has two outputs and the curve is not the graph of a function. Compare $y=x^2$ with its sideways twin $x=y^2$.

line positionโ€”
meets the curve atโ€”
most meetings so farโ€”
graph of a function?โ€”

The Standard Real Functions and Their Graphs

A handful of functions appear so often that they have names. Learn their graphs well: almost every function you meet later is built from them.

๐Ÿ“˜ Definition 2.8 โ€” Identity, constant, polynomial and rational functions
  • Identity function: $f : \mathbb{R}\to\mathbb{R}$, $f(x)=x$. Domain and range $\mathbb{R}$; graph: the line $y=x$ through the origin at $45^\circ$.
  • Constant function: $f : \mathbb{R}\to\mathbb{R}$, $f(x)=c$ for a fixed real $c$. Domain $\mathbb{R}$, range $\{c\}$; graph: the horizontal line $y=c$.
  • Polynomial function: $f(x)=a_0+a_1x+a_2x^2+\cdots+a_nx^n$ with $n$ a non-negative integer and $a_0,a_1,\dots,a_n\in\mathbb{R}$. Domain $\mathbb{R}$. Examples: $x^2$, $x^3-3x$, $2x+5$. ($\sqrt x$ and $x^{-1}$ are not polynomials.)
  • Rational function: $f(x)=\dfrac{p(x)}{q(x)}$ with $p$, $q$ polynomials; domain $\{x\in\mathbb{R} : q(x)\ne0\}$. Example: $f(x)=\dfrac1x$, with domain and range $\mathbb{R}-\{0\}$.
๐Ÿ“˜ Definition 2.9 โ€” Modulus, signum and greatest integer functions
  • Modulus function: $f(x)=|x|=\begin{cases}x, & x\ge0\\ -x, & x\lt0.\end{cases}$ Domain $\mathbb{R}$, range $[0,\infty)$. Graph: a "V" with its corner at the origin.
  • Signum function: $f(x)=\operatorname{sgn}x=\begin{cases}1, & x\gt0\\ 0, & x=0\\ -1, & x\lt0.\end{cases}$ Domain $\mathbb{R}$, range $\{-1,0,1\}$. For $x\ne0$, $\operatorname{sgn}x=\dfrac{|x|}{x}$.
  • Greatest integer function: $f(x)=[x]$, the greatest integer less than or equal to $x$. Domain $\mathbb{R}$, range $\mathbb{Z}$. If $n\in\mathbb{Z}$ then $[x]=n$ exactly when $n\le x\lt n+1$, so the graph is a staircase: a horizontal step on each interval $[n,n+1)$, filled at its left end and hollow at its right end.
โœ๏ธ Example 4 โ€” Working with $[x]$, $|x|$ and $\operatorname{sgn}x$
(a) Evaluate $[2.7]$, $[-2.7]$, $[5]$, $[-0.5]$, $|{-3.5}|$, $\operatorname{sgn}(-3.5)$.
(b) Solve $[x]=2$ and $[x]=-1$.
(c) Show that $\operatorname{sgn}x\cdot|x|=x$ for every real $x$.
(a) $[2.7]=2$; $[-2.7]=-3$ (the greatest integer not exceeding $-2.7$ is $-3$, not $-2$); $[5]=5$; $[-0.5]=-1$; $|{-3.5}|=3.5$; $\operatorname{sgn}(-3.5)=-1$.
(b) $[x]=2\iff 2\le x\lt3$: the solution set is $[2,3)$. $[x]=-1\iff -1\le x\lt0$: the solution set is $[-1,0)$.
(c) If $x\gt0$: $1\cdot x=x$. If $x=0$: $0\cdot0=0$. If $x\lt0$: $(-1)(-x)=x$. In every case the product is $x$. $\blacksquare$
Interactive 2 โ€” The Function Graph Gallery

Choose a standard function. The tracer walks along the $x$-axis and reads off $f(x)$; it pauses at the integers, where $[x]$ jumps and $\operatorname{sgn}x$ changes. Filled dots belong to the graph, hollow dots do not. Watch $[x]$ at $x=1$: the value is $1$ (filled dot), not $0$.

$x$โ€”
$f(x)$โ€”
domainโ€”
rangeโ€”
โœ๏ธ Example 5 โ€” A function defined in pieces
Let $f : \mathbb{R}\to\mathbb{R}$ be given by $f(x)=\begin{cases}2x+1, & x\le1\\ 4-x, & x\gt1.\end{cases}$ Find $f(-1)$, $f(1)$, $f(1.5)$, $f(3)$, sketch the graph, and find the range of $f$.
Values Use the piece whose condition $x$ satisfies: $f(-1)=2(-1)+1=-1$; $f(1)=2(1)+1=3$ (since $1\le1$); $f(1.5)=4-1.5=2.5$; $f(3)=4-3=1$.
Graph For $x\le1$: the line $y=2x+1$ rising to the filled point $(1,3)$. For $x\gt1$: the line $y=4-x$, falling from a hollow point at $(1,3)$ โ€” which is already covered by the filled point, so the graph has no break there.
Range The first piece takes every value $y\le3$; the second takes every value $y\lt3$. Together: range $=(-\infty,3]$.
Check Each $x$ satisfies exactly one of $x\le1$, $x\gt1$, so $f$ assigns exactly one value to every real number โ€” it is a function โœ“.
โœ๏ธ Example 6 โ€” A step function in real life
A ride-share company charges a fare of $C(d)=40+12[d]$ rupees for a ride of $d$ kilometres ($d\gt0$): โ‚น40 to start plus โ‚น12 for every completed kilometre. Find the fares for rides of $0.8$ km, $3.7$ km and $5$ km, and the set of possible fares for rides shorter than $4$ km.
Fares $C(0.8)=40+12\cdot0=40$; $C(3.7)=40+12\cdot3=76$; $C(5)=40+12\cdot5=100$ (all in rupees).
Range For $0\lt d\lt4$, $[d]\in\{0,1,2,3\}$, so the fares are โ‚น40, โ‚น52, โ‚น64 and โ‚น76: the range is $\{40,52,64,76\}$.
Interpret $C$ is a function of $d$ (one fare per distance), but $d$ is not a function of $C$: every $d$ in $[3,4)$ gives the same fare โ‚น76.
โš ๏ธ Common mistakes with functions

1. $[x]$ of a negative number. $[-2.7]=-3$, not $-2$. "Greatest integer not exceeding" means rounding down, towards $-\infty$, not chopping off the decimals.

2. Range is not codomain. $f : \mathbb{R}\to\mathbb{R}$, $f(x)=x^2$, has codomain $\mathbb{R}$ but range $[0,\infty)$.

3. Two inputs, one output is fine. $f(2)=f(-2)=4$ does not stop $x^2$ being a function. One input with two outputs does.

4. Do not cancel before finding the domain. $\dfrac{x^2-1}{x-1}$ has domain $\mathbb{R}-\{1\}$, even though it equals $x+1$ wherever it is defined.

5. $|x|$ is not "$x$ without its sign" for expressions. $|x-3|=x-3$ only when $x\ge3$; for $x\lt3$ it is $3-x$.

๐Ÿš€ Beyond the board syllabus (JEE Main ยท JEE Advanced)

In JEE Main and JEE Advanced 2026; the CBSE year-end exam asks only for domains and ranges of simple functions. Both entrance exams regularly ask for the domain and range of expressions built from several standard functions.

Method. Write down every condition the expression needs (denominators $\ne0$, quantities under a square root $\ge0$), solve them together, and intersect the solution sets. For the range, set $y=f(x)$ and find which $y$ make the equation solvable for an allowed $x$.

Worked example. Find the domain and range of $f(x)=\sqrt{16-x^2}$.
Solution. We need $16-x^2\ge0$, i.e. $x^2\le16$, i.e. $-4\le x\le4$: domain $[-4,4]$. As $x$ runs over $[-4,4]$, $x^2$ takes every value in $[0,16]$, so $16-x^2$ takes every value in $[0,16]$ and $f(x)$ every value in $[0,4]$: range $[0,4]$. (The graph is the upper half of the circle $x^2+y^2=16$.)

Exercises

I
Function or not? In parts 1โ€“4, $A=\{1,2,3\}$; decide whether the relation is a function from $A$ to $B=\{2,3,4,5\}$, and if so give its range.
  • 1 $\{(1,2),(2,3),(3,4)\}$
  • 2 $\{(1,2),(1,3),(2,4),(3,4)\}$
  • 3 $\{(1,5),(2,5),(3,5)\}$
  • 4 $\{(1,2),(3,4)\}$
  • 5 Is $\{(x,y) : x\in\mathbb{Z},\ y=x^2\}$ a function from $\mathbb{Z}$ to $\mathbb{Z}$? If so, what is its range?
  • 6 Is $\{(x,y) : x,y\in\mathbb{Z},\ x=y^2,\ 0\le x\le9\}$ a function (of $x$)? Explain.
  • 7 Use the vertical line test to decide whether the circle $x^2+y^2=1$ is the graph of a function of $x$.
1 Function; range $\{2,3,4\}$.
2 Not a function: $1$ has two images, $2$ and $3$.
3 Function (constant); range $\{5\}$.
4 Not a function from $A$: $2$ has no image.
5 Yes: each integer has exactly one square. Range $\{0,1,4,9,16,\dots\}$, the perfect squares.
6 No: the relation is $\{(0,0),(1,1),(1,-1),(4,2),(4,-2),(9,3),(9,-3)\}$, and $x=1$ has two partners, $1$ and $-1$.
7 The line $x=0$ meets the circle at $(0,1)$ and $(0,-1)$ โ€” twice โ€” so the circle is not the graph of a function of $x$.
II
Values, domains and ranges.
  • 1 $f(x)=x^2-3x+2$. Find $f(0)$, $f(-1)$ and $f\big(\tfrac32\big)$.
  • 2 $f(x)=2x+3$ with domain $\{-1,0,1,2\}$. Find the range of $f$.
  • 3 Find the domain of $f(x)=\dfrac{1}{x-4}$.
  • 4 Find the domain of $f(x)=\dfrac{x+2}{x^2-7x+10}$.
  • 5 Find the domain and range of $f(x)=\sqrt{x+3}$.
  • 6 Find the domain and range of $f(x)=|x-2|$.
  • 7 Find the range of $f(x)=3-x^2$, $x\in\mathbb{R}$.
  • 8 Find the range of $f(x)=\dfrac1x$, $x\ne0$, and the values of $x$ with $f(x)=4$.
  • 9 $f(x)=x+\dfrac1x$ for $x\ne0$. Show that $f(x)=f\big(\tfrac1x\big)$.
1 $f(0)=2$; $f(-1)=1+3+2=6$; $f\big(\tfrac32\big)=\tfrac94-\tfrac92+2=-\tfrac14$.
2 $f(-1)=1$, $f(0)=3$, $f(1)=5$, $f(2)=7$: range $\{1,3,5,7\}$.
3 $\mathbb{R}-\{4\}$.
4 $x^2-7x+10=(x-2)(x-5)$: domain $\mathbb{R}-\{2,5\}$.
5 $x+3\ge0$: domain $[-3,\infty)$; range $[0,\infty)$.
6 Domain $\mathbb{R}$; range $[0,\infty)$ (the value $0$ at $x=2$, and every $y\gt0$ at $x=2+y$).
7 $x^2\ge0$ gives $3-x^2\le3$, and every $y\le3$ is reached at $x=\sqrt{3-y}$: range $(-\infty,3]$.
8 Range $\mathbb{R}-\{0\}$. $\dfrac1x=4$ gives $x=\dfrac14$ โ€” exactly one value.
9 $f\big(\tfrac1x\big)=\tfrac1x+\dfrac{1}{1/x}=\tfrac1x+x=f(x)$.
III
The standard functions.
  • 1 Evaluate $[3.9]$, $[-3.9]$, $[-4]$, $[0.01]$, $[-0.01]$.
  • 2 Evaluate $\operatorname{sgn}(-7)$, $\operatorname{sgn}0$, $\operatorname{sgn}(2.5)$.
  • 3 Evaluate $|{-5}|+|3-8|$.
  • 4 Solve $[x]=-2$.
  • 5 Solve $|x|=3$ and $|x-1|=2$.
  • 6 Show that $[x+1]=[x]+1$ for every real $x$.
  • 7 Is $[2x]=2[x]$ for every real $x$? Prove it or give a counterexample.
  • 8 Find the domain and range of $f(x)=\dfrac{x}{|x|}$.
  • 9 Sketch $f(x)=x^3$ for $-2\le x\le2$ from a table of values, and state its range on that interval.
Check: evaluate $[x]$, $|x|$ and $\operatorname{sgn}x$ at any point
โˆ’3.9
$[x]$โ€”
$|x|$โ€”
$\operatorname{sgn}x$โ€”
1 $3$, $-4$, $-4$, $0$, $-1$.
2 $-1$, $0$, $1$.
3 $5+|{-5}|=5+5=10$.
4 $-2\le x\lt-1$: solution set $[-2,-1)$.
5 $|x|=3$: $x=\pm3$. $|x-1|=2$: $x-1=\pm2$, so $x=3$ or $x=-1$.
6 Let $[x]=n$, so $n\le x\lt n+1$. Adding $1$: $n+1\le x+1\lt n+2$, so $[x+1]=n+1=[x]+1$.
7 No. $x=0.5$: $[2x]=[1]=1$ but $2[x]=2\cdot0=0$.
8 Domain $\mathbb{R}-\{0\}$; $\dfrac{x}{|x|}=1$ for $x\gt0$ and $-1$ for $x\lt0$, so the range is $\{-1,1\}$.
9 Table: $x=-2,-1,0,1,2$ give $-8,-1,0,1,8$. The curve rises steadily through the origin, flattening near $0$. Range on $[-2,2]$: $[-8,8]$.
IV
Graphs and models.
  • 1 $f(x)=\begin{cases}-x, & x\lt0\\ x^2, & 0\le x\le2\\ 4, & x\gt2.\end{cases}$ Find $f(-3)$, $f(1)$, $f(2)$, $f(5)$ and the range of $f$.
  • 2 Parking. A mall charges $P(t)=20+15[t]$ rupees for parking $t$ hours. Find $P(0.5)$, $P(2)$ and $P(2.99)$. How long can you park for โ‚น50?
  • 3 Temperature. $F(C)=\tfrac95C+32$ converts ยฐC to ยฐF. Find $F(37)$, and the temperature at which both scales show the same number.
  • 4 Area. Express the area $A$ of a square as a function of its side $s$, with domain and range. Is the side a function of the area?
  • 5 Distance. $f(x)=|x-3|$ is the distance on the number line from $x$ to $3$. Use this meaning to solve $f(x)=5$ and $f(x)=0$, and explain why $f(x)=-1$ has no solution.
1 $f(-3)=3$, $f(1)=1$, $f(2)=4$, $f(5)=4$. For $x\lt0$ the values fill $(0,\infty)$; for $0\le x\le2$ they fill $[0,4]$; for $x\gt2$ only $4$. Range $[0,\infty)$.
2 $P(0.5)=20$, $P(2)=50$, $P(2.99)=50$ (rupees). $P(t)=50$ when $[t]=2$, i.e. $2\le t\lt3$: you may park for any time from $2$ hours up to (but not including) $3$ hours.
3 $F(37)=66.6+32=98.6\,^\circ\text{F}$. $\tfrac95C+32=C$ gives $\tfrac45C=-32$, $C=-40$: $-40\,^\circ\text{C}=-40\,^\circ\text{F}$.
4 $A(s)=s^2$, domain $(0,\infty)$, range $(0,\infty)$ (in square units). Yes: for a square, $s=\sqrt A$ โ€” one side for each area, because $s\gt0$.
5 $|x-3|=5$: the points at distance $5$ from $3$ are $-2$ and $8$. $|x-3|=0$ only at $x=3$. A distance is never negative, so $|x-3|=-1$ has no solution.
๐ŸŽฏ Exam corner Board ยท 1 markBoard ยท 2 marksBoard ยท Case studyJEE MainJEE Advanced

How this is examined: Board papers ask for values of $[x]$, $|x|$ and $\operatorname{sgn}x$ (1 mark), the domain and range of simple real functions (2 marks), and case studies built on a real-life step or piecewise function. JEE tests the definition of a function and domains of expressions combining the standard functions.

E1. Board ยท 1 mark The value of $[-2.3]+[2.3]$ is (A) $0$   (B) $-1$   (C) $1$   (D) $-5$

Idea $[-2.3]=-3$ (round down) and $[2.3]=2$.
Trap (A) comes from taking $[-2.3]=-2$.
Answer (B) $-3+2=-1$.

E2. Board ยท 2 marks Find the domain and range of (i) $f(x)=\dfrac{1}{2-x}$ (ii) $g(x)=|x+1|$.

(i) Denominator zero at $x=2$: domain $\mathbb{R}-\{2\}$. $y=\dfrac1{2-x}$ gives $x=2-\dfrac1y$ for every $y\ne0$, and $y=0$ is impossible: range $\mathbb{R}-\{0\}$. (1 mark)
Answer (ii) Domain $\mathbb{R}$; range $[0,\infty)$. (1 mark)

E3. Board ยท Case study A city car park charges $P(t)=30+20[t]$ rupees for a stay of $t$ hours, where $0\lt t\lt6$. (i) Find $P(0.9)$ and $P(2.5)$. (2 marks) (ii) Write the range of $P$. (1 mark) (iii) Is $P$ a function of $t$? Is $t$ a function of $P$? Justify. (1 mark)

(i) $P(0.9)=30+20\cdot0=30$; $P(2.5)=30+20\cdot2=70$ (rupees). (2 marks)
(ii) $[t]\in\{0,1,2,3,4,5\}$, so the range is $\{30,50,70,90,110,130\}$. (1 mark)
Answer (iii) $P$ is a function of $t$: each stay has one charge. $t$ is not a function of $P$: for example, $P=70$ for every $t\in[2,3)$. (1 mark)

E4. JEE Main The domain of $f(x)=\dfrac{1}{\sqrt{[x]-x}}$ is (A) $\mathbb{R}$   (B) $\mathbb{R}-\mathbb{Z}$   (C) $\mathbb{Z}$   (D) $\phi$

Idea We need $[x]-x\gt0$ (positive under a square root in a denominator). But $[x]\le x$ always, so $[x]-x\le0$ for every real $x$.
Trap (C): at integers $[x]-x=0$, which makes the denominator $0$ โ€” still not allowed. (B) would be the answer for $\dfrac{1}{\sqrt{x-[x]}}$.
Answer (D) โ€” no real $x$ works.

E5. JEE Main Numerical value. Let $f(x)=[x]+[-x]$, $x\in\mathbb{R}$. Find the number of elements in the range of $f$.

Integers If $x=n\in\mathbb{Z}$: $[n]+[-n]=n-n=0$.
Non-integers If $n\lt x\lt n+1$, then $-n-1\lt-x\lt-n$, so $[x]=n$ and $[-x]=-n-1$: the sum is $-1$.
Answer Range $=\{-1,0\}$: $2$ elements.

E6. JEE Advanced One or more options correct. Which of the following relations define a function from $\mathbb{R}$ to $\mathbb{R}$? (A) $\{(x,y) : y=|x|\}$   (B) $\{(x,y) : y^2=x\}$   (C) $\{(x,y) : y=[x]\}$   (D) $\{(x,y) : x=[y]\}$

(A), (C) Each real $x$ has exactly one modulus and exactly one greatest integer: both are functions.
(B) $x=4$ pairs with $y=\pm2$, and $x=-1$ has no partner: not a function.
(D) $x=0$ pairs with every $y\in[0,1)$, and $x=0.5$ with none (since $[y]$ is always an integer): not a function.
Answer (A), (C).
๐Ÿ”ฌ Researchโ€“Teaching NexusMini project ยท about 45 minutes

Research question. Which everyday prices are step functions, and how do their "steps" compare โ€” are you charged for every started unit or every completed unit?

Why it matters. Parking fees, postage rates, mobile data packs, taxi fares and electricity slabs are piecewise or step functions. Whether a tariff counts completed units ($[x]$) or started units changes what you pay at the edges by a whole step โ€” a small difference per bill, a large one across a city.

What to do.

  1. Find two published tariffs (a parking board, a postal rate card, a taxi or auto-rickshaw fare chart, an electricity bill).
  2. Write each as a function of the measured quantity, using $[x]$ or a piecewise definition; state the domain and range.
  3. Draw the graph of each and mark the filled and hollow end points of every step.
  4. Decide whether each tariff charges for completed or started units, and compute the largest possible difference between the two conventions for a typical use.

Tools: Phone camera for the tariff; graph paper or a graphing app

Hand in: The two functions, their graphs, and a paragraph on which convention is fairer to the customer.

Going further. "Every started hour" cannot be written as $[t]$ alone. Show that for $t\gt0$ it equals $-[-t]$, and check your formula at $t=2$ and $t=2.1$.

Instructor note: $-[-t]$ is the "ceiling" of $t$; at $t=2$ it gives $2$ and at $t=2.1$ it gives $3$. Students should notice that the started-unit convention has its filled end points on the right of each step.

๐Ÿงช Self-check quiz

0/5 correct

Q1. $[-1.5]$ equals

Q2. The domain of $f(x)=\dfrac{1}{x-2}$ is

Q3. The range of the signum function is

Q4. Which relation from $\{1,2,3\}$ to $\{a,b\}$ is not a function?

Q5. The range of $f(x)=|x|$, $x\in\mathbb{R}$, is