Quarry School

Functions and function notation: crash course

about 42 min to listen10 lessons13 questions to tryUnit 1 of 17

Short view. Each lesson's rule, its steps and its trap. Switch to Full for a worked example and a question to try in every lesson.Full view. Each lesson's rule, its steps, one worked example with Watch it solved, the trap, and one question to try.

Starts here no skill from another unit needed first

1 A function gives one answer to each input

Open the full lessonOnly this lesson

The rule

A relation is a set of ordered pairs (input, output).

It is a function when every input in its domain has exactly one output. The range is the set of outputs it produces.

How

  1. Name what you are starting with; that quantity is the input.
  2. Name what you want to find; that quantity is the output.
  3. Inspect every input and its assigned outputs.
  4. Accept shared outputs. Reject an input with two different outputs.
  5. List distinct inputs as the domain and distinct outputs as the range.

Worked example

Worked example

Function or not from ordered pairs

OpenStax problem

Decide whether each relation gives one output per input.
(a) {(1, 2), (2, 4), (3, 6), (4, 8), (5, 10)}
(b) {(1, 3), (2, 5), (1, 7)}

What it asks. For each list, does one input have two different outputs? Also list the first relation’s allowed inputs and actual outputs.

Show the steps and the answer

The plan. Read the first number in each pair as input. Compare pairs with the same input, then collect distinct first and second numbers.

12345246810function
In (a), each input sends one arrow.
12357not a function
Two arrows leave input 1 for different outputs.
  1. Plan. Read the first number in each pair as input. Compare pairs with the same input, then collect distinct first and second numbers.
  2. In (1, 3), 1 is the input and 3 is its output.
  3. In list (b), find both pairs whose first number is 1.
  1. For (a), each of the inputs 1, 2, 3, 4 and 5 has one paired output.The first coordinate is the input, and none has conflicting outputs.
  2. Collect the domain {1, 2, 3, 4, 5} and the range {2, 4, 6, 8, 10}.Domain lists accepted inputs; range lists produced outputs.
  3. For (b), input 1 pairs with both 3 and 7.A function cannot give two different answers for the same input.
Answer
  • (a) function.
  • Domain: {1, 2, 3, 4, 5}.
  • Range: {2, 4, 6, 8, 10}.
  • (b) Not a function. Input 1 has outputs 3 and 7.
Double-check In (a), the instruction 'double the input' gives the listed output every time. In (b), asking for the output at 1 leaves two competing answers.

The trap

Checking for repeated outputs instead of conflicting inputs. Two arrows arriving together are allowed; two arrows leaving one input for different answers are not.

2 Read function notation as an instruction

about 3 minOpen the full lessonOnly this lesson

The rule

y=f(x): f is the function name, x is the input, and y or f(x) is the output.

Evaluate means find an output. Solve means find the input or inputs producing a specified output.

How

  1. Identify the function name and what its input and output represent.
  2. Read everything inside the parentheses as the entire input.
  3. For evaluate, apply the rule to that input.
  4. For solve, require the rule's output to equal the given value.
  5. Include units when the quantities have units.

Worked example

Worked example

Evaluating and solving with a rental-cost function

A kayak rental shop charges according to C(h) = 15 + 9h, where h is the number of hours rented and C(h) is the total cost in dollars.
(a) Evaluate C(4) and say what it means.
(b) Solve C(h) = 69 and say what it means.
(c) Write C(h + 1) as an expression in h.

Show the steps and the answer
input hours rented, houtput cost C(h) ($)233451669↓ evaluate: input given, read the output below it
Values of C(h) = 15 + 9h at h = 2, 4 and 6 hours: $33, $51 and $69.
  1. Name the parts: the function is C, the input h is time in hours, and the output C(h) is cost in dollars.In y = f(x), the letter outside the parentheses names the function, the letter inside is the input, and f(x) is the output. Units come from what each quantity measures.
  2. (a) Substitute 4 for h: C(4)=15+9(4)=15+36=51.Evaluate means find the output. The number inside the parentheses is the input, so h = 4 is fed into the rule.
  3. (a) Interpret: C(4)=51 dollars, so renting for 4 hours costs $51.The output carries the output's units, which are dollars.
  4. (b) Set the rule equal to the given output: 15+9h=69.Solve means find the input that produces a given output. Here the output C(h) is 69, so the rule must equal 69.
  5. (b) Subtract 15 from both sides: 9h=54. Then divide by 9: h=6.Undoing the operations in reverse order isolates the input.
  6. (b) Interpret: h=6 hours, so a $69 bill means the kayak was rented for 6 hours.The answer to a solve question is an input, so it carries the input's units, which are hours.
  7. (c) Replace every h in the rule with the whole input (h + 1): C(h+1)=15+9(h+1).Everything inside the parentheses is the entire input. Writing (h + 1) in place of h keeps that input together.
  8. (c) Simplify: 15+9h+9=9h+24.Distribute the 9 to both terms of the input, then combine the constants.
Answer
(a) C(4) = 51: a 4-hour rental costs $51. (b) h = 6: a $69 rental lasted 6 hours. (c) C(h + 1) = 9h + 24 dollars, the cost of renting one hour longer than h hours.
Double-check (a) 9 × 4 = 36 and 36 + 15 = 51. (b) Substituting h = 6 gives C(6) = 15 + 54 = 69, which matches the given output. (c) Test with h = 3. Then C(h + 1) = C(4) = 51, and 9(3) + 24 = 27 + 24 = 51. Both agree.

Work to write

  1. C is the function, h = hours rented (input), C(h) = cost in dollars (output)
  2. C(4) = 15 + 9(4) = 51
  3. C(4) = 51 dollars: 4 hours costs $51
  4. 15 + 9h = 69
  5. 9h = 54
  6. h = 6 hours
  7. C(h + 1) = 15 + 9(h + 1) = 9h + 24

The trap

Reading f(x) as f times x. A function name identifies a rule rather than a number being multiplied.

3 Evaluate a formula

about 5 minOpen the full lessonOnly this lesson

The rule

To evaluate a formula, replace every input variable with the whole stated input in parentheses, then calculate or expand.

The value or expression you obtain is the output.

How

  1. Say what the question asks. Evaluate f(2) means the input is 2; find its output. It does not ask which input produces 2.
  2. Copy the formula, replacing every input letter with the given input in parentheses.
  3. For a number, do powers first, then multiplication, then addition and subtraction. For an expression, multiply out parentheses before collecting like terms.
  4. Check by putting a numerical input into both the starting recipe and the expanded expression. Matching results can catch an expansion error.

Worked example

Worked example

Evaluate g(-2) and g(k - 2) for a function machine

A function machine named g accepts any real number as its input x and produces the output
g(x) = 3x2 - 8x + 6.
In words, the recipe is: square the input and multiply by 3, subtract 8 times the input, then add 6.
(a) Evaluate g(-2).
(b) Evaluate g(k - 2), where k stands for any real number. Write the output as an expanded expression in k with like terms collected.

