1.1 Functions and Function Notation

Turns the loose word 'function' into a test you can run: every input has exactly one output. Builds function notation as a name for an output rather than a multiplication, separates evaluating f(3) from solving f(x) = 3, and introduces the vertical and horizontal line tests as the same definition seen from two directions.

Subject: Precalculus · 65 slides · symbolic lesson

Open the interactive version of this deck

What this lesson covers

The lesson, slide by slide

1. Lesson 1.1 Functions and Function Notation

Title

Precalculus · Chapter 1 — Functions

§1.1 Functions and Function Notation, pp. 10-40

2. By the end of this lesson you can

Objectives

Five things, each one you can check yourself on paper.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 10-40 — the pages these objectives are drawn from

3. Before we start: which of these deserves the word?

Warm-up

You have used the word function since Algebra 1. This lesson makes it precise, so it is worth finding out what you currently mean by it.

Discussion prompt

A machine takes a person's name and returns their birthday. A second machine takes a birthday and returns a person's name. Which of these is reliable, and what exactly goes wrong with the other?

Hint: Try it with a room of thirty people. Which direction can get stuck?

Answer:

The first is reliable: each person has exactly one birthday, so the machine always knows what to return.

The second is not. Two people in the room may share a birthday, and then the machine has two equally good answers and no way to pick. It is not that the answer is hard to find — it is that there is no single right answer to find.

That is the whole definition, and it is one-directional. A function may send two different inputs to the same output; it may never send one input to two outputs. Most of the mistakes in this lesson come from applying that rule in the wrong direction.

4. One input, one output — and the asymmetry that follows

Concept

A function is a rule that assigns to each input exactly one output. The word 'exactly' does the work: not at most one, which would allow inputs with no answer, and not at least one, which would allow inputs with two.

function — A relation in which each element of the domain is paired with exactly one element of the range. The pairing may send several inputs to the same output, but never one input to several outputs.

\[ f: x \longmapsto f(x), \qquad \text{each } x \text{ in the domain has exactly one } f(x) \]

Notice that the definition is not symmetric. Whether a rule is a function depends entirely on what happens as you leave each input, and says nothing about what arrives at each output. The rule that squares every number is a function even though 3 and negative 3 both land on 9.

Figure (svg): Two mapping diagrams side by side: on the left a relation where every input has exactly one arrow leaving it, labelled a function; on the right a relation where one input has two arrows leaving it, labelled not a function

Two inputs may share an output — that is allowed. One input may not have two outputs. The rule is about what LEAVES each input, never about what arrives.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 10-12

5. What makes a relation a function

Section

Section 1

6. The definition, and the direction it runs in

Concept

A relation is any set of ordered pairs. It earns the name function when no input appears twice with different partners.

Students lose more marks on this section to the last two bullets than to anything else. The test is one-directional, and reading it as 'no repeats anywhere' rejects perfectly good functions.

Figure (svg): Two mapping diagrams side by side: on the left a relation where every input has exactly one arrow leaving it, labelled a function; on the right a relation where one input has two arrows leaving it, labelled not a function

Two inputs may share an output — that is allowed. One input may not have two outputs. The rule is about what LEAVES each input, never about what arrives.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 10-13

7. The two diagrams that are the definition

Picture it

Everything in this lesson can be recovered from this pair of pictures.

Figure (svg): Two mapping diagrams side by side: on the left a relation where every input has exactly one arrow leaving it, labelled a function; on the right a relation where one input has two arrows leaving it, labelled not a function

Two inputs may share an output — that is allowed. One input may not have two outputs. The rule is about what LEAVES each input, never about what arrives.

Cover the labels and ask only one question of each diagram: does any single circle on the left have two arrows leaving it? That question, and no other, decides it.

8. Worked example: is this set of pairs a function?

Worked example

Check the inputs, and only the inputs.

\[ \text{Is } \{(1,2),\,(3,4),\,(5,4),\,(7,8)\} \text{ a function?} \]

List the inputs

Why: The first coordinate of each pair.

Check for a repeated input

Why: Scan the list for any value appearing twice.

Ignore the repeated output

Why: The output 4 occurs twice, which the definition does not forbid.

Conclude

Why: No input has two partners.

Figure (svg): The solution to Worked example is this set of pairs a function shown as a ladder of expressions, one row per legal move

The whole solution at once: each drop is one legal move.

\[ \text{Yes — the inputs } 1,3,5,7 \text{ are distinct, so each has exactly one output.} \]

Verify: state what would have broken it

Why: Adding the pair with input 3 and output 9 would break it, because 3 would then have both 4 and 9. Adding a pair with input 9 and output 4 would not break it, because a third arrival at 4 is irrelevant.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 11-11

9. Function or not?

Sorting

Run one test on each: does any input appear twice with different outputs?

Sort into buckets

Sort each relation.

Is a function
{(0,1), (1,2), (2,3)}; {(1,7), (2,7), (3,7)}; {(4,4), (4,4), (5,6)}
Is not a function
{(0,1), (0,2), (1,3)}; {(2,5), (3,6), (2,9)}
yes
In each of these, no input carries two different outputs. Repeated outputs are irrelevant, and a pair listed twice is still one pair — the set with the input 4 written twice has the same three-element content as the set with it written once.
no
Each of these has one input with two different partners: the input 0 leads to both 1 and 2 in the first, and the input 2 leads to both 5 and 9 in the second. That is precisely and only what the definition forbids.

10. Worked example: a table that fails

Worked example

The same test, applied to a table of values rather than a list of pairs.

\[ \begin{array}{c|cccc} x & 2 & 4 & 6 & 4 \\ \hline y & 5 & 7 & 9 & 11 \end{array} \]

Read the top row as the inputs

