๐Ÿ“– Contents · Hub · Full version Chapter 4 ยท Functions
College Algebra Easy Read · Chapter 4

Introduction to Functions

Up to now, algebra has mostly been about solving, which means finding the x that makes a sentence true. This chapter changes the question. Instead of hunting for one answer, we start studying relationships, which show how one amount depends on another for every possible input at once. That idea is called a function, and it is the most important idea in the rest of your math life. Nothing here needs new arithmetic, because if you can put a number into an expression and simplify, you already have every skill you need. What changes is the way we talk about it, and this chapter walks through that new language one careful step at a time.

By the end of this chapter you can

  • State what a function is, and decide whether a set of ordered pairs, a mapping, or a table is one.
  • Apply the vertical line test to a graph and explain why it works.
  • Read and use function notation, including why f(x) does not mean multiply.
  • Find the value of f(x) at a number and at an expression with letters, showing every step.
  • Find the domain of a function from its equation by excluding division by zero and even roots of negatives.
  • Read domain and range off a graph and write both in interval notation.
  • Recognize the six toolkit functions and state the domain, range, and shape of each.
  • Describe and use shifts, reflections, and stretches, and follow a single point as the graph changes.

Section 1What a function is

The vertical line test applied to a graph in the coordinate plane
Reference. The vertical line test: if any vertical line crosses the graph more than once, the graph is not a function. Source and license: see the figure credits

The definition, in plain words

A relation is any pairing of inputs with outputs. That is a loose idea: a relation can pair anything with anything. A function is a relation with one extra rule attached, and the rule is short enough to memorize today:

A function assigns to each input exactly one output.

Read that slowly, because every word is load-bearing. Each input must get an output. And each input gets exactly one: not two, not "it depends." Think of a vending machine: you press B4 and you get one specific snack. If pressing B4 sometimes gave you chips and sometimes gave you a candy bar, the machine would be broken. A function is a machine that is not broken.

Notice what the rule does not say, because it says nothing about outputs being used only once. Two different inputs are allowed to give the same output, so pressing B4 and B5 and getting the same brand of chips is no problem. The rule runs in one direction only: one input, one output. People lose points on this more than almost anything else in the chapter, so it is worth writing on a sticky note.

The input is called the independent variable (usually x), because you get to choose it freely. The output is called the dependent variable (usually y), because its value depends on what you chose.

Five ways to spot a function

Relations show up in five common outfits: a list of ordered pairs, a table, a mapping diagram (arrows from a set on the left to a set on the right), a graph, and an equation. The function test looks a little different in each outfit, but underneath it is always the same question: does any input have two different outputs?

FormWhat to look atIt is a function when…
Ordered pairsThe first coordinatesNo x-value is repeated with a different y-value
TableThe input columnNo input appears twice with different outputs
Mapping diagramThe arrows leaving each left-hand itemExactly one arrow leaves each input
GraphVertical linesNo vertical line touches the graph twice
EquationSolve for yEach x you plug in produces one y

Worked example 1: ordered pairs

Decide whether each relation is a function.

Relation A: {(1, 3), (2, 5), (3, 7), (4, 9)}

Step 1. List the inputs, which are the first numbers in each pair: 1, 2, 3, 4.
Step 2. Ask if any input repeats. None do, since each input appears exactly once.
Step 3. Conclusion: A is a function.

Relation B: {(1, 3), (2, 5), (3, 7), (2, 9)}

Step 1. List the inputs: 1, 2, 3, 2.
Step 2. The input 2 appears twice. Check its outputs: the pair (2, 5) says the output is 5, and the pair (2, 9) says the output is 9. Since 5 ≠ 9, the input 2 has two different outputs.
Step 3. Conclusion: B is not a function.

Relation C: {(1, 4), (2, 4), (3, 4), (4, 4)}

Step 1. Inputs: 1, 2, 3, 4, no repeats.
Step 2. The outputs are all 4, which looks suspicious but breaks no rule. Repeated outputs are legal.
Step 3. Conclusion: C is a function (a constant function, in fact).

Worked example 2: the vertical line test

Does the equation y2 = x make y a function of x?

