Euler Hall — free maths guides

Use that a nonconstant linear function has one input for each output

Apply the horizontal line test to decide whether a function is one-to-one. The idea in plain words, a worked example, and a check with the answers shown — part of the free Precalculus guides.

The horizontal line test

A function has an inverse only if no two inputs give the same output. Iff(3)=9f(3)=9 andf(−3)=9f(-3)=9, then a rule that undoesff would be asked to send 9 back to both 3 and−3-3 — and a function cannot do that.

The test is graphical: draw horizontal lines. If any of them meets the graph twice, the function is not one-to-one and has no inverse on that domain.

For polynomials the test reduces to a statement about exponents and slopes: a non-constant line always passes, a parabola never does, and an absolute value never does.

Why the test is exactly the condition

An inverse has to be a function: one output for each input. Feeding it a valueyy must produce a single answer, so exactly onexx may satisfyf(x)=yf(x)=y.

A horizontal line at heightyy collects every input where the graph reachesyy. If it meets the graph once, that value ofyy has one preimage. If twice, it has two, and the inverse cannot choose.

So the horizontal line test is not a shortcut for the definition. It is the definition, drawn.

Worked example

Decide whether each function is one-to-one.

*f(x)=3x−7f(x)=3x-7.** Slope 3, not zero. Every horizontal line meets the line once. One-to-one.

*g(x)=∣x∣g(x)=|x|.** The liney=4y=4 meets the graph atx=4x=4 andx=−4x=-4. Not one-to-one on all reals.

*h(x)=x4h(x)=x^4.** An even power:h(2)=16=h(−2)h(2)=16=h(-2). Not one-to-one.

*k(x)=6k(x)=6.** Constant: every input gives 6, so the liney=6y=6 meets the graph everywhere. Not one-to-one.

Check the pattern. A non-constant linear function is always invertible; a polynomial of even degree never is on all reals; one of odd degree may be, depending on its shape.

By the end you can
  • Apply the horizontal line test to decide whether a function is one-to-one
  • Say why a repeated output prevents an inverse
  • Recognise which families are and are not one-to-one
Check yourself

(a) Isf(x)=4x+1f(x)=4x+1 one-to-one?

(b) Isg(x)=(x−2)2g(x)=(x-2)^2 one-to-one on all reals? Show a repeated output.

(c) Is every increasing function one-to-one?

Answers

(a) Yes: a non-zero slope means each horizontal line meets it once.

(b) No:g(1)=1g(1)=1 andg(3)=1g(3)=1, so the liney=1y=1 meets the graph twice.

(c) Yes. If a function always rises, it cannot take the same value twice — the second input would have to give a larger output.

Work out where to start — free, no accountAnswer six real questions — free, no account