1.1 Review of Functions

The formal definition of a function, function notation and evaluation, domain and range in interval notation, graphs and the vertical line test, zeros and intercepts, building new functions by arithmetic and by composition, and even and odd symmetry — the vocabulary every later section of calculus is stated in.

Subject: Calculus I · 73 slides · symbolic lesson

Open the interactive version of this deck

What this lesson covers

The lesson, slide by slide

1. Review of Functions

Title

Calculus I · Section 1.1

The objects every theorem of calculus is about

2. What this lesson gives you

Objectives

Calculus studies how functions change. Before you can say anything about change, you need a precise language for the functions themselves: what goes in, what comes out, what the graph looks like, and how two functions combine into a third.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 8-29 — learning objectives 1.1.1 to 1.1.7

Most of this section will feel familiar, and that is the point. Every definition in calculus, the limit, the derivative, the integral, is a statement about a function. If the vocabulary of functions is shaky, every later idea inherits the wobble.

So this lesson is a tune-up with a calculus student's eye. You will see why the expression f of a plus h matters (it is the first line of every derivative), why domains matter (a limit or an integral only makes sense where the function is defined), and why composition matters (the chain rule is a rule about composites).

Treat each part as a tool you will reach for many times this term, and pay special attention to the checks at the end of each worked example. They are habits worth building now.

3. Before anything new: when is a rule a function?

Warm-up

Discussion prompt

The area of a square is determined by its side length. Could you also say the side length of a RECTANGLE is determined by its area? Answer in one or two sentences, and say what goes wrong.

Write your answer before you reveal it. The question is not really about geometry; it is about whether knowing the input pins down the output.

For a square, it does: a side of 3 gives an area of 9, and nothing else. For a rectangle, an area of 12 could come from sides 3 and 4, or 2 and 6, or 1 and 12, and infinitely many more. Knowing the area does not tell you the side lengths.

Keep this example in mind as you meet the formal definition on the next slide. The one thing a function may never do is give two answers for the same input. Everything else, including two inputs sharing an answer, is allowed.

4. Functions and notation

Section

Part 1

5. A function: exactly one output for every input

Concept

function — A set of inputs (the domain), a set of outputs (the range), and a rule that assigns each input exactly one output.

Figure (svg): Two arrow diagrams. Left: inputs 1, 2, 3, 4 each send one arrow to the outputs 6, 4, 2, 2; two inputs share the output 2. Right: input 1 sends two arrows, to 2 and to 6, so the relation is not a function.

Sharing an output is allowed (3 and 4 both go to 2). Splitting an input is not: the moment one input has two arrows, the rule no longer determines the output.

A relation is any set of input-output pairs. A function is a relation with one extra promise: each input appears with only one output. Two inputs sharing an output is fine.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 8-9 — the definition of a function and Figure 1.3

Look at the left diagram first. Every input sends out exactly one arrow. Notice that 3 and 4 both point at 2: that is perfectly legal. A squaring rule does the same thing with 3 and negative 3, which both go to 9.

Now the right diagram. The input 1 sends out two arrows, one to 2 and one to 6. If someone asked you for the output at 1, you could not answer, and that is exactly what disqualifies this relation from being a function.

The words domain and range name the two sides. The domain is the set of inputs the rule accepts; the range is the set of outputs it actually produces. The range can be smaller than the set on the right side of the diagram: an output nobody points to is not in the range.

6. Function notation: f(x) names an output

Concept

Figure (svg): An input-output diagram: the number 3 and the number minus 3 each enter a box labelled f, the squaring rule, and both come out as 9.

The box is the rule. Whatever goes in, exactly one number comes out; different inputs may produce the same output.

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

The letter f is the rule, x is the input (the independent variable), and f of x is the output (the dependent variable). The brackets mean apply the rule to this input; they never mean multiply.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 8 — function notation and Figure 1.2

The picture treats a function as a machine: something goes in, the rule acts, one thing comes out. The two inputs 3 and negative 3 both come out as 9, which shows again that sharing outputs is fine.

The notation is where many calculus errors begin. The symbol f of x is a single number, the output. The brackets say which input to use; they do not mean multiply. So f of 2 plus h is not f times 2 plus f times h, and you will see that trap properly in a moment.

You will also hear x called the independent variable and y the dependent variable, because y depends on the choice of x. Writing y equals f of x just gives the output a name.

7. The graph is the set of points (x, f(x))

Concept

\[ f(x) = 3 - x, \qquad D = \{1, 2, 3\} \]

\[ f(1) = 2, \quad f(2) = 1, \quad f(3) = 0 \]

Figure (svg): The three points (1, 2), (2, 1) and (3, 0) plotted in the plane; the inputs 1, 2, 3 are marked on the x-axis as the domain and the outputs 0, 1, 2 on the y-axis as the range, joined by dashed projection lines.

The graph is nothing more than the set of points (x, f(x)). Its shadow on the x-axis is the domain {1, 2, 3}; its shadow on the y-axis is the range {0, 1, 2}.

The graph contains exactly one point above each input and nothing else. Read the domain off the horizontal axis and the range off the vertical one.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 9 — Figures 1.4 and 1.5

This function has only three inputs, so its graph is only three points. That is worth seeing once, because it strips the idea of a graph down to its definition: for each input, one point, placed at height equal to the output.

The dashed lines drop each point onto the axes. The feet of the points on the horizontal axis are the domain, one, two and three. Their shadows on the vertical axis are the range, zero, one and two.

Most functions in calculus have infinitely many inputs, so their graphs are curves rather than dots, but the definition does not change. A curve is just the set of all the points built this way.

8. Example 1.1: evaluating a function

Worked example

Evaluate the function below at a negative number, at a root, and at an expression.

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

Substitute minus 2, in brackets

Why: Replace every x by the whole input, brackets and all.

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

Simplify

Why: The bracket squares the sign too: minus 2 squared is plus 4.

\[ f(-2) = 12 - 4 - 1 = 7 \]

Substitute the square root of 2

Why: Squaring the root gives back 2.

\[ f(\sqrt2) = 3(\sqrt2)^2 + 2\sqrt2 - 1 = 6 + 2\sqrt2 - 1 \]

Collect the whole numbers

Why: Six minus one is five; the root term stays as it is.

\[ f(\sqrt2) = 5 + 2\sqrt2 \]

Substitute a plus h

Why: The input is now an expression; it goes in exactly like a number.

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

Expand the square

Why: The cross term 2ah is the one people drop.

\[ f(a+h) = 3\left(a^2 + 2ah + h^2\right) + 2a + 2h - 1 \]

Distribute the 3

Why: Every term inside the bracket is multiplied.

\[ f(a+h) = 3a^2 + 6ah + 3h^2 + 2a + 2h - 1 \]

Check with numbers

Why: Take a equal to 1 and h equal to 1: the formula must give f of 2, and f of 2 computed directly is 15.