Show the steps and the answer
  1. Say what each part asks. In (a) the input is the number -2; find its output. In (b) the input is the whole expression k-2; find its output, which will be an expression in k.g(-2) names the output of the machine when -2 goes in. It does not ask which input produces an output of -2, so there is no equation to solve: we substitute and calculate.
  2. For (a), copy the recipe with (-2) in place of every x: g(-2)=3(-2)2-8(-2)+6.The input letter x appears twice, and each one must be replaced. Parentheses keep the negative sign attached to the input, so the square acts on the whole number -2, sign included.
  3. Do the power first: (-2)2=(-2)(-2)=4, so g(-2)=3(4)-8(-2)+6.Powers come before multiplication. A negative number times itself is positive, so the square is 4. Without the parentheses, -22 would mean -(22) = -4, which is not the square of the input.
  4. Multiply next: 3(4)=12 and 8(-2)=-16, so g(-2)=12-(-16)+6. Then add and subtract: 12+16+6=34.Multiplication comes before addition and subtraction, and subtracting -16 is the same as adding 16. The number 34 is the output for the input -2.
  5. For (b), copy the recipe with (k - 2) in place of every x: g(k-2)=3(k-2)2-8(k-2)+6.The whole input k - 2 replaces x, so it goes in parentheses in both places. This is not g(k) - 2: that would subtract 2 from the output, while here 2 is subtracted from the input before the machine works on it.
  6. Multiply out the square: (k-2)2=(k-2)(k-2)=k2-2k-2k+4=k2-4k+4.The power is still handled first, and for an expression that means multiplying out the parentheses. Squaring multiplies the binomial by itself, which produces the middle term -4k; (k - 2)2 is not k2 - 4 and not k2 + 4.
  7. Distribute the 3 and the -8: 3(k2-4k+4)=3k2-12k+12 and -8(k-2)=-8k+16. So g(k-2)=3k2-12k+12-8k+16+6.A number in front of parentheses multiplies every term inside. The -8 multiplies the -2 too, and a negative times a negative gives +16.
  8. Collect like terms: -12k-8k=-20k and 12+16+6=34, so g(k-2)=3k2-20k+34.Only terms with the same power of k can be combined. Nothing more can be simplified, so this expression is the output for the input k - 2.
  9. Check (b) with a number, say k=3. Starting recipe: the input is 3-2=1, and g(1)=3(1)2-8(1)+6=3-8+6=1. Expanded expression: 3(3)2-20(3)+34=27-60+34=1.The recipe and the expanded expression must give the same output for every value of k, so a numerical input can catch an expansion error. Here both give 1. A slip such as -8(k - 2) = -8k - 16 would have produced 3k2 - 20k + 2, which gives -31 at k = 3 and would not match.
Answer
(a)g(-2)=34.(b)g(k-2)=3k2-20k+34.
Double-check Part (a) is a special case of part (b): when k = 0, the input k - 2 equals -2. The expanded expression gives 3(0)2 - 20(0) + 34 = 34, the same as g(-2) from part (a). One more input tests the terms that contain k: for k = 1 the input is -1; the recipe gives g(-1) = 3(-1)2 - 8(-1) + 6 = 3 + 8 + 6 = 17, and the expanded expression gives 3(1)2 - 20(1) + 34 = 3 - 20 + 34 = 17. The results match each time.

Work to write

  1. g(-2)=3(-2)2-8(-2)+6
  2. g(-2) = 3(4) - 8(-2) + 6 = 12 + 16 + 6 = 34
  3. g(k-2)=3(k-2)2-8(k-2)+6
  4. (k-2)2=k2-4k+4
  5. g(k-2)=3k2-12k+12-8k+16+6
  6. g(k-2)=3k2-20k+34
  7. Check with k = 3: g(1) = 3 - 8 + 6 = 1 and 3(3)2 - 20(3) + 34 = 27 - 60 + 34 = 1

The trap

Losing the middle term when squaring a sum. Write (a + h)(a + h) and keep all four products before combining the two ah terms.

Quick check

Try it before you open its steps. It is question 2 of 3 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 3

Protect a negative input

Let r(x) = 3x − 7. Evaluate r(−4). This means use −4 as the input and find the output.

What it asks. Use each stated input to find its output from the named formula.

Show the steps and the answer

The plan. Replace every input-variable slot with the whole input in parentheses. Work powers before multiplication, and multiplication before adding or subtracting. For a square root, compute its inside first and choose the nonnegative root. Check by following the original recipe again.

−18−12−60−7lands on −19
Subtracting 7 from −12 lands at −19.
  1. Plan. Replace every input-variable slot with the whole input in parentheses. Work powers before multiplication, and multiplication before adding or subtracting. For a square root, compute its inside first and choose the nonnegative root. Check by following the original recipe again.
  2. Every input slot receives the complete input, including its sign.
  3. Square a negative input in parentheses: (−2)2 = 4. A constant recipe gives the same output for every input.
  4. Keep separate requested outputs on separate answer lines.
  1. r(−4)=3(−4)−7.The whole negative input replaces x.
  2. r(−4)=−12−7.A positive times a negative is negative.
  3. r(−4)=−19.Starting at −12 and subtracting 7 moves seven more places left.
Answer
r(−4)=−19
Double-check Undo the recipe on the output: −19 + 7 = −12, then −12 ÷ 3 = −4, the given input.

4 The difference quotient: average rate of change

about 6 minOpen the full lessonOnly this lesson

The rule

Difference quotient: f(x+h)−f(x)h, with h≠0 and both inputs in the domain.

Read it: f of x plus h, minus f of x, all over h. The starting input can also be named a: f(a+h)−f(a)h.

How

  1. Write f(x + h) by replacing every x with the whole (x + h). Also write f(x) separately.
  2. Multiply out. A square has the middle term: (x + h)2 = x2 + 2xh + h2. A number in front multiplies every piece.
  3. Subtract f(x) in parentheses, then reverse every sign in that subtracted group.
  4. In these polynomial examples, every term without h must cancel. If one remains, recheck the expansion, copied terms, and subtraction signs.
  5. Factor h from the entire numerator, or divide every numerator term by h. Cancel only the shared nonzero factor.
  6. Write the simplified answer and h ≠ 0. Both starting and ending inputs must still be allowed. Check with chosen numbers.

Worked example

Worked example

Average rate of change of a raised bed's area

A community garden is building rectangular raised beds. A bed that is x meters wide is made 4 meters longer than twice its width, so it is 2x + 4 meters long and its area, in square meters, is
A(x) = x(2x + 4) = 2x2 + 4x, for x > 0.
The figure graphs A(x) for widths up to 4 meters and marks the points (1, 6) and (3, 30).
(a) Find the difference quotient A(x+h)−A(x)h, where h is a change in the width, and simplify it. State the conditions on x and h.
(b) Use your answer to (a) to find the average rate of change of the area as the width grows from 1 meter to 3 meters. Give the units and say what the number means.