Step 1. Pick a specific input and see what happens. Let x = 9.
Step 2. Substitute: y2 = 9.
Step 3. Solve. Taking a square root of both sides gives y = ±3, because 32 = 9 and (−3)2 = 9. Both are genuine solutions.
Step 4. Interpret. The single input x = 9 produced two outputs, y = 3 and y = −3. That violates the one-input-one-output rule.
Step 5. Conclusion: y2 = x is not a function of x.

Now look at it on a graph. The graph of y2 = x is a parabola that opens sideways to the right. Draw the vertical line x = 9. It crosses the curve at the point (9, 3) and again at (9, −3), which is two hits. That is exactly the vertical line test: if any vertical line crosses the graph more than once, the graph is not a function.

The vertical line test is not a separate rule to memorize on top of the meaning of a function, because it is that meaning, drawn as a picture. A vertical line is the set of all points that share one x value. If the line hits the graph twice, you have found one x with two y values, and that is the whole argument.

The test only fails on purpose. A circle, a sideways parabola, and the graph of x = 4 all fail the vertical line test. Every straight line except a vertical one passes. Every parabola opening up or down passes. If you can picture those five cases, you can answer almost any vertical-line-test question on sight.
Interactive Sweep a movable vertical line across nine graphs, a circle, a sideways parabola, a square-root curve, a piecewise jump, four plotted points and more, counting hits as a live input-to-output diagram reacts, then step through why one input with two outputs is exactly what a doubled-up vertical line is showing you. Open full ↑
Key points
  • A function assigns exactly one output to each input.
  • Repeated outputs are fine; repeated inputs with different outputs are not.
  • The vertical line test is the graphical version of that same rule.
  • x is the independent variable, which you choose, and y is the dependent variable, which follows from it.

Section 2Function notation

A function machine diagram taking an input, applying a rule, and producing an output
Reference. The function machine: an input goes in, one rule is applied, one output comes out. Source and license: see the figure credits

What f(x) means, and what it does not

Instead of writing y = 3x + 1, people in math usually write f(x) = 3x + 1. Out loud, that is "f of x equals three x plus one." The letter f is the name of the function, like the name of a recipe, and the x in parentheses is the input slot.

Here is the point that trips up nearly everyone, so let us clear it up right away: f(x) does not mean f times x. These parentheses are not multiplication parentheses. They are a holder that says "whatever goes in here is the input." If you see f(3), it does not mean 3f, because it means "run the number 3 through the rule named f."

Why bother with the extra notation at all? It is exact and short. The single symbol f(3) says "the output of this function when the input is 3," and saying that with y takes a whole sentence. Once you have several functions in one problem, such as f, g, and h, or C(x) for cost and R(x) for revenue (the money that comes in), the names keep them straight.

You seeYou sayIt means
f(x)"f of x"The output rule, in general
f(3)"f of 3"Replace every x with 3 and simplify
f(3) = 8"f of 3 is 8"The point (3, 8) is on the graph
f(0)"f of 0"Input 0: this gives the y-intercept
f(x) = 0"f of x equals 0"Solve for the x that makes the output 0: the x-intercept
f(a + 1)"f of a plus 1"Replace every x with the whole quantity (a + 1)

Worked example 3: evaluating at a number

Let f(x) = 3x2 − 5x + 2. Find f(−2).

Step 1. Rewrite the rule with an empty slot where every x was:
f( ) = 3( )2 − 5( ) + 2

Step 2. Drop −2 into every slot. Always use parentheses: this is the step that saves you from sign errors:
f(−2) = 3(−2)2 − 5(−2) + 2

Step 3. Exponents first. (−2)2 = (−2)(−2) = 4. The parentheses matter a great deal here, because (−2)2 = 4, but −22 = −4.
f(−2) = 3(4) − 5(−2) + 2

Step 4. Multiply. 3(4) = 12, and −5(−2) = +10 (negative times negative is positive):
f(−2) = 12 + 10 + 2

Step 5. Add left to right. 12 + 10 = 22, then 22 + 2 = 24.
f(−2) = 24

What did we really learn? We learned that the point (−2, 24) sits on the graph of f, because every time you find a value of a function, you have found a point.

Worked example 4: evaluating at an expression

Let f(x) = x2 − 3. Find f(a + 1).

Step 1. Every x becomes the entire quantity (a + 1), parentheses included:
f(a + 1) = (a + 1)2 − 3

Step 2. Expand the square. Remember (a + 1)2 means (a + 1)(a + 1), not a2 + 1:
(a + 1)(a + 1) = a2 + a + a + 1 = a2 + 2a + 1

