Topic 2 - Functions (Detailed Explanation)
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}
Each element of domain has exactly one image.
Each input has exactly one output → valid function
Different inputs can have same output. This is still a function.
Multiple inputs → same output (✔ valid function)
If one input has more than one output, it is not a function.
One input → two outputs (❌ not a function)