Two functions that look algebraically identical may not be equal if their domains differ. This section defines function equality precisely and uses examples to show why domain is an essential part of a function's identity.
Quick Reference
| Condition for | Requirement |
|---|---|
| Same domain | |
| Same outputs | for every in the common domain |
| Consequence | Graphs of and are identical |
When Are Two Functions Equal?
Consider and .
Algebraically, when . But , while is undefined (division by zero). So but . Their domains differ, and their graphs differ: the graph of has a hole at $(0, 0)$ that the graph of does not.


Two functions and are equal (or identical) if and only if:
- They have the same domain: .
- for every in their domains.
If and are equal, their graphs are identical and their ranges are equal: .
Examples
Consider and . Are and equal?
Solution
Simplify : So for all . However, the domains differ: Since their domains are not equal, and are not equal functions.
Let and . Are and equal?
Solution
For all real : Both functions have domain and produce identical outputs. Therefore, and are equal.
Let and . Are and equal?