2.2.4 · D4Functions

Exercises — Vertical line test for functions

2,714 words12 min readBack to topic

This page is a self-test ladder. Each problem is stated cleanly, then a collapsible solution sits right under it. Try the problem with the solution folded shut, then open it to check.

The whole page uses only one idea, borrowed from the parent Vertical line test for functions: a graph is a function when every vertical line hits it at most once. We build from "just look at a picture" (L1) up to "invent your own graph to order" (L5).

Before we start, one plain-language reminder of every symbol we will lean on:

Figure — Vertical line test for functions

Level 1 — Recognition

Goal: read a picture or an equation and say pass/fail. No algebra yet.

Exercise 1.1

Look at figure s02 below. Panel A is a straight slanted line. Panel B is a full circle. For each, say whether it passes the vertical line test.

Figure — Vertical line test for functions
Recall Solution 1.1

Panel A (slanted line): Slide a vertical line anywhere. At every position it touches the slanted line in exactly one spot — the line is never "stacked" above itself. So or hits everywhere → passes → it is a function.

Panel B (circle): Put the vertical line through the middle of the circle. Look at the two red dots — it hits the top of the circle and the bottom of the circle: that is two points at once. One input , two outputs failsnot a function.

Why the circle fails and the line doesn't: the line never doubles back on itself in the -direction; the circle bulges above and below the same .

Exercise 1.2

Which of these equations obviously gives one for each just by looking at how is written? (No graphing.) (a) (b) (c) (d)

Recall Solution 1.2

The trick: if the equation is already solved as "" with no and no even power on , then plugging in one produces exactly one .

  • (a) : one output. Function.
  • (b) : absolute value gives a single non-negative number. Function.
  • (d) : exponent gives one value. Function.
  • (c) : here is squared, so solving gives — the is the warning sign of two outputs. Not a function.

Answer: (a), (b), (d) are functions; (c) is not.


Level 2 — Application

Goal: pick a test -value, do the algebra, count the outputs.

Exercise 2.1

Does pass the test? Test the vertical line by finding all .

Recall Solution 2.1

Substitute to fix the input, then solve for the output(s): What this means: the single input produced two outputs, and . The vertical line hits the graph at and . Conclusion: two hits → not a function.

Exercise 2.2

Does pass the test? Test and also state what happens for .

Recall Solution 2.2

The symbol means the principal (non-negative) root — by definition it returns just one number, never .

  • : . Exactly one output. One hit.
  • : is not a real number, so has no output. The vertical line misses the graph — zero hits.

Every allowed gives exactly one , and 's outside the domain give none. Never two. Passes → it is a function.

Note: zero hits (like at ) is fine — it just means is not in the domain. Only hits breaks the rule.

Exercise 2.3

Does pass? Test .

Recall Solution 2.3

means "the distance of from zero equals ." At : Two outputs for one input → two hits at and not a function.

(This is really a sideways "V", opening rightward — it bulges above and below the axis exactly like the circle did.)


Level 3 — Analysis

Goal: reason about pieces, gaps, and where the danger -values hide.

Exercise 3.1

A graph is defined piecewise: Does it pass the test? Pay special attention to the changeover point .

Recall Solution 3.1

A piecewise rule only ever uses one line of the definition for any given — the two cases don't overlap.

  • satisfies "", so we use : . The first line ("") does not apply at — that inequality is strict. So has the single output .
  • Any other falls into exactly one case → exactly one output.

No ever gets two outputs → passes → function.

Even if there is a visible jump at (the top piece approaches while the bottom starts at ), a jump is a change in output, not two outputs at the same .

Exercise 3.2

Consider the graph in figure s03: an open circle at and a filled dot at , with the rest a smooth curve. Does the vertical line create a failure?

Figure — Vertical line test for functions
Recall Solution 3.2

An open circle (hollow) means "this point is not included"; a filled dot means "this point is included." At the vertical line passes through the open circle at — but that point is excluded, so it doesn't count as a hit — and through the filled dot at , which is a hit. So the vertical line actually strikes the graph at exactly one genuine point, . Passes → function.