Step 3. Substitute back and combine:
f(a + 1) = a2 + 2a + 1 − 3 = a2 + 2a − 2

Step 4. Sanity check with a number. Let a = 3. Our answer predicts 32 + 2(3) − 2 = 9 + 6 − 2 = 13. Directly: f(3 + 1) = f(4) = 42 − 3 = 16 − 3 = 13. They match, so the algebra is right.

Worked example 5: going backwards

Let f(x) = 2x + 7. Find the value of x for which f(x) = 19.

Step 1. Notice the direction. Here we are handed the output and asked for the input, which is the reverse of example 3.
Step 2. Set the rule equal to the given output: 2x + 7 = 19.
Step 3. Subtract 7 from both sides: 2x + 7 − 7 = 19 − 7, so 2x = 12.
Step 4. Divide both sides by 2: x = 6.
Step 5. Check by putting it back in: f(6) = 2(6) + 7 = 12 + 7 = 19. ✓
x = 6

f(0) and f(x) = 0 are opposite questions. f(0) hands you an input (zero) and asks for the output, which is the y-intercept and takes one step of putting in a number. f(x) = 0 hands you an output (zero) and asks for the input, which is an x-intercept and takes solving an equation. The two use the same symbols but call for completely different work.
Interactive Drop a value into f(x) and watch the output get built one operation at a time: four machines, sixteen worked inputs, and two that jam and show where a domain comes from. Open full ↑
Key points
  • f(x) is read "f of x," and it never means multiply.
  • To find a value, replace every x with the input in parentheses, then simplify using the order of operations.
  • Inputs can be expressions: f(a + 1) substitutes the whole quantity.
  • f(3) = 8 is the same statement as "the point (3, 8) is on the graph."

Section 3Domain and range

Diagram showing the domain, range, and codomain of a function
Reference. Domain and range: the set of allowed inputs and the set of outputs that really come out. Source and license: see the figure credits

Two sets, one function

The domain is the set of every input the function is allowed to accept. The range is the set of every output it really produces. If a function is a machine, the domain is the list of raw supplies it can work with, and the range is the list of products that come out.

Most algebra functions accept every real number, and when that happens we simply say the domain is all real numbers. Trouble only arrives from two places, and in this course those two are the entire list:

That is all. If the function has no fraction with a variable on the bottom and no square root with a variable inside, its domain is all real numbers, and you do not have to hunt for a problem that is not there.

Interval notation

Domains and ranges are usually written in interval notation, a short way of writing a set of numbers. A square bracket means "include this endpoint," and a parenthesis means "get as close as you like, but do not include it." Infinity is not a number you can reach, so it always gets a parenthesis. The union symbol ∪ means "and also this piece."

In wordsInequalityInterval notation
All numbers bigger than 3x > 3(3, ∞)
3 and everything biggerx ≥ 3[3, ∞)
Everything less than 5x < 5(−∞, 5)
5 and everything smallerx ≤ 5(−∞, 5]
Between −2 and 5, including −2 only−2 ≤ x < 5[−2, 5)
All real numbers-(−∞, ∞)
All reals except 4x ≠ 4(−∞, 4) ∪ (4, ∞)

Worked example 6: domain of a rational function

Find the domain of f(x) = (x + 2)/(x2 − 9).

Step 1. Spot the danger. There is a variable in the denominator, so dividing by zero is possible. There is no square root, so that danger does not apply.
Step 2. Set the denominator equal to zero and solve, because these are the values to leave out:
x2 − 9 = 0
Step 3. Add 9 to both sides: x2 = 9.
Step 4. Take the square root of both sides, keeping both signs: x = ±3, so x = 3 or x = −3.
Step 5. Check one of them. At x = 3 the denominator is 32 − 9 = 9 − 9 = 0 and the numerator (top) is 3 + 2 = 5, which gives 5/0, and that is undefined. Confirmed.
Step 6. Write the answer. The domain is every real number except 3 and −3:
(−∞, −3) ∪ (−3, 3) ∪ (3, ∞)

Notice that we did not touch the numerator, because a zero on top is perfectly fine: f(−2) = 0/((−2)2 − 9) = 0/(4 − 9) = 0/(−5) = 0, which is a real output. Only a zero in the denominator breaks things.

