Is It a Function Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter up to six ordered pairs (x, y). The calculator applies the definition of a function: each x-value has exactly one y-value. It also tells you whether the relation is one-to-one.
Result
Is it a function?
Is it one-to-one?
- Pairs of points that break the function rule
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of ordered pairs to check: choose 2 pairs, 3 pairs, 4 pairs, 5 pairs or 6 pairs.
- Pair 1, x: enter a number.
- Pair 1, y: enter a number.
- Pair 2, x: enter a number.
- Pair 2, y: enter a number.
- Pair 3, x: enter a number.
- Pair 3, y: enter a number.
- Pair 4, x: enter a number.
- Pair 4, y: enter a number.
- Pair 5, x: enter a number.
- Pair 5, y: enter a number.
- Pair 6, x: enter a number.
- Pair 6, y: enter a number.
- Read the result: Is it a function?; the panel also shows Is it one-to-one? and Pairs of points that break the function rule.
How this calculator works
A relation is a function when no x-value is paired with two different y-values. The calculator compares every pair of points: same x and different y breaks the rule.
The same point written twice, such as (2, 4) and (2, 4), does not break the rule.
A function is one-to-one when, in addition, no y-value comes from two different x-values. On a graph, these are the vertical line test and the horizontal line test.
Worked example
| Number of ordered pairs to check | 4 pairs |
|---|---|
| Pair 1, x | -1 |
| Pair 1, y | 1 |
| Pair 2, x | 0 |
| Pair 2, y | 0 |
| Pair 3, x | 1 |
| Pair 3, y | 1 |
| Pair 4, x | 2 |
| Pair 4, y | 4 |
| Pair 5, x | 3 |
| Pair 5, y | 9 |
| Pair 6, x | 4 |
| Pair 6, y | 16 |
| Pairs of points that break the function rule | 0 |
|---|---|
| Is it a function? | Yes, this relation is a function |
| Is it one-to-one? | Not one-to-one: y = 1 comes from two different x-values |
Frequently asked questions
Is {(1, 2), (2, 2), (3, 2)} a function?
Yes. Each x-value has one y-value; several x-values sharing the same y is allowed. It is not one-to-one.
Is {(3, 1), (3, 5)} a function?
No. The input 3 has two outputs, 1 and 5. A vertical line at x = 3 would cross both points.
Can I enter decimals or negative numbers?
Yes. Coordinates are compared exactly as entered, so 0.5 and 1/2 written as 0.5 count as the same value.