Key idea: open circles are "ghost" points — the vertical line seems to hit two dots, but only the solid ones count.

Exercise 3.3

For , find every where the graph fails the test, and every where it has no points at all.

Recall Solution 3.3

Solve for : .

  • Two outputs whenever is a positive number, i.e. when . Every such gives and fails.
  • Exactly one output at : then , and and are the same number. One point .
  • No points when : the square root of a negative isn't real.

Because there exist 's (all ) with two outputs, the whole relation is not a function. The single-point tip at doesn't rescue it.


Level 4 — Synthesis

Goal: combine the test with domain/range and with the horizontal-line idea.

Exercise 4.1

The relation fails. Repair it into a function by restricting , and state the domain and range of your repaired function.

Recall Solution 4.1

The circle fails because each (strictly between and ) gives one output above and one below the axis. Keep only the top half: Now each gives a single non-negative passes.

  • Domain: we need , i.e. (see 2.3.02-Domain-and-rangefrom-graphs).
  • Range: runs from up to , i.e. .

(Choosing the bottom half also works; its range would be .)

Exercise 4.2

passes the vertical line test (it's a function). Does it also pass the horizontal line test? Explain what each verdict tells us and why that matters for 3.1.01-Inverse-functions.

Recall Solution 4.2
  • Vertical line test: each gives one . Passes → it is a function. ✓
  • Horizontal line test (from 2.2.05-Horizontal-line-test-for-injective-functions): the line hits the parabola at and — two hits → fails → the function is not one-to-one.

Why it matters: to have an inverse function you must pass both tests. passes vertical but fails horizontal, so it has no inverse unless you restrict its domain (say to ) to make it one-to-one. Vertical = "is a function at all"; horizontal = "can it be undone."

Exercise 4.3

Sketch-reason: can a vertical straight line, such as , ever be a function? What about the horizontal line ?

Recall Solution 4.3
  • (vertical line): the vertical test line lies on top of it and hits it at infinitely many points (every ). Two or more hits → not a function. This is the most extreme failure: one input, endless outputs.
  • (horizontal line): any vertical line hits it in exactly one point . Passes → it is a function (the constant function ). Every input maps to the single output .

So "line" alone tells you nothing — direction is everything.


Level 5 — Mastery

Goal: build graphs to order and defend edge cases.

Exercise 5.1

Design a relation that is a function, is not continuous (has a jump), and is not defined at . Give the rule and justify all three properties.

Recall Solution 5.1

One clean answer:

  • Function: every lands in exactly one case → one output. Passes vertical test. ✓
  • Not continuous: as crosses the output jumps from to .
  • Undefined at : neither case includes , so the vertical line hits nothing (zero crossings — allowed).

This shows a function may jump and have gaps and still be perfectly legal, echoing Mistake 2 of the parent note.

Exercise 5.2

True or false, with a reason: "If every horizontal line hits a graph at most once, the graph must be a function."

Recall Solution 5.2

False. Passing the horizontal test only means no output is repeated — it says nothing about inputs. Counterexample: the sideways parabola .

  • Horizontal line hits it once (at ) → passes horizontal.
  • But vertical line hits it at and fails verticalnot a function.

The horizontal test can never certify functionhood; only the vertical test can.

Exercise 5.3

A relation consists of the three isolated points . Is it a function? If not, delete one point to fix it, and give the domain and range of the repaired function.

Recall Solution 5.3

Scan the inputs: appears once; appears twice, paired with and . The vertical line hits two points → not a function.

Repair: delete either or so that has a single output. Deleting leaves :

  • Domain = set of used inputs = .
  • Range = set of used outputs = .

Now each input has exactly one output → function.



Connections

  • Vertical line test for functions — the parent note this drills.
  • 2.1.01-Definition-of-a-function — the "one input, one output" rule these exercises enforce.
  • 2.2.01-Graph-of-a-function — reading shapes as input–output pairs.
  • 2.2.05-Horizontal-line-test-for-injective-functions — the sibling test used in L4/L5.
  • 2.3.02-Domain-and-rangefrom-graphs — needed to state domain/range in the repair problems.
  • 3.1.01-Inverse-functions — why passing both tests matters.