One to One Functions | Definition & Tests
A one-to-one function, also known as an injective function, is a type of mathematical relationship where each unique input from the domain maps to a unique output in the co-domain. Think of it like assigning a unique identifier to every item: if two items have the same identifier, they must be the exact same item. 🎯
More formally, a function f: A → B
is considered one-to-one if for any two elements x₁
and x₂
in the domain A
:
- If
f(x₁) = f(x₂)
, then it must implyx₁ = x₂
. - Alternatively, if
x₁ ≠ x₂
, then it must implyf(x₁) ≠ f(x₂)
.
How to Test if a Function is One-to-One 🧐
There are two primary methods to test if a function is one-to-one:
The Horizontal Line Test (HLT) 📏 This is a graphical test.
- How it works: If you can draw any horizontal line that intersects the graph of the function at more than one point, then the function is not one-to-one. ❌
- Conversely, if every horizontal line you draw intersects the graph at at most one point (meaning it intersects once or not at all), then the function is one-to-one. ✅
The Algebraic Test This method uses the formal definition.
- How it works:
- Start by assuming
f(x₁) = f(x₂)
. - Use algebraic manipulation to show that this assumption forces
x₁
to be equal tox₂
. - If you can consistently arrive at
x₁ = x₂
, the function is one-to-one. If you find cases wherex₁ ≠ x₂
butf(x₁) = f(x₂)
(likex₁ = 2
andx₂ = -2
forf(x) = x²
), then it’s not one-to-one.
- Start by assuming
- How it works:
Examples to Understand One-to-One Functions 📖
Let’s look at some examples:
The Absolute Value Function:
f(x) = |x|
- Test: Using the Horizontal Line Test.
- If you plot
f(x) = |x|
, you’ll see a V-shaped graph. - Draw a horizontal line (for example, at
y = 2
). This line will intersect the graph at two points:x = 2
andx = -2
. - Since different inputs (
2
and-2
) produce the same output (2
), and a horizontal line intersects the graph at more than one point,f(x) = |x|
fails the HLT.
- If you plot
- Conclusion:
f(x) = |x|
is not a one-to-one function 🚫.
- Test: Using the Horizontal Line Test.
Exponential Functions:
f(x) = a^x
(wherea > 0
anda ≠ 1
)- Test: The sources state that exponential functions are either continuously increasing (when
a > 1
, e.g.,2^x
) or continuously decreasing (when0 < a < 1
, e.g.,(1/2)^x
) across their domain. - Rule: A function that is strictly increasing or strictly decreasing throughout its domain is always one-to-one.
- Conclusion: Exponential functions like
f(x) = 5^x
orf(x) = (1/2)^x
are one-to-one functions ✅. They will always pass the Horizontal Line Test.
- Test: The sources state that exponential functions are either continuously increasing (when
Logarithmic Functions:
f(x) = log_a x
(wherea > 0
anda ≠ 1
)- Test: Logarithmic functions are defined as the inverse of exponential functions. The sources establish that if a function is one-to-one, its inverse exists. Conversely, if a function’s inverse exists, the original function must be one-to-one.
- Rule: Similar to exponential functions, logarithmic functions are also either continuously increasing (when
a > 1
) or continuously decreasing (when0 < a < 1
). - Conclusion: Logarithmic functions are one-to-one functions ✅.
Practice Questions with Solutions 📝
Question 1: Is the function f(x) = x²
a one-to-one function on its entire domain R
? Explain using the concept of one-to-one functions. 🧐
Solution:
No, f(x) = x²
is not a one-to-one function on its entire domain R
.
- Reasoning (Algebraic): Let’s choose two different input values, for example,
x₁ = 3
andx₂ = -3
.f(x₁) = f(3) = 3² = 9
f(x₂) = f(-3) = (-3)² = 9
- Here, we have
x₁ ≠ x₂
(since3 ≠ -3
), butf(x₁) = f(x₂)
(both equal9
). This contradicts the definition of a one-to-one function, which requires different inputs to produce different outputs.
- Reasoning (Graphical - Horizontal Line Test): If you were to sketch the graph of
f(x) = x²
(a parabola opening upwards), you would observe that any horizontal line drawn above the x-axis (e.g.,y = 4
ory = 9
) intersects the parabola at two distinct points. For instance, the liney = 9
intersects atx = 3
andx = -3
. Since a horizontal line can intersect the graph at more than one point,f(x) = x²
fails the Horizontal Line Test and is therefore not one-to-one. 📏❌
Question 2: Consider the function f(x) = 7^x
. Is this function one-to-one? Justify your answer. 🤔
Solution:
Yes, the function f(x) = 7^x
is a one-to-one function. ✅
- Reasoning:
- The function
f(x) = 7^x
is an exponential function with a basea = 7
. Sincea > 1
, the sources confirm that this type of function is an increasing function across its entire domain. - A fundamental property stated in the sources is that if a function is increasing (or decreasing) throughout its domain, then it is necessarily one-to-one.
- Therefore, because
f(x) = 7^x
is a continuously increasing function, it guarantees that every unique inputx
will produce a unique outputf(x)
. Graphically, this means no horizontal line will ever intersect its graph at more than one point, so it passes the Horizontal Line Test.
- The function