(1, 6)(3, 30)24515253545
The raised bed's area A(x) = 2x2 + 4x, in square meters, plotted against its width x, in meters.
Show the steps and the answer
  1. Write A(x+h) by replacing every x in 2x2+4x with the whole (x+h): A(x+h)=2(x+h)2+4(x+h). Write A(x)=2x2+4x separately.The difference quotient compares the area at the ending width x + h with the area at the starting width x. Every x must be replaced, including the one in 4x, and the parentheses keep the 2 and the 4 attached to the whole new input.
  2. Multiply out. (x+h)2=x2+2xh +h2, so 2(x+h)2=2x2+4xh +2h2, and 4(x+h)=4x+4h. Together: A(x+h)=2x2+4xh +2h2+4x+4h.Squaring a sum produces the middle term 2xh; writing only x2 + h2 would lose it. A number in front multiplies every piece in its parentheses, so the 2 reaches all three terms of the square and the 4 reaches both x and h.
  3. Subtract A(x) in parentheses, then reverse every sign in that group: A(x+h)−A(x)=2x2+4xh +2h2+4x+4h−(2x2+4x)=2x2+4xh +2h2+4x+4h−2x2−4x.The minus sign applies to all of A(x), so both 2x2 and 4x become negative, not just the first term.
  4. Combine like terms: 2x2−2x2=0 and 4x−4x=0, so A(x+h)−A(x)=4xh +2h2+4h.Every term without h must cancel: if h were 0, the two widths would be equal and the change in area would be 0. Nothing without h is left, so the expansion, the copied terms and the signs are consistent.
  5. Factor h from the entire numerator and cancel it with the h in the denominator: A(x+h)−A(x)h=4xh+2h2+4hh=h(4x+2h+4)h=4x+2h+4.h is a factor of every term, so it is a shared factor of the whole numerator and the denominator. Because h ≠ 0, hh = 1. Cancelling h from only one term would be wrong.
  6. State the result with its conditions: A(x+h)−A(x)h=4x+2h+4, where h≠0, x > 0 and x+h>0.The quotient divides by h, so h cannot be 0, and the simplified expression no longer shows that, so the condition must be written. A bed exists only with a positive width, so both the starting width x and the ending width x + h must be in the domain x > 0.
  7. For (b), the width starts at 1 m and ends at 3 m, so x = 1 and h = 3 − 1 = 2. Both widths are positive and h ≠ 0. Substitute: 4(1)+2(2)+4=4+4+4=12.In the difference quotient, x is the starting input and h is the change in the input, so the ending width is x + h = 3. Using h = 3 would describe a change from 1 m to 4 m.
  8. Attach units and interpret: 12 square meters per meter. As the width grows from 1 m to 3 m, the area increases on average by 12 square meters for each extra meter of width, a total of 2×12=24 square meters.Area is measured in square meters and width in meters, so the rate is square meters per meter. Multiplying the average rate by the 2 m change in width gives the total change in area.
Answer
(a) A(x+h)−A(x)h = 4x + 2h + 4, with h ≠ 0, x > 0 and x + h > 0. (b) 12 square meters per meter: from a width of 1 m to a width of 3 m, the bed's area grows on average by 12 square meters for each additional meter of width.
Double-check Compute (b) directly from A(x) = 2x2 + 4x: A(1) = 2(1)2 + 4(1) = 6 and A(3) = 2(3)2 + 4(3) = 18 + 12 = 30, matching the marked points. So A(3)−A(1)3−1 = 30−62 = 242 = 12. ✓ The dimensions agree too: a 1 m by 6 m bed has area 6, and a 3 m by 10 m bed has area 30. Test the general formula with other numbers, x = 2 and h = −1 (ending width 1 m, still allowed): A(2) = 8 + 8 = 16, so A(1)−A(2)−1 = 6−16−1 = −10−1 = 10, and 4(2) + 2(−1) + 4 = 8 − 2 + 4 = 10. ✓

Work to write

  1. A(x + h) = 2(x + h)2 + 4(x + h) = 2x2 + 4xh + 2h2 + 4x + 4h
  2. A(x + h) − A(x) = 2x2 + 4xh + 2h2 + 4x + 4h − (2x2 + 4x) = 4xh + 2h2 + 4h
  3. A(x+h)−A(x)h=h(4x+2h+4)h=4x+2h+4
  4. h ≠ 0, x > 0, x + h > 0
  5. (b) x = 1, h = 2: 4(1) + 2(2) + 4 = 12
  6. 12 square meters per meter: on average the area grows by 12 square meters for each extra meter of width from 1 m to 3 m

The trap

Subtracting only the first term of the starting output. Keep −(f(x)) as one group, then change every sign inside.

Quick check

Try it before you open its steps. It is question 4 of 7 in the full lesson, where they run from easy to exam-hard.

Try it · level 4 of 7

DQ rung 4: a square

For s(x) = x2, simplify s(x+h)−s(x)h, with h ≠ 0. This asks for the average output change per input step.

What it asks. Find any requested outputs first, then compare the ending and starting outputs and divide by their nonzero input step.

Show the steps and the answer

The plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.

(1, 1)(2, 4)2−22468
y = x2, solid, beside y = 3x − 2, dashed.
  1. Plan. Write the starting output and the output at x + h or a + h. Expand the whole changed input. Subtract the entire starting output in parentheses. In these line and quadratic examples, terms without h cancel. Factor h or divide every remaining term by h. Keep h ≠ 0 and check with numbers.
  2. Every input variable receives the whole sum in parentheses.
  3. A squared sum includes its middle term. An outside coefficient multiplies all three pieces.
  4. Reverse every sign in the subtracted output, then factor the whole numerator before canceling h.
  1. s(x+h)=(x+h)2=x2+2xh +h2.Multiply two whole copies of x + h. The cross products xh and hx add to 2xh.
  2. s(x+h)−s(x)=x2+2xh +h2−x2=2xh +h2.The starting output x2 is subtracted from the ending output, so x2 − x2 cancels to zero.
  3. 2xh +h2=h(2x+h).Both 2xh and h2 contain h: they are h × 2x and h × h.
  4. h(2x+h)h=2x+h,h≠0.Cancel the common factor h multiplying the entire numerator, retaining the nonzero restriction.
Answer
2x + h, with h ≠ 0.
Double-check At x = 1 and h = 1, s(1) = 1 and s(2) = 4. Directly the quotient is 4−(1)1 = 3. The expression 2x + h also gives 3.

5 Solve when the output is given

about 7 minOpen the full lessonOnly this lesson

The rule

To solve f(x)=k, set the function's formula equal to k and find every allowed input x.

Zero product rule: AB =0 means A=0 or B=0, or both.

How

  1. Say the question in words. Solve h(p) = 3 means the output is 3; find every input p that produces it.
  2. Replace the function notation with its formula, keeping the requested output on the other side.
  3. For a linear equation, undo addition or subtraction and then undo multiplication or division, doing each operation to both sides.
  4. For a quadratic that factors, subtract the requested output from both sides so one side is zero.
  5. Rewrite the quadratic as a product of factors. Set each factor equal to zero using the zero product rule.
  6. Solve each smaller equation and keep every permitted input.
  7. Substitute each answer into the original function. Each checked output must equal the requested output.

Worked example

Worked example

Solving f(x) = k for a graphed quadratic: two answers, then one

The function f accepts any real number x as its input and produces the output
f(x) = x2 + 2x - 5.
Its graph, shown in the figure, is a parabola that opens upward. The lowest point of the graph (the vertex) is (-1, -6), and the graph crosses the y-axis at (0, -5).
(a) Solve f(x) = 10. Give every input that works.
(b) Solve f(x) = -6, and use the graph to explain how many solutions each part has.

