1.7Functions
Covers IGNOU MCS-212 §1.5 (first part), E22–E25; programme guide: some important functions
A function is the most important kind of relation: to each input it gives exactly one output. Every program routine that returns a value, every lookup table and every formula is a function. This section defines functions precisely and looks at common examples.
So a relation is a function when (1) every element of has an image, and (2) no element of has two images.
Functions and non-functions
| Rule from to | Function? | Reason |
|---|---|---|
| , , | yes | every has one square in (11 unused — allowed) |
| , , | no | |
| and , … | no | has two images |
| each IGNOU student their enrolment number | yes | each student has one number |
| each mother her children | no | a mother may have several children |
Some important functions
| Name | Definition | Example |
|---|---|---|
| constant | for all | |
| identity | ||
| floor (greatest integer) | = largest integer | , |
| ceiling | = smallest integer | |
| modulus (absolute value) | if , if |
Key takeaways
- A function gives every element of exactly one image in .
- Domain = inputs, codomain = declared targets, range = actual outputs.
- Not every relation is a function; every function is a relation.
- Floor rounds down, ceiling rounds up, modulus removes the sign.
Practice questions
Answer on paper first, then check. The explanation matters more than the letter you chose.
Question 6 · short answer
Let , and . Is a function from to ? Give its domain, codomain and range.
Show worked answer
, , , ; each element of has exactly one image, and all images are in , so is a function. Domain , codomain , range (125 has no pre-image).