Why: A table lists the pairs column by column.

Find the repeat

Why: The input 4 appears in column two and again in column four.

\[ 4\text{ appears twice} \]

Compare their outputs

Why: The first time it gives 7, the second time 11.

\[ 7\text{ and } 11\text{ differ} \]

Conclude

Why: One input, two different outputs.

Figure (svg): The solution to Worked example a table that fails shown as a ladder of expressions, one row per legal move

The whole solution at once: each drop is one legal move.

\[ \text{Not a function: } f(4) \text{ would have to be both } 7 \text{ and } 11. \]

Verify: say what would fix it

Why: Changing the last output from 11 to 7 fixes it: the input 4 would then give 7 both times, which is one pair written twice, not two pairs. Changing the last input from 4 to 8 also fixes it, by removing the repeat.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 12-13

11. Trap: reading the test in the wrong direction

Trap

The trap

\[ \{(1,4),\,(2,4),\,(3,4)\} \]

Reject it because the output 4 repeats

Why: Three pairs share the same second coordinate, which looks like a collision.

The conclusion drawn is that this cannot be a function because the value 4 is used three times.

The fix

It is a function. The inputs are 1, 2 and 3, all different, so each has exactly one output. That those outputs coincide is not the definition's concern.

This is the constant rule that returns 4 no matter what goes in — a perfectly good function, and one used constantly. A horizontal line passes the vertical line test at every point.

Repeated outputs cost nothing; repeated inputs with different outputs cost everything. When the horizontal-line idea arrives later in this lesson, it will finally give repeated outputs something to mean — but it answers a different question, not this one.

12. Predict before you check

Prediction

A relation pairs each student in a school with the class they are sitting in right now.

Predict first

Is it a function, and does the answer depend on class sizes?

  • A function, and class sizes are irrelevant
  • A function only if every class has one student
  • Not a function, because classes hold many students
  • It cannot be decided without the data

Correct: A function, and class sizes are irrelevant.

Why: The inputs are students and the outputs are classes. Each student is sitting in exactly one class right now, so every input has exactly one output, which is the entire requirement. Many students sharing a class means many inputs share an output, and the definition never mentions that. Reversing the relation, pairing each class with its students, is what would fail.

13. Two of these are true

Two truths and a lie

Two statements about the definition are true and one is false. Rule out the true ones.

Eliminate the wrong options

One of these claims about the definition is wrong.

  • A. Two different inputs may share the same output
  • B. One input may have two different outputs if both are listed
  • C. A relation with no repeated inputs at all is automatically a function

Survives elimination: B

Why: The false claim is B, and it names the definition's only prohibition. Listing both outputs does not legitimise them — it is exactly what makes the relation fail the test. The other two are genuinely true, and the first of them is the one students most often reject by mistake.

14. Why 'exactly one' and not 'at least one'?

Socratic

The definition could have been written more loosely.

Discussion prompt

What would go wrong if a function were allowed to assign at least one output to each input rather than exactly one?

Hint: Think about what you want to be able to write down once a function has a name.

Answer:

You would lose the right to write f(3) at all. The notation names a single number; if the input 3 had two outputs, the symbol f(3) would be ambiguous and could not be used in an equation.

Every later technique depends on that. Composition in Section 1.4 feeds one output into the next rule and needs to know which. Inverses in Section 1.7 need a single output to send back. Limits and derivatives in Chapter 12 track one output as the input moves.

So 'exactly one' is not fussiness. It is the condition that makes the notation, and everything built on it, well defined — which is why the word is worth the emphasis it gets.

15. Function notation

Section

Section 2

16. f(x) is a name, not a multiplication

Concept

The symbol f(x) is read 'f of x' and names the output that the rule f produces from the input x. The parentheses signal an input, not a product.

Because the parentheses look like multiplication, f(a plus b) is very often expanded as if it were f times a plus f times b. It is not, and no rule of algebra says it is. The parentheses here are punctuation, marking where the input goes.

Figure (svg): A function drawn as a machine: an input x enters on the left, a rule box in the middle reads two x plus one, and the output two x plus one leaves on the right

The notation f(x) names an output. It is one symbol for the sentence 'the value this rule produces from the input x'.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 14-17

17. The rule as a machine with a slot

Picture it

Reading the notation as a machine makes the substitution rule obvious rather than memorised.

Figure (svg): A function drawn as a machine: an input x enters on the left, a rule box in the middle reads two x plus one, and the output two x plus one leaves on the right

The notation f(x) names an output. It is one symbol for the sentence 'the value this rule produces from the input x'.

The slot takes whatever you hand it. If you hand it the expression x plus 1, then every x in the rule becomes the whole expression x plus 1, brackets and all.

18. Worked example: evaluate at a negative number

Worked example

The one place this goes wrong is a dropped bracket.

\[ \text{Given } f(x) = x^2 - 4x, \text{ find } f(-3). \]

Rewrite the rule with a hole where x was

Why: Substitution is easier to get right when the slot is visible.

\[ f() = () ^{2} - 4() \]

Drop negative 3 into every hole, keeping the brackets

Why: The brackets are what make the square apply to the sign as well.

\[ (-3) ^{2} - 4(-3) \]

Evaluate the square first

Why: A negative squared is positive.

\[ 9 - 4(-3) \]

Finish the arithmetic

Why: Subtracting a negative adds.

\[ 9 + 12 = 21 \]

Figure (svg): The substitution of the input negative three into the rule f of x equals x squared minus four x, shown as three stages: the rule with a hollow box in place of x, the box filled with negative three in brackets, and the arithmetic evaluated to twenty one

Evaluating is substitution and nothing more. The one place it goes wrong is a dropped bracket around a negative input.

