Skills

Functions, Graphs and Notation

see every function move

4 min readfreeNot practiced

Every topic in this course is about functions: how their outputs change, what their graphs look like, and how to describe them with numbers and words. This page sets up the vocabulary. If your algebra class used these words loosely, read it carefully; the exam reads them strictly.

What a function is

A function is a rule that gives each input exactly one output. A vending machine is a function from buttons to snacks: B4 always gives the same snack. A table, a graph, a formula or a sentence can all describe a function.

The rule says "exactly one output", not "a different output for each input". Two buttons may give the same snack, and two inputs may share an output. What is not allowed is one input with two outputs.

We name functions with letters and write the input in parentheses. f(3)=7f(3) = 7 means "the input 33 gives the output 77". On the graph of ff, that is the point (3,7)(3, 7). Keep the two apart: inside the parentheses is always the input.

Evaluating with function notation

To evaluate a function, replace every xx in its formula with the input, and put the input in parentheses. Parentheses protect negative signs and whole expressions.

Worked example 1. For f(x)=x2−3x+1f(x) = x^2 - 3x + 1, find f(−2)f(-2) and f(x+1)f(x + 1).

f(−2)f(-2)=(−2)2−3(−2)= (-2)^2 - 3(-2)+1+ 1=4= 4+6+ 6+1+ 1=11= 11. Without parentheses, −22-2^2 would mean −4-4, a common slip.

f(x+1)f(x + 1)=(x+1)2−3(x+1)= (x + 1)^2 - 3(x + 1)+1+ 1=x2= x^2+2x+ 2x+1−3x−3+ 1 - 3x - 3+1+ 1=x2−x−1= x^2 - x - 1.

Notice that f(x+1)f(x + 1) is not f(x)+1=x2−3x+2f(x) + 1 = x^2 - 3x + 2. One changes the input; the other changes the output.

Domain and range

The domain of a function is the set of inputs it accepts. The range is the set of outputs it produces. Unless a question says otherwise, the domain of a formula is every real number that gives a real output. Two rules cover almost every case in this course:

  • A denominator cannot be 00.
  • The expression under a square root cannot be negative.

Worked example 2. Find the domain of g(x)g(x)=x−2x−5= \frac{\sqrt{x - 2}}{x - 5}.

Square root: x−2≥0x - 2 \ge 0, so x≥2x \ge 2. Denominator: x−5≠0x - 5 \ne 0, so x≠5x \ne 5. Both must hold: the domain is x≥2x \ge 2 with x≠5x \ne 5.

On a graph, the domain is how far the graph reaches left and right, and the range is how far it reaches down and up. The graph of f(x)=x+4−1f(x) = \sqrt{x + 4} - 1 starts at (−4,−1)(-4, -1) and keeps rising to the right, so its domain is x≥−4x \ge -4 and its range is y≥−1y \ge -1.

The graph of f(x) = square root of (x + 4), minus 1, starts at the closed point (−4, −1), crosses the x-axis at the zero (−3, 0), crosses the y-axis at (0, 1) and passes through (5, 2). Its domain is x ≥ −4 and its range is y ≥ −1.
Figure 1. The graph of f(x)=x+4−1f(x) = \sqrt{x + 4} - 1, with its zero, its yy-intercept and the point (5,2)(5, 2). LevlPrep original diagram.

Zeros and intercepts

A zero of a function is an input whose output is 00. On the graph, a zero is an xx-intercept: the graph meets the xx-axis there. To find zeros from a formula, set the output equal to 00 and solve. For h(x)=2x+10h(x) = 2x + 10: 2x+10=02x + 10 = 0 gives x=−5x = -5.

The yy-intercept is the point where the graph crosses the yy-axis, (0,f(0))(0, f(0)). A function has at most one yy-intercept (one input, one output), but it can have many zeros, or none.

An input outside the domain is never a zero. k(x)=1x+3k(x) = \frac{1}{x + 3} is undefined at x=−3x = -3, and since its numerator is always 11 it has no zeros at all.

Piecewise-defined functions

A piecewise-defined function uses different formulas on different parts of its domain. A parking garage might charge $5 for up to two hours and $3 for each hour after that:

C(t)={5,0<t≤25+3(t−2),2<t≤6C(t) = \begin{cases} 5, & 0 < t \le 2 \\ 5 + 3(t - 2), & 2 < t \le 6 \end{cases}

Worked example 3. Find C(1.5)C(1.5) and C(4)C(4).

1.51.5 meets 0<t≤20 < t \le 2, so use the first piece: C(1.5)=5C(1.5) = 5 dollars.

44 meets 2<t≤62 < t \le 6, so use the second piece: C(4)=5+3(4−2)=11C(4) = 5 + 3(4 - 2) = 11 dollars.

Always check the condition first. The most common slip is plugging the input into the wrong piece.

Spot a mistake on this page?