(-1, -6)(0, -5)−6−4−224−8−44812
The upward-opening parabola y = f(x) = x2 + 2x - 5, with its vertex (-1, -6) and its y-intercept (0, -5)…
Show the steps and the answer
  1. (a) Say the question in words. Solve f(x)=10 means the output is 10; find every input x that f turns into 10.The output is known and the inputs are unknown, so we work backward from the output instead of evaluating f at a given number. The word every reminds us that more than one input may work.
  2. Replace f(x) with its formula, keeping the requested output on the other side: x2+2x-5=10.f(x) is a name for the expression x2 + 2x - 5, so the inputs that make f(x) equal 10 are exactly the inputs that make that expression equal 10.
  3. Choose the method. The equation contains x2, so it is quadratic, not linear. Subtract 10 from both sides: x2+2x-5-10=10-10, so x2+2x-15=0.Undoing addition and multiplication cannot isolate x when x appears both squared and to the first power. The zero product rule needs one side to be 0, and doing the same subtraction to both sides keeps the equation balanced.
  4. Rewrite the left side as a product. Look for two numbers that multiply to -15 and add to 2: 5 and -3 work, since 5×(-3)=-15 and 5+(-3)=2. The equation becomes (x+5)(x-3)=0.For any numbers p and q, (x + p)(x + q) = x2 + (p + q)x + pq, so p and q must add to the x-coefficient and multiply to the constant. Expanding confirms the factoring: (x + 5)(x - 3) = x2 - 3x + 5x - 15 = x2 + 2x - 15.
  5. Set each factor equal to zero: x+5=0 or x-3=0.By the zero product rule, a product equals 0 only when at least one of its factors is 0, so every solution must make x + 5 or x - 3 equal to zero.
  6. Solve each smaller equation. Subtract 5 from both sides of x+5=0 to get x=-5; add 3 to both sides of x-3=0 to get x=3. Keep both answers.Each factor equation is linear, so one inverse operation done to both sides isolates x. The function accepts every real number as input, so neither answer is ruled out.
  7. Check each answer in the original function: f(-5)=(-5)2+2(-5)-5=25-10-5=10 and f(3)=32+2(3)-5=9+6-5=10. Both outputs equal 10.Substituting into the original formula, not into a rearranged line, catches any slip made while moving terms or factoring. Each checked output must equal the requested output, 10.
  8. (b) Say the question in words: solve f(x)=-6 means the output is -6; find every input x that produces it. Replace f(x) with its formula: x2+2x-5=-6.The method does not depend on which output is requested: the formula goes on one side and the requested output stays on the other.
  9. Subtract the requested output, -6, from both sides. Subtracting -6 means adding 6: x2+2x-5+6=-6+6, so x2+2x+1=0.The equation is quadratic, so one side must be 0 before the zero product rule can be used. Subtracting a negative number is the same as adding its opposite.
  10. Rewrite the left side as a product. The two numbers must multiply to 1 and add to 2, so they are 1 and 1. The equation becomes (x+1)(x+1)=0.Expanding confirms it: (x + 1)(x + 1) = x2 + x + x + 1 = x2 + 2x + 1. The two factors are identical, so this quadratic is a perfect square, (x + 1)2.
  11. Set each factor equal to zero: x+1=0 or x+1=0. Both equations are the same; subtracting 1 from both sides gives the single answer x=-1.AB = 0 means A = 0 or B = 0, or both. Here A and B are the same factor, so they are zero together at x = -1, and no other input makes either factor zero. The input -1 is a real number, so it is permitted.
  12. Check in the original function: f(-1)=(-1)2+2(-1)-5=1-2-5=-6, the requested output.Substitution into the original formula confirms that -1 really produces the output -6.
  13. Explain the counts with the graph. The output -6 is the y-coordinate of the vertex (-1,-6), the lowest point of the parabola. The horizontal line y=10 lies above the vertex and crosses the parabola twice, at (-5,10) and (3, 10), so part (a) has two solutions. The horizontal line y=-6 touches the parabola only at the vertex, so part (b) has one solution.Each solution of f(x) = k is the x-coordinate of a point on the graph at height k, so the number of solutions equals the number of points where the horizontal line y = k meets the graph.
Answer
  • (a) x = -5 or x = 3
  • both inputs produce the output 10. (b) x = -1 is the only solution. The output 10 is above the lowest output of f, so the graph reaches height 10 at two points, (-5, 10) and (3, 10)
  • the output -6 is the height of the vertex (-1, -6), the only point of the graph at that height.
Double-check Substitute each answer into f(x) = x2 + 2x - 5: f(-5) = 25 - 10 - 5 = 10, f(3) = 9 + 6 - 5 = 10 and f(-1) = 1 - 2 - 5 = -6, so every answer gives its requested output. Graph check: a parabola is symmetric about the vertical line through its vertex, here x = -1, so two inputs with the same output must be equally far from -1. The answers -5 and 3 are each 4 units from -1, and their average is -5+32 = -1. The single answer to (b) is the vertex's own x-coordinate, as the lowest output must be.

Work to write

  1. (a)x2+2x-5=10
  2. x2+2x-15=0
  3. (x + 5)(x - 3) = 0
  4. x + 5 = 0 or x - 3 = 0
  5. x = -5 or x = 3
  6. f(-5) = 25 - 10 - 5 = 10 and f(3) = 9 + 6 - 5 = 10
  7. (b)x2+2x-5=-6
  8. x2+2x+1=0
  9. (x + 1)(x + 1) = 0
  10. x + 1 = 0, so x = -1 is the only solution
  11. f(-1) = 1 - 2 - 5 = -6
  12. -6 is the height of the vertex (-1, -6), so the line y = -6 meets the graph once, while the line y = 10 meets it twice

The trap

Treating a requested output as an input. In h(p) = 3, set the formula equal to 3; do not evaluate h(3).

Quick check

Try it before you open its steps. It is question 3 of 6 in the full lesson, where they run from easy to exam-hard.

Try it · level 3 of 6

Factoring rung 3: opposite signs

Factor x2 − x − 6. A missing written coefficient before x means the coefficient is −1.

What it asks. Rewrite the same sum as multiplied factors. Do not change its value.

Show the steps and the answer

The plan. Identify the constant and middle coefficient. List integer factor pairs of the constant, check their sums and signs, and write the pair in parentheses. Multiply the factors back to check.

2+(−3)=−1

2×(−3)=−6

(x+2)(x−3)=x2−x−6

  1. Plan. Identify the constant and middle coefficient. List integer factor pairs of the constant, check their sums and signs, and write the pair in parentheses. Multiply the factors back to check.
  2. The two constant numbers must multiply to the last term.
  3. Their sum must equal the coefficient of the middle term.
  4. Check the signs, then multiply all four term pairs back.
  1. The desired sum is −1 and the desired product is −6.Read the middle coefficient and constant with their signs.
  2. A negative product needs opposite signs. Choose 2 and −3.2 × (−3) = −6 and 2 + (−3) = −1.
  3. x2−x−6=(x+2)(x−3).Adding −3 is written as subtracting 3.
Answer
x2−x−6=(x+2)(x−3)
Double-check Expand: (x + 2)(x − 3) = x2 − 3x + 2x − 6 = x2 − x − 6. The negative middle coefficient is preserved.

6 Turn an equation into a function when possible