\[ 3 + 6 + 3 + 2 + 2 - 1 = 15 = 3(2)^2 + 2(2) - 1 \quad \checkmark \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 10-11 — Example 1.1

The whole method is one instruction: replace every x by the input, and put the input in brackets. The brackets are what keep the sign of negative 2 attached when it is squared, so the first term becomes 3 times 4, not 3 times negative 4.

The square root input behaves the same way. The root squared is just 2, so the first term is 6; the middle term keeps its root, and the answer is 5 plus 2 root 2, which you should leave in that exact form.

The input a plus h is the one to practise most, because in Chapter 3 every derivative starts from exactly this expression. Expand the square carefully, the cross term 2ah is the one that goes missing, and distribute the 3 over every piece. The check at the end is quick and powerful: choose small numbers for a and h, and the long formula must agree with a direct evaluation.

9. Trap: f(a + h) is not f(a) + f(h)

Trap

The trap

A tempting shortcut for f of x equal to x squared:

\[ f(a+h) = f(a) + f(h) \]

\[ = a^2 + h^2 \quad ? \]

Wrong. Function notation is not multiplication, so it does not distribute.

The fix

Substitute the whole input, then expand. The cross term is real: with a and h both 1, the square of 2 is 4, not 2.

\[ f(a+h) = (a+h)^2 \]

\[ = a^2 + 2ah + h^2 \]

This error is tempting because it looks like the distributive law, which you have used for years. But f is not a number multiplying a bracket; it is a rule applied to the whole input.

The quickest way to catch the mistake is to test numbers. With a and h both equal to 1, the input is 2, and squaring gives 4. The shortcut gives 1 plus 1, which is 2. One test kills the shortcut, and the missing piece, 2ah, is exactly the cross term from squaring a sum.

10. Checkpoint 1.1: evaluate at 1 and at a + h

Fill the middle

\[ f(x) = x^2 - 3x + 5 \]

Fill in the blanks

f(1) = 3, \qquad f(a+h) = a^2 + 2ah + h^2 - 3a - 3h + 5

Why: One minus three plus five is three. For a plus h, squaring the binomial gives a squared plus 2ah plus h squared, and minus three times a plus h gives minus 3a minus 3h. Check with a equal to 0 and h equal to 1: the formula gives 1 minus 3 plus 5, which is 3, the same as f of 1.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 11 — Checkpoint 1.1

Fill in both blanks before checking. The first is plain arithmetic: 1 minus 3 plus 5.

For the second, expand a plus h squared and keep the cross term, then distribute the minus 3 across both a and h. If your answer for the cross term is anything other than 2ah, go back and square the bracket as a product of two brackets.

A good self-check is to put h equal to 0 into your long answer. You should get back f of a, the original rule with a in place of x, because adding nothing to the input changes nothing.

11. Piecewise-defined functions

Concept

\[ f(x) = \begin{cases} 3x + 1 & x \ge 2 \\ x^2 & x < 2 \end{cases} \]

One function, two formulas. The input decides which formula applies, so the first step of every evaluation is to compare the input with 2.

\[ 5 \ge 2: \; f(5) = 3(5) + 1 = 16 \qquad -1 < 2: \; f(-1) = (-1)^2 = 1 \]

Figure (svg): The graph of the piecewise function: the parabola y equals x squared for x less than 2, ending in an open circle at (2, 4), and the line y equals 3x plus 1 for x at least 2, starting at a filled dot (2, 7). The points (minus 1, 1) and (5, 16) are marked.

At x = 2 the rule switches. The filled dot belongs to the line, the open circle is where the parabola would have ended; f(2) is 7, one output, as a function requires.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 10 — piecewise-defined functions

A piecewise function is still one function. It simply uses different formulas on different parts of its domain, and the conditions on the right tell you which formula applies to which inputs.

So every evaluation starts with a comparison. Is the input at least 2, or less than 2? For 5 you use the line, 3 times 5 plus 1, which is 16. For negative 1 you use the parabola, which gives 1.

Look at the graph at x equal to 2. The filled dot sits on the line at height 7; the open circle marks where the parabola would have ended, at height 4, but that point is not on the graph. Absolute value, taxes, postage and shipping costs are all piecewise, and so are many of the functions used to test the definition of a limit in Chapter 2.

12. Which formula does x = 2 use?

Prediction

\[ f(x) = \begin{cases} 3x + 1 & x \ge 2 \\ x^2 & x < 2 \end{cases} \]

Predict first

What is f(2)?

  • 4
  • 7
  • Both 4 and 7
  • Undefined

Correct: 7

Why: The condition x at least 2 includes x equal to 2, so the first formula applies: 3 times 2 plus 1 is 7. The second formula only covers inputs strictly less than 2. A function cannot give two outputs, and this one does not: the boundary belongs to exactly one piece.

Commit to an answer first. The whole question is about how to read the conditions at the boundary.

The first condition says x at least 2, and at least includes equality. So the input 2 belongs to the first piece, and the output is 7. The second piece only takes inputs strictly below 2.

Notice that the answer cannot be both. If it were, the input 2 would have two outputs and this would not be a function. Well-written piecewise definitions always hand each boundary point to exactly one piece.

13. Domain and range

Section

Part 2

14. Set-builder and interval notation

Concept

\[ \{x \mid 1 < x < 5\} = (1, 5) \qquad \{x \mid 1 \le x \le 5\} = [1, 5] \]

\[ \{x \mid 0 \le x\} = [0, \infty) \qquad \{x \mid x \le 0\} = (-\infty, 0] \]

Figure (svg): Four number lines. The interval (1, 5) is drawn with open circles at 1 and 5; [1, 5] with filled dots; [0, infinity) with a filled dot at 0 and an arrow to the right; (minus infinity, 0] with an arrow to the left and a filled dot at 0.

A round bracket is an open circle (the endpoint is left out); a square bracket is a filled dot (it is kept). Infinity always gets a round bracket, because it is not a number the set could contain.

The whole real line is written with infinity at both ends. Infinity is a direction, not a number, so it never gets a square bracket.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 10 — set-builder and interval notation

Domains and ranges are usually infinite sets, so you need a compact way to write them. Set-builder notation describes the property; interval notation just names the two ends.

The number lines show the translation. A round bracket leaves the endpoint out, drawn as an open circle. A square bracket keeps it, drawn as a filled dot. The interval from 1 to 5 with round brackets does not contain 1 or 5; with square brackets it contains both.

Infinity always takes a round bracket. It is not a real number, so no set of real numbers can contain it; it only says the interval goes on without end in that direction.

15. Reading an interval piece by piece

Notation

Annotate

On: \( [0, \infty) = \{x \mid 0 \le x\} \)

  • A square bracket: the endpoint 0 belongs to the set. On a number line, a filled dot.
  • Infinity with a round bracket: the set runs on forever. It is never included, because it is not a real number.
  • Set-builder notation: read the bar as 'such that'. The set of all x such that zero is at most x.
  • A round bracket at a finite endpoint means that endpoint is left out, an open circle, as in (1, 5).

Step through the annotations one at a time and say each piece aloud. The square bracket at zero says zero is included. The round bracket at infinity says the set continues forever to the right.

The vertical bar inside the curly braces is read such that. So the right-hand side reads: the set of all x such that zero is at most x. The two sides say the same thing in two languages.

You will write intervals constantly this term: domains, intervals where a function increases, intervals of convergence. Getting the brackets right each time is a small habit that saves real marks.

16. Match each set to its interval

Matching

Match the pairs

  • a. {x | −2 ≤ x < 3}
  • b. {x | x > 4}
  • c. {x | x ≠ 2}
  • d. {x | x ≤ 3/2}
  • w. [−2, 3)
  • x. (4, ∞)
  • y. (−∞, 2) ∪ (2, ∞)
  • z. (−∞, 3/2]

Why: Each inequality sign becomes a bracket: at most or at least gives a square bracket, strictly less or greater gives a round one. A single excluded point needs two intervals joined by a union, one on each side of it.

Match each set to its interval before checking. Translate each inequality one end at a time: at most or at least gives a square bracket, strictly less or strictly greater gives a round one.

The one to slow down on is x not equal to 2. That is not a single interval: it is everything to the left of 2 together with everything to the right. Two intervals joined by a union sign, both with round brackets at 2.

The last one, x at most three halves, has no lower bound, so it starts at negative infinity with a round bracket and ends at three halves with a square one. You will meet exactly this set again in the checkpoint on domains.

17. The natural domain: ask what would break

Concept

When a formula comes with no stated domain, the domain is every real number for which the formula gives a real output. In this section only two things break a formula.

what breaksso requireexample
dividing by zerodenominator ≠ 03/(x − 2): x ≠ 2
an even root of a negativeradicand ≥ 0√(3x + 2): x ≥ −2/3

\[ f(x) = \sqrt{x} \;\Longrightarrow\; D = [0, \infty) \qquad f(x) = x^2 \;\Longrightarrow\; D = (-\infty, \infty) \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 9 — the natural domain

When a function is given only by a formula, you have to work out its domain yourself. The rule is: include every real number for which the formula produces a real output. The practical method is the reverse: find what breaks, and throw it out.

In this section only two things can break a formula. A denominator equal to zero, and an even root of a negative number. Later you will add logarithms, which need positive inputs, and a few trigonometric functions.

If nothing breaks, the domain is every real number. That is why polynomials are the easiest functions to work with: they never break anywhere.

18. Domain and range are the graph's shadows

Picture it

Figure (svg): The upper semicircle y equals the square root of 9 minus x squared. Its shadow on the x-axis, from minus 3 to 3, is drawn as a thick blue band and labelled domain; its shadow on the y-axis, from 0 to 3, is a thick green band labelled range.

Shine a light straight down and the graph's shadow on the x-axis is the domain; shine it sideways and the shadow on the y-axis is the range.

The upper half of the circle of radius 3 has inputs from minus 3 to 3 and outputs from 0 to 3. The dashed lines carry one point of the curve down to its input and across to its output.

This picture gives you a way to see domain and range at once. Imagine a light shining straight down onto the x-axis: the shadow of the graph is the set of inputs that have a point above them, which is the domain. Shine the light from the side and the shadow on the y-axis is the set of outputs, the range.

For the upper half of the circle, the inputs run from negative 3 to 3 and the outputs from 0 to 3. The dashed lines carry one point on the curve to its input and to its output.

When you are unsure of a range worked out by algebra, sketch the graph and look at its sideways shadow. The two methods should always agree.

19. Example 1.2(a): a parabola's domain and range

Worked example

\[ f(x) = (x-4)^2 + 5 \]

Domain: nothing breaks

Why: Squaring and adding work for every real number.

\[ D = (-\infty, \infty) \]

Bound the outputs

Why: A square is never negative, so the output is at least 5.

\[ (x-4)^2 \ge 0 \;\Longrightarrow\; f(x) \ge 5 \]

Show every such y is reached: set f(x) equal to y

Why: Solving for x tells you which input produces the output y.

\[ (x-4)^2 + 5 = y \;\Longrightarrow\; (x-4)^2 = y - 5 \]

Solve for x

Why: The square root is real exactly when y is at least 5.

\[ x = 4 \pm \sqrt{y - 5} \]

State the range

Why: Both bounds are met: nothing below 5, everything from 5 up.

\[ R = \{y \mid y \ge 5\} = [5, \infty) \]

Figure (svg): The parabola y equals (x minus 4) squared plus 5, with its vertex (4, 5) marked; a thick green band on the y-axis from 5 upward shows the range.

The lowest output is 5, at the vertex, and every output above 5 is hit twice. The green band is the range.

Check one output

Why: Take y equal to 14: the formula gives x equal to 4 plus or minus 3, and both inputs really do give 14.

\[ f(7) = 3^2 + 5 = 14, \quad f(1) = (-3)^2 + 5 = 14 \quad \checkmark \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 11 — Example 1.2a

The domain is immediate, because nothing in this formula can break. The range takes two steps, and the book's method is worth learning because it works for every example that follows.

Step one finds a bound. A square is never negative, so the output is never less than 5. Step two shows the bound is the only limit: set the output equal to a number y and solve for x. The solution involves the square root of y minus 5, which is real exactly when y is at least 5. So every such y really is an output.

The graph confirms it: the vertex sits at height 5, and the green band on the y-axis is the range. The check picks y equal to 14 and finds both inputs the formula predicted, 7 and 1.

20. Example 1.2(b): a shifted square root

Worked example

\[ f(x) = \sqrt{3x + 2} - 1 \]

Domain: the radicand must not be negative

Why: An even root of a negative number is not real.

\[ 3x + 2 \ge 0 \;\Longrightarrow\; x \ge -\tfrac23 \]

Bound the outputs

Why: A square root is never negative.

\[ \sqrt{3x+2} \ge 0 \;\Longrightarrow\; f(x) \ge -1 \]

Set f(x) equal to y and isolate the root

Why: Add 1 to both sides.

\[ \sqrt{3x + 2} = y + 1 \]

Square both sides

Why: Allowed because y plus 1 is not negative when y is at least minus 1.

\[ 3x + 2 = (y+1)^2 \]

Solve for x

Why: Subtract 2, divide by 3.

\[ x = \tfrac13 (y+1)^2 - \tfrac23 \ge -\tfrac23 \]

State both sets

Why: The x found is always in the domain, so every y from minus 1 up is reached.

\[ D = \left[-\tfrac23, \infty\right), \qquad R = [-1, \infty) \]

Figure (svg): The curve y equals the square root of 3x plus 2, minus 1, starting at the filled point (minus two thirds, minus 1) and rising slowly to the right; a dashed vertical line marks x equals minus two thirds.

The graph starts where the radicand is zero, at x = −2/3, and its lowest output is −1. Nothing lies to the left of the dashed line or below the green one.

Check with y equal to 2

Why: The formula gives x equal to 9 thirds minus 2 thirds, which is 7 thirds, and f of that is 2.

\[ f\left(\tfrac73\right) = \sqrt{7 + 2} - 1 = 3 - 1 = 2 \quad \checkmark \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 11-12 — Example 1.2b

Start with the domain. The square root needs a radicand that is not negative, so 3x plus 2 must be at least 0, which gives x at least negative two thirds. The graph starts exactly there.

For the range, the root is never negative, so the output is never below negative 1. Then solve the output equation for x. Squaring both sides is safe here only because both sides are non-negative; squaring can create false solutions when one side might be negative.

The last step matters and is easy to skip: the x you found must be in the domain. It is, because a square divided by three, minus two thirds, is never below negative two thirds. The check with y equal to 2 lands at x equal to seven thirds, the orange point on the graph.

21. Example 1.2(c): a reciprocal

Worked example

\[ f(x) = \frac{3}{x - 2} \]

Domain: the denominator must not be zero

Why: Only x equal to 2 breaks the formula.

\[ x - 2 \ne 0 \;\Longrightarrow\; D = \{x \mid x \ne 2\} \]

Set f(x) equal to y

Why: Ask which outputs have an input.

\[ \frac{3}{x-2} = y \]

Solve for x

Why: Multiply by x minus 2, divide by y.

\[ x - 2 = \frac{3}{y} \;\Longrightarrow\; x = \frac3y + 2 \]

Read off the range

Why: The formula for x works for every y except 0.

\[ R = \{y \mid y \ne 0\} = (-\infty, 0) \cup (0, \infty) \]

Figure (svg): The two branches of y equals 3 over x minus 2, on either side of a dashed vertical line at x equals 2. The branches approach the x-axis but never touch it.

One input is missing (x = 2) and one output is missing (y = 0). They are different numbers, and they come from different questions.

Check the missing output directly

Why: Setting the function equal to 0 would need 3 to equal 0, which is impossible; and y equal to 1 gives x equal to 5, which works.

\[ \frac{3}{x-2} = 0 \iff 3 = 0 \;(\text{never}), \qquad f(5) = \frac33 = 1 \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 12 — Example 1.2c

Here the danger is division by zero, so the domain is every x except 2. The graph shows the break: a dashed line at x equal to 2 that the curve never touches.

For the range, solve the output equation for x. You get 3 over y, plus 2, which works for every y except 0. So 0 is the one number that never comes out.

Do not mix up the two missing numbers. The missing input is 2, found from the denominator; the missing output is 0, found by solving for x. The check confirms the missing output directly: a fraction with numerator 3 can never equal 0.

22. Checkpoint 1.2: a root with a negative coefficient

Worked example

\[ f(x) = \sqrt{4 - 2x} + 5 \]

Require a non-negative radicand

Why: The same rule as Example 1.2(b).

\[ 4 - 2x \ge 0 \]

Solve, reversing the inequality

Why: Dividing both sides by minus 2 flips the inequality sign.

\[ -2x \ge -4 \;\Longrightarrow\; x \le 2 \]

Bound the outputs

Why: The root is at least 0, so the output is at least 5.

\[ f(x) \ge 0 + 5 = 5 \]

Show every y from 5 up is reached

Why: Isolate the root, square, solve.

\[ \sqrt{4-2x} = y - 5 \;\Longrightarrow\; x = 2 - \tfrac12 (y-5)^2 \le 2 \]

State both sets

Why: Domain to the left of 2, range from 5 up.

\[ D = (-\infty, 2], \qquad R = [5, \infty) \]

Check one point on each side of the boundary

Why: At 2 the radicand is 0 and f is 5; at 3 the radicand is minus 2, which has no real root.

\[ f(2) = \sqrt0 + 5 = 5, \qquad 4 - 2(3) = -2 < 0 \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 12 — Checkpoint 1.2

This is the same pattern as Example 1.2(b), with one extra hazard: the coefficient of x inside the root is negative. When you divide an inequality by a negative number, the inequality turns around. That is why the domain is x at most 2, not at least 2.

The range comes from the root being at least 0, so the output is at least 5. Solving the output equation for x gives 2 minus a non-negative amount, which is always in the domain, so every y from 5 up is reached.

The check tests one point on each side of the boundary. At x equal to 2 the output is exactly 5. At x equal to 3 the radicand is negative 2, which has no real root. Testing both sides of every boundary is the fastest way to catch a reversed inequality.

23. Find the error: a flipped domain

Error analysis

Annotate

On: \( 4 - 2x \ge 0 \;\Longrightarrow\; -2x \ge -4 \;\Longrightarrow\; x \ge 2 \)

  • Correct: subtracting 4 from both sides keeps the inequality as it is.
  • The error. Dividing by a NEGATIVE number reverses the inequality: the answer is x ≤ 2.
  • Try x = 3, which the wrong answer allows: 4 − 6 = −2, and √(−2) is not real. One test value exposes the flip.

Try to spot the mistake before you reveal the annotations. Two of the three moves are fine.

The error is in the last step: dividing both sides by negative 2 without reversing the inequality. Multiplying or dividing by a negative number reverses the order of the real line, so the inequality has to flip too.

The third annotation shows the habit that catches this for free. Pick a number the wrong answer allows, here 3, and put it into the radicand. You get negative 2, which has no real square root, so 3 cannot be in the domain. One number is enough to expose the error.

24. Tables, graphs and zeros

Section

Part 3

25. A function given by a table

Concept

Table 1.1 records the temperature every hour for a day. Each hour has exactly one reading, so temperature is a function of time, even though no formula is in sight.

Figure (svg): Twenty-four temperature readings plotted against hours after midnight and joined by line segments: the temperature falls from 58 to 52 degrees by hour 4, climbs to 85 at hours 13 and 14, then falls to 58 by hour 23.

Plotting the table shows what the columns of numbers hide: a dip before dawn, a peak in the early afternoon, and a fall through the evening.

Joining the dots is a guess about the times in between. It is a reasonable guess here, because temperature changes smoothly, but the table itself only knows 24 values.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 12-14 — Table 1.1, Figures 1.6 and 1.7

Not every function has a formula. Table 1.1 lists 24 temperature readings, one per hour, and that is a function because each hour has exactly one temperature.

The graph reveals the shape the table hides: a slow fall through the early morning to 52 degrees, a steady climb to 85 in the early afternoon, and a long fall through the evening.

Be honest about what joining the dots means. The table defines the function only at whole hours. Drawing segments between the dots is a model, a sensible guess about temperatures in between. Calculus often works with functions like this, known only at sample points, and later you will learn to estimate rates of change and totals from such data.

26. Estimate the temperature at 6:30 a.m.

Estimation

Predict first

Table 1.1 gives 60 °F at hour 6 and 64 °F at hour 7. What is the most reasonable estimate at hour 6.5?

  • About 58 °F
  • About 62 °F
  • About 66 °F
  • It cannot be estimated at all

Correct: About 62 °F

Why: Halfway between the two readings is 62, and the connected graph assumes exactly that. It is an estimate, not a value of the function: the table defines the function only at whole hours, and joining the dots is a modelling choice.

Make your guess before checking. The two nearest readings are 60 degrees at 6 and 64 degrees at 7.

Halfway in time suggests halfway in temperature, 62 degrees. That is exactly what the straight segment on the graph assumes. It is a reasonable estimate because temperature does not jump around within an hour.

The option that says it cannot be estimated is too cautious, but it has a point: 62 is not a value of the function defined by the table. It is an interpolation. Keeping the difference clear will matter when you estimate derivatives from data in Chapter 3.

27. Exercises 1-6: function or not?

Sorting

Sort into buckets

Each relation is a list of (x, y) pairs from the section's first six exercises. Sort them.

A function
(−3, 9), (−2, 4), (−1, 1), (0, 0), (1, 1), (2, 4), (3, 9); (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1); (3, 3), (5, 2), (8, 1), (10, 0), (15, 1), (21, 2), (33, 3); (−3, −2), (−2, −8), (−1, −1), (0, 0), (1, 1), (2, 8), (3, −2)
Not a function
(1, −3), (2, −2), (3, −1), (0, 0), (1, 1), (2, 2), (3, 3); (−7, 11), (−2, 5), (−2, 1), (0, −1), (1, −2), (3, 4), (6, 11)
yes
In each of these, no x appears twice. Repeated y-values (9 twice, 1 seven times, 3 twice) are allowed: different inputs may share an output.
no
Exercise 3 pairs 1 with both −3 and 1 (and 2 and 3 are repeated too); Exercise 6 pairs −2 with both 5 and 1. One input, two outputs.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 24-25 — Exercises 1 to 6

For each list, look only at the x-values and ask whether any x appears twice with different y-values. Repeated y-values do not matter at all.

Two lists fail. In Exercise 3, the input 1 is paired with negative 3 and with 1, and the inputs 2 and 3 are repeated too. In Exercise 6, the input negative 2 is paired with 5 and with 1. Each is one input with two outputs.

Exercise 4 is worth a second look: every input gives the output 1. That is a constant function, and it is a perfectly good function, because each input still has exactly one output. It just happens to be the same one every time.

28. Zeros and the y-intercept

Concept

zero of f — An input x with f(x) = 0: a place where the graph meets the x-axis. A function may have none, one, or many.

\[ f(x) = x^2 - 4 = 0 \iff x = \pm 2 \qquad \text{y-intercept: } (0, f(0)) = (0, -4) \]

Figure (svg): The parabola y equals x squared minus 4 crossing the x-axis at minus 2 and 2, marked as zeros, and crossing the y-axis once, at (0, minus 4), marked as the y-intercept.

Zeros are where the output is 0, so the graph meets the x-axis. The y-intercept is the output at input 0; a function can have many zeros but at most one y-intercept.

There is at most one y-intercept, because the input 0 has at most one output. If 0 is not in the domain, there is none.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 14 — zeros and the y-intercept

A zero is an input, not a point: it is an x that makes the output 0. On the graph, zeros are where the curve meets the x-axis. For x squared minus 4, solving gives plus or minus 2.

The y-intercept is the point where the graph crosses the y-axis, which happens at input 0. Since the input 0 has at most one output, a function has at most one y-intercept, and none at all if 0 is outside its domain.

Zeros matter enormously in calculus. You will find the zeros of derivatives to locate peaks and valleys, and the zeros of functions to find where signs change. The first step is always the same: set the function equal to 0 and solve.

29. The vertical line test

Picture it

Figure (svg): Two panels. Left: the curve y equals x cubed minus 3x, crossed by three vertical lines, each meeting it exactly once. Right: the circle x squared plus y squared equals 9, crossed by the vertical line x equals 1 at two points, (1, 2.83) and (1, minus 2.83).

A vertical line is the set of points with one fixed input. Two hits means that input has two outputs, which is exactly what the definition forbids.

Every point on a vertical line has the same x. If the line meets a set of points twice, that one x has two y-values, so the set is not the graph of a function.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 14-15 — the vertical line test and Figure 1.8

The left panel shows a wiggly curve crossed by three vertical lines. Each line meets it exactly once, and that would be true wherever you placed the line. So it is the graph of a function.

The right panel is the circle of radius 3. The vertical line at x equal to 1 meets it twice, at heights about 2.83 and negative 2.83. The input 1 would have two outputs, so the circle is not the graph of a function.

The test is not a new rule to memorise; it is the definition of a function drawn as a picture. The upper half of the circle alone passes the test, which is why you saw it as a function a few slides ago.

30. Example 1.3: zeros and intercept of a line

Worked example

\[ f(x) = -4x + 2 \]

Find the zero: set the output to 0

Why: A zero is an input whose output is zero.

\[ -4x + 2 = 0 \]

Solve

Why: Subtract 2, divide by minus 4.

\[ x = \frac{-2}{-4} = \frac12 \]

Find the y-intercept: put in 0

Why: The y-intercept is the point with input 0.

\[ f(0) = -4(0) + 2 = 2 \;\Longrightarrow\; (0, 2) \]

Sketch from the two points

Why: A linear function is fixed by any two of its points.

\[ \left(\tfrac12, 0\right), \quad (0, 2) \]

Figure (svg): The line y equals minus 4x plus 2, falling steeply, crossing the y-axis at (0, 2) and the x-axis at (one half, 0).

Two points determine a line: the zero and the y-intercept are enough to draw it.

Check the zero

Why: Substitute it back: the output must be exactly 0.

\[ f\left(\tfrac12\right) = -4\cdot\tfrac12 + 2 = -2 + 2 = 0 \quad \checkmark \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 15 — Example 1.3

Two questions, two different substitutions. For the zero you set the output to 0 and solve for the input. For the y-intercept you set the input to 0 and compute the output.

Setting negative 4x plus 2 equal to 0 gives x equal to one half. Putting x equal to 0 gives an output of 2. Those two points are enough to draw the line, because a line is determined by any two of its points.

The check substitutes the zero back into the function and gets exactly 0. Do this every time you find a zero; it takes seconds and catches sign slips immediately.

31. Example 1.4: a y-intercept but no zeros

Worked example

\[ f(x) = \sqrt{x+3} + 1 \]

Try to find a zero

Why: Set the output equal to 0 and isolate the root.

\[ \sqrt{x+3} + 1 = 0 \;\Longrightarrow\; \sqrt{x+3} = -1 \]

Notice the contradiction

Why: A square root is never negative, so no x works.

\[ \sqrt{x+3} \ge 0 > -1 \;\Longrightarrow\; \text{no zeros} \]

Find the y-intercept

Why: Zero is in the domain, since 0 plus 3 is positive.

\[ f(0) = \sqrt3 + 1 \;\Longrightarrow\; \left(0, 1 + \sqrt3\right) \]

Make a table with easy roots

Why: Choose inputs of at least minus 3 that make x plus 3 a perfect square.

\[ f(-3) = 1, \quad f(-2) = 2, \quad f(1) = 3 \]

Figure (svg): The curve y equals the square root of x plus 3, plus 1, starting at (minus 3, 1) and rising through (minus 2, 2), (0, 1 plus root 3) and (1, 3). It stays above the x-axis everywhere.

The lowest output is 1, so the graph never reaches the x-axis: a y-intercept, but no zeros.

Check against the picture

Why: The smallest output is 1, at x equal to minus 3, so the graph never comes down to the x-axis, which agrees with finding no zeros.

\[ f(x) \ge 0 + 1 = 1 > 0 \text{ for all } x \ge -3 \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 16 — Example 1.4 and Table 1.2

The zero equation leads to a square root equal to negative 1. A principal square root is never negative, so this equation has no solution, and the function has no zeros. Recognising an impossible equation is a legitimate answer, not a failure to solve.

The y-intercept is at 1 plus root 3, about 2.73. For the sketch, choose inputs that make the root easy: negative 3, negative 2 and 1 make x plus 3 equal to 0, 1 and 4.

The graph confirms both answers. It starts at height 1 and only rises, so it never reaches the x-axis. When your algebra says no zeros, a picture like this is the quickest reassurance.

32. Checkpoint 1.3: before solving a cubic

Step zero

\[ f(x) = x^3 - 5x^2 + 6x \]

Discussion prompt

You want the zeros of this cubic. There is no cubic formula in this course. What is the first move, and what are the zeros?

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 16 — Checkpoint 1.3

Write down the first move before revealing it. There is a formula for cubics, but nobody uses it; the move that works here is factoring.

Every term contains x, so take it out. What remains is a quadratic, x squared minus 5x plus 6, which factors as x minus 2 times x minus 3. A product is 0 exactly when one of its factors is 0, so the zeros are 0, 2 and 3.

Dividing both sides by x instead of factoring it out is a classic error. It silently loses the zero at x equal to 0. Factor, never divide by something that might be 0.

33. Example 1.5: a falling ball

Worked example

A ball is dropped from 100 feet. Its height after t seconds is given below. Build a table, find when it lands, and state the domain.

\[ s(t) = -16t^2 + 100 \]

Evaluate at half-second steps

Why: Each entry is one substitution.

\[ s(0) = 100, \; s(0.5) = 96, \; s(1) = 84 \]

Continue the table

Why: The drops grow each half second: the ball speeds up.

\[ s(1.5) = 64, \; s(2) = 36, \; s(2.5) = 0 \]

Find the landing time

Why: Landing means height zero; solve for the positive t.

\[ -16t^2 + 100 = 0 \;\Longrightarrow\; t^2 = \frac{100}{16} \;\Longrightarrow\; t = 2.5 \]

State the domain

Why: Before release or after landing the formula no longer describes the ball.

\[ D = [0, 2.5] \]

Figure (svg): The height s of t equals minus 16 t squared plus 100 for t from 0 to 2.5 seconds: a downward-opening arc starting at 100 feet and hitting 0 at t equals 2.5, with the table values 100, 96, 84, 64, 36, 0 marked.

The formula makes sense for any t, but the physics does not: the model only describes the fall, so the domain is [0, 2.5].

Check the landing time

Why: Substitute 2.5 back: 2.5 squared is 6.25, and 16 times 6.25 is 100.

\[ s(2.5) = -16(6.25) + 100 = -100 + 100 = 0 \quad \checkmark \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 16-17 — Example 1.5 and Table 1.3

The table is a series of simple substitutions, but read it as physics. The ball drops 4 feet in the first half second, then 12, then 20, then 28: it is speeding up. Later in the course the derivative will measure exactly that speed.

The landing time comes from setting the height to 0 and solving. The two solutions are plus and minus 2.5, and only the positive one makes physical sense.

This is a case where the domain is set by the situation, not by the algebra. The formula has an output for every real t, but it only describes the ball between release and landing, so the domain is the closed interval from 0 to 2.5. In applications, always ask what inputs make sense, not just what inputs the formula accepts.

34. Increasing and decreasing

Concept

Look at the ball and the line of Example 1.3: as the input grows, the output shrinks. The root of Example 1.4 does the opposite. The definition compares any two inputs on an interval.

\[ f \text{ increasing on } I: \quad x_1 < x_2 \;\Longrightarrow\; f(x_1) \le f(x_2) \]

\[ f \text{ decreasing on } I: \quad x_1 < x_2 \;\Longrightarrow\; f(x_1) \ge f(x_2) \]

Figure (svg): Two panels. Left: the line y equals 3x rising from lower left to upper right, with two inputs x1 less than x2 marked and their outputs f of x1 below f of x2. Right: the curve y equals minus x cubed falling, with f of x1 above f of x2.

Pick any two inputs with the first to the left of the second, and compare their heights. The comparison always comes out the same way on an increasing (or decreasing) function.

Replace the non-strict inequality by a strict one to get strictly increasing or strictly decreasing.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 17-18 — definition and Figure 1.11

The informal idea is simple: a function is increasing when its graph rises from left to right. The definition makes that precise by comparing two inputs. Whenever the first input is to the left of the second, the first output is no higher than the second.

The two panels show both cases. On the line 3x, the later input always has the higher output. On negative x cubed, the later input always has the lower output.

Notice that increasing is a property of an interval, not of a single point. The temperature function is decreasing on the first four hours, increasing from hour 4 to hour 14, and decreasing again after that. In Chapter 4 the sign of the derivative will tell you these intervals without drawing anything.

35. Reading the definition of increasing

Notation

Annotate

On: \( \forall\, x_1, x_2 \in I: \quad x_1 < x_2 \;\Longrightarrow\; f(x_1) \le f(x_2) \)

  • For EVERY pair of inputs in the interval, not just a few you tried. One bad pair and the function is not increasing on I.
  • Name the left input x₁. The order of the inputs is fixed; the definition then tells you the order of the outputs.
  • Not strict: equal outputs are allowed, so a flat stretch still counts as increasing. With < it is strictly increasing.
  • Increasing is a property of an interval. The temperature rises on (4, 14) and falls on (14, 23).

\[ 3x_1 < 3x_2 \text{ and } -x_1^3 > -x_2^3 \text{ whenever } x_1 < x_2 \]

Walk through each annotation. The for-all symbol is the demanding part: the inequality has to hold for every pair of inputs in the interval. Checking a few pairs can make you suspicious, but only an argument covering all pairs proves it.

The inequality in the definition is not strict, so a flat stretch still counts as increasing. The book calls the version with a strict inequality strictly increasing. Other textbooks swap these names, so read the definition in front of you.

The line of maths under the annotation gives the book's two proofs in one line each. Multiplying by 3 keeps the order of two numbers; cubing keeps it too, and then the minus sign reverses it.

36. Increasing, but not strictly

Counterexample

Discussion prompt

Give a function that is increasing on an interval but NOT strictly increasing there. Then find a stretch of Table 1.1 that shows the same thing.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 17 — the temperature intervals (0, 4), (4, 14), (14, 23)

Answer before you reveal. The quickest example is a constant function: no output is ever greater than another, so the non-strict inequality always holds and the strict one never does.

The temperature table has two small flat stretches: 52 degrees at hours 3 and 4, and 85 degrees at hours 13 and 14. So on those hours the readings are level, which is why the book states its intervals with round brackets and the non-strict definition.

A counterexample like this is how you learn what a definition really says. If you can build something that passes one version and fails the other, you understand the difference between them.

37. Building new functions

Section

Part 4

38. Adding, subtracting, multiplying, dividing

Concept

\[ (f + g)(x) = f(x) + g(x) \qquad (f - g)(x) = f(x) - g(x) \]

\[ (f \cdot g)(x) = f(x)\,g(x) \qquad \left(\frac fg\right)(x) = \frac{f(x)}{g(x)}, \; g(x) \ne 0 \]

Figure (svg): Three curves: f of x equals 2x minus 3, g of x equals x squared minus 1, and their sum x squared plus 2x minus 4. At x equals 2, stacked vertical bars show f(2) equal to 1 and g(2) equal to 3 adding to (f plus g)(2) equal to 4.

Adding functions means adding their outputs at the same input. At every x, the height of f + g is the height of f stacked on the height of g.

Each new function is computed input by input. Its domain is where both f and g are defined, and for the quotient you must also remove every zero of g. Profit is revenue minus cost: P(x) is R(x) minus C(x).

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 18 — combining functions with mathematical operators

Combining functions with arithmetic is done one input at a time: to get the sum at x, compute f of x and g of x and add them. The graph shows this literally. At x equal to 2, the height of f is 1 and the height of g is 3, and the height of the sum is 4, the two bars stacked.

The domain of the combination is where both f and g are defined, because you need both outputs. The quotient needs one more condition: throw out every x where g is 0.

The book's motivating example is profit. If revenue and cost are both functions of the number of items made, profit is revenue minus cost, a new function built by subtraction.

39. Example 1.6: four combinations of two functions

Worked example

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

Add, then collect like terms

Why: Both are defined everywhere, so the domain is all reals.

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

Subtract, with a bracket around g

Why: The minus sign reaches both terms of g.

\[ (f-g)(x) = 2x - 3 - x^2 + 1 = -x^2 + 2x - 2 \]

Multiply term by term

Why: Four products.

\[ (f\cdot g)(x) = 2x^3 - 2x - 3x^2 + 3 \]

Arrange by powers

Why: Same polynomial, standard order.

\[ (f\cdot g)(x) = 2x^3 - 3x^2 - 2x + 3 \]

Divide, and remove the zeros of g

Why: The denominator is zero at x equal to 1 and minus 1.

\[ \left(\frac fg\right)(x) = \frac{2x-3}{x^2-1}, \quad D = \{x \mid x \ne \pm 1\} \]

Figure (svg): The graph of 2x minus 3 over x squared minus 1, broken into three pieces by dashed vertical lines at x equals minus 1 and x equals 1, where the denominator is zero.

The zeros of g are holes in the domain of f/g: at x = 1 and x = −1 there is no output, and the graph breaks apart.

Check all four at x equal to 2

Why: Directly, f of 2 is 1 and g of 2 is 3, so the four answers must be 4, minus 2, 3 and one third.

\[ 4 + 4 - 4 = 4, \;\; -4 + 4 - 2 = -2, \;\; 16 - 12 - 4 + 3 = 3, \;\; \tfrac{1}{3} \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 19 — Example 1.6

The sum, difference and product are routine algebra, but watch the difference. The minus sign applies to the whole of g, so put g in brackets before you remove them. Minus the bracket x squared minus 1 is minus x squared plus 1.

The product needs four multiplications, one for each pair of terms, then rearranging by powers. Doing it in two lines, multiply then tidy, keeps each step checkable.

The quotient is where domain thinking returns. Both f and g are defined everywhere, but the denominator x squared minus 1 is 0 at 1 and at negative 1, so those two inputs are removed. The graph shows the function breaking apart at exactly those two places. The final check uses f of 2 equals 1 and g of 2 equals 3 to test all four answers at once.

40. Checkpoint 1.4: a quotient and its domain

Fill the middle

\[ f(x) = x^2 + 3, \qquad g(x) = 2x - 5 \]

Fill in the blanks

The quotient f/g is (x² + 3)/(2x − 5), and the one input to remove from its domain is x = 5/2.

Why: The numerator is defined everywhere; only the denominator can break the formula. Setting 2x minus 5 equal to zero gives x equal to five halves, so the domain is every real number except five halves. Check: at x equal to 3 the quotient is 12 over 1, which is 12, and f of 3 over g of 3 is also 12 over 1.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 19 — Checkpoint 1.4

Only one number needs to be found, so think about where it comes from. The numerator x squared plus 3 is defined everywhere. The denominator 2x minus 5 is also defined everywhere, but it is 0 at exactly one input.

Solve 2x minus 5 equals 0 to get five halves. So the domain is every real number except five halves, written as two intervals joined by a union.

Notice that the numerator never matters for the domain of a quotient here. Only the zeros of the denominator can break the formula.

41. Composition: a function of a function

Concept

Composition feeds the output of one function into another. Cost depends on temperature and temperature depends on time, so cost depends on time.

\[ (g \circ f)(x) = g(f(x)) \]

\[ f(x) = x^2, \; g(x) = 3x + 1: \quad (f\circ g)(x) = (3x+1)^2, \quad (g\circ f)(x) = 3x^2 + 1 \]

The two orders give different functions. For the composite to make sense, the outputs of the inner function must lie in the domain of the outer one.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 18-19 — composite functions and definition 1.1

Composition is the idea you will use most in this whole lesson, because the chain rule in Chapter 3 is a rule for differentiating composites. The notation g composed with f means: apply f first, then apply g to the result.

The book's example makes the order matter visibly. Squaring then applying 3x plus 1 gives 3x squared plus 1. Applying 3x plus 1 first and then squaring gives 3x plus 1, all squared. Different functions.

There is also a compatibility condition. The outputs of the inner function become inputs of the outer function, so they must lie in the outer function's domain. The book's temperature example shows the same thing in words: cost depends on temperature and temperature depends on time, so cost depends on time; the other order makes no sense.

42. A composite is two machines in a row

Picture it

Figure (svg): A three-stage arrow diagram. The domain of f, {1, 2, 3}, maps by f into {0, 1}, which sits inside the domain of g, {0, 1, 2, 3}. Then g maps 0 to 4, 1 to 5, 2 to 3 and 3 to 5. Following the arrows: 1 goes to 4, 2 goes to 5, 3 goes to 4.

The outputs of f land inside the domain of g, so g can take them in. The composite skips the middle column: it sends 1 to 4, 2 to 5 and 3 to 4.

Follow each input along two arrows. The first arrow is f, the second is g; the composite g after f is the single arrow you would draw straight from the left column to the right one.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 19 — Figure 1.12

Trace one input through the diagram. Start at 1 on the left. The first arrow, f, takes it to 0. The second arrow, g, takes 0 to 4. So the composite sends 1 to 4 without you ever needing to see the middle column again.

Look at the boxes inside the middle and right columns. The outputs of f, just 0 and 1, sit inside the domain of g, which also contains 2 and 3. The composite only ever uses the part of g's domain that f actually reaches.

The same is true on the right: g on its own can produce 3, but the composite never does, because nothing from f lands on 2. The range of a composite can be smaller than the range of the outer function.

43. Reading (g ∘ f)(x) = g(f(x))

Notation

Annotate

On: \( (g \circ f)(x) = g\big(f(x)\big) \)

  • Read it 'g composed with f' or 'g after f'. The function written on the RIGHT acts FIRST.
  • The inner function: it takes x and produces a number, which must be in the domain of g.
  • The outer function: it takes the output of f as its input.
  • All x in the domain of f whose output f(x) is in the domain of g. Both conditions, in that order.

The notation reads right to left, which surprises almost everyone at first. In g composed with f, the function written on the right, f, acts first. The bracket form, g of f of x, makes the order obvious: you cannot evaluate g until you know what is inside it.

The last annotation gives the domain of a composite in two conditions. First, x must be in the domain of f. Second, f of x must be in the domain of g. Checking only the final simplified formula can miss the first condition, so work from the inside out.

44. Example 1.7(a, b): g after f

Worked example

\[ f(x) = x^2 + 1, \qquad g(x) = \frac1x \]

Put f inside g

Why: g takes the reciprocal of whatever it is given.

\[ (g\circ f)(x) = g\left(x^2 + 1\right) = \frac{1}{x^2+1} \]

Domain

Why: The denominator is at least 1, never zero.

\[ x^2 + 1 \ge 1 > 0 \;\Longrightarrow\; D = (-\infty, \infty) \]

Bound the outputs

Why: A reciprocal of a number at least 1 is between 0 and 1.

\[ 0 < \frac{1}{x^2+1} \le 1 \]

Show every y in that interval is reached

Why: Solve for x; the root is real when y is in (0, 1].

\[ x^2 + 1 = \frac1y \;\Longrightarrow\; x = \pm\sqrt{\frac1y - 1} \]

State the range

Why: Top value 1 at x equal to 0; 0 itself is never reached.

\[ R = (0, 1] \]

Evaluate at 4

Why: Inside first: f of 4 is 17.

\[ (g\circ f)(4) = g(17) = \frac{1}{17} \]

Evaluate at minus one half

Why: f of minus one half is five quarters; its reciprocal is four fifths.

\[ (g\circ f)\left(-\tfrac12\right) = g\left(\tfrac54\right) = \tfrac45 \]

Figure (svg): The bell-shaped curve y equals 1 over x squared plus 1, peaking at (0, 1) and flattening toward the x-axis on both sides; the points (4, 1/17) and (minus one half, 4/5) are marked.

The outputs reach 1 at x = 0 and sink toward 0 without ever getting there: the range is (0, 1].

Check with the formula

Why: The simplified formula must agree with the two-step evaluation.

\[ \frac{1}{4^2+1} = \frac1{17}, \qquad \frac{1}{\tfrac14 + 1} = \frac{1}{\tfrac54} = \frac45 \quad \checkmark \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 20 — Example 1.7a and 1.7b

Build the formula by writing f inside g: g takes the reciprocal of whatever it receives, so the composite is one over x squared plus 1. The denominator is always at least 1, so nothing is excluded from the domain.

The range follows the same two-step method as Example 1.2. The output is never more than 1 and always positive. Solving for x shows every y between 0 and 1, including 1 itself, is reached. The graph shows the bell shape, peaking at 1 and sinking toward 0 without touching it.

For the evaluations, always compute from the inside out. f of 4 is 17 and g of 17 is one seventeenth. The check confirms the simplified formula gives the same numbers, which is worth doing whenever you simplify a composite.

45. Example 1.7(c, d): f after g

Worked example

\[ f(x) = x^2 + 1, \qquad g(x) = \frac1x \]

Put g inside f

Why: f squares its input and adds 1.

\[ (f\circ g)(x) = f\left(\tfrac1x\right) = \left(\frac1x\right)^2 + 1 = \frac{1}{x^2} + 1 \]

Domain

Why: The inner function g needs x not equal to 0.

\[ D = \{x \mid x \ne 0\} \]

Set the output equal to y

Why: Subtract 1 from both sides.

\[ \frac{1}{x^2} = y - 1 \]

Solve for x

Why: The root must be real and nonzero.

\[ x = \pm\frac{1}{\sqrt{y-1}} \]

State the range

Why: That is a real number exactly when y is bigger than 1.

\[ R = \{y \mid y > 1\} = (1, \infty) \]

Evaluate at 4 and at minus one half

Why: Inside first each time.

\[ (f\circ g)(4) = f\left(\tfrac14\right) = \tfrac{17}{16}, \quad (f\circ g)\left(-\tfrac12\right) = f(-2) = 5 \]

Figure (svg): The curve y equals 1 over x squared plus 1: two branches, one on each side of the y-axis, shooting up near x equals 0 and levelling off toward the dashed line y equals 1. The points (4, 17/16) and (minus one half, 5) are marked.

A different graph from the previous one, built from the same two functions: order matters. Here the outputs are all above 1.

Check that the order mattered

Why: At x equal to 4 the two composites give different outputs.

\[ (f\circ g)(4) = \tfrac{17}{16} \ne \tfrac{1}{17} = (g\circ f)(4) \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 20-21 — Example 1.7c and 1.7d

Now reverse the order. g goes inside f, so you square one over x and add 1. The inner function g cannot accept 0, so 0 is removed from the domain, even though you might not notice that from a careless glance at the final formula.

Solving the output equation gives x equal to plus or minus one over the root of y minus 1, which is a real, nonzero number exactly when y is greater than 1. So the range is everything above 1, and the graph levels off toward the dashed line at height 1 without reaching it.

Compare this slide with the previous one. The same two ingredients, combined in the other order, give a different formula, a different domain, a different range and a different graph. At the input 4 one composite gives one seventeenth and the other gives seventeen sixteenths.

46. Trap: composing is not multiplying

Trap

The trap

With f of x equal to x squared and g of x equal to 3x plus 1:

\[ (f \circ g)(x) = f(x) \cdot g(x) \]

\[ = x^2(3x + 1) \quad ? \]

Wrong. That is the product f times g.

The fix

Composition puts g INSIDE f. Everywhere f has an x, write the whole of g.

\[ (f\circ g)(x) = f(3x+1) \]

\[ = (3x+1)^2 \]

At x equal to 1 the product gives 4, the composite 16.

The small circle of composition and the dot of multiplication look alike, and that is where this error comes from. The product f times g multiplies two outputs side by side. The composite f after g feeds one output into the other function.

The fix is the substitution habit from the start of the lesson: wherever the outer function has an x, write the whole inner function in brackets. Testing one input settles it. At x equal to 1, g gives 4 and f squares it to 16, while the product gives 1 times 4, which is 4.

47. Example 1.8: composing functions given by tables

Worked example

x−3−2−101234
f(x)0424−20−24
x−4−2024
g(x)10305

Evaluate g after f at 3

Why: Look up f of 3 in Table 1.4, then feed it to Table 1.5.

\[ (g\circ f)(3) = g(f(3)) = g(-2) = 0 \]

Evaluate g after f at 0

Why: f of 0 is 4, and g of 4 is 5.

\[ (g\circ f)(0) = g(4) = 5 \]

Domain of g after f

Why: Every output of f is an input g accepts, so every input of f works.

\[ D = \{-3, -2, -1, 0, 1, 2, 3, 4\} \]

Range of g after f

Why: f only produces minus 2, 0, 2, 4; apply g to those four.

\[ g(-2) = 0, \; g(0) = 3, \; g(2) = 0, \; g(4) = 5 \;\Longrightarrow\; R = \{0, 3, 5\} \]

f after f, at 3 and at 1

Why: Look in Table 1.4 twice.

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

Range of f after f

Why: f applied to minus 2, 0, 2, 4 gives 4, 4, 0, 4.

\[ R_{f\circ f} = \{0, 4\} \]

Figure (svg): An arrow diagram for Example 1.8. The eight inputs minus 3 through 4 each send an arrow, following Table 1.4, to one of the f-values minus 2, 0, 2, 4. Those four send arrows, following Table 1.5, to the g-values 0, 3, 5. The highlighted path runs 3 to minus 2 to 0.

Every input lands on one of only four f-values, so g is only ever asked about −2, 0, 2 and 4. That is why the range of g∘f is so small.

Check by listing the whole composite

Why: Running all eight inputs through both tables gives only the values 0, 3 and 5, as claimed.

\[ (g\circ f): \; 3, 5, 0, 5, 0, 3, 0, 5 \text{ for } x = -3, \ldots, 4 \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 21 — Example 1.8, Tables 1.4 and 1.5

With tables there is no formula to simplify, so you simply look things up twice. For g after f at 3, find f of 3 in the first table, which is negative 2, then find g of negative 2 in the second table, which is 0.

For the domain of the composite, check that every output of f is an input the second table lists. The outputs of f are only negative 2, 0, 2 and 4, and all four appear in the second table, so every input of f is allowed.

The range is found the same way. Because f only produces four different values, g is only ever asked about those four, and it returns 0, 3, 0 and 5. The diagram shows all eight inputs funnelling into four middle values and then into three outputs, with the path for the input 3 highlighted.

48. Complete the composition table

Comparison

Use Tables 1.4 and 1.5 from Example 1.8. Fill in each blank.

Comparison matrix

xf(x)(g ∘ f)(x)(f ∘ f)(x)
−3034
−1200
1−204
2034

Fill in every blank using the two tables. Work from the inside out each time: first find f of x in the first table, then look that value up in the second table for g after f, or back in the first table for f after f.

For the row x equal to negative 3, f gives 0. Then g of 0 is 3, and f of 0 is 4. For the row x equal to 2, f gives 0 again, so both composites repeat the answers from the first row.

If a blank ever needs a value that is not in the table you are looking up, that input is outside the composite's domain. That does not happen here, which is why the book says the domain is every input of f.

49. Checkpoint 1.5: a line after a root

Fill the middle

\[ f(x) = 2 - 5x, \qquad g(x) = \sqrt{x} \]

Fill in the blanks

(f\circ g)(x) = f(\sqrt x) = 2 - 5\sqrt{x}

Why: Replace the x in f by the whole of g: 2 minus 5 times the root of x. The domain is x at least 0, inherited from the root. Check at x equal to 4: g of 4 is 2 and f of 2 is 2 minus 10, which is minus 8; the formula gives 2 minus 5 times 2, also minus 8.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 21 — Checkpoint 1.5

Replace the x in f by the whole of g. The rule for f is 2 minus 5 times the input, and the input is now the square root of x, so the composite is 2 minus 5 root x.

Type the blank as five times the square root of x. The domain comes from the inner function: the root needs x to be at least 0. The outer function, a line, accepts any real number, so it adds no further restriction.

The check in the explanation evaluates the composite at 4 in two ways, one function at a time and straight from the formula, and both give negative 8.

50. Example 1.9: a sale and a coupon

Worked example

Everything is 20% off, and Caroline's coupon takes a further 15% off the price she is charged. What does she pay for an item originally priced at x dollars?

The sale as a function

Why: Twenty percent off leaves 80 percent of the price.

\[ f(x) = 0.80x \]

The coupon as a function

Why: Fifteen percent off any price y leaves 85 percent of it.

\[ g(y) = 0.85y \]

Compose: coupon after sale

Why: The coupon is applied to the sale price, so f goes inside g.

\[ (g\circ f)(x) = g(0.80x) = 0.85(0.80x) \]

Multiply the factors

Why: Eighty-five hundredths of eighty hundredths.

\[ (g\circ f)(x) = 0.68x \]

Figure (svg): Three lines through the origin for prices x from 0 to 100 dollars: the original price y equals x, the sale price 0.80x, and the final price after the coupon 0.68x. At x equals 100 they reach 100, 80 and 68.

The final price line is less steep than either discount alone suggests, but not as flat as 35% off: the coupon takes 15% of a price that is already smaller.

Check with a 100 dollar item

Why: Twenty off gives 80; fifteen percent of 80 is 12, leaving 68, which is 68 percent of 100. The two discounts make 32 percent off, not 35.

\[ 100 \to 80 \to 80 - 12 = 68 = 0.68(100) \quad \checkmark \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 21-22 — Example 1.9

The trick in any discount problem is to name each step as a function. Twenty percent off means you pay 80 percent, so the sale is multiplication by 0.80. The coupon takes 15 percent off whatever it is applied to, so it is multiplication by 0.85.

The coupon is applied to the sale price, so the sale function goes inside the coupon function. Multiplying the two factors gives 0.68, so Caroline pays 68 percent of the original price.

The graph shows the three prices as three lines through the origin. The check with a 100 dollar item shows why the discounts do not simply add: 20 percent off and then 15 percent off is 32 percent off, not 35, because the second discount is taken from a smaller number.

51. Checkpoint 1.6: is it really 40% off?

Real world

Discussion prompt

A shop advertises 10% off, and your coupon takes a further 30% off the sale price. The cashier says that makes 40% off. Write the final price as a composite function of the original price x, and decide whether the cashier is right.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 22 — Checkpoint 1.6

Write the composite before you reveal the answer. Ten percent off is multiplication by 0.90, and thirty percent off is multiplication by 0.70.

Composing gives 0.70 times 0.90, which is 0.63. So you pay 63 percent of the original price: a total discount of 37 percent. The cashier's 40 percent adds the discounts as if both came off the original price.

This kind of reasoning appears everywhere: successive percentage changes, tax on a discounted price, interest compounded over several periods. In each case the steps compose, and composition of multiplications multiplies the factors. Whenever percentages are stacked, ask which amount each one is taken from.

52. Exercise 46: two orders, two domains

Worked example

\[ f(x) = \sqrt x, \qquad g(x) = x + 9 \]

f after g

Why: Put x plus 9 under the root.

\[ (f\circ g)(x) = \sqrt{x + 9} \]

Its domain

Why: The radicand x plus 9 must not be negative.

\[ x + 9 \ge 0 \;\Longrightarrow\; D = [-9, \infty) \]

g after f

Why: Add 9 to the root.

\[ (g\circ f)(x) = \sqrt{x} + 9 \]

Its domain

Why: Now the root sits on x itself.

\[ x \ge 0 \;\Longrightarrow\; D = [0, \infty) \]

Figure (svg): Two curves: y equals the square root of x plus 9, starting at (minus 9, 0), and y equals the square root of x, plus 9, starting at (0, 9). Each starting point is a filled dot.

Same two ingredients, different starting points: f∘g begins at x = −9, g∘f at x = 0.

Check an input in one domain but not the other

Why: At x equal to 7 both work; at minus 5 only f after g does, since the root of minus 5 is not real.

\[ (f\circ g)(-5) = \sqrt4 = 2, \qquad (g\circ f)(-5) = \sqrt{-5} + 9 \text{ undefined} \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 27 — Exercise 46

This exercise from the section's set shows something the book's own examples do not: the two composites can have different domains, not just different formulas.

Putting x plus 9 under the root gives a radicand that must be at least 0, so the domain starts at negative 9. Putting the root first means x itself must be at least 0, and adding 9 afterwards cannot rescue a negative input.

The graph shows both curves: one starts at negative 9 on the x-axis, the other starts at 0 at height 9. The check picks negative 5, which is in the first domain and not in the second. When a composite's domain looks surprising, ask which function met the input first.

53. Even and odd symmetry

Section

Part 5

54. Even functions: mirror images in the y-axis

Concept

Figure (svg): The W-shaped curve y equals x to the fourth minus 2x squared minus 3. The points (1.5, minus 2.44) and (minus 1.5, minus 2.44) are marked, joined by a dashed horizontal segment that the y-axis cuts in half.

Fold the page along the y-axis and the two halves match: (x, y) and (−x, y) are both on the graph. That is an even function.

\[ f(-x) = f(x) \quad \text{for all } x \text{ in the domain} \]

\[ f(x) = x^2: \quad f(-x) = (-x)^2 = x^2 = f(x) \]

If the point (x, y) is on the graph, so is its reflection across the y-axis. Even powers of x, and constants, have this property.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 22 — Figure 1.13a and the definition of an even function

Look at the two marked points. They sit at the same height, one at x and one at negative x, and the dashed segment between them is cut in half by the y-axis. Fold the graph along the y-axis and the left half lands exactly on the right half.

In symbols: changing the sign of the input does not change the output. For x squared this is easy to see, because squaring erases the sign.

Why care? Symmetry halves the work. In Chapter 5 the integral of an even function over an interval centred at 0 is twice the integral over the right half, and recognising evenness at a glance saves a lot of computation.

55. Odd functions: half-turn symmetry about the origin

Concept

Figure (svg): The curve y equals x cubed minus 4x, rising, falling through the origin, and rising again. The points (1, minus 3) and (minus 1, 3) are marked and joined by a dashed segment through the origin.

Spin the graph half a turn about the origin and it lands on itself: (x, y) and (−x, −y) are both on it. That is an odd function.

\[ f(-x) = -f(x) \quad \text{for all } x \text{ in the domain} \]

\[ f(x) = x^3: \quad f(-x) = (-x)^3 = -x^3 = -f(x) \]

If (x, y) is on the graph, so is (minus x, minus y). Rotating the graph through 180 degrees about the origin leaves it unchanged.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, pp. 22-23 — Figure 1.13b and the definition of an odd function

The marked points here are at x and negative x, but at opposite heights. The dashed segment between them passes through the origin, and the origin cuts it in half. Rotating the graph half a turn about the origin maps the curve onto itself.

In symbols: changing the sign of the input changes the sign of the output. For x cubed, the cube of a negative number is negative, so the sign comes straight through.

An odd function defined at 0 must pass through the origin, because the output at 0 must equal its own negative, and only 0 does that. In Chapter 5, the integral of an odd function over an interval centred at 0 is exactly 0.

56. Reading the symmetry test

Notation

Annotate

On: \( f(-x) = f(x) \;\Rightarrow\; \text{even}, \qquad f(-x) = -f(x) \;\Rightarrow\; \text{odd} \)

  • Always compute this first: replace every x in the formula by (−x), in brackets, and simplify.
  • You got the original formula back, unchanged: even, symmetric about the y-axis.
  • You got the original with EVERY sign flipped: odd, symmetric about the origin.
  • Anything else. Most functions are neither; one failing input is enough to prove it.

This is the procedure in one line. Compute f of negative x by substituting negative x, in brackets, everywhere x appears. Simplify. Then compare the result with f of x and with negative f of x.

If you get the original formula back, the function is even. If every term has changed sign, it is odd. If some terms changed sign and some did not, it is neither.

Most functions are neither. Proving that only needs one input where both comparisons fail, which is often faster than any algebra.

57. Example 1.10(a, c): one even, one odd

Worked example

\[ \text{(a) } f(x) = -5x^4 + 7x^2 - 2 \qquad \text{(c) } f(x) = \frac{3x}{x^2+1} \]

(a): substitute minus x

Why: Even powers erase the sign.

\[ f(-x) = -5(-x)^4 + 7(-x)^2 - 2 \]

(a): simplify and compare

Why: The original formula comes back.

\[ f(-x) = -5x^4 + 7x^2 - 2 = f(x) \;\Longrightarrow\; \text{even} \]

(c): substitute minus x

Why: The numerator changes sign; the denominator does not.

\[ f(-x) = \frac{3(-x)}{(-x)^2 + 1} = \frac{-3x}{x^2+1} \]

(c): pull out the minus sign

Why: The result is the negative of the original.

\[ f(-x) = -\left[\frac{3x}{x^2+1}\right] = -f(x) \;\Longrightarrow\; \text{odd} \]

Check with x equal to 2

Why: Part (a) must give equal outputs at 2 and minus 2; part (c) opposite ones.

\[ \text{(a) } f(2) = f(-2) = -54, \qquad \text{(c) } f(2) = \tfrac65, \; f(-2) = -\tfrac65 \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 23 — Example 1.10a and 1.10c

In part (a) every power of x is even, and the constant term counts as an even power too, x to the zero. So substituting negative x changes nothing, and the function is even.

Part (c) is a quotient. The numerator changes sign, the denominator does not, so the whole fraction changes sign. That makes it odd. Pulling the minus sign out in front, as the last algebra step does, is the move that makes the comparison with negative f of x obvious.

The numerical check at x equal to 2 confirms both answers: part (a) gives negative 54 at both 2 and negative 2, and part (c) gives six fifths and negative six fifths.

58. Example 1.10(b): neither even nor odd

Worked example

\[ f(x) = 2x^5 - 4x + 5 \]

Substitute minus x

Why: Odd powers keep the sign; the constant does not change at all.

\[ f(-x) = 2(-x)^5 - 4(-x) + 5 = -2x^5 + 4x + 5 \]

Compare with f(x)

Why: The first two terms have flipped, so this is not the original.

\[ f(-x) \ne f(x) \;\Longrightarrow\; \text{not even} \]

Compare with minus f(x)

Why: Flipping every sign turns the constant into minus 5.

\[ -f(x) = -2x^5 + 4x - 5 \ne f(-x) \;\Longrightarrow\; \text{not odd} \]

Check with one input

Why: At x equal to 1 the output is 3; at minus 1 it is 7, which is neither 3 nor minus 3.

\[ f(1) = 3, \quad f(-1) = 7 \notin \{3, -3\} \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 23 — Example 1.10b

This function mixes odd powers with a constant, which is an even term. Substituting negative x flips the two odd terms and leaves the constant alone.

So f of negative x is not f of x, because two terms changed sign. And it is not negative f of x, because the constant did not change sign. Both comparisons fail, so the function is neither even nor odd.

The check shows how cheap a disproof can be. The output at 1 is 3 and the output at negative 1 is 7. For even you would need 3; for odd you would need negative 3. Seven is neither, and one input settles it.

59. Trap: odd powers make an odd function

Trap

The trap

Every power of x in this function is odd, so:

\[ f(x) = 2x^5 - 4x + 5 \]

\[ \text{is odd} \quad ? \]

Wrong. The constant term is a power of x too: x to the zero.

The fix

A constant is an EVEN term. It survives the substitution unchanged, and it stops the output flipping sign. Test with one input rather than trusting the look of the formula.

\[ f(1) = 3, \quad f(-1) = 7 \]

\[ 7 \ne -3 \;\Longrightarrow\; \text{not odd} \]

The name odd function comes from odd powers, which is why this trap is so natural. A function built only from odd powers of x is indeed odd. But a constant is not an odd power: it is x to the zero, an even power, and it does not change sign.

The same thing happens with shifts. The function x minus 1, cubed, contains a cube, but it is not odd, because the shift moves the centre of symmetry away from the origin. When in doubt, test with x equal to 1 and negative 1 instead of judging by appearance.

60. Checkpoint 1.7: classify 4x³ − 5x

Prediction

\[ f(x) = 4x^3 - 5x \]

Predict first

Is this function even, odd, or neither?

  • Even
  • Odd
  • Neither
  • Both

Correct: Odd

Why: Substituting minus x gives 4 times minus x cubed minus 5 times minus x, which is minus 4x cubed plus 5x: every sign has flipped, so it equals minus f of x. At x equal to 2 the output is 22 and at minus 2 it is minus 22. There is no constant term to spoil it this time.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 23 — Checkpoint 1.7

Commit to an answer. Both terms are odd powers of x, and this time there is no constant.

Substituting negative x flips the sign of both terms, so f of negative x equals negative f of x, and the function is odd. The numbers agree: 22 at x equal to 2, negative 22 at negative 2.

Compare it with the classify item in the sorting activity later, where a plus 1 is added to a similar cubic. That single constant turns an odd function into one that is neither.

61. Slide the constant and watch the symmetry break

Tweak it

Parameter explorer

The graph shows x³ − 4x + c. At c = 0 it is Figure 1.13(b). Slide c away from 0: does the half-turn symmetry about the origin survive?

\[ f(x) = x^3 - 4x + {c} \]

  • c — from -4 to 4: constant c

Start at c equal to 0. The curve passes through the origin, and a half turn about the origin maps it onto itself: the odd function of Figure 1.13.

Now slide c. The whole curve moves up or down without changing shape. It is still symmetric under a half turn, but about the point where it crosses the y-axis, at height c, not about the origin. So the function is no longer odd.

This is the graphical meaning of Example 1.10(b). Adding a constant to an odd function shifts its centre of symmetry off the origin. Being odd is a statement about symmetry about the origin specifically.

62. The absolute value function

Concept

\[ |x| = \begin{cases} -x & x < 0 \\ x & x \ge 0 \end{cases} \]

Figure (svg): The V-shaped graph of y equals the absolute value of x: the line y equals minus x on the left of the origin and y equals x on the right, meeting at the origin.

Two pieces of line joined at the origin. The output is positive for every nonzero input and exactly 0 at x = 0, so the range is [0, ∞).

It does not make everything positive: the absolute value of 0 is 0. So the range is all numbers at least 0. Replacing x by minus x does not change the output, so the function is even.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 23 — equation 1.2 and Figure 1.14

The absolute value is a piecewise function: it leaves non-negative inputs alone and changes the sign of negative ones. Its graph is two half-lines meeting at the origin in a V.

The phrase it makes everything positive is not quite right, because the absolute value of 0 is 0, and 0 is not positive. So the range is every number at least 0, including 0.

The graph is symmetric about the y-axis, so the absolute value function is even. Its corner at the origin will reappear in Chapter 3 as the standard example of a function that is continuous but has no derivative at a point.

63. Example 1.11: domain and range with an absolute value

Worked example

\[ f(x) = 2|x - 3| + 4 \]

Domain

Why: The absolute value is defined for every real number.

\[ D = (-\infty, \infty) \]

Bound the outputs

Why: An absolute value is never negative.

\[ |x - 3| \ge 0 \;\Longrightarrow\; f(x) \ge 4 \]

Set the output equal to y

Why: Subtract 4, divide by 2.

\[ 2|x-3| + 4 = y \;\Longrightarrow\; |x - 3| = \tfrac12 (y - 4) \]

Solve on both sides of 3

Why: The right side is not negative when y is at least 4, so two solutions exist.

\[ x = 3 \pm \tfrac12 (y-4) \]

State the range

Why: Every y from 4 up is reached.

\[ R = \{y \mid y \ge 4\} = [4, \infty) \]

Figure (svg): The V-shaped graph of y equals 2 times the absolute value of x minus 3, plus 4, with its corner at (3, 4). The horizontal line y equals 6 meets it at x equals 2 and x equals 4.

Every height from 4 upward is reached, and every height above 4 twice: once on each arm of the V.

Check with y equal to 6

Why: The formula gives x equal to 3 plus or minus 1, and both inputs give 6.

\[ f(2) = 2|-1| + 4 = 6, \qquad f(4) = 2|1| + 4 = 6 \quad \checkmark \]

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 24 — Example 1.11

Nothing can break an absolute value, so the domain is all real numbers. The range uses the familiar two steps: the absolute value is at least 0, so the output is at least 4; then solve the output equation for x.

Solving an equation with an absolute value gives two cases, one on each side of the point where the inside is zero. That is why there are two solutions for every y above 4, one on each arm of the V.

The graph shows the corner at height 4 and the dashed line at height 6 crossing both arms, at x equal to 2 and 4. The check confirms both inputs really do give 6.

64. Checkpoint 1.8: the range of |x + 2| − 4

Prediction

\[ f(x) = |x + 2| - 4 \]

Predict first

The domain is all real numbers. What is the range?

  • [−4, ∞)
  • [4, ∞)
  • (−∞, −4]
  • [−2, ∞)

Correct: [−4, ∞)

Why: The absolute value is at least 0, so the output is at least minus 4, reached at x equal to minus 2. Any larger y is reached by solving the absolute value of x plus 2 equals y plus 4. The minus 2 inside moves the graph sideways, which changes where the corner sits but not the range.

OpenStax Calculus Volume 1, §1.1 Review of Functions §1.1, p. 24 — Checkpoint 1.8

Decide before revealing. Think about the smallest possible output first.

The absolute value is at least 0, and it equals 0 at x equal to negative 2. So the smallest output is negative 4, and every larger value is reached on both sides of the corner. The range starts at negative 4 and goes up forever.

If you chose the interval starting at negative 2, you mixed up the corner's x-coordinate with its height. The number inside the absolute value moves the graph sideways, which never changes the range; only the minus 4 outside moves it up or down.

65. Even, odd, or neither?

Sorting

Sort into buckets

Substitute −x mentally, then sort.

Even
f(x) = 5; f(x) = |x| + x²
Odd
f(x) = 1/x; f(x) = x/(x² + 4)
Neither
f(x) = 4x³ − 5x + 1; f(x) = (x − 1)²
even
A constant does not depend on x at all, so f(−x) = f(x). Both |x| and x² are unchanged by the sign of x, and so is their sum.
odd
1/(−x) = −1/x, and in x/(x² + 4) only the numerator changes sign. Each gives f(−x) = −f(x).
nei
The + 1 in 4x³ − 5x + 1 does not flip. (x − 1)² at x = 1 is 0 but at x = −1 is 4: the shift moves the axis of symmetry to x = 1.

For each function, substitute negative x in your head and decide which bucket it belongs in. Try one input, such as 1 and negative 1, if the algebra is not obvious.

The constant function 5 is even, which surprises some people: its graph is a horizontal line, and a horizontal line is its own mirror image in the y-axis. The sum of two even functions, absolute value plus x squared, is even too.

The two that are neither both fail for a structural reason. The plus 1 in the cubic does not flip. The shifted square, x minus 1 squared, is symmetric about the vertical line x equal to 1 rather than the y-axis. Symmetry about some other line or point does not count.

66. Putting it together

Section

Part 6

67. Pattern: domain and range from a formula

Pattern

  1. Domain first: find what breaks. Remove every zero of a denominator; require every even-root radicand to be at least 0. Nothing breaks: the domain is all reals.
  2. For a composite, check the inside first, then check that its outputs are allowed into the outside function.
  3. Range: bound the outputs with a fact that is always true (a square, a root, an absolute value is at least 0).
  4. Then set f(x) = y and solve for x. The values of y for which a valid x exists are the range.
  5. Write both in interval notation, square bracket for an included endpoint, round for an excluded one or for infinity, and test one point on each side of every boundary.

This is the routine the examples in this lesson have been following. Domain first, by removing whatever breaks the formula. For a composite, check the inner function's domain before looking at the outer one.

The range takes two steps. First bound the outputs using a fact that is always true, like a square or a root or an absolute value being at least 0. Then show every value within the bound is really reached, by setting the output equal to y and solving for x.

Finish by writing the answer in interval notation and testing a point on each side of every boundary. That last step is what catches reversed inequalities and wrong brackets before they cost you.

68. Check: a domain with two restrictions

Check

Check your understanding

What is the domain of f(x) = √x / (x − 4)?

  • A. [0, ∞)
  • B. [0, 4) ∪ (4, ∞) (correct)
  • C. (−∞, 4) ∪ (4, ∞)
  • D. (0, 4) ∪ (4, ∞)

Answer: B

Why: The root needs x at least 0, and the denominator needs x not equal to 4. Both conditions together leave every number from 0 up except 4. Zero itself is allowed: the root of 0 is 0 and 0 over minus 4 is 0.

Why A tempts people
This keeps x = 4, where the denominator is zero and the formula has no value.
Why C tempts people
This forgets the square root: at x = −1 the root of −1 is not real.
Why D tempts people
Zero is in the domain: f(0) = 0 / (−4) = 0. Only the radicand must not be negative; it may be zero.

This function has two things that can break it: a square root and a denominator. Each gives one condition, and the domain must satisfy both.

The root needs x at least 0. The denominator needs x different from 4. Together: from 0 upward, with 4 removed. The most common wrong answer drops 0 by mistake; but the root of 0 is 0, which is fine, and 0 divided by negative 4 is 0.

69. Check: evaluating a composite

Check

Check your understanding

With f(x) = x² + 1 and g(x) = 1/x, what is (f ∘ g)(2)?

  • A. 1/5
  • B. 5/4 (correct)
  • C. 5/2
  • D. 5

Answer: B

Why: The function on the right acts first: g of 2 is one half. Then f of one half is one quarter plus 1, which is five quarters.

Why A tempts people
That is (g ∘ f)(2): f first gives 5, then g gives 1/5. The order is reversed.
Why C tempts people
That is the product f(2) · g(2) = 5 · 1/2, not a composite.
Why D tempts people
That is f(2) alone; g was never applied.

Work from the inside out. In f composed with g, the function g acts first, because it is written on the right. So g of 2 is one half, and then f squares that and adds 1, giving five quarters.

Each wrong answer comes from a specific slip: reversing the order gives one fifth, multiplying the outputs gives five halves, and forgetting g altogether gives 5. If you picked one of these, find which slip it was.

70. Check: which function is odd?

Check

Check your understanding

Which of these functions is odd?

  • A. f(x) = x³ + 1
  • B. f(x) = x|x| (correct)
  • C. f(x) = |x| + x
  • D. f(x) = x⁴ − x²

Answer: B

Why: Replace x by minus x in x times the absolute value of x: you get minus x times the absolute value of x, since the absolute value ignores the sign. That is minus f of x, so the function is odd. At x equal to 2 it gives 4, at minus 2 it gives minus 4.

Why A tempts people
The constant 1 does not flip: f(1) = 2 but f(−1) = 0, not −2.
Why C tempts people
f(−1) = 1 − 1 = 0 while −f(1) = −2. Neither even nor odd.
Why D tempts people
Only even powers: f(−x) = f(x). This one is even.

Test each option by substituting negative x, or by trying x equal to 1 and negative 1.

The function x times the absolute value of x is the odd one. The absolute value ignores the sign, and the x in front carries the sign through, so the whole output changes sign. It is a useful example to remember because it does not look like a polynomial at all.

The distractors each fail a quick test. The cube plus 1 has a constant that does not flip. Absolute value plus x gives 0 at negative 1 and 2 at 1. The fourth option has only even powers, so it is even.

71. Why the vertical line test works

Explain it to yourself

Discussion prompt

Explain in two sentences why the vertical line test is not an extra rule but the definition of a function, restated as a picture.

Write your two sentences before you reveal the model answer. The goal is to connect the picture to the definition, not to restate the test.

The key fact is that a vertical line is exactly the set of points sharing one x-coordinate, which is one input. So hitting the graph twice means one input with two outputs, which the definition forbids. Passing the test for every vertical line means every input has at most one output.

If you can explain this, you never need to memorise the test; you can rebuild it from the definition whenever you need it.

72. Exit ticket

Exit ticket

\[ f(x) = \frac{1}{x - 1}, \qquad g(x) = \sqrt x \]

Discussion prompt

Find (f ∘ g)(x) and its domain. Then evaluate it at x = 4.

This problem uses composition, domain, and evaluation together. Build the composite by putting the root inside f: one over root x minus 1.

The domain needs two conditions, one from each function. The inner root needs x at least 0. The outer function needs its input to be different from 1, and the root of x is 1 exactly when x is 1. So the domain is from 0 to 1, not including 1, together with everything above 1.

At x equal to 4 the root is 2, and one over 2 minus 1 is 1. If you found the domain without excluding 1, check what happens at x equal to 1: the denominator becomes 0.

73. Recap

Recap

ideawhat to remember
functioneach input has exactly one output; the vertical line test is the picture of this
domainremove zeros of denominators and negative radicands of even roots
rangebound the outputs, then solve f(x) = y to show which y are reached
zeros, y-interceptsolve f(x) = 0; evaluate f(0) (at most one y-intercept)
combinationsf ± g, f · g, f/g act input by input; f/g also needs g(x) ≠ 0
composition(g ∘ f)(x) = g(f(x)): the right-hand function acts first; order matters
symmetryf(−x) = f(x): even (y-axis); f(−x) = −f(x): odd (origin)

\[ (g\circ f)(x) = g(f(x)) \qquad f(-x) = \pm f(x) \]

Next, Section 1.2 names the basic families of functions (linear, polynomial, rational, algebraic, transcendental) and the transformations that move their graphs around.

Stewart, Calculus: Early Transcendentals 8e, §1.1 Four Ways to Represent a Function §1.1, pp. 10-22 — the same material in Stewart

A function pairs each input with exactly one output, and the vertical line test is that sentence drawn as a picture. The domain is found by removing what breaks the formula; the range by bounding the outputs and then solving the output equation for x.

New functions come from old ones in two ways. Arithmetic combinations work one input at a time and need both functions defined. Composition feeds one output into another function, reads from right to left, and depends on the order.

Symmetry comes from substituting negative x: getting the same formula back means even, getting every sign flipped means odd. All of this vocabulary is used without comment for the rest of the course, starting with the families of functions in Section 1.2.

Sources

  1. OpenStax Calculus Volume 1, §1.1 Review of Functions — Strang & Herman, OpenStax / Rice University, CC BY-NC-SA 4.0, pp. 8-29
  2. Stewart, Calculus: Early Transcendentals 8e, §1.1 Four Ways to Represent a Function — James Stewart, Cengage Learning, 2016, pp. 10-22

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

Book on Wyzant · Text (657) 465-8108