\[ f(-3) = (-3)^2 - 4(-3) = 9 + 12 = 21 \]

Verify: check the sign trap deliberately

Why: Without the brackets the first term reads as the negative of three squared, which is negative 9, and the answer would come out as 3 instead of 21. Since both terms of the rule are being fed a negative number, both change, and the true answer is comfortably positive.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 17-18

19. Decode the notation

Notation

Each part of this expression has a job.

Annotate

On: \( g(t) = 3t - 5, \qquad g(4) = 7 \)

  • The letter g names the rule, and it is a different rule from f in the previous section.
  • The letter t is the input variable; it could be any letter without changing the rule.
  • The expression 3t minus 5 is the instruction: triple the input, then subtract five.
  • The symbol g(4) names the output at the input 4, and it is a number.
  • The equation g(4) equals 7 records the result of carrying that instruction out.

Nothing in the line involves multiplying g by anything. The parentheses mark the input slot, and that is their only job here.

20. Worked example: evaluate at an expression

Worked example

The slot accepts an expression exactly as it accepts a number.

\[ \text{Given } f(x) = x^2 - 4x, \text{ find } f(a+1). \]

Substitute the whole expression, in brackets

Why: Every occurrence of x becomes the same bracketed expression.

\[ (a + 1) ^{2} - 4(a + 1) \]

Expand the square

Why: Use the square of a binomial; do not square term by term.

\[ a ^{2} + 2 a + 1 - 4(a + 1) \]

Distribute the negative four

Why: Both terms inside the bracket are multiplied.

\[ a ^{2} + 2 a + 1 - 4 a - 4 \]

Collect like terms

Why: Combine the a terms and the constants.

\[ a ^{2} - 2 a - 3 \]

Figure (svg): The solution to Worked example evaluate at an expression shown as a ladder of expressions, one row per legal move

The whole solution at once: each drop is one legal move.

\[ f(a+1) = (a+1)^2 - 4(a+1) = a^2 - 2a - 3 \]

Verify: test it at one value

Why: Putting a equal to 2 in the answer gives 4 minus 4 minus 3, which is negative 3. Going the other way, a equal to 2 means the input was 3, and the original rule at 3 gives 9 minus 12, which is also negative 3. The two agree.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 18-19

21. Find the error: treating the parentheses as multiplication

Error analysis

A student is asked for f(a plus b) given that f is the squaring rule.

Annotate

On: \( f(x) = x^2 \;\Longrightarrow\; f(a+b) = f(a) + f(b) = a^2 + b^2 \)

  • The first step reads f(a + b) as though f distributed across the sum, like a multiplier.
  • But f is a rule, not a factor: f(a + b) means square the single number a plus b.
  • The correct expansion is a plus b, all squared, which is a squared plus two a b plus b squared.
  • The missing middle term two a b is exactly the size of the error.
  • One numerical test exposes it: with a and b both 1, the rule gives 4 while the wrong answer gives 2.

A function name is not a quantity, so nothing may be distributed over it or cancelled against it. When in doubt, test the claim on small numbers — it takes ten seconds and settles the question.

22. Match the notation to the sentence

Matching

Notation is compressed English. Uncompress it.

Match the pairs

  • l1. f(2) = 7
  • l2. f(x) = 7
  • l3. f(2) = x
  • l4. y = f(x)
  • r1. The output at the input 2 is 7
  • r2. Find every input whose output is 7
  • r3. The name x is being given to the output at 2
  • r4. The names y and f(x) refer to the same number

Why: The first is a completed statement of fact about one input. The second is an equation to solve, because the input is the unknown. The third is unusual but legal: it defines x to be a particular output. The fourth is the sentence that lets graphs and function notation be used interchangeably, and it is why the vertical axis of a graph can be labelled either y or f of x.

23. Finish the substitution

Faded example

Given h(x) equal to x squared plus 2x, evaluate at negative two.

Fill in the blanks

h(-2) = (-2)^2 + 2(-) = 4 0 4 = ___

Why: Negative two goes into both slots with its brackets intact. The square gives positive 4 and the second term gives negative 4, so they cancel and the output is 0. Without brackets the first term would have read as the negative of two squared and the answer would have been negative 8, which is the standard version of this mistake.

24. Break the false rule

Counterexample

A classmate claims that f(2x) is always the same as 2f(x).

Discussion prompt

Find a function for which this fails, and then a function for which it happens to hold.

Hint: Try squaring, and then try a rule that only multiplies.

Answer:

It fails for squaring. With the rule that squares its input, f(2x) is four x squared while 2f(x) is only two x squared. Those agree only when x is zero.

It holds for the tripling rule. With f(x) equal to 3x, f(2x) is 6x and 2f(x) is also 6x, for every x. So the claim is not always false — it is just not a rule.

That is the point worth taking away: a statement that holds for some functions is not an identity, and finding one function where it fails is enough to retire it. Rules that survive this test for every function are rare, and Section 1.4 will be careful about which ones do.

25. Tables, graphs, and the vertical line test

Section

Section 3

26. The same test, wearing three costumes

Concept

A function can be presented as a set of pairs, a table, or a graph. The test never changes; only the way a repeated input shows itself does.

The graph case is the one worth dwelling on. Two points stacked vertically have the same x and different y, which is exactly one input with two outputs. Sweeping a vertical line across the picture is simply a way of checking every input at once.

presented asan input isthe failure looks like
a set of pairsa first coordinatethe same first coordinate twice, with different partners
a tablean entry in the input rowthe same entry in the input row, under different outputs
a graphan x valuetwo plotted points directly above one another

Figure (svg): Two graphs side by side with a vertical dashed line drawn through each: a parabola opening upward, which the line crosses once, and a sideways parabola, which the line crosses twice