about 6 minOpen the full lessonOnly this lesson

The rule

Choose the input and output.

An explicit rule gives the output alone in terms of the input.
An implicit rule keeps them mixed in an equation. Function status requires exactly one output for each allowed input.

How

  1. Name the input letter and the requested output letter.
  2. Undo addition or subtraction around the output, doing the same operation to both sides.
  3. Divide every remaining term by the output's nonzero coefficient.
  4. For a cubed output, take its unique real cube root. For a squared output, keep both signs and test an input where they differ.
  5. Write the output alone as f(input) when possible, and check a pair in the equation you started with.
  6. If the equation stays mixed, remember that an awkward formula alone does not disprove a function.

Worked example

Worked example

Solving x2 - 4y = 12 for y, then for x

The equation x2 - 4y = 12 relates two real variables, x and y. The figure shows its graph, a parabola whose lowest point is (0, -3) and which passes through the points (-4, 1), (2, -2) and (4, 1).
(a) Use x as the input and y as the output. Solve the equation for y, write the result as f(x), and check one pair in the original equation.
(b) Now use y as the input and x as the output. Solve the equation for x and decide whether x is a function of y. Use the points (-4, 1) and (4, 1) to support your answer.

(-4, 1)(4, 1)(2, -2)(0, -3)−6−4−2246−4−2246
The graph of x2 - 4y = 12, which is the parabola y = x24 - 3 with lowest point (0, -3).
Show the steps and the answer
  1. Part (a). Name the input and the output. The input is x and the requested output is y. The rule x2-4y=12 is implicit, because x and y are mixed on the same side.The question asks for y in terms of x, so y must end up alone. Isolating it turns the implicit rule into an explicit one.
  2. Undo the addition around the output term. The left side is x2 added to the output term -4y, so subtract x2 from both sides. x2-4y-x2=12-x2 gives -4y=12-x2.Doing the same operation to both sides keeps the equation true, and it leaves only the output term on the left.
  3. Divide every remaining term by the coefficient -4. y=12-4-x2-4=-3+x24, so y=x24-3.The coefficient of y is -4. It is not zero, so dividing by it is allowed. Both the 12 and the x2 must be divided, and dividing by a negative number changes the sign of each term.
  4. Check the power on the output. y appears only to the first power and is not squared or cubed, so no root step is needed.Squaring x, dividing by 4 and subtracting 3 each produce exactly one number, so every real x gives exactly one y.
  5. Write the output alone as a function. f(x)=x24-3, for every real x. Check the pair x=2. f(2)=224-3=1-3=-2, and in the starting equation 22-4(-2)=4+8=12.An explicit rule with exactly one output for each allowed input is a function, so y is a function of x. Checking (2, -2) in the original equation, not in our own rearrangement, catches any sign or division slip.
  6. Part (b). Swap the roles. The input is now y and the requested output is x.The same equation can be read in either direction. Whether it gives a function depends on which letter is the output.
  7. Undo the subtraction around the output term. 4y is subtracted from x2, so add 4y to both sides. x2-4y+4y=12+4y gives x2=4y+12. The coefficient of x2 is 1, so dividing by it changes nothing.Adding 4y to both sides keeps the equation balanced and leaves the output term alone on the left. Dividing every term by 1 leaves each term unchanged.
  8. The output is squared, so keep both signs. x=4y+12 or x=-4y+12, which can be written x=±4y+12. Real outputs need 4y+12≥0, so the allowed inputs are y≥-3.A number and its opposite have the same square, so both signs satisfy x2 = 4y + 12. Keeping only one sign would quietly drop solutions of the original equation.
  9. Test an input where the two signs differ. y=-3 will not work, because 4(-3)+12=0 and both signs give x=0. Use y=1 instead. 4(1)+12=16, so x=16=4 or x=-16=-4.The two formulas give different outputs only when the number under the root is positive, so the test input must make 4y + 12 greater than 0.
  10. Check both pairs in the starting equation. 42-4(1)=16-4=12 and (-4)2-4(1)=16-4=12, so both (4, 1) and (-4,1) are genuine solutions.The test only counts if both outputs really satisfy the original equation, not just the rearranged one.
  11. Conclude. The allowed input y=1 has two outputs, x=4 and x=-4, so x is not a function of y and no single f(y) gives x. On the graph, the horizontal line y=1 meets the parabola at (-4,1) and (4, 1).A function needs exactly one output for each allowed input, so one input with two checked outputs is enough to fail. The verdict rests on these two outputs, not on the two-sign formula merely looking awkward.
Answer
(a) y = f(x) = x24 - 3 for every real x, so y is a function of x. (b) x = 4y+12 or x = -4y+12 for y ≥ -3. The input y = 1 gives both x = 4 and x = -4, so x is not a function of y.
Double-check Try another input in (a). f(-4) = (-4)24 - 3 = 164 - 3 = 1, and (-4)2 - 4(1) = 16 - 4 = 12, so (-4, 1) satisfies the original equation. Also f(0) = -3 and 02 - 4(-3) = 12, which gives the lowest point (0, -3). On the graph, every vertical line meets the parabola exactly once, which gives one y for each x as in (a). The horizontal line y = 1 meets it twice, at (-4, 1) and (4, 1), which gives two x-values for one y as in (b).

Work to write

  1. Part (a): input x, output y
  2. -4y=12-x2
  3. y=12-4-x2-4=x24-3
  4. f(x) = x24 - 3, for every real x
  5. Check (2, -2): 22 - 4(-2) = 4 + 8 = 12
  6. Part (b): input y, output x, so x2 = 4y + 12
  7. x = 4y+12 or x = -4y+12
  8. y = 1: x = 4 or x = -4, and 42 - 4(1) = 12, (-4)2 - 4(1) = 12
  9. y = 1 has two outputs, so x is not a function of y

The trap

Discarding the negative square-root solution when the original equation permits it. A root expression chooses one branch; a squared equation may include both.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Remove several copies of the input

Write 3n + p = 11 as p = f(n).

What it asks. Isolate p after removing three copies of n.

Show the steps and the answer

The plan. Subtract the entire known contribution 3n.

3n + p − 3n = 11 − 3n, so p = 11 − 3n.

  1. Plan. Subtract the entire known contribution 3n.
  2. 3n is one complete term.
  3. Subtract 3n from each side.
  1. 3n+p−3n=11−3n, so p=11−3n.Subtracting the same known contribution preserves equality and leaves p alone.
Answer
p=f(n)=11−3n
Double-check At n = 2, p = 5. The original left side is 6 + 5 = 11.

7 Evaluate and solve from tables and graphs

about 4 minOpen the full lessonOnly this lesson

The rule

Evaluate g(3): input 3 is given; read its output.

Solve g(n)=6: output 6 is given; find every input paired with it. A point (x, y) on a function graph means y=f(x).

How

  1. Translate the question into either given input, find output, or given output, find inputs.
  2. In a table, stay in the same column when moving between its input and output rows.
  3. On a graph, locate the given input on the horizontal axis or the given output on the vertical axis.
  4. For evaluation, move vertically to the graph and read the height. For solving, search across the given height and read every horizontal position.
  5. Check each answer against its original column or point. Do not invent values between isolated data points.

Worked example

Worked example