Worked example 7: domain and range of a square root function

Find the domain and range of g(x) = √(2x − 8).

Step 1. Spot the danger. There is a square root, so the inside must not be negative.
Step 2. Set the inside greater than or equal to zero:
2x − 8 ≥ 0
Step 3. Add 8 to both sides: 2x ≥ 8.
Step 4. Divide both sides by 2. Dividing by a positive number leaves the direction of the inequality alone: x ≥ 4.
Step 5. The domain in interval notation is [4, ∞). The bracket on 4 is correct because x = 4 is allowed, since it gives √0, and √0 = 0 is a real number.
Step 6. Test the edge and one point on each side. g(4) = √(2(4) − 8) = √(8 − 8) = √0 = 0 ✓. g(6) = √(2(6) − 8) = √(12 − 8) = √4 = 2 ✓. g(3) = √(2(3) − 8) = √(6 − 8) = √(−2), which is not a real number, so it is rightly left out.
Step 7. Range. The square root symbol never gives back a negative value, so the smallest possible output is 0 (reached at x = 4), and the outputs grow without limit as x grows. The range is [0, ∞).

Worked example 8: both hazards at once, and reading a graph

Find the domain of h(x) = 5/√(x − 1).

Step 1. There is a square root and that root is in a denominator, so both rules apply.
Step 2. The root needs x − 1 ≥ 0, which means x ≥ 1.
Step 3. The denominator needs √(x − 1) ≠ 0, which fails only when x − 1 = 0, which means x = 1.
Step 4. Put them together: x ≥ 1 but x ≠ 1 means x > 1. The domain is (1, ∞). The endpoint that was let in at step 2 gets thrown back out at step 3, which is exactly why we check both rules.

Reading a graph is even easier: the domain is what you see as you scan from left to right, and the range is what you see as you scan from bottom to top. For the parabola y = x2 − 4, the curve stretches forever to the left and forever to the right, so the domain is (−∞, ∞). Going up and down, the lowest point is the vertex at (0, −4), which you can check: y = 02 − 4 = −4. The arms rise forever, so the range is [−4, ∞), with a bracket because the graph really reaches −4.

Domain problems are problems about leaving things out. Do not try to figure out which numbers "work." Assume every real number works, and then hunt for the two things that break: a zero denominator and a negative under an even root. Whatever is left over is your domain, and thinking of it this way turns a fuzzy question into a checklist with two items.
Interactive Sweep an input across seven graphs and watch the domain and range paint themselves onto the axes, then step through the algebra that finds those same two answers straight from an equation. Open full ↑
Key points
  • Domain = allowed inputs; range = resulting outputs.
  • Leave out inputs that make a denominator zero or put a negative under an even root.
  • Brackets include an endpoint, parentheses exclude it; ∞ always gets a parenthesis.
  • From a graph: domain is read left to right, range is read bottom to top.

Section 4Graphs of basic functions

Note. Several basic functions graphed on one set of axes, so you can compare them.

The toolkit

There are six graphs that show up all the time in college algebra, and most of the functions you meet in the next several chapters are one of these six in disguise. (Two more parent graphs, the exponential and the logarithmic, join the family later, since no amount of shifting or stretching a toolkit graph gives you 2x.) The six are called the toolkit functions (or parent functions). If you learn their shapes now, then later, when you meet y = −2(x − 3)2 + 5, you will not start from scratch, because you will see a parabola and adjust it.

You do not memorize these by staring at pictures. You memorize them by plotting three or four points by hand, once, and letting the shape emerge. Do that today and it sticks.

NameRuleShapeDomainRange
Linear (identity)f(x) = xStraight line through the origin, rising 1 for each 1 right(−∞, ∞)(−∞, ∞)
Quadraticf(x) = x2Parabola, vertex (0, 0), opens up, symmetric about the y-axis(−∞, ∞)[0, ∞)
Absolute valuef(x) = |x|A sharp V with its corner at (0, 0)(−∞, ∞)[0, ∞)
Square rootf(x) = √xHalf a parabola lying on its side, starting at (0, 0) and rising right[0, ∞)[0, ∞)
Cubicf(x) = x3A stretched S through the origin, rising from lower left to upper right(−∞, ∞)(−∞, ∞)
Reciprocalf(x) = 1/xTwo separate branches hugging the axes; never touches either(−∞, 0) ∪ (0, ∞)(−∞, 0) ∪ (0, ∞)

