Precalculus-I · Unit 1 · Video 5 · Interactive Practice

Vertical and Horizontal Line Tests and the Toolkit Functions

IKey Formulas

IdeaStatementVideo example
Vertical line testIf some vertical line x=ax = a meets the graph more than once, the graph is not a function.x2+y2=9x^2 + y^2 = 9 at x=2x = 2: y=±5y = \pm\sqrt{5}
Horizontal line testIf some horizontal line y=ky = k meets the graph of a function more than once, the function is not one-to-one.y=x2−1y = x^2 - 1 at y=3y = 3: x=±2x = \pm 2
One-to-one by algebraSolve for the input: each output must give back exactly one input.A=πr2, r>0  ⇒  r=A/πA = \pi r^2,\ r > 0 \;\Rightarrow\; r = \sqrt{A/\pi}

Key Insight: Being a function is a condition on the inputs (each input has one output). Being one-to-one adds the same condition on the outputs (each output has one input), so the horizontal line test only makes sense after the vertical line test has passed.

IIFunction or One-to-One? Arrow Diagrams

A function limits the arrows leaving each input; a one-to-one function also limits the arrows arriving at each output.

IIIThe Two Line Tests

A vertical line marks one input, a horizontal line one output; meeting the graph twice breaks the rule.

IVThe Nine Toolkit Functions

All nine toolkit graphs pass the vertical line test; one horizontal line at height kk splits them.

Constant f(x)=cf(x) = c, here c=2c = 2

Identity f(x)=xf(x) = x

Absolute value f(x)=∣x∣f(x) = |x|

Quadratic f(x)=x2f(x) = x^2

Cubic f(x)=x3f(x) = x^3

Reciprocal f(x)=1xf(x) = \frac{1}{x}

Reciprocal squared f(x)=1x2f(x) = \frac{1}{x^2}

Square root f(x)=xf(x) = \sqrt{x}

Cube root f(x)=x3f(x) = \sqrt[3]{x}

💡 Each thumbnail shows only −3≤x≤3-3 \le x \le 3, but the crossings are counted over the whole domain: the cube root meets y=2y = 2 at x=8x = 8, off the picture.

VQuiz Questions

Problem 1 · A Vertical Line Through a Circle

Given: the circle x2+y2=25x^2 + y^2 = 25 and the vertical line x=3x = 3. Find every point where the line meets the circle.

✅ Correct! One input, x=3x = 3, has two outputs, 44 and −4-4, so the circle is not a function.
❌ Not quite. y2=16y^2 = 16 has two solutions, y=4y = 4 and y=−4y = -4; the line also meets the lower half of the circle.
❌ Not quite. y2=16y^2 = 16 means yy is a square root of 1616, not 1616 itself; (3,16)(3, 16) is not even on the circle, since 9+256≠259 + 256 \ne 25.
❌ Not quite. On the line x=3x = 3 every point has first coordinate 33; these points have y=3y = 3 instead.
Show solution

Substitute x=3x = 3 into the equation of the circle:

32+y2=25  ⇒  9+y2=25  ⇒  y2=16  ⇒  y=±43^2 + y^2 = 25 \;\Rightarrow\; 9 + y^2 = 25 \;\Rightarrow\; y^2 = 16 \;\Rightarrow\; y = \pm 4

The line meets the circle at (3,4)(3, 4) and (3,−4)(3, -4). One input gives two outputs, so by the vertical line test the circle is not a function.

Problem 2 · Which Test Comes First?

Given: the sideways parabola x=y2−2x = y^2 - 2. Every horizontal line y=ky = k meets it exactly once, at (k2−2, k)(k^2 - 2,\ k). Is this graph a one-to-one function?

✅ Correct! One-to-one is a property of functions, and this graph fails the vertical line test first.
❌ Not quite. The horizontal line test is used only after the vertical line test has passed; check the vertical lines first.
❌ Not quite. The stem says each horizontal line meets it once, at (k2−2, k)(k^2 - 2,\ k); the failure is somewhere else.
❌ Not quite. A function of xx needs each input xx to give one output yy; here x=2x = 2 gives y=2y = 2 and y=−2y = -2.
Show solution

Step 1: vertical line test. At x=2x = 2:

2=y2−2  ⇒  y2=4  ⇒  y=±22 = y^2 - 2 \;\Rightarrow\; y^2 = 4 \;\Rightarrow\; y = \pm 2

The vertical line x=2x = 2 meets the graph at (2,2)(2, 2) and (2,−2)(2, -2), so the graph is not a function of xx.

Step 2. Because it is not a function, the question "is it one-to-one?" does not arise; passing the horizontal line test does not rescue it. The answer is no.

Problem 3 · Area Back to Radius

Given: the area of a circle, A=πr2A = \pi r^2 with r>0r > 0. A circle has area A=9πA = 9\pi. Find its radius, then the inputs that would share this output if rr could be any real number.

What is the radius?

If rr could be any real number, which two inputs would πr2\pi r^2 send to 9π9\pi?