Evaluate and solve from a shuttle's passenger table

A city shuttle makes seven stops on its morning loop, numbered s = 1 through s = 7. The function P gives the number of passengers on board, P(s), just after the shuttle pulls away from stop s. The table lists every value of P:

s (stop number): 1, 2, 3, 4, 5, 6, 7
P(s) (passengers): 8, 14, 21, 14, 11, 14, 9

(a) Evaluate P(5) and say what it means.
(b) Solve P(s) = 14 and say what it means.
(c) Solve P(s) = 17.

input stop number, soutput passengers on board, P(s)1821432141451161479
A table of 7 values of passengers on board, P(s), for stop number, s from 1 to 7.
Show the steps and the answer
input stop number, soutput passengers on board, P(s)1821432141451161479↓ evaluate: input given, read the output below it
Table of P for the shuttle loop.
  1. Translate part (a). In P(5) the number inside the parentheses is the input. This is 'given input, find output': the stop number s=5 is given and the passenger count is wanted.In function notation the value inside the parentheses is always the input, and P(5) names the output paired with it.
  2. Find 5 in the s row of the table. Stay in that same column, move down to the P(s) row and read the entry, which is 11. So P(5)=11.Each column of the table is one input-output pair. The output for s = 5 is the entry directly below it, not an entry from a neighboring column.
  3. Interpret: P(5)=11 means that just after the shuttle pulls away from stop 5, 11 passengers are on board.The input is a stop number and the output is a number of passengers, so the meaning names the stop and the count in the words of the problem.
  4. Translate part (b). In P(s)=14 the number 14 is a value of P. This is 'given output, find inputs': the passenger count 14 is given and every stop number s with that count is wanted.The equation sets the output P(s) equal to 14 and leaves the input s unknown. It is not P(14), which would treat 14 as an input, and there is no stop 14.
  5. Scan the entire P(s) row: 8, 14, 21, 14, 11, 14, 9. The value 14 appears three times. Move up each of those three columns to the s row to get s=2,s=4 and s=6.Solving means finding every input paired with the given output. A function can give the same output for different inputs, so the search cannot stop at the first 14.
  6. Interpret: P(s)=14 when s=2,s=4 or s=6. The shuttle carries 14 passengers just after leaving stop 2, just after leaving stop 4 and just after leaving stop 6.Each solution is an input, which here is a stop number, and the equation says the output 14 occurs at each of those stops.
  7. Translate part (c). P(s)=17 is again 'given output, find inputs'. Scan the entire P(s) row: 8, 14, 21, 14, 11, 14, 9. No entry is 17.The table lists every value of P, so a stop is a solution only if 17 appears in its column.
  8. Do not estimate an input between s=2 (14 passengers) and s=3 (21 passengers), such as s=2.5. Conclude that P(s)=17 has no solution.P is defined only at the stop numbers 1 through 7. There is no stop between stop 2 and stop 3, so there is no input there and no output to read. A value invented between isolated data points is not data the table contains.
Answer
(a) P(5) = 11: just after the shuttle leaves stop 5, 11 passengers are on board. (b) s = 2, s = 4 or s = 6: the shuttle carries 14 passengers just after leaving each of stops 2, 4 and 6. (c) No solution: 17 is not an output anywhere in the table, and P has no inputs between the listed stop numbers.
Double-check Return to each column. In column s = 5 the P(s) entry is 11, which matches P(5) = 11. In columns s = 2, s = 4 and s = 6 each entry is 14, so P(2) = P(4) = P(6) = 14. The other columns hold 8 (s = 1), 21 (s = 3), 11 (s = 5) and 9 (s = 7), and none of these is 14, so no solution of P(s) = 14 was missed. No column holds 17, which confirms that P(s) = 17 has no solution.

Work to write

  1. P(5) = 11
  2. Just after the shuttle leaves stop 5, 11 passengers are on board.
  3. P(s) = 14 when s = 2, s = 4 or s = 6
  4. The shuttle carries 14 passengers just after leaving stops 2, 4 and 6.
  5. P(s) = 17 has no solution, because 17 is not an output in the table and there is no stop between the listed stops.

The trap

Reading only the first matching output when solving. Scan the whole table or the whole horizontal level of the graph before writing the solution set.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Evaluate a graph input

For the curve s(x) = x2, evaluate s(−2), meaning read the output height at input −2.

What it asks. Read the square curve’s height at input −2.

Show the steps and the answer

The plan. Keep x = −2 while moving vertically to the curve, then read y.

(−2, 4)−22−2246810
Input −2 lies left of zero, but its output lies above zero.
  1. Plan. Keep x = −2 while moving vertically to the curve, then read y.
  2. −2 is left of the origin.
  3. The point there is (−2, 4).
  1. Start at −2 on the horizontal axis and move vertically to the curve at (−2,4).The input stays −2 during a vertical move.
  2. Read the height 4, so s(−2)=4.The vertical coordinate is the output.
Answer
s(−2)=4.
Double-check The rule gives (−2)2 = (−2) × (−2) = 4, agreeing with the graph.

8 One-to-one means each output identifies one input

about 5 minOpen the full lessonOnly this lesson

The rule

A one-to-one function gives different outputs to different inputs.

Equivalently, each value in its range comes from exactly one input. Check function status first, then check for shared outputs.

How

  1. State the domain and the direction of the rule.
  2. Confirm that each input has one output.
  3. Search for two different inputs with the same output. One such pair proves the function is not one-to-one.
  4. If claiming one-to-one, explain why every output the function actually produces recovers exactly one allowed input. A few sample pairs alone do not prove it for an infinite domain.

Worked example

Worked example

Swim meet: does each output identify one input?

At a swim meet, six swimmers race 100 meters, one in each of lanes 1 through 6. The function F gives the official finishing time F(L), in seconds, of the swimmer in lane L. The results board, shown in the figure, lists every value of F:

L (lane): 1, 2, 3, 4, 5, 6
F(L) (seconds): 61.84, 59.37, 58.06, 60.12, 58.06, 62.49

(a) Is F a function? Is F one-to-one? If a fan hears only a finishing time, can the fan always tell which lane it belongs to?
(b) The coach's spreadsheet accepts any real number t > 0 as a time in seconds and returns the average speed over 100 meters, v(t) = 100t meters per second. A student evaluates v(50) = 2, v(80) = 1.25 and v(100) = 1, sees three different outputs, and concludes that v is one-to-one. Explain why that check alone does not prove it. Then decide whether v is one-to-one and justify your answer. Does a speed always tell the coach the time?

