04/14 4. Functions and Their Graphs

A progressive guide to relations, functions, domains and ranges, representations, graph transformations, and inverse functions.

Relations, Functions, and Graphical Tests

A is a set of ordered pairs x,yx,y, where the first coordinate is the input and the second coordinate is the output. For example, R={(1,3),(2,5),(3,7)}R=\{(1,3),(2,5),(3,7)\} relates each input to one output.

A is a in which every input has exactly one output. Different inputs may share an output, but one input cannot be assigned two different outputs.

For example, {(1,4),(2,4),(3,9)}\{(1,4),(2,4),(3,9)\} is a because each input appears once. In contrast, {(1,4),(1,7),(3,9)}\{(1,4),(1,7),(3,9)\} is not a because input 11 is paired with two outputs.

The provides a graph-based check: if any vertical line crosses a graph more than once, the graph is not a of xx, because that input would have multiple outputs.

Takeaway: A assigns exactly one output to every permitted input, whether the relationship is shown as pairs, a table, a mapping, or a graph.

and

The is the set of possible inputs, and the is the set of resulting outputs. For

R={(−2,5),(0,1),(3,5),(4,8)},R=\{(-2,5),(0,1),(3,5),(4,8)\},

the is {−2,0,3,4}\{-2,0,3,4\} and the is {1,5,8}\{1,5,8\}. The repeated output 55 appears only once in the .

From a graph, inspect the horizontal values covered to find the and the vertical values covered to find the . An open endpoint is excluded, while a closed endpoint is included. For example, a graph that begins just after x=−3x=-3 and ends at an included x=4x=4 has

(−3,4].(-3,4].

Parentheses indicate excluded endpoints, brackets indicate included endpoints, and infinity always uses a parenthesis because it is not an included number.

Equations also impose restrictions:

  • A denominator cannot equal zero. Thus, f(x)=1x−2f(x)=\frac{1}{x-2} has x≠2x\ne 2, or (−∞,2)∪(2,∞)( -\infty,2)\cup(2,\infty).

  • The radicand of an even root must be nonnegative for a real-valued . For g(x)=x+5g(x)=\sqrt{x+5}, the condition x+5≥0x+5\ge 0 gives [−5,∞)[-5,\infty).

  • A polynomial, such as p(x)=x3−2x+1p(x)=x^3-2x+1, has all real numbers.

A real-world context can impose additional restrictions, such as allowing only nonnegative integers for the number of items sold.

Takeaway: Determine and from the permitted inputs and outputs, then check both the graph and the equation for exclusions.

and Representations

names a and describes its output. The statement y=f(x)y=f(x) means that the output yy is produced by ff when the input is xx; it does not mean ff multiplied by xx.

To evaluate a , substitute the input everywhere the variable appears. If

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

then

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

Therefore, the point (2,9)(2,9) lies on the graph.

For a symbolic input, substitute the entire expression. If f(x)=x2+4xf(x)=x^2+4x, then

f(a+1)=(a+1)2+4(a+1)=a2+6a+5.f(a+1)=(a+1)^2+4(a+1)=a^2+6a+5.

The input is often called the independent variable because it is selected first. The output is the dependent variable because its value depends on the input.

A can be represented in several equivalent ways:

  • Verbally: the output is five more than twice the input.

  • Numerically: a table of input-output values.

  • Algebraically: f(x)=2x+5f(x)=2x+5.

  • Graphically: points or a curve in the coordinate plane.

  • As a mapping: arrows from inputs to outputs.

For f(x)=2x+5f(x)=2x+5, inputs −2,−1,0,1-2,-1,0,1 produce outputs 1,3,5,71,3,5,7, respectively. A table is especially useful for discrete data, while an equation or graph can describe a continuous relationship. Each representation must still assign exactly one output to each permitted input.

Takeaway: Substitute carefully in , and use multiple representations to reveal the same input-output rule from different perspectives.

Transformations of Graphs