✅ Correct! With r>0r > 0 each area gives back one radius, so A=πr2A = \pi r^2 is one-to-one; on all real numbers 33 and −3-3 share the output 9π9\pi.
❌ Check the radius. Divide by π\pi, then take the square root: r2=9r^2 = 9.
❌ Close. r2=9r^2 = 9 has the solutions ±3\pm 3, but a radius is a length, so r>0r > 0 keeps only one of them.
❌ Not quite. Dividing by π\pi gives r2=9r^2 = 9; one more step, the square root, gives rr.
❌ Not quite. That is 9π\sqrt{9\pi}: divide both sides by π\pi before taking the square root.
❌ Check the pair. Substitute each number into πr2\pi r^2; both must give exactly 9π9\pi.
❌ Not quite. 99 is the value of r2r^2, not a second radius: π(9)2=81π\pi (9)^2 = 81\pi.
❌ Not quite. π(13)2=π9\pi \left(\tfrac{1}{3}\right)^2 = \tfrac{\pi}{9}; the second input is the opposite of 33, not its reciprocal.
❌ Not quite. π(9)2=81π\pi (9)^2 = 81\pi, not 9π9\pi; the inputs are the square roots of 99.
Show solution

Step 1: solve for the input.

9π=πr2  ⇒  r2=9ππ=9  ⇒  r=±39\pi = \pi r^2 \;\Rightarrow\; r^2 = \frac{9\pi}{\pi} = 9 \;\Rightarrow\; r = \pm 3

A radius is positive, so r=3r = 3. Each area gives back exactly one radius, r=A/πr = \sqrt{A/\pi}, so the area is a one-to-one function of the radius.

Step 2: drop the condition r>0r > 0.

π(3)2=9ππ(−3)2=9π\pi (3)^2 = 9\pi \qquad \pi (-3)^2 = 9\pi

The two inputs 33 and −3-3 share the output 9π9\pi, so on all real numbers the formula πr2\pi r^2 is not one-to-one. The restriction r>0r > 0 is what makes it one-to-one.

Problem 4 · Sorting Toolkit Functions

Given: g(x)=∣x∣g(x) = |x|, h(x)=x3h(x) = \sqrt[3]{x}, k(x)=1x2k(x) = \frac{1}{x^2} and m(x)=1xm(x) = \frac{1}{x}. Decide which are one-to-one, then find two inputs that show kk is not.

Which of the four are one-to-one?

Which pair of inputs does k(x)=1x2k(x) = \frac{1}{x^2} send to the same output 14\tfrac{1}{4}?

✅ Correct! hh and mm pass the horizontal line test; k(2)=k(−2)=14k(2) = k(-2) = \tfrac{1}{4} shows kk fails it, as does g(2)=g(−2)=2g(2) = g(-2) = 2 for gg.
❌ Check the set. Look for opposite inputs that give the same output.
❌ Not quite. g(−2)=g(2)=2g(-2) = g(2) = 2: the horizontal line y=2y = 2 meets the V twice.
❌ Not quite. The reciprocal sends each nonzero input to its own output: if 1a=1b\frac{1}{a} = \frac{1}{b} then a=ba = b, so mm is one-to-one too.
❌ Not quite. Squaring erases the sign: k(−1)=k(1)=1k(-1) = k(1) = 1, so both branches of kk sit above the axis and a horizontal line meets both.
❌ Check the pair. Substitute each input into 1x2\frac{1}{x^2}; both must give 14\tfrac{1}{4}.
❌ Not quite. k(4)=116k(4) = \frac{1}{16}, not 14\frac{1}{4}: the square of the input must be 44.
❌ Not quite. k ⁣(12)=11/4=4k\!\left(\tfrac{1}{2}\right) = \frac{1}{1/4} = 4, the reciprocal of the target.
❌ Not quite. k(2)=14k(2) = \tfrac{1}{4}, but k ⁣(12)=4k\!\left(\tfrac{1}{2}\right) = 4; the two inputs must have the same square.
Show solution

Step 1: test each function.

  • g(x)=∣x∣g(x) = |x|: g(−2)=g(2)=2g(-2) = g(2) = 2, so not one-to-one.
  • h(x)=x3h(x) = \sqrt[3]{x}: each output yy comes only from x=y3x = y^3, so one-to-one.
  • k(x)=1x2k(x) = \frac{1}{x^2}: k(−1)=k(1)=1k(-1) = k(1) = 1, so not one-to-one.
  • m(x)=1xm(x) = \frac{1}{x}: each nonzero output yy comes only from x=1yx = \frac{1}{y}, so one-to-one.

Step 2: solve k(x)=14k(x) = \tfrac{1}{4}.

1x2=14  ⇒  x2=4  ⇒  x=2 or x=−2\frac{1}{x^2} = \frac{1}{4} \;\Rightarrow\; x^2 = 4 \;\Rightarrow\; x = 2 \text{ or } x = -2

Check: k(2)=14k(2) = \frac{1}{4} and k(−2)=1(−2)2=14k(-2) = \frac{1}{(-2)^2} = \frac{1}{4}. The horizontal line y=14y = \tfrac{1}{4} meets the graph of kk twice.

Solved: 0 / 4