{{ 'ml-label-loading-course' | message }}
{{ toc.name }}
{{ toc.signature }}
{{ tocHeader }} {{ 'ml-btn-view-details' | message }}
{{ tocSubheader }}
{{ 'ml-toc-proceed-mlc' | message }}
{{ 'ml-toc-proceed-tbs' | message }}
Lesson
Exercises
Recommended
Tests
An error ocurred, try again later!
Chapter {{ article.chapter.number }}
{{ article.number }}. 

{{ article.displayTitle }}

{{ article.intro.summary }}
Show less Show more expand_more
{{ ability.description }} {{ ability.displayTitle }}
Lesson Settings & Tools
{{ 'ml-lesson-number-slides' | message : article.intro.bblockCount }}
{{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount }}
{{ 'ml-lesson-time-estimation' | message }}
Method

Horizontal Line Test

The horizontal line test is a graphical method to determine whether a given function is invertible. It involves drawing multiple horizontal lines over the entire range of a function. If any horizontal line intersects the function's graph more than once, the function is not invertible. For example, consider the following two functions.
Function I Function II
To determine whether they are invertible, follow these two steps.
1
Draw the Function on the Coordinate Plane
expand_more
Draw each function on the coordinate plane manually or using a graphing calculator or other mathematical software.
Functions I and II graphed


2
Draw a Horizontal Line and Look at the Intersection Points
expand_more
Draw horizontal lines at different places through the coordinate plane. If one of the lines intersects the graph more than once, the function is not invertible. Conversely, if no horizontal line cuts the graph more than once, the function is invertible.
Three horizontal lines and their points of intersections with the functions I and II
Notice that cuts the first graph at three different points. This means that Function I does not pass the horizontal line test and, therefore, is not invertible. However, all of the horizontal lines drawn over Function II only intersect the graph one time at most. Because of this, Function II is invertible.

  • Function I is not invertible.
  • Function II is invertible.

Keep in mind that before stating whether a function is invertible, the drawn horizontal lines have to cover the entire range to ensure that no horizontal line cuts the graph more than once.

Why

Intuition Behind the Method

Recall that a function is called invertible if its inverse relation is also a function. For a function to be invertible, it has to be a one-on-one, or injective, function.

Injective Function

A function such that for every in the domain, there is exactly one unique that satisfies

This is why drawing multiple horizontal lines (or one horizontal line, which then is moved across the entire range of the function) allows to check whether there are any values that belong to more than one value, making them not unique.
Moving a horizontal line across two different functions
Note that during this test, it is assumed that the graph of a function continues without any significant change beyond the boundaries of the coordinate plane. If this were not the case, it could never be determined from a graph whether a function is invertible or not.
Loading content