Functions

Topic 2 - Functions (Detailed Explanation)

What is a Function?

A function is a special type of relation where each element of the domain is associated with exactly one element of the codomain. This means one input gives only one output.

Example:

If f(x) = x² and A = {1,2,3}

Then f(A) = {1,4,9}

Key Idea to Remember

Valid Function (Arrow Diagram)

Each element of domain has exactly one image.

Domain

1
2
3

Codomain

a
b
c

Each input has exactly one output → valid function

Many-to-One Function

Different inputs can have same output. This is still a function.

Domain

1
2

Codomain

a

Multiple inputs → same output (✔ valid function)

Not a Function

If one input has more than one output, it is not a function.

Domain

1

Codomain

a
b

One input → two outputs (❌ not a function)