10217

# Horizontal and Vertical Line Tests

A relation is a set of ordered pairs . For example, the set of points at distance 1 from the origin—the unit circle—is a relation. The domain is the set of first values . The range is the set of last values .
When every element in the domain corresponds to exactly one element in the range, the relation is a function. A function passes the vertical line test—no vertical line passes through more than one point within the relation. The unit circle is thus not a function. The half-circle above the axis is the function .
The horizontal line test, which tests if any horizontal line intersects a graph at more than one point, can have three different results when applied to functions:
1. If no horizontal line intersects the function in more than one point, it is one-to-one (or injective).
2. If every horizontal line intersects the function in at least one point, it is onto (or surjective).
3. If every horizontal line intersects the function in exactly one point, it is one-to-one and onto (or bijective).
Suppose is a function with domain and range . The inverse of is a function with domain and range such that if and only if . For the inverse to exist, the original function must be one-to-one and onto.
Let be the set of real numbers. The inverse of with domain and range is the function with the same domain and range.
Many functions that come up in practice are either not one-to-one or not onto. For example, because trigonometric functions are periodic they are many-to-one on . Also, except for the tangent and arctangent functions, the trig functions are not onto. For example, there is no real number such that .

### PERMANENT CITATION

 Share: Embed Interactive Demonstration New! Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details » Download Demonstration as CDF » Download Author Code »(preview ») Files require Wolfram CDF Player or Mathematica.

 RELATED RESOURCES
 The #1 tool for creating Demonstrations and anything technical. Explore anything with the first computational knowledge engine. The web's most extensive mathematics resource. An app for every course—right in the palm of your hand. Read our views on math,science, and technology. The format that makes Demonstrations (and any information) easy to share and interact with. Programs & resources for educators, schools & students. Join the initiative for modernizing math education. Walk through homework problems one step at a time, with hints to help along the way. Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet. Knowledge-based programming for everyone.