Evaluate f(x) = ax squared + bx + c and test whether it is one-to-one, using the horizontal line test, a counterexample or the inverse.
One To One Function Calculator
Evaluate your quadratic or linear function and get a proved one-to-one verdict — counterexample included when it fails.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · One To One Function Result
Calculated locally in your browser
—
Name
—
Coefficient a (x squared)
—
Coefficient b (x)
—
Constant c
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
A function is one-to-one if different inputs never share an output. A quadratic f of x equals a x squared plus b x plus c is never one-to-one on all real numbers because its parabola folds at the vertex x equals negative b over two a, where mirror inputs give equal outputs.
- Horizontal line test: a graph failing any horizontal line twice is not one-to-one
- Every quadratic on all reals fails; every non-constant linear function passes
- One-to-one is the condition for a function to have an inverse on its whole range
One-to-one verdicts by function family
Reference values for this calculator.
| Function type | One-to-one on all reals? | Why |
|---|---|---|
| Quadratic a != 0 | No | Folds at the vertex; mirror inputs share an output |
| Linear b != 0 | Yes | Strictly increasing or decreasing |
| Constant | No | Every input maps to one output |
| Cubic with positive leading term, no turning fold (e.g. x^3) | Yes | Strictly increasing everywhere |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Ideas enhancement: instead of a bare yes/no, the tool constructs the explicit counterexample when the function fails — two different inputs around the vertex with the same output — and gives the inverse function when it passes, so the verdict is proved, not just asserted.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Classic failing quadratic
a=1, b=-4, c=3, x=5
| Calculation | Steps |
|---|---|
| f(5) = 25 - 20 + 3 = 8. Vertex x = 4/2 = 2. Counterexample: f(1) = 1 - 4 + 3 = 0 and f(3) = 9 - 12 + 3 = 0. | f(5) = 8; not one-to-one, proved by f(1) = f(3) = 0. |
Result
Example 2
Passing linear function
a=0, b=2, c=1, x=4
| Calculation | Steps |
|---|---|
| f(4) = 2x4 + 1 = 9. Slope 2 is non-zero, so the function is one-to-one. Inverse: (y - 1) / 2; check (9 - 1) / 2 = 4, the original x. | f(4) = 9; one-to-one, inverse verified. |
Result
Example 3
Symmetric parabola
a=2, b=0, c=-1, x=3
| Calculation | Steps |
|---|---|
| f(3) = 18 - 1 = 17. Vertex x = 0. Counterexample: f(-1) = 2 - 1 = 1 and f(1) = 2 - 1 = 1. | f(3) = 17; not one-to-one, proved by f(-1) = f(1) = 1. |
Result
How to use this calculator
Step 1
Enter the coefficients of f(x) = a x^2 + b x + c — set a = 0 if your function is actually linear.
Step 2
Enter the x value where you want f(x) evaluated.
Step 3
Read f(x) as the headline and the one-to-one verdict in the verdict card.
Step 4
If it fails, note the counterexample pair in the verdict: two inputs, one output, which is the proof.
Step 5
If it passes as a linear function, use the inverse shown in the details to work backwards from an output to its input.
Frequently asked questions
What does one-to-one mean?
A function is one-to-one (injective) if no two different inputs ever produce the same output. Each output comes from at most one input, which is exactly the condition a function needs before it can have an inverse defined on its whole range.
Can a quadratic ever be one-to-one?
Not on all real numbers — its graph is a parabola that folds at the vertex, so mirror points share outputs. It IS one-to-one if you restrict the domain to one side of the vertex, for example x >= vertex x, which is how square-root inverses are built from x^2 on x >= 0.
What is the horizontal line test?
Draw any horizontal line across the graph. If any horizontal line touches the graph more than once, two inputs share an output and the function is not one-to-one. A parabola fails immediately; a sloped straight line passes every horizontal line exactly once.
Why does the calculator show a counterexample?
A single concrete pair of inputs with equal outputs is a complete proof that a function is not one-to-one — no argument about the whole graph is needed. For f(x) = x^2 - 4x + 3 the vertex is at x = 2, and f(1) = f(3) = 0 settles the question.
If a function is one-to-one, how do I find its inverse?
Swap x and y in y = f(x) and solve for y. For linear f(x) = bx + c the inverse is f^-1(y) = (y - c) / b. This calculator prints the inverse for the linear case and verifies it by mapping f(x) back to your x.
About this calculator
The One To One Function Calculator evaluates f(x) = a x^2 + b x + c at your chosen x and decides whether the function is one-to-one (injective) on the real numbers. When it is not, it proves the verdict with an explicit pair of different inputs that share an output; when it is (the linear case), it supplies the inverse function.
One-to-one is about outputs never repeating. If f(1) and f(3) are both 0, then knowing the output is 0 cannot tell you the input — the function has 'forgotten' information, and no inverse can recover it. That single collision is a complete disproof, which is why this calculator leads with the counterexample pair rather than a vague claim about the shape of the graph.
Quadratics always collide on the full real line because a parabola is symmetric about its vertex, x = -b/2a. Points equally far either side of the vertex sit at the same height. The verdict changes only when the domain is cut down to one side of the vertex — the standard trick that turns x^2 (not one-to-one) into its inverse pairing with the square root on non-negative inputs.
Linear functions with a non-zero slope never collide: the graph climbs or falls steadily, every horizontal line meets it exactly once, and the inverse is another linear function. The constant function is the extreme opposite — one output for infinitely many inputs — and the calculator calls that out as its own case rather than lumping it in with quadratics.
Use it for precalculus and algebra homework on injectivity and inverses, to check whether an inverse can exist before trying to find one, and to generate a clean counterexample for an exam-style 'prove this is not one-to-one' question.
How to calculate it yourself
Step 1
Find the vertex x-coordinate: x = -b / (2a) whenever a is not zero.
Step 2
Pick two inputs symmetric about the vertex, such as vertex minus 1 and vertex plus 1.
Step 3
Evaluate f at both: for a quadratic the outputs are always equal, proving it is not one-to-one.
Step 4
If a = 0, check the slope b: non-zero means one-to-one, and the inverse is (y - c) / b.
Real-life examples
Why a squared sensor reading cannot be undone
A displacement sensor reports the square of a signed deflection, y = x^2, and an engineer wants to recover the direction of movement from the reading alone.
A reading of y = 9 corresponds to x = 3 or x = -3 (deflection either way): f(3) = f(-3) = 9 with a=1, b=0, c=0. The sign is mathematically unrecoverable from y.
The sensor must record sign separately — the function is not one-to-one, so no inverse exists to rescue it.
Taxi fare inversion
A taxi charges a $3 flag fall plus $2 per mile, f(x) = 2x + 3. A passenger with a $19 fare wants to know how far they rode.
Linear with a=0, b=2, c=3, so it is one-to-one. Inverse: (19 - 3) / 2 = 8 miles. Check: f(8) = 19.
Exactly 8 miles — possible only because the fare function is one-to-one.
Ideas & use cases
- Exam-proof practice: before answering 'is it one-to-one?', run the tool and copy the counterexample structure — vertex, mirror pair, equal outputs — into your own working.
- Inverse readiness check: run any linear model (pricing, conversion, calibration) here first; a pass guarantees the back-calculation your spreadsheet needs actually exists.
- Domain-restriction play: note the vertex, then reason about which half of the parabola your problem really lives on — that is where restricted inverses like square roots come from.
Limitations & sources
- Tests quadratics and linear functions on the full real line only. Domain-restricted one-to-one behaviour (for example x^2 on x >= 0) and other function families are explained in the FAQs but not evaluated.
Sources: Injectivity and horizontal line test: standard precalculus texts (Stewart, Precalculus); OpenStax Algebra and Trigonometry, functions chapter