Worked example 9: building the cubic by hand

Make a table of values for f(x) = x3 using x = −2, −1, 0, 1, and 2, and describe the shape.

f(−2) = (−2)3 = (−2)(−2)(−2). Work left to right: (−2)(−2) = 4, then 4(−2) = −8. So f(−2) = −8.
f(−1) = (−1)3 = (−1)(−1)(−1) = 1(−1) = −1.
f(0) = 03 = 0.
f(1) = 13 = 1.
f(2) = 23 = (2)(2)(2) = 4(2) = 8.

x−2−1012
x3−8−1018
x241014
|x|21012

Plot (−2, −8), (−1, −1), (0, 0), (1, 1), and (2, 8), and connect them smoothly. You get an S curve that comes up steeply from the lower left, flattens for a moment at the origin, and then climbs steeply again. Cubing keeps the sign of the input, and the outputs grow without limit in both directions, down toward −∞ on the left and up toward ∞ on the right, with no gaps along the way. So the range of the cubic is all real numbers, which is a real difference from the squaring function in the row above it, which never goes below 0.

Compare the three rows in that table, and the differences jump out. The squaring row and the absolute value row are both symmetric, which means the value at −2 equals the value at 2. That is why both graphs fold neatly over the y-axis. The cubing row is the opposite (anti symmetric), with −8 at one end and 8 at the other, which is why the cubic never folds over but spins around the origin instead.

Worked example 10: square root and reciprocal

For f(x) = √x, choose perfect squares so the arithmetic stays clean:
f(0) = √0 = 0, because 02 = 0.
f(1) = √1 = 1, because 12 = 1.
f(4) = √4 = 2, because 22 = 4.
f(9) = √9 = 3, because 32 = 9.
Points (0, 0), (1, 1), (4, 2), (9, 3) show the signature behavior: the curve rises quickly at first, then flattens. Nothing exists to the left of x = 0, which is the domain [0, ∞) drawn.

For f(x) = 1/x:
f(−2) = 1/(−2) = −½.
f(−½) = 1/(−½) = −2, since dividing by one half doubles.
f(0) is undefined, because 1/0 has no value.
f(½) = 1/(½) = 2.
f(2) = 1/2 = ½.
Two things follow from this. As x gets close to 0, the outputs blow up in size, so the graph races up the y-axis on the right and down it on the left without ever touching it. And as x grows large, the outputs shrink toward 0 without reaching it. Those two unseen guide lines, x = 0 and y = 0, are the asymptotes. The gap at x = 0 is why this is the one toolkit function whose graph comes in two separate pieces.

Look at the domain and you can predict the picture. A domain of [0, ∞) means the graph simply does not exist left of the y-axis: that is why √x is a half-curve. A domain with a hole at 0 means the graph must break into two pieces: that is why 1/x has two branches. Domain restrictions are not fine print; they are the shape.
Interactive Compare the nine parent graphs side by side, alone, against their natural partner, or all nine on one grid, while a draggable tracer shows the arithmetic behind every single point. Open full ↑
Key points
  • Six toolkit functions: x, x2, |x|, √x, x3, and 1/x.
  • x2 and |x| have range [0, ∞); x, x3 reach every real output.
  • √x has domain [0, ∞); 1/x excludes 0 from both domain and range.
  • Every restricted domain shows up on the graph as a missing region or a break.

Section 5Transformations

Four graphs illustrating translations of a basic function up, down, left, and right
Reference. Translations of a function: the same curve slid sideways and up or down. Source and license: see the figure credits

Moving a graph without redrawing it

A transformation changes where a graph sits or how it is stretched, while keeping its basic shape. Once you know the six toolkit shapes, transformations let you graph hundreds of functions without ever plotting a point. The whole system rests on three moves: shifts (slide it), reflections (flip it), and stretches (pull it or squash it).

There is one quirk that confuses everyone the first time, so let us name it up front. Changes made outside the function do what you expect: add 3 outside and the graph goes up 3. Changes made inside the parentheses, next to the x, do the opposite of what you expect: you see x − 3 inside and the graph goes right 3, not left.

Why does this happen? The change to the input happens before the rule runs. In f(x − 3), to get the output that f used to give at 0, you now need x − 3 = 0, which means x = 3. So the interesting part of the graph moved to a larger x, which means it moved right. Understanding that one sentence is better than memorizing the rule.