input L (lane)output F(L) (seconds)161.84259.37358.06460.12558.06662.49
A table of 6 values of F(L) (seconds), for L (lane) from 1 to 6.
Show the steps and the answer
input L (lane)output F(L) (seconds)161.84259.37358.06460.12558.06662.49↓ evaluate: input given, read the output below it
Results board for F: each lane from 1 to 6 is paired with one finishing time in seconds.
  1. (a) State the domain and the direction of the rule. The input is the lane number L and the output is that lane's finishing time, so F goes from lane to time, L→F(L). The domain is the set of lanes on the board, {1, 2, 3, 4, 5, 6}.One-to-one asks whether an output leads back to a single input, so we first fix which quantity is the input and exactly which inputs are allowed.
  2. (a) Confirm that each input has one output. Each lane appears once on the board, paired with exactly one time: 1→61.84,2→59.37,3→58.06,4→60.12,5→58.06,6→62.49. So F is a function.Function status is checked before anything else. A repeated time does not break it: a function may give the same output to different inputs, but it may never give one input two outputs.
  3. (a) Search for two different inputs with the same output. The time 58.06 appears twice: F(3)=58.06 and F(5)=58.06, with 3≠5. So F is not one-to-one. A fan who hears only 58.06 seconds cannot tell lane 3 from lane 5, so the answer to the fan question is no.One-to-one requires different inputs to give different outputs. A single pair of different inputs sharing an output disproves it: the output 58.06 points back to two inputs instead of one.
  4. (b) State the domain and the direction of the rule. Now the input is a time t and the output is a speed, so v goes from time to speed, t→100t. The domain is every real number t > 0, an infinite set.With infinitely many inputs we cannot list every input and compare all the outputs, as we did for six lanes, so the kind of argument has to change.
  5. (b) Confirm that each input has one output. For each t > 0, dividing 100 by the nonzero number t gives exactly one result, 100t. So v is a function.Function status comes first again; division by a nonzero number has a single answer, so no allowed input gets two outputs.
  6. (b) Search for two different inputs with the same output, and judge the student's check. The values v(50)=2,v(80)=1.25 and v(100)=1 compare only three of the infinitely many allowed inputs; they say nothing about the pairs that were never tested. For example, w(t)=(t-60)2 also gives three different outputs at those inputs (100, 400 and 1600), yet w(50)=w(70)=100, so passing such a check does not make a function one-to-one.A few sample pairs alone do not prove one-to-one on an infinite domain. The argument must cover every output at once.
  7. (b) Describe the outputs v actually produces. When t > 0, the quotient 100t is positive, so every output is a positive speed s. Numbers such as 0 or -3 are never produced, so they need no matching input.One-to-one concerns only the outputs the function really produces, and knowing s > 0 also guarantees s ≠ 0, which the next step divides by.
  8. (b) Recover the input from any output. Take any output s > 0 and solve 100t=s. Multiply both sides by t (allowed, since t≠0): 100= st. Divide both sides by s (allowed, since s≠0): t=100s. Both steps can be reversed, so 100t=s has exactly one solution, t=100s, and it is positive, so it is an allowed input. Each speed therefore comes from exactly one time: v is one-to-one, and a speed always tells the coach the time.This is the rule's second form: each value in the range comes from exactly one input. Using a general letter s covers every output at once, which is exactly what the three samples could not do.
Answer
  • (a) F is a function, but it is not one-to-one, because F(3) = F(5) = 58.06 with 3 ≠ 5. No: a fan who hears 58.06 seconds cannot tell lane 3 from lane 5. (b) Three sample values test only three of infinitely many inputs, so untested pairs could still share an output
  • w(t) = (t - 60)2 passes the same check yet w(50) = w(70) = 100. Even so, v is one-to-one: every output is a speed s > 0, and 100t = s has exactly one solution, t = 100s, which is an allowed input. Yes: a speed always tells the coach the time.
Double-check (a) Read the board backward, from time to lane: 61.84, 59.37, 60.12 and 62.49 each lead to one lane (1, 2, 4 and 6), but 58.06 leads to both lane 3 and lane 5. The backward pairing time → lane is not even a function, which confirms that F is not one-to-one. (b) Pick a speed, 1.6 meters per second: t = 1001.6 = 62.5, and v(62.5) = 10062.5 = 1.6, so the recovered time gives back the same speed. The student's outputs also lead back to their own inputs: 1002 = 50, 1001.25 = 80 and 1001 = 100.

Work to write

  1. F goes lane → time with domain {1, 2, 3, 4, 5, 6}; each lane has exactly one time, so F is a function.
  2. F(3) = F(5) = 58.06 with 3 ≠ 5, so F is not one-to-one.
  3. The time 58.06 seconds does not identify one lane: it could be lane 3 or lane 5.
  4. v goes time → speed with domain t > 0; each t gives one value 100t, so v is a function.
  5. Three sample values cannot prove one-to-one on the infinite domain t > 0.
  6. Every output is some s > 0, and 100t = s gives exactly one input, t = 100s > 0.
  7. So v is one-to-one: each speed identifies exactly one time.

The trap

Calling a function one-to-one after checking only that each input has one output. Also check that no two different inputs share an output, and state the domain.

9 Vertical and horizontal lines answer different questions

about 2 minOpen the full lessonOnly this lesson

The rule

Vertical line test: a graph represents a function exactly when every vertical line meets it at most once.

Horizontal line test: a function is one-to-one exactly when every horizontal line meets its graph at most once.

How

  1. Identify the input on the horizontal axis and the output on the vertical axis.
  2. Try vertical lines across the graph. One line meeting two distinct graph points proves it is not a function.
  3. If every vertical line meets at most once, the graph is a function. Some lines may miss the graph.
  4. For a function, try horizontal lines. One line meeting two distinct points proves it is not one-to-one.
  5. Passing every horizontal line proves one-to-one. State which test supports each conclusion.

Worked example

Worked example

A line, a V, and a circle

Decide whether each relation is a function of x and then, if it is a function, whether it is one-to-one: (a) y = x, (b) y = |x|, and (c) x2 + y2 = 1.

What it asks. Check one output per input for each relation; then check shared outputs for the ones that are functions.

Show the steps and the answer

The plan. For the line and V, count vertical and horizontal contacts. For the circle, compare the shown top and bottom points at the same input 0.

(−1, −1)(0, 0)(1, 1)−22−22
For y = x, each input has one output, and each output has one input.
(−3, 3)(3, 3)−4−22424
The horizontal level y = 3 meets the V twice.
(0, 1)
The same picture again: The point (0, 1) on the unit circle at 90°.
(0, −1)
The same picture again: The point (0, −1) on the unit circle at 270°.
  1. Plan. For the line and V, count vertical and horizontal contacts. For the circle, compare the shown top and bottom points at the same input 0.
  2. The V has two points at height 3.
  3. The two circle pictures mark (0, 1) and (0, −1) on the same circle.
  1. (a) The diagonal line y=x has one point for each fixed x and one point for each fixed y. It passes both tests.The rule copies the input. Output 3 comes only from input 3, and the same statement works for every output.
  2. (b) The V-shaped graph of y=|x| has one height |x| for each input x, so it passes the vertical test.A fixed input has exactly one distance from 0.
  3. At height 3, the V has points (−3,3) and (3, 3), so it fails the horizontal test.One output is shared by two distinct inputs.
  4. (c) At x=0, the circle equation gives y=1 or y=−1. It fails the vertical test.One vertical line meets two distinct points with the same input.
  5. Do not classify the circle relation as a one-to-one function.It has already failed the requirement to be a function of x.
Answer
  • (a) function and one-to-one.
  • (b) function, but not one-to-one.
  • (c) Not a function of x; therefore not a one-to-one function of x.
Double-check Use the equations independently: y = x recovers x = y; y = |x| gives two inputs, −3 and 3, for output 3; x2 + y2 = 1 gives two outputs for input 0.

The trap