The vertical line test is the definition in picture form: a vertical line is the set of all points with one particular x, so two crossings means one input with two outputs.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 20-25

27. Sweeping a vertical line

Picture it

A vertical line is the set of all points sharing one x value, so it collects everything the definition cares about at that input.

Figure (svg): Two graphs side by side with a vertical dashed line drawn through each: a parabola opening upward, which the line crosses once, and a sideways parabola, which the line crosses twice

The vertical line test is the definition in picture form: a vertical line is the set of all points with one particular x, so two crossings means one input with two outputs.

The sideways parabola on the right is a perfectly respectable curve and a perfectly respectable relation. It simply is not a function of x — though it is a function of y, which is a distinction Section 1.7 will use.

28. Worked example: apply the vertical line test

Worked example

A circle of radius 3 centred at the origin.

\[ \text{Does } x^2 + y^2 = 9 \text{ define } y \text{ as a function of } x? \]

Pick an input inside the circle

Why: Any x strictly between negative 3 and 3 will do.

\[ \text{take } x = 0 \]

Solve for the outputs at that input

Why: The equation becomes y squared equals 9.

\[ y ^{2} = 9 \]

Count them

Why: A positive number has two square roots.

\[ y = 3\text{ and } y = -3 \]

Conclude

Why: One input with two outputs is exactly the disqualifier.

Figure (svg): The solution to Worked example apply the vertical line test shown as a ladder of expressions, one row per legal move

The whole solution at once: each drop is one legal move.

\[ \text{No. At } x=0, \; y = 3 \text{ and } y = -3 \text{ both satisfy the equation.} \]

Verify: confirm with the picture

Why: A vertical line through the middle of a circle enters at the bottom and leaves at the top, crossing twice. The only vertical lines that meet a circle once are the two tangents at the far left and far right, and one input out of infinitely many is nowhere near enough.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 23-24

29. Which failure is it?

Discrimination

A vertical line meeting a graph zero times and meeting it twice mean different things.

Sort into buckets

Sort each observation by what it tells you.

Tells you about being a function
A vertical line at x = 5 crosses the graph twice; Every vertical line crosses at most once
Tells you something else
A vertical line at x = 5 misses the graph entirely; A horizontal line at y = 5 crosses the graph twice
func
These concern how many outputs a single input has, which is the definition. Two crossings on a vertical line is one input with two outputs, so the graph is not a function; at most one crossing everywhere is exactly the condition being satisfied.
other
A vertical line that misses says the input is outside the domain, which is a question about where the rule is defined. A horizontal line crossing twice says two inputs share an output, which is allowed for a function and only matters for the one-to-one question later in this lesson.

30. Worked example: reading values off a graph

Worked example

Using the graph on the visual slide, with f(x) equal to negative x squared plus 2x plus 3.

\[ \text{From the graph, find } f(1) \text{ and then solve } f(x) = 0. \]

For f(1), go up from x equal to 1

Why: Evaluation starts at an input on the horizontal axis.

\[ \text{up from } x = 1 \]

Read across to the vertical axis

Why: The height of the curve there is the output.

\[ f(1) = 4 \]

For the equation, travel along the height 0

Why: Solving starts at an output and looks for inputs.

\[ \text{along } y = 0 \]

Collect every crossing

Why: Two points of the curve sit at that height.

\[ x = -1\text{ and } x = 3 \]

Figure (svg): A graph of a function with two readings marked: a vertical arrow up from x equals one to the curve and across to y equals three, showing evaluation, and a horizontal arrow from y equals zero across to two crossings, showing solving

One graph answers both questions. Going up-then-across evaluates; going across-then-down solves, and may land on more than one input.

\[ f(1) = 4, \qquad f(x) = 0 \text{ at } x = -1 \text{ and } x = 3 \]

Verify: check against the rule

Why: The rule at 1 gives negative 1 plus 2 plus 3, which is 4. Factoring the rule gives the negative of the product of x plus 1 and x minus 3, which is zero exactly at negative 1 and 3. Graph and algebra agree.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 25-27

31. Trap: a vertical line that misses the curve

Trap

The trap

\[ f(x) = \sqrt{x}, \qquad \text{tested at } x = -4 \]

Draw a vertical line at negative four and observe no crossing

Why: The line meets the curve zero times rather than once.

The conclusion drawn is that the square root rule fails the vertical line test, because a vertical line did not cross it exactly once.

The fix

The test is about lines that cross more than once, not lines that miss. A vertical line at negative 4 misses because negative 4 is not in the domain — there is no output there to find.

An input outside the domain is not a counterexample; it is simply not being asked about. The definition says each input in the domain has exactly one output.

Stated carefully: a graph is a function when no vertical line crosses it more than once. Zero crossings tell you about the domain, which is the subject of the next section, and nothing about whether the rule is a function.

32. Predict the count

Prediction

A graph consists of the single point at the origin and nothing else.

Predict first

Is it a function?

  • Yes, on a domain containing only the input 0
  • No, because almost every vertical line misses it
  • No, because a single point is not a rule
  • Only if the point is moved onto an axis

Correct: Yes, on a domain containing only the input 0.

Why: Its domain is the single value 0, and at that one input there is exactly one output, which is 0. Every other vertical line misses, and missing is a statement about the domain rather than a failure. Small and strange domains are still domains, and this is a legitimate, if very short, function.

33. Function of x, function of y, both, or neither?

Sorting

A curve can be a function in one direction and not the other. Sweep both kinds of line.

Sort into buckets

Sort each curve by which sweep it survives.