FormInside or outsideEffect on the graphExample
f(x) + kOutsideShift up k unitsx2 + 3 sits 3 higher
f(x) − kOutsideShift down k unitsx2 − 3 sits 3 lower
f(x − h)InsideShift right h units (opposite sign)(x − 3)2 has vertex (3, 0)
f(x + h)InsideShift left h units (opposite sign)(x + 3)2 has vertex (−3, 0)
−f(x)OutsideReflect across the x-axis (flip upside down)−x2 opens down
f(−x)InsideReflect across the y-axis (flip left-right)√(−x) points left
a·f(x), a > 1OutsideVertical stretch by a: taller and narrower3x2 is steeper
a·f(x), 0 < a < 1OutsideVertical compression: flatter and wider½x2 is flatter
f(bx), b > 1InsideHorizontal compression by a factor of 1/bGraph squeezed toward the y-axis
f(bx), 0 < b < 1InsideHorizontal stretch by a factor of 1/bGraph pulled away from the y-axis

Worked example 11: decoding a full transformation

Describe the graph of g(x) = −2(x − 3)2 + 5 as a series of transformations of f(x) = x2, and then check with points.

Step 1. Identify the parent. The squared quantity tells you this starts as the parabola f(x) = x2.

Step 2. Read the inside first: (x − 3)2. Inside means sideways, and the sign flips, so this is a shift right 3. The vertex leaves (0, 0) and lands at (3, 0).

Step 3. Read the number in front, the 2 in −2. It is outside, so it is a vertical stretch by a factor of 2, which means every height doubles and the parabola gets narrower.

Step 4. Read the negative sign in −2. That is a reflection across the x-axis, so the parabola now opens downward.

Step 5. Read the +5 on the outside: a shift up 5. The vertex moves from (3, 0) to (3, 5).

Step 6. Check by working out some values, because this step makes the answer something you can trust instead of something you hope is right.
g(3) = −2(3 − 3)2 + 5 = −2(0)2 + 5 = −2(0) + 5 = 0 + 5 = 5. The vertex is confirmed at (3, 5). ✓
g(4) = −2(4 − 3)2 + 5 = −2(1)2 + 5 = −2(1) + 5 = −2 + 5 = 3. Point (4, 3).
g(2) = −2(2 − 3)2 + 5 = −2(−1)2 + 5 = −2(1) + 5 = −2 + 5 = 3. Point (2, 3), the mirror image of (4, 3), just as the symmetry about x = 3 needs. ✓
g(5) = −2(5 − 3)2 + 5 = −2(2)2 + 5 = −2(4) + 5 = −8 + 5 = −3. Point (5, −3).
The outputs fall away on both sides of the vertex, which confirms that the parabola opens downward. The range is (−∞, 5], since 5 is the highest value and the graph really reaches it.

Worked example 12: tracking one point through

The point (2, 4) lies on f(x) = x2, since 22 = 4. Where does it end up on g(x) = −2(x − 3)2 + 5?

Step 1. Handle the x value using the inside change. We need the inside amount to equal the old input: x − 3 = 2, so x = 2 + 3 = 5. The new x value is 5.
Step 2. Handle the y value using the outside changes, in the order they act. Start with the old output 4. Multiply by −2: 4(−2) = −8. Then add 5: −8 + 5 = −3.
Step 3. The new point is (5, −3).
Step 4. Check this against working it out directly in example 11, where we already found g(5) = −3. The two methods agree. ✓

Here is one more, with a different parent. For h(x) = |x + 4| − 2, the inside x + 4 shifts the graph left 4, and the outside −2 shifts it down 2, so the corner of the V moves from (0, 0) to (−4, −2). Check: h(−4) = |−4 + 4| − 2 = |0| − 2 = 0 − 2 = −2 ✓. And h(0) = |0 + 4| − 2 = |4| − 2 = 4 − 2 = 2, so (0, 2) is on the graph. That is four units right of the corner and four units up, which is exactly the arm of a V with slope 1.

