The identity function for the operation of composition is .
The identity function is the function for which the output is equal to the input. If the input is , then the identity function is .Although composition of functions is not generally commutative, composition with is commutative. This is because any function composed with the identity function is itself, regardless of the order of the composition. For and any function :
The graph of the identity function is a line with a slope of 1 and a -intercept of zero. For every point on the line, the -value is the same as the -value.
A function is one-to-one if every output value has a unique input value. The horizontal line test and algebraic methods are used to determine whether a function is one-to-one.
For all functions, each input corresponds to exactly one output, which can be determined by a vertical line test. In a one-to-one function, each output corresponds to exactly one input.
In a mapping diagram, this means that every element of the domain is mapped to only one element in the range, and vice versa. On a graph, the horizontal line test uses horizontal lines to determine whether a function is one-to-one; if any horizontal line intersects the graph in more than one point, the graph is not one-to-one.
Any two opposite values, such as 1 and –1, will have the same output. So, the function is not one-to-one. For other functions, it may be easier to determine whether the function is one-to-one using the horizontal line test on a graph.
|Not a Function||Function, Not One-to-One||One-to-One Function|
|The mapping shows that one domain value has two different range values.||The mapping shows that every domain value has exactly one range value, but a range value has two different domain values.||The mapping shows that every domain value has exactly one range value and that each range value only has one domain value.|
|The graph shows that an -value has two different -values.||The graph shows that every -value has exactly one -value but that a -value has two different -values.||
The graph shows that every -value has exactly one -value and that each
-value has only one -value.