A function of x
y = x^2; y = x^3
Not a function of x
x = y^2; x^2 + y^2 = 4
x
No vertical line meets these more than once. The upward parabola assigns one height to each input, and the cubic does too — and the cubic additionally survives horizontal lines, which will matter shortly.
notx
Both fail a vertical sweep. The sideways parabola and the circle each have inputs carrying two heights. Turn the page ninety degrees and the sideways parabola becomes a function of y, which is a real and useful distinction; the circle fails in both directions.

34. Explain the line, not the rule

Explain it to yourself

The vertical line test is often stated as a trick to memorise.

Discussion prompt

Explain, without using the phrase 'line test', why two points stacked vertically disqualify a graph.

Hint: What do two such points have in common, and what do they not?

Answer:

Two points on the same vertical line have the same x coordinate and different y coordinates. Read as input and output, that is one input paired with two outputs.

So the picture is not a separate criterion that happens to work. It is the definition, drawn — the only thing the line does is check every input at once instead of one at a time.

Seeing it that way is what makes the next test, the horizontal one, easy rather than another thing to memorise: swap the roles of the coordinates and you are asking whether two inputs share an output.

35. Evaluating versus solving

Section

Section 4

36. Which letter is known decides the task

Concept

Evaluating hands the function an input and asks what comes out. Solving hands it an output and asks which inputs produce it. The notation for the two looks almost identical, and the answers behave completely differently.

This asymmetry is the definition making itself felt. A function may send many inputs to one output, so an equation asking which inputs give a particular output can perfectly well have several answers — and a well-drilled student who expects a single number will stop after finding the first one.

Figure (svg): A two-column contrast: on the left, evaluating a function means you are given x and asked for y; on the right, solving means you are given y and asked for x

These two tasks look alike on the page and are opposites. Which letter is known decides which one you are doing.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 19-22

37. Up-then-across, or across-then-down

Picture it

One graph answers both questions, and the direction you travel decides which one you asked.

Figure (svg): A graph of a function with two readings marked: a vertical arrow up from x equals one to the curve and across to y equals three, showing evaluation, and a horizontal arrow from y equals zero across to two crossings, showing solving

One graph answers both questions. Going up-then-across evaluates; going across-then-down solves, and may land on more than one input.

The across-then-down journey can land on two inputs, as it does here. The up-then-across journey never can, and that is the definition at work.

38. Worked example: solve f(x) = 3

Worked example

The output is given; the inputs are wanted.

\[ \text{Given } f(x) = x^2 - 2x, \text{ solve } f(x) = 3. \]

Set the rule equal to the given output

Why: This is what the notation is asking for.

\[ x ^{2} - 2 x = 3 \]

Move everything to one side

Why: A quadratic is solved against zero.

\[ x ^{2} - 2 x - 3 = 0 \]

Factor

Why: Two numbers multiplying to negative 3 and adding to negative 2.

\[ (x - 3) (x + 1) = 0 \]

Read both roots

Why: A product is zero when either factor is.

\[ x = 3\text{ and } x = -1 \]

Figure (svg): The solution to Worked example solve f x 3 shown as a ladder of expressions, one row per legal move

The whole solution at once: each drop is one legal move.

\[ x = 3 \quad \text{and} \quad x = -1 \]

Verify: substitute both back

Why: At 3 the rule gives 9 minus 6, which is 3. At negative 1 it gives 1 plus 2, which is also 3. Both inputs genuinely produce the output 3, which is allowed — and stopping after the first would have missed half the answer.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 21-22

39. Evaluate or solve?

Sorting

Decide which task each instruction is asking for before doing any algebra.

Sort into buckets

Sort each instruction.

Evaluate
Find f(0); What is the output at the input 7?; Compute g(a + 2)
Solve
Find x when f(x) = 0; For what inputs does the graph reach height 4?
ev
In each of these the input is handed to you and the output is wanted, so the work is substitution and the answer is a single expression. That the input is a letter or an expression rather than a number changes nothing about the task.
sv
In each of these the output is handed to you and the inputs are wanted, so the work is solving an equation and the answer may be a list. The phrase 'for what inputs' is the tell, and so is finding the unknown inside the parentheses.

40. Worked example: the same rule, evaluated

Worked example

Same function, the other task, so that the contrast is exact.

\[ \text{Given } f(x) = x^2 - 2x, \text{ find } f(3) \text{ and } f(-1). \]

Substitute 3

Why: One input, so one computation.

\[ 3 ^{2} - 2(3) \]

Compute

Why: Nine minus six.

\[ f(3) = 3 \]

Substitute negative 1, in brackets

Why: The square must apply to the sign.

\[ (-1) ^{2} - 2(-1) \]

Compute

Why: One plus two.

\[ f(-1) = 3 \]

Figure (svg): The solution to Worked example the same rule, evaluated shown as a ladder of expressions, one row per legal move

The whole solution at once: each drop is one legal move.

\[ f(3) = 3, \qquad f(-1) = 3 \]

Verify: notice what this shows

Why: Two different inputs produced the same output, which is why the equation in the previous example had two solutions. The two worked examples are two readings of one fact, and the pair of answers here is exactly the pair of roots there.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 21-22

41. Find the error: stopping at the first solution

Error analysis

A student solves an equation and reports one answer.

Annotate

On: \( f(x) = x^2, \; f(x) = 25 \;\Longrightarrow\; x = 5 \)

  • The step taken was to take a square root of both sides, which is legitimate.
  • But a positive number has two square roots, and only the positive one was kept.
  • The input negative 5 also squares to 25, so it solves the equation too.
  • The complete answer is that x is 5 or negative 5.
  • The habit that prevents this: after solving, ask whether the graph could cross that height twice.

Evaluation gives one answer because the definition promises it. Solving carries no such promise, so the number of answers has to be found rather than assumed.

42. How many answers?

Prediction

The graph of a function rises, turns over, and falls, reaching a highest point of 10.

