For a real function of a real variable, injectivity and surjectivity can be recognised by looking at how horizontal lines meet the graph. Let us compare (not injective) and (injective): the line intersects the first at two points, the second at just one.
is not injective: the line meets it at two points, with abscissae .
is injective: the line meets it at a single point, with abscissa .
Remark — Graphical tests
For a real function of a real variable, with graph in the Cartesian plane:
- is injective every horizontal line intersects the graph at at most one point.
- is surjective (onto the codomain ) every horizontal line intersects the graph at at least one point.
- is bijective every horizontal line intersects the graph at exactly one point.
Example
- on is neither injective () nor surjective onto (it does not reach negative values).
- on is injective and surjective: bijective.
- from to is bijective.
Links
Topics: Functions and properties
Concepts: Bijective function · Injective function · Surjective function · Horizontal line test
Functions: Cubic function · Homographic function · Parabola
Skills: Interpreting a graph · Sketching a graph