A Function assigns to each element of a set, exactly one element of a related set. Functions find their application in various fields like representation of the computational complexity of algorithms, counting objects, study of sequences and strings, to name a few. The third and final chapter of this part highlights the important aspects of functions.
Function - Definition
A function or mapping (Defined as ) is a relationship from elements of one set X to elements of another set Y (X and Y are non-empty sets). X is called Domain and Y is called Codomain of function ‘f’.
Function ‘f’ is a relation on X and Y such that for each , there exists a unique such that . ‘x’ is called pre-image and ‘y’ is called image of function f.
A function can be one to one or many to one but not one to many.
Injective / One-to-one function
A function is injective or one-to-one function if for every , there exists at most one such that .
This means a function f is injective if implies .
Example
- is injective.
- is injective.
- is not injective as
Surjective / Onto function
A function is surjective (onto) if the image of f equals its range. Equivalently, for every , there exists some such that . This means that for any y in B, there exists some x in A such that .
Example
- is surjective.
- is not surjective since we cannot find a real number whose square is negative.
Bijective / One-to-one Correspondent
A function is bijective or one-to-one correspondent if and only if f is both injective and surjective.
Problem
Prove that a function defined by is a bijective function.
Explanation − We have to prove this function is both injective and surjective.
If , then and it implies that .
Hence, f is injective.
Here,
So, which belongs to R and .
Hence, f is surjective.
Since f is both surjective and injective, we can say f is bijective.
Inverse of a Function
The inverse of a one-to-one corresponding function , is the function , holding the following property −
The function f is called invertible, if its inverse function g exists.
Example
- A Function , is invertible since it has the inverse function .
- A Function is not invertiable since this is not one-to-one as .
Composition of Functions
Two functions and can be composed to give a composition . This is a function from A to C defined by
Example
Let and , find and .
Solution
Hence,
Some Facts about Composition
- If f and g are one-to-one then the function is also one-to-one.
- If f and g are onto then the function is also onto.
- Composition always holds associative property but does not hold commutative property.
Comments
Post a Comment