Injective and Surjective Functions

Injective functions

A function is injective if every element of the domain maps to a unique element of the codomain. This means that if a function is injective, no two elements from the domain can map to the same element in the codomain. For example, if we consider f:ABf: A\to B to be an injective function, then by definition, for any two elements a,ba,b from AA such that aba\ne b, we have f(a)f(b)f(a) \ne f(b). An injective function is also called a one-to-one function. To define an injective function, the codomain must have at least as many elements as are there in the domain.

Examples

Take the following sets:

Get hands-on with 1200+ tech skills courses.