👉 In mathematics, a surjective function is a function that maps each element of its domain to exactly one element of its codomain. This means that every element in the codomain has at least one preimage in the domain. For example, consider the function f(x) = x^2 - 4x + 3 defined on the set of all real numbers. The domain of f is all real numbers since it is a constant function and can be represented by any real number. However,