Predict first

How many solutions does the equation setting the output to 10 have?

  • Exactly one, at the turning point
  • Exactly two, one on each side
  • None, because 10 is not attained
  • It cannot be determined

Correct: Exactly one, at the turning point.

Why: The height 10 is reached only at the very top. A horizontal line drawn at that height touches the curve at the single turning point rather than cutting through it, so there is one input. At any height slightly below 10 the same line would cut twice, giving two inputs, and above 10 it would miss and give none — which is a good illustration that the number of solutions depends on the output you ask about.

43. Fill in the missing move

Fill the middle

Solving the equation that sets the tripling-and-shifting rule to 11.

Fill in the blanks

3x - 4 = 11 \;\Longrightarrow\; 3x = 15 \;\Longrightarrow\; x = 5

Why: Adding 4 to both sides gives 15, and dividing by 3 gives 5. Checking: the rule at 5 gives 15 minus 4, which is 11, as required. This equation has exactly one solution because the rule is linear with a nonzero slope, so no horizontal line can cut it twice — a fact the next section makes systematic.

44. What else do you need?

Missing information

You are told only that f(2) equals 9.

Discussion prompt

Can you find every input whose output is 9? If not, what is the smallest extra thing you would need?

Hint: Does knowing one arrow tell you about any other?

Answer:

No. Knowing f(2) equals 9 tells you that 2 is one such input. It says nothing about whether any other input also lands on 9, because a function is permitted to send several inputs to the same output.

The smallest sufficient extra fact is that f is one-to-one, which is precisely the promise that no other input shares an output. With that, 2 is the complete answer.

Failing that, you would need the rule itself, or its graph, to hunt for other crossings at that height. This is the exact gap the last section of this lesson fills.

45. One-to-one functions and the horizontal line test

Section

Section 5

46. The stricter condition, and what it buys

Concept

A function is one-to-one when different inputs always produce different outputs. Every function forbids one input with two outputs; a one-to-one function additionally forbids two inputs with one output.

one-to-one function — A function in which no two distinct inputs share an output. Equivalently, no horizontal line meets its graph more than once. This is exactly the condition under which the function can be reversed.

The reason to care arrives in Section 1.7. To undo a function you must be able to look at an output and name the input it came from, and that is possible exactly when no two inputs share an output. So this test is the entry requirement for having an inverse.

Figure (svg): Two graphs with a horizontal dashed line across each: a cubic, which the line meets once, and a parabola, which the line meets twice, illustrating the horizontal line test for one-to-one functions

Vertical lines test whether it is a function at all. Horizontal lines test whether it is one-to-one — a stricter condition that Section 1.7 will need to build an inverse.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 28-33

47. Two sweeps, two questions

Picture it

The two tests differ in one word and answer entirely different questions.

Figure (svg): A summary card contrasting the vertical line test and the horizontal line test, giving what each one asks, what a failure means, and which later section needs it

Failing the vertical test disqualifies a graph from being a function. Failing the horizontal test does not — it only means the function cannot be undone.

Failing the vertical test means the picture was never a function. Failing the horizontal test means it is a function that cannot be reversed. Only the first is a disqualification.

48. Worked example: is it one-to-one?

Worked example

Two rules that look similar and differ on this test.

\[ \text{Are } f(x) = x^2 \text{ and } g(x) = x^3 \text{ one-to-one?} \]

Look for two inputs sharing an output under f

Why: Try a number and its negative.

\[ f(3) = f(-3) = 9 \]

Conclude for f

Why: Two distinct inputs, one output.

Try the same attack on g

Why: Cubing preserves sign, so a negative cannot match a positive.

\[ g(3) = 27, g(-3) = -27 \]

Confirm for g in general

Why: The cubing rule is increasing everywhere, so it never revisits a value.

Figure (svg): Two graphs with a horizontal dashed line across each: a cubic, which the line meets once, and a parabola, which the line meets twice, illustrating the horizontal line test for one-to-one functions

Vertical lines test whether it is a function at all. Horizontal lines test whether it is one-to-one — a stricter condition that Section 1.7 will need to build an inverse.

\[ f(x) = x^2 \text{ is not one-to-one}; \quad g(x) = x^3 \text{ is.} \]

Verify: confirm with horizontal lines

Why: The horizontal line at height 9 cuts the parabola at both 3 and negative 3, so the parabola fails. Any horizontal line cuts the cubic exactly once, because the cubic rises without ever turning back, so it passes.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 29-30

49. Which test does each rule pass?

Sorting

Every one of these is a function. The question is whether it is one-to-one.

Sort into buckets

Sort each rule.

One-to-one
f(x) = 2x + 1; f(x) = x^3
Not one-to-one
f(x) = x^2; f(x) = 7 for every x; f(x) = |x|
oto
These never revisit an output. A line with nonzero slope and the cubing rule both increase steadily, so once a height is passed it is never reached again, and every horizontal line cuts exactly once.
not
Each of these reaches some output from more than one input. Squaring and absolute value both treat a number and its negative alike, and the constant rule sends every input in existence to the same output, which is as far from one-to-one as a function can get.

50. Worked example: restricting the domain to rescue it

Worked example

A rule that fails the test can often be repaired by throwing inputs away.

\[ \text{Make } f(x) = x^2 \text{ one-to-one by restricting its domain.} \]

Identify why it fails

Why: Each positive output is reached from both sides of zero.

\[ 3\text{ and } -3\text{ both give } 9 \]

Keep only one side

Why: Discard the inputs below zero.

Check the test on what remains

Why: On that half, the rule only increases.

Note the outputs are unchanged

Why: Every nonnegative output is still produced, just once now.

\[ \text{range still } y \ge 0 \]