Inside is sideways and backwards, while outside is up and down and honest. Anything that touches the x before the rule runs moves the graph sideways and does the opposite of its sign. Anything applied after the rule runs moves the graph up or down, or stretches it, and does exactly what it says. Sort every number in the formula into "inside" or "outside" first, and transformation problems stop being guesswork.
Interactive Drag a, h, and k to shift, stretch, and reflect six parent graphs in real time, with a four-stage build, a live map of where every point lands, and a substitution check that shows why changes inside the function run backwards. Open full ↑
Key points
  • Outside changes are vertical and act as written, while inside changes are horizontal (sideways) and act in reverse.
  • −f(x) flips over the x-axis; f(−x) flips over the y-axis.
  • a > 1 stretches the graph up and down, while 0 < a < 1 squashes it (compresses it) up and down.
  • Always check by working out two or three points, because it catches sign errors right away.

The chapter in one breath

  • A function assigns exactly one output to each input; repeated outputs are legal, repeated inputs with different outputs are not.
  • The vertical line test is the meaning of a function drawn as a picture: two hits on one vertical line means one input gave two outputs.
  • f(x) is read "f of x," and it never means multiply. To find a value, put the input in parentheses everywhere x appears.
  • f(0) asks for an output and gives the y-intercept; f(x) = 0 asks for an input and gives an x-intercept.
  • The domain is found by leaving things out: throw out zero denominators and negatives under even roots. The range is what comes out.
  • Read a graph left to right for domain, bottom to top for range, and write both in interval notation.
  • The six toolkit functions: x, x2, |x|, √x, x3, 1/x: are the shapes most later graphs are built from.
  • Transformations move those shapes. Outside changes are up and down and do what they say, while inside changes are sideways and work in reverse.

ReferenceWords worth knowing

Here is a quick list of the words in this chapter. Skim it now, and come back any time a word slows you down.

Absolute value function
The toolkit function f(x) = |x|, whose graph is a V with its corner at the origin. Its domain is (−∞, ∞) and its range is [0, ∞).
Asymptote
An unseen line that a graph gets as close as you like to as x or y grows without limit, such as x = 0 and y = 0 for f(x) = 1/x. The graph of 1/x never touches either one, but in general a graph may cross a flat (horizontal) asymptote before settling onto it.
Cubic function
The toolkit function f(x) = x3, an S-shaped curve through the origin; domain and range are both all real numbers.
Dependent variable
The output variable, usually y or f(x), whose value is determined by the input.
Domain
The set of all inputs a function is allowed to accept.
Function
A relation that assigns exactly one output to each input.
Function notation
Writing a rule as f(x), read "f of x," where f names the function and the parentheses hold the input.
Horizontal shift
A sideways slide caused by a change inside the function, f(x − h). The graph moves the opposite way from the sign, so x − 3 moves it right 3.
Independent variable
The input variable, usually x, whose value you are free to choose.
Interval notation
Shorthand for a set of numbers using brackets to include endpoints and parentheses to exclude them, as in [4, ∞).
Linear function
A function whose graph is a straight line; the toolkit version is the identity function f(x) = x.
Mapping diagram
A picture with arrows from each input to its output. It shows a function when exactly one arrow leaves each input.
Quadratic function
The toolkit function f(x) = x2 and the graphs made by moving it. The graph is a parabola.
Range
The set of all outputs a function really produces.
Reciprocal function
The toolkit function f(x) = 1/x, graphed as two branches with asymptotes at x = 0 and y = 0.
Reflection
A flip of the graph; −f(x) flips it across the x-axis and f(−x) flips it across the y-axis.
Relation
Any pairing of inputs with outputs; every function is a relation, but not every relation is a function.
Square root function
The toolkit function f(x) = √x; domain [0, ∞), range [0, ∞).
Toolkit functions
The six standard parent graphs: x, x2, |x|, √x, x3, and 1/x: that later functions are built from.
Transformation
A change of a graph's position or proportions, a shift, reflection, stretch, or compression, that preserves its basic shape.
Vertical line test
A graph represents a function if and only if no vertical line intersects it more than once.
Vertical stretch
Multiplying the outputs by a > 1 in a·f(x), which makes the graph taller and narrower. When 0 < a < 1, it squashes the graph instead.

Check yourself