Using the horizontal line test to decide function status. Check vertical first, then horizontal, and label the conclusion from each test.

10 Meet the nine toolkit functions

about 4 minOpen the full lessonOnly this lesson

The rule

Toolkit functions: constant c, identity x, absolute value |x|, quadratic x2, cubic x3, reciprocal 1x, reciprocal squared 1x2, square root x, and cube root x3.

For each, connect formula, graph, domain, range, and a sample table.

How

  1. Identify the operation in the formula and match its familiar graph shape.
  2. Check which real inputs the operation accepts. These make its domain.
  3. Ask which outputs it can actually produce. These make its range.
  4. Evaluate one small input with parentheses, then check the result against the graph or sample table.
  5. When an output is given, reverse the operation and check every candidate against the domain.

Worked example

Worked example

The constant function k(x) = -2: formula, graph, domain, range and table

The constant function k(x) = -2 is one of the nine toolkit functions. The figure shows its graph: a horizontal line 2 units below the x-axis that passes through the marked points (-4, -2), (0, -2) and (3, -2).
(a) Say what the formula does with its input, and name the shape of the graph.
(b) State the domain of k.
(c) State the range of k.
(d) Evaluate k(-1), writing the input in parentheses. Then complete a sample table for x = -1, 0 and 2, and check it against the graph.
(e) Solve k(x) = -2. Then solve k(x) = 2.

(-4, -2)(0, -2)(3, -2)−6−4−2246−4−224
Graph of the constant function k(x) = -2.
Show the steps and the answer
  1. Identify the operation. The right side of k(x)=-2 contains no x, so k does nothing with its input and always returns -2. A constant function graphs as a horizontal line. Here it is the line y=-2, 2 units below the x-axis. This matches the figure, where every marked point, (-4,-2),(0,-2) and (3,-2), has y-coordinate -2.Points that all share one y-coordinate lie on a single horizontal line, so a rule that gives every input the same output must graph as a horizontal line.
  2. Find the domain. The formula has no division by x and no square root of x, so no real input can make it undefined. Domain: all real numbers, (-∞,∞).Only operations such as dividing by zero or taking the square root of a negative number shut inputs out. k uses neither, and its graph runs without a break across the whole x-axis.
  3. Find the range. The only output k ever produces is -2. Range: {-2}, the single number -2. It is not an interval, and it is not all real numbers.The range is the set of outputs actually produced, and every point on the graph sits at height -2.
  4. Evaluate with parentheses. Replace x with (-1) in k(x)=-2. There is no x on the right side, so nothing changes and k(-1)=-2. In the same way k(0)=-2 and k(2)=-2, which gives the sample table x: -1, 0, 2 and k(x): -2,-2,-2. Check: (0,-2) is a marked point. (-1,-2) and (2,-2) lie on the same horizontal line, between the marked points, at height -2.Parentheses keep the input's sign attached in any formula. Here they show that the output does not depend on the input. Each table pair (x, k(x)) is a point that must lie on the graph.
  5. Reverse for the output -2. The equation k(x)=-2 says -2=-2, which is true whatever x is. Every real number is a candidate, and every candidate is in the domain, so every real number is a solution.Solving k(x) = -2 asks which inputs produce -2. All inputs produce -2, and on the graph the whole line sits at height -2.
  6. Reverse for the output 2. The equation k(x)=2 says -2=2, which is false for every x. There are no candidates, so the equation has no solution.2 is not in the range {-2}. On the graph, the horizontal line y = 2 lies 4 units above the graph of k and never meets it.
Answer
  • (a) k ignores its input and always outputs -2
  • its graph is the horizontal line y = -2. (b) Domain: all real numbers, (-∞, ∞). (c) Range: {-2}, only the value -2. (d) k(-1) = -2. The table gives k(-1) = -2, k(0) = -2 and k(2) = -2, and each of these points lies on the graph. (e) k(x) = -2 is true for every real number x
  • k(x) = 2 has no solution.
Double-check Test inputs not used above: k(10) = -2 and k(-12) = -2. Both 10 and -12 solve k(x) = -2, as 'every real number' predicts, and both outputs are -2, the one value in the range. The graph agrees. The line continues left and right without end, so every real input is used. Each of its points has height -2, so the line y = 2 never meets it and k(x) = 2 has no solution.

Work to write

  1. k(x) = -2 gives the output -2 for every input; its graph is the horizontal line y = -2
  2. Domain: all real numbers, (-∞, ∞)
  3. Range: {-2} (only the value -2)
  4. k(-1) = -2
  5. Table: x = -1, 0, 2 gives k(x) = -2, -2, -2; each point lies on the line
  6. k(x) = -2: every real number x is a solution
  7. k(x) = 2: no solution, because 2 is not in the range

The trap

Memorizing a graph shape without checking its input and output restrictions. The square and square-root functions both stay at nonnegative heights, but only the square root excludes negative inputs.

11 Quick checks for the whole unit

8 questions

Quick check 1 of 8

For r(x) = 3x − 7, find r(−2).

Show the steps and the answer
Answer
−13 because 3(−2) − 7 = −6 − 7 = −13.

Quick check 2 of 8

For k(t) = t−6, solve k(t) = 3.

Show the steps and the answer
Answer
t = 15 because squaring gives t − 6 = 9, and 15−6 = 3.

Quick check 3 of 8

Use the pictured table to solve g(n) = 6.

input noutput g(n)1826374658
Read up from every highlighted 6.
Show the steps and the answer
input noutput g(n)1826374658↑ solve: output given, read every input above it
Read up from every highlighted 6.
Answer
  • n = 2.
  • n = 4.
  • Both highlighted output cells are 6, so both inputs solve it.

Quick check 4 of 8

Use the pictured table. Is it a function? Is it one-to-one?

input xoutput y211415611
Each input has one answer, but output 11 has two inputs.
Show the steps and the answer
input xoutput y211415611↑ solve: output given, read every input above it
Each input has one answer, but output 11 has two inputs.
Answer
  • Function: yes, because every input has one output.
  • One-to-one: no, because inputs 2 and 6 share output 11.

Quick check 5 of 8

For f(x) = 11 − 6x, simplify f(x+h)−f(x)h, h ≠ 0.

Show the steps and the answer
Answer
−6, with h ≠ 0, because the output difference is (11 − 6x − 6h) − (11 − 6x) = −6h.

Quick check 6 of 8

In words, what does f(x+h)−f(x)h measure?

Show the steps and the answer
Answer
Average output change for each input step: the slope of the line joining the points at x and x + h, because the fraction divides output change by input change.

Quick check 7 of 8

Read the pictured square-root graph. What are its domain and range?

(0, 0)(9, 3)domainrange246810−11234
Read the horizontal coverage for inputs and vertical coverage for outputs.
Show the steps and the answer
Answer
  • Domain: [0, ∞).
  • Range: [0, ∞).
  • The graph starts at (0, 0), runs right forever, and rises without a largest height.

Quick check 8 of 8

Does y = x2 + 1 pass the vertical and horizontal line tests on all real inputs?

Show the steps and the answer
(−1, 2)(1, 2)−22246
One height can have two inputs while each input still has one height.
Answer
  • Vertical: yes, because each input gives one output x2 + 1.
  • Horizontal: no, because inputs −1 and 1 both give output 2.