Figure (svg): The solution to Worked example restricting the domain to rescue it shown as a ladder of expressions, one row per legal move

The whole solution at once: each drop is one legal move.

\[ f(x) = x^2 \text{ on } x \ge 0 \text{ is one-to-one.} \]

Verify: check nothing was lost

Why: Every output the original rule produced is still produced: the value 9 still comes from 3. What was discarded is the duplicate route to it. That is why Section 1.7 can define the square root as the inverse of the squaring rule, but only after this restriction is agreed.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 31-32

51. Trap: calling a non-one-to-one rule 'not a function'

Trap

The trap

\[ f(x) = x^2, \qquad f(3) = f(-3) = 9 \]

Observe that two inputs give the same output

Why: The output 9 is produced twice, which looks like a collision.

The conclusion drawn is that the squaring rule is therefore not a function.

The fix

The squaring rule is a function. Every input has exactly one output: 3 gives 9 and only 9; negative 3 gives 9 and only 9. Nothing is ambiguous.

What has been found is that it is not one-to-one, which is a different and much weaker statement. It remains a function in perfectly good standing.

The practical difference: a non-function cannot be used at all, while a function that is not one-to-one is used constantly and merely cannot be inverted without first restricting its domain. Keep the two failures apart — one is fatal and the other is a footnote.

52. Eliminate the false consequence

Elimination

A function has failed the horizontal line test. Rule out the conclusions that genuinely follow.

Eliminate the wrong options

One of these conclusions does NOT follow.

  • A. It is still a function
  • B. It has no inverse on its full domain
  • C. It is not a function

Survives elimination: C

Why: C is the conclusion that does not follow, and it is the survivor. Only the vertical line test can disqualify a graph from being a function; the horizontal test asks a different question entirely, and failing it leaves the rule a function in perfectly good standing that merely cannot be reversed as it stands.

53. Order the conditions by strength

Ranking

Each condition in this list implies the ones weaker than it.

Put in order

  1. is a relation
  2. is a function
  3. is a one-to-one function

Why: A relation is any set of pairs and asks nothing. A function is a relation that additionally forbids one input with two outputs. A one-to-one function is a function that additionally forbids two inputs with one output. Each step adds a restriction, so the collections shrink: every one-to-one function is a function, and every function is a relation, while neither converse holds.

54. Push the boundary

Edge cases

The constant rule sends every input to 7.

Discussion prompt

It is a function. How badly does it fail the one-to-one test, and is there any domain restriction that repairs it?

Hint: How many inputs would have to survive the restriction?

Answer:

It fails as badly as possible: every pair of distinct inputs shares an output. The horizontal line at height 7 does not cross the graph at a few points, it lies along the whole of it.

A restriction does repair it, but only a brutal one: keep exactly one input. With a single input there are no two distinct inputs to collide, so the condition holds vacuously.

That extreme case is worth seeing because it shows the restriction trick from the previous worked example is not always useful. Repairing the squaring rule cost half its domain and kept all of its outputs; repairing a constant rule costs everything and keeps one point.

55. Four things that look alike, side by side

Comparison

Fill the blanks from memory. These four are routinely confused with one another, and laid out this way the differences are small and total.

Comparison matrix

what is givenwhat is wantedhow many answers
evaluating f(3)an inputthe outputexactly one, always
solving f(x) = 3an outputevery input giving itzero, one, or many
vertical line testa graphis it a functionyes or no
horizontal line testa graph of a functionis it one-to-oneyes or no

The first two rows are the same function read in opposite directions. The last two rows are the same sweep applied along opposite axes. Nothing here is a separate technique to memorise.

56. Deciding whether something is a function, in order

Pattern

The same five steps work whether you are handed a set of pairs, a table, a graph, or an equation.

  1. Identify what the inputs are. In pairs and tables they are the first coordinates or the top row; in a graph they are the x values; in an equation solved for y they are the x values.
  2. Ask whether any input appears more than once. In a graph, this is asking whether any two plotted points sit directly above one another.
  3. If an input does repeat, compare its outputs. Identical outputs are harmless; different outputs disqualify it.
  4. If nothing repeats, it is a function. Say so, and stop — there is nothing further to check.
  5. Only if you also need an inverse, run the horizontal sweep, and remember that failing it leaves the rule a function.

Step 3 is where most marks are lost, in both directions: rejecting a function because an output repeated, and accepting a non-function because the repeated input was in a different column of the table and went unnoticed.

OpenStax Algebra and Trigonometry 2e, §3.1 Functions and Function Notation §3.1

57. Check yourself 1 of 3

Check

Run the test on the inputs, and only the inputs.

Check your understanding

Which of these sets of ordered pairs is a function?

  • A. {(1, 2), (2, 4), (3, 6), (4, 8)} (correct)
  • B. {(1, 2), (1, 3), (2, 4), (3, 5)}
  • C. {(0, 1), (1, 2), (0, 3), (2, 4)}
  • D. {(5, 1), (6, 2), (5, 3), (7, 4)}

Answer: A

Why: In the first set the inputs are 1, 2, 3 and 4, all distinct, so each has exactly one output and it is a function. That the outputs happen to be double the inputs is a bonus, not part of the test.

Why B tempts people
The input 1 appears twice, paired once with 2 and once with 3. One input with two different outputs is exactly the disqualifier.
Why C tempts people
The input 0 appears twice, paired once with 1 and once with 3, so it fails for the same reason.
Why D tempts people
The input 5 appears twice, with outputs 1 and 3. The other pairs are fine, but one collision is enough.

58. Check yourself 2 of 3

Check

Keep the brackets around the input.

Check your understanding

Given f(x) = x squared minus 3x, what is f(-2)?

  • A. 10 (correct)
  • B. -2
  • C. 2
  • D. -10

