Free Mathematics Class 11 CBSE notes · practise this chapter with an AI quiz

← All study notes

Why a Vending Machine Behaves Like a Function but a Lucky Dip Does Not

Decide whether a relation is a function, learn the domain, range and graph of the identity, constant, polynomial, rational, modulus, signum and greatest-integer functions, find domains and ranges from formulas, and combine real functions.

What makes a relation a function?

A function from AA to BB is a relation in which every element of AA has exactly one image in BB. It is written f:A→Bf : A \rightarrow B, and the image of xx is f(x)f(x).

Press a button on a vending machine and you always get the same item — that is function-like behaviour. A lucky dip, where the same action can give different prizes, is not.

This part covers the function test, standard functions, domains and ranges from formulas, and combining functions.

How do you decide whether a relation is a function, including from its graph?

A relation is a function when no element of the domain has more than one image; on a graph, no vertical line may cut the curve more than once.

Worked examples — sets of pairs.

- {(1,2),(2,3),(3,4)}\{(1, 2), (2, 3), (3, 4)\} — a function
- {(1,2),(1,3),(2,4)}\{(1, 2), (1, 3), (2, 4)\} — not a function, since 11 has two images
- {(1,5),(2,5),(3,5)}\{(1, 5), (2, 5), (3, 5)\} — a function; different inputs may share an output

Worked examples — graphs.

- y=x2y = x^2 — every vertical line meets it once, so it is a function
-
x2+y2=25x^2 + y^2 = 25
— the line x=3x = 3 meets it at (3,4)(3, 4) and (3,−4)(3, -4), so it is not a function of xx
- x=y2x = y^2 — x=4x = 4 gives y=2y = 2 and y=−2y = -2, so not a function of xx

An everyday example. On a vending machine, two buttons may give the same packet of biscuits, which is allowed, but one button must never give two different items.

The substance. Many-one is fine; one-many is not.

What are the domain, range and graph of the identity, constant, polynomial, rational, modulus, signum and greatest-integer functions?

Each standard real function has a characteristic domain, range and graph shape, which you should be able to sketch and state from memory.

- Identity f(x)=xf(x) = x: domain R\mathbb{R}, range R\mathbb{R}; the line y=xy = x
- Constant f(x)=cf(x) = c: domain R\mathbb{R}, range {c}\{c\}; a horizontal line
- Polynomial, e.g. f(x)=x2f(x) = x^2: domain R\mathbb{R}, range [0,∞)[0, \infty); a parabola
- Rational, e.g. f(x)=1xf(x) = \frac{1}{x}: domain and range R−{0}\mathbb{R} - \{0\}; a hyperbola
- Modulus f(x)=∣x∣f(x) = |x|: domain R\mathbb{R}, range [0,∞)[0, \infty); a V shape
- Signum:

sgn⁡x={1,x>00,x=0−1,x<0range {−1,0,1}\operatorname{sgn} x = \begin{cases} 1, & x > 0 \\ 0, & x = 0 \\ -1, & x < 0 \end{cases} \qquad \text{range } \{-1, 0, 1\}

- Greatest integer f(x)=[x]f(x) = [x], the greatest integer not exceeding xx: domain R\mathbb{R}, range Z\mathbb{Z}; a staircase

Worked examples.

[2.7]=2[5]=5[−2.7]=−3sgn⁡(−4)=−1∣−4∣=4[2.7] = 2 \qquad [5] = 5 \qquad [-2.7] = -3 \qquad \operatorname{sgn}(-4) = -1 \qquad |-4| = 4

An everyday example. Age written in completed years on a form is the greatest integer function: someone aged 15.815.8 years writes 1515.

The trap. [−2.7]=−3[-2.7] = -3, not −2-2, because −3-3 is the greatest integer that does not exceed −2.7-2.7.

How do you find the domain and range of a real function given by a formula?

For the domain, exclude values that make a denominator zero or make an expression under a square root negative; for the range, solve y=f(x)y = f(x) for xx and see which values of yy are allowed.

Domains:


f(x)=x2+1x−3:  R−{3}f(x)=1x2−4:  R−{−2,2}f(x) = \frac{x^2 + 1}{x - 3}: \; \mathbb{R} - \{3\} \qquad f(x) = \frac{1}{x^2 - 4}: \; \mathbb{R} - \{-2, 2\}
f(x)=x−2:  [2,∞)f(x)=1x−1:  (1,∞)f(x) = \sqrt{x - 2}: \; [2, \infty) \qquad f(x) = \frac{1}{\sqrt{x - 1}}: \; (1, \infty)

Domain and range together. For f(x)=9−x2f(x) = \sqrt{9 - x^2}, we need 9−x2≥09 - x^2 \ge 0, so the domain is [−3,3][-3, 3] and the range is [0,3][0, 3].

Range by solving for xx. For f(x)=2x+1x−3f(x) = \frac{2x + 1}{x - 3}:

y(x−3)=2x+1x(y−2)=1+3yx=1+3yy−2y(x - 3) = 2x + 1 \qquad x(y - 2) = 1 + 3y \qquad x = \frac{1 + 3y}{y - 2}

So y≠2y \ne 2, and the range is R−{2}\mathbb{R} - \{2\}.

Worked example. f(x)=x2+2f(x) = x^2 + 2 has range [2,∞)[2, \infty), since x2≥0x^2 \ge 0.

An everyday example. A formula for the side of a square plot from its area, s=As = \sqrt{A}, only makes sense for A≥0A \ge 0 — its domain is set by reality.

The substance. A square root in a denominator needs a strictly positive argument, which is why (1,∞)(1, \infty) is open at 11.

How do you add, subtract, multiply and divide real functions, and what is the domain of the result?

Combine the formulas point by point, and take the domain as the intersection of the two domains, also removing any values that make the divisor function zero.

Worked example 1. f(x)=x+2f(x) = x + 2 and g(x)=x2−4g(x) = x^2 - 4, both with domain R\mathbb{R}.

(f+g)(x)=x2+x−2(f−g)(x)=−x2+x+6(f + g)(x) = x^2 + x - 2 \qquad (f - g)(x) = -x^2 + x + 6
(fg)(x)=(x+2)(x2−4)=x3+2x2−4x−8(fg)(x) = (x + 2)(x^2 - 4) = x^3 + 2x^2 - 4x - 8
(fg)(x)=x+2x2−4=1x−2,domain R−{−2,2}\left(\frac{f}{g}\right)(x) = \frac{x + 2}{x^2 - 4} = \frac{1}{x - 2}, \quad \text{domain } \mathbb{R} - \{-2, 2\}

Worked example 2. f(x)=x−1f(x) = \sqrt{x - 1} with domain [1,∞)[1, \infty), and g(x)=5−xg(x) = \sqrt{5 - x} with domain (−∞,5](-\infty, 5].

domain of f+g=[1,5]domain of fg=[1,5)\text{domain of } f + g = [1, 5] \qquad \text{domain of } \frac{f}{g} = [1, 5)
(f+g)(3)=2+2=22(f + g)(3) = \sqrt{2} + \sqrt{2} = 2\sqrt{2}

An everyday example. A tailor's total monthly cost is a fixed-cost function plus a cost that depends on the number of garments — the sum of two functions.

The substance. Cancelling does not restore excluded values: fg\frac{f}{g} above is still undefined at x=−2x = -2.
Exam tip

What earns full marks on functions?

State domain and range in correct interval or set notation, sketch standard graphs with key points marked, and show the conditions used to find a domain.

- Function test: every element has exactly one image
- Vertical line test for graphs
- Signum: values 11, 00, −1-1; greatest integer: round down
- Domain: denominators ≠0\ne 0, square-root arguments ≥0\ge 0
- Range: solve y=f(x)y = f(x) for xx
- Combined functions: intersect domains; exclude zeros of the divisor

The trap. Writing [−x]=−[x][-x] = -[x]. [−2.7]=−3[-2.7] = -3 while −[2.7]=−2-[2.7] = -2.
Did you know

Why does multiplying the signum of x by the modulus of x give back x?

The modulus ∣x∣|x| keeps the size of a number and throws away its sign. The signum sgn⁡x\operatorname{sgn} x keeps only the sign.

Multiply them and you put the number back together:

sgn⁡(−4)×∣−4∣=−1×4=−4sgn⁡(3)×∣3∣=1×3=3\operatorname{sgn}(-4) \times |-4| = -1 \times 4 = -4 \qquad \operatorname{sgn}(3) \times |3| = 1 \times 3 = 3

So sgn⁡x⋅∣x∣=x\operatorname{sgn} x \cdot |x| = x for every real xx, including 00. Every number is simply a sign times a size.
Exam relevance

How are domain, range and special functions tested in JEE Main?

Functions are part of the JEE Main unit Sets, Relations and Functions, continued in Class 12 Relations and Functions, and they underpin Limits, Continuity and Differentiability.

What gets asked. Domains and ranges of combined rational and square-root expressions, graphs of modulus and greatest-integer functions, and limits and continuity of functions involving [x][x], ∣x∣|x| and sgn⁡x\operatorname{sgn} x, where the jumps and corners of their graphs matter.

Question types. Multiple-choice and numerical-value questions; JEE Advanced adds harder domain and range problems.

The trap that costs marks. Treating [−x][-x] as −[x]-[x], which fails for every non-integer.
Key takeaways

What must you be able to do from this part?

- Function: each input has exactly one output; vertical line test for graphs
- Standard functions: identity, constant, polynomial, rational, modulus, signum, greatest integer — with domains and ranges
- [2.7]=2[2.7] = 2, [−2.7]=−3[-2.7] = -3; sgn⁡x∈{−1,0,1}\operatorname{sgn} x \in \{-1, 0, 1\}
- Domains: x−2\sqrt{x - 2} gives [2,∞)[2, \infty); 1x2−4\frac{1}{x^2 - 4} gives R−{−2,2}\mathbb{R} - \{-2, 2\}
- Range of 2x+1x−3\frac{2x + 1}{x - 3} is R−{2}\mathbb{R} - \{2\}
- Combining functions: intersect domains and exclude zeros of the divisor

Sketch y=[x]y = [x] from x=−2x = -2 to x=3x = 3, marking which end of each step is a filled dot.

Ready to put this into practice?

Create a personalized quiz on this exact topic — free to start.

Create your own quiz on Relations and Functions — Part 2Create a free account
← Back to all articles