1. Is the relation {(0, 1), (1, 3), (2, 5), (1, 7)} a function? Give your reason using what a function means.
No. The input 1 appears twice, once paired with 3 and once with 7. Since 3 ≠ 7, that one input has two different outputs, which breaks the rule that each input gets exactly one output.
2. A graph is a circle centered at the origin. Does it pass the vertical line test? Explain what the test is really checking.
No, a circle fails. A vertical line through the inside of the circle crosses it at a top point and a bottom point, so one x value has two y values. The test is simply the meaning of a function drawn as a picture, because a vertical line collects every point with the same input, so two crossings means two outputs for one input.
3. Let f(x) = x2 − 4x + 1. Find f(3), showing every step.
f(3) = −2. Substitute: f(3) = (3)2 − 4(3) + 1. Exponent first: 32 = 9, giving 9 − 4(3) + 1. Multiply: 4(3) = 12, giving 9 − 12 + 1. Add left to right: 9 − 12 = −3, then −3 + 1 = −2. The point (3, −2) is on the graph.
4. Let f(x) = 5 − 2x. Find the input x for which f(x) = −7, and check your answer.
x = 6. Set the rule equal to the output: 5 − 2x = −7. Subtract 5 from both sides: −2x = −12. Divide both sides by −2: x = 6. Check: f(6) = 5 − 2(6) = 5 − 12 = −7. ✓
5. Explain the difference between the question "find f(0)" and the question "solve f(x) = 0."
f(0) gives an output; f(x) = 0 asks for an input. f(0) means substitute 0 for x and simplify: the result is the y-intercept. f(x) = 0 means set the rule equal to zero and solve the resulting equation: the results are the x-intercepts (zeros).
6. Let f(x) = x2 + 1. Find and fully simplify f(t + 2).
f(t + 2) = t2 + 4t + 5. Substitute the whole quantity: f(t + 2) = (t + 2)2 + 1. Expand: (t + 2)(t + 2) = t2 + 2t + 2t + 4 = t2 + 4t + 4. Add the 1: t2 + 4t + 5. Check with t = 1: our answer gives 1 + 4 + 5 = 10, and directly f(3) = 9 + 1 = 10. ✓
7. Find the domain of f(x) = 3/(x − 7) and write it in interval notation.
All real numbers except 7: (−∞, 7) ∪ (7, ∞). Set the denominator to zero: x − 7 = 0, so x = 7. At x = 7 the expression becomes 3/0, which is undefined, so 7 is left out and everything else is allowed.
8. Find the domain of g(x) = √(5 − x) in interval notation.
(−∞, 5]. The inside of an even root cannot be negative, so 5 − x ≥ 0. Subtract 5: −x ≥ −5. Divide by −1 and flip the inequality, since dividing by a negative reverses it: x ≤ 5. Check: g(5) = √0 = 0 works, g(1) = √4 = 2 works, and g(6) = √(−1) is not real.
9. State the domain and range of f(x) = x2 + 3, and explain how you know the range.
Domain (−∞, ∞); range [3, ∞). Any real number can be squared, so nothing is left out of the domain. For the range, x2 is never negative, so its smallest value is 0 (at x = 0), which makes the smallest output 0 + 3 = 3. The outputs then grow without limit, and the bracket on 3 is correct because f(0) = 3 really is reached.
10. Which toolkit function has domain (−∞, 0) ∪ (0, ∞), and what does that gap look like on the graph?
The reciprocal function f(x) = 1/x. The input 0 is left out because 1/0 is undefined. On the graph, the curve breaks into two separate branches that race away from the vertical line x = 0 without ever touching it, and that flatten toward the flat line y = 0 far out in both directions. Those lines are the asymptotes.
11. Describe, in order, the transformations that turn f(x) = x3 into g(x) = (x + 2)3 − 6, and give the new place of the origin.
Shift left 2, then shift down 6, so the origin (0, 0) moves to (−2, −6). The +2 is inside, so it is sideways and reverses its sign, which means left 2, not right. The −6 is outside, so it is up and down and does what it says, which means down 6. Check: g(−2) = (−2 + 2)3 − 6 = 03 − 6 = −6. ✓
12. The point (4, 2) lies on f(x) = √x. Describe the transformations in g(x) = −3√x, and find where that point lands.
A vertical stretch by 3 and a reflection across the x-axis, so (4, 2) moves to (4, −6). Both changes are outside the root, so they are up and down, and the x value does not move. The output is multiplied by −3: 2(−3) = −6. Check directly: g(4) = −3√4 = −3(2) = −6. ✓ The range becomes (−∞, 0].