Answer: A

Why: Substituting negative 2 with brackets gives the square of negative 2, which is 4, minus 3 times negative 2, which is negative 6. So the expression is 4 plus 6, which is 10. Both terms are affected by the sign of the input, and both push the answer upward.

Why B tempts people
This comes from squaring without brackets, reading the first term as the negative of 2 squared, giving negative 4, and then adding 6 incorrectly.
Why C tempts people
This comes from getting the first term right but treating the second as minus 3 times positive 2, so subtracting 6 instead of adding it.
Why D tempts people
This reverses the sign of the whole answer, which happens when both terms are given the wrong sign at once.

59. Check yourself 3 of 3

Check

Two tests, two separate verdicts.

Check your understanding

A graph passes the vertical line test but fails the horizontal line test. What can you conclude?

  • A. It is a function, but it is not one-to-one (correct)
  • B. It is not a function
  • C. It is a one-to-one function
  • D. It is neither a function nor one-to-one

Answer: A

Why: Passing the vertical test is exactly the condition for being a function, so it is one. Failing the horizontal test means two inputs share an output, which a function is allowed to do, so it is not one-to-one. The parabola is the standard example of precisely this situation.

Why B tempts people
Passing the vertical test is what being a function means, so this contradicts the information given.
Why C tempts people
Being one-to-one requires passing the horizontal test, which this graph fails.
Why D tempts people
It fails on the first count for the same reason as the second option: the vertical test was passed.

60. Where this shows up outside the classroom

Real world

Databases are built on this lesson, and they use its vocabulary almost unchanged.

Discussion prompt

A school database stores each student's identification number and their year group. Explain why the number is used as the key rather than the name, in the language of this lesson.

Hint: Which column is the input, and what would go wrong if two rows shared it?

Answer:

Looking a student up by identification number is a function: each number belongs to exactly one student, so the lookup always has exactly one answer.

Looking up by name is not a function, because two students may share a name and the query would return two rows with no way to choose. Database designers call the first situation a primary key, and the requirement they impose on it — uniqueness — is the definition of a function stated in another vocabulary.

The one-to-one idea appears too. Mapping students to year groups is a function but far from one-to-one, since hundreds share a year. That is exactly why you can go from student to year and not back, which is what the horizontal line test predicts.

61. Commit before you check

Commit first

State your confidence along with your answer.

Predict first

Is the relation pairing each whole number with its remainder on division by 3 a function, and is it one-to-one?

  • A function, but not one-to-one
  • A function, and one-to-one
  • Not a function
  • One-to-one but not a function

Correct: A function, but not one-to-one.

Why: Every whole number has exactly one remainder on division by 3, so it is a function. But 1, 4 and 7 all leave remainder 1, so many inputs share an output and it is not one-to-one. The last option is impossible for any relation at all, since being one-to-one is an extra condition on top of being a function, not an alternative to it.

62. Explain it to someone who missed the lesson

Explain it

The test of understanding is being able to say why, not just what.

Discussion prompt

In your own words, explain to a classmate why a function is allowed to send two inputs to the same output but not one input to two outputs. Use an everyday example.

Hint: What would you not be able to write down if one input had two outputs?

Answer:

A good explanation makes the asymmetry feel necessary rather than arbitrary. The birthday example works: everyone has exactly one birthday, so the lookup always works, but many people share a birthday and the reverse lookup gets stuck.

The mathematical reason to insist on it is that f(3) must name a number. If the input 3 had two outputs, that symbol would be ambiguous and could not appear in an equation, so every technique built on the notation would collapse.

A good explanation also says what is not forbidden, because that is where the confusion lives. Sharing an output is ordinary and useful — the constant rule does it as loudly as possible, and it is still a function.

63. Exit ticket

Exit ticket

One honest answer, so the next lesson can start in the right place.

Predict first

Which idea from this lesson would you most want to see again?

  • The definition, and which direction the test runs in
  • Function notation and substituting without losing brackets
  • Telling evaluating apart from solving
  • The two line tests and what each one decides

Correct: Any of these is a legitimate answer; the useful one is the honest one.

Why: There is no correct choice here. The second and third are the ones that cost the most marks on assessments, and the first is the one that quietly causes the other two, so an answer of the first is often the most accurate self-diagnosis even when the symptoms showed up elsewhere.

64. Draw the map

Connect it up

One page, drawn from memory, is worth more than rereading the section.

Draw it

Draw a diagram with 'relation' as the outer box, 'function' inside it, and 'one-to-one function' inside that. On each boundary, write the condition you must satisfy to move inward. Then, beside the diagram, draw one small graph that lives in each of the three regions, and write next to each which line test it passes.

If the nested boxes came out in the right order and each graph is in the right region, you have the whole lesson. The rest of Chapter 1 works inside this picture.

65. What you can do now

Recap

Five things, and the fifth one is the entry ticket to Section 1.7.

if you remember one thingit should be this
about the definitionone input, exactly one output — and nothing about outputs
about the notationf(x) is a name, so nothing distributes over it
about the two taskswhich letter is known decides which task you are doing
about the two testsvertical decides function; horizontal decides invertible

Section 1.2 takes the two sets this lesson named in passing — the domain and the range — and asks how to find them from a rule rather than read them off a list.

OpenStax, Precalculus, §1.1 Functions and Function Notation §1.1, pp. 10-40 — everything on these slides traces back here

Sources

  1. OpenStax, Precalculus, §1.1 Functions and Function Notation
  2. OpenStax Algebra and Trigonometry 2e, §3.1 Functions and Function Notation

Want this taught 1-on-1? Alexander tutors Precalculus — $55/session, free consultation.

Book on Wyzant · Text (657) 465-8108