Course contentsShow
← Mathematics
Lesson 562 of 3,12114. Functions in DepthFree lesson

One-to-One Functions

Understand the horizontal line test and why only one-to-one functions have inverses.

One-to-One Functions

What You'll Learn

You'll discover what makes a function "one-to-one" and why this special property determines whether a function can have an inverse.

What Does One-to-One Mean?

A one-to-one function (also called an injective function) is one where every output comes from exactly one input. In other words, no two different inputs produce the same output.

Think of it like assigned parking spaces: if each car (input) has its own unique spot (output), and no two cars share a spot, that's one-to-one. But if two cars could park in the same spot, it's not one-to-one.

The Horizontal Line Test

To check if a function is one-to-one from its graph, use the horizontal line test: draw horizontal lines across the graph. If any horizontal line crosses the graph more than once, the function is NOT one-to-one.

Why? Because a horizontal line represents a single output value (y-value). If it hits the graph twice, that means two different inputs produced the same output—violating the one-to-one rule.

Example:

  • f(x) = x² is NOT one-to-one because f(2) = 4 and f(-2) = 4. A horizontal line at y = 4 crosses the parabola twice.
  • g(x) = x³ IS one-to-one because every output corresponds to exactly one input. No horizontal line crosses it more than once.

Why Does This Matter for Inverses?

Only one-to-one functions have inverses that are also functions. If a function isn't one-to-one, "reversing" it would create ambiguity—you wouldn't know which original input to return.

Key Takeaway: A function is one-to-one if it passes the horizontal line test (no horizontal line crosses more than once), and only one-to-one functions have inverse functions.