A changes the graph of a known parent in a predictable way. For a parent y=f(x)y=f(x), the main rules are:

  • g(x)=f(x)+kg(x)=f(x)+k shifts the graph up kk units when k>0k>0; g(x)=f(x)−kg(x)=f(x)-k shifts it down kk units.

  • g(x)=f(x−h)g(x)=f(x-h) shifts the graph right hh units, while g(x)=f(x+h)g(x)=f(x+h) shifts it left hh units. The horizontal sign works opposite to the direction of movement.

  • g(x)=−f(x)g(x)=-f(x) reflects the graph across the xx-axis, while g(x)=f(−x)g(x)=f(-x) reflects it across the yy-axis.

  • g(x)=af(x)g(x)=af(x) changes vertical distances by a factor of ∣a∣|a|. Values ∣a∣>1|a|>1 produce a vertical stretch, while 0<∣a∣<10<|a|<1 produce a vertical compression.

  • g(x)=f(bx)g(x)=f(bx) changes horizontal distances by a factor of 1/∣b∣1/|b|. Values ∣b∣>1|b|>1 produce a horizontal compression, while 0<∣b∣<10<|b|<1 produce a horizontal stretch.

A combined form is

g(x)=a f(b(x−h))+k.g(x)=a\,f\bigl(b(x-h)\bigr)+k.

Here, hh controls horizontal position, kk controls vertical position, aa controls vertical scaling and possible reflection, and bb controls horizontal scaling and possible reflection.

For example, with f(x)=∣x∣f(x)=|x| and g(x)=−2∣x−3∣+1g(x)=-2|x-3|+1:

  1. x−3x-3 shifts the graph right 33 units.

  2. The factor 22 stretches it vertically by a factor of 22.

  3. The negative sign reflects it across the xx-axis.

  4. The addition of 11 shifts it up 11 unit.

The vertex moves from (0,0)(0,0) to (3,1)(3,1).

Takeaway: Read transformations from the outside and inside of the , remembering that horizontal shifts have an opposite sign inside the input.

Inverse Relations and Functions

An reverses ordered pairs. If

R={(1,4),(2,5),(3,7)},R=\{(1,4),(2,5),(3,7)\},

then

R−1={(4,1),(5,2),(7,3)}.R^{-1}=\{(4,1),(5,2),(7,3)\}.

The graph is reflected across y=xy=x, since every point x,yx,y\) becomes y,xy,x\).

An exists only when the original is one-to-one. Use the : if some horizontal line intersects the graph more than once, two different inputs produce the same output, so the is not a .

For example, f(x)=x2f(x)=x^2 is not one-to-one on all real numbers because

f(2)=4andf(−2)=4.f(2)=4\quad\text{and}\quad f(-2)=4.

If its is restricted to [0,∞)[0,\infty), it becomes one-to-one and its inverse is f−1(x)=xf^{-1}(x)=\sqrt{x}.

To find an inverse algebraically:

  1. Write y=f(x)y=f(x).

  2. Interchange xx and yy.

  3. Solve for yy.

  4. Rename the result f−1(x)f^{-1}(x).

For f(x)=3x−7f(x)=3x-7, interchange the variables in y=3x−7y=3x-7 to obtain x=3y−7x=3y-7. Solving gives

f−1(x)=x+73.f^{-1}(x)=\frac{x+7}{3}.

Inversion exchanges and :

Domain⁡(f−1)=Range⁡(f),Range⁡(f−1)=Domain⁡(f).\operatorname{Domain}(f^{-1})=\operatorname{Range}(f),\qquad \operatorname{Range}(f^{-1})=\operatorname{Domain}(f).

The identities

f−1(f(x))=xandf(f−1(x))=xf^{-1}(f(x))=x\quad\text{and}\quad f(f^{-1}(x))=x

provide checks on the appropriate domains.

Takeaway: Reverse the pairs, reflect across y=xy=x, and verify one-to-one behavior before treating an as a .