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 to is a relation in which **every element of has exactly one image in .** It is written , and the image of is .
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.
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.
- — a function
- — not a function, since has two images
- — a function; different inputs may share an output
Worked examples — graphs.
- ** — every vertical line meets it once, so it is a function
- ** — the line meets it at and , so it is not a function of
- **** — gives and , so not a function of
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.
Worked examples — sets of pairs.
- — a function
- — not a function, since has two images
- — a function; different inputs may share an output
Worked examples — graphs.
- ** — every vertical line meets it once, so it is a function
- ** — the line meets it at and , so it is not a function of
- **** — gives and , so not a function of
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 : domain , range ; the line
- Constant : domain , range ; a horizontal line
- Polynomial, e.g. : domain , range ; a parabola
- Rational, e.g. : domain and range ; a hyperbola
- Modulus : domain , range ; a V shape
- Signum:
- Greatest integer , the greatest integer not exceeding : domain , range ; a staircase
Worked examples.
An everyday example. Age written in completed years on a form is the greatest integer function: someone aged years writes .
The trap. **, not **, because is the greatest integer that does not exceed .
- Identity : domain , range ; the line
- Constant : domain , range ; a horizontal line
- Polynomial, e.g. : domain , range ; a parabola
- Rational, e.g. : domain and range ; a hyperbola
- Modulus : domain , range ; a V shape
- Signum:
- Greatest integer , the greatest integer not exceeding : domain , range ; a staircase
Worked examples.
An everyday example. Age written in completed years on a form is the greatest integer function: someone aged years writes .
The trap. **, not **, because is the greatest integer that does not exceed .
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 for and see which values of are allowed.
Domains:**
Domain and range together. For , we need , so the domain is and the range is .
**Range by solving for .** For :
So , and the range is .
Worked example. has range , since .
An everyday example. A formula for the side of a square plot from its area, , only makes sense for — its domain is set by reality.
The substance. A square root in a denominator needs a strictly positive argument, which is why is open at .
Domains:**
Domain and range together. For , we need , so the domain is and the range is .
**Range by solving for .** For :
So , and the range is .
Worked example. has range , since .
An everyday example. A formula for the side of a square plot from its area, , only makes sense for — its domain is set by reality.
The substance. A square root in a denominator needs a strictly positive argument, which is why is open at .
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. and , both with domain .
Worked example 2. with domain , and with domain .
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: above is still undefined at .
Worked example 1. and , both with domain .
Worked example 2. with domain , and with domain .
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: above is still undefined at .
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 , , ; greatest integer: round down
- Domain: denominators , square-root arguments
- Range: solve for
- Combined functions: intersect domains; exclude zeros of the divisor
The trap. Writing . ** while .**
- Function test: every element has exactly one image
- Vertical line test for graphs
- Signum: values , , ; greatest integer: round down
- Domain: denominators , square-root arguments
- Range: solve for
- Combined functions: intersect domains; exclude zeros of the divisor
The trap. Writing . ** while .**
Did you know
Why does multiplying the signum of x by the modulus of x give back x?
The modulus keeps the size of a number and throws away its sign. The signum keeps only the sign.
Multiply them and you put the number back together:
So for every real , including . Every number is simply a sign times a size.
Multiply them and you put the number back together:
So for every real , including . 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 , and , 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 as **, which fails for every non-integer.
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 , and , 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 as **, 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
- **, **;
- Domains: gives ; gives
- Range of is
- Combining functions: intersect domains and exclude zeros of the divisor
Sketch from to , marking which end of each step is a filled dot.
- Standard functions: identity, constant, polynomial, rational, modulus, signum, greatest integer — with domains and ranges
- **, **;
- Domains: gives ; gives
- Range of is
- Combining functions: intersect domains and exclude zeros of the divisor
Sketch from to , marking which end of each step is a filled dot.