This is “Relations, Graphs, and Functions”, section 2.1 from the book Advanced Algebra (v. 1.0). For details on it (including licensing), click here.

For more information on the source of this book, or why it is available for free, please see the project's home page. You can browse or download additional books there. To download a .zip file containing this book to use offline, simply click here.

Has this book helped you? Consider passing it on:
Creative Commons supports free culture from music to education. Their licenses helped make this book available to you.
DonorsChoose.org helps people like you help teachers fund their classroom projects, from art supplies to books to calculators.

2.1 Relations, Graphs, and Functions

Learning Objectives

  1. State the domain and range of a relation.
  2. Identify a function.
  3. Use function notation.

Graphs, Relations, Domain, and Range

The rectangular coordinate systemA system with two number lines at right angles specifying points in a plane using ordered pairs (x, y). consists of two real number lines that intersect at a right angle. The horizontal number line is called the x-axisThe horizontal number line used as reference in a rectangular coordinate system., and the vertical number line is called the y-axisThe vertical number line used as reference in a rectangular coordinate system.. These two number lines define a flat surface called a planeThe flat surface defined by x- and y-axes., and each point on this plane is associated with an ordered pairPairs (x, y) that identify position relative to the origin on a rectangular coordinate plane. of real numbers (x, y). The first number is called the x-coordinate, and the second number is called the y-coordinate. The intersection of the two axes is known as the originThe point where the x- and y-axes cross, denoted by (0, 0)., which corresponds to the point (0, 0).

The x- and y-axes break the plane into four regions called quadrantsThe four regions of a rectangular coordinate plane partly bounded by the x- and y-axes and numbered using the Roman numerals I, II, III, and IV., named using roman numerals I, II, III, and IV, as pictured. The ordered pair (x, y) represents the position of points relative to the origin. For example, the ordered pair (−4, 3) represents the position 4 units to the left of the origin, and 3 units above in the second quadrant.

This system is often called the Cartesian coordinate systemTerm used in honor of René Descartes when referring to the rectangular coordinate system., named after the French mathematician René Descartes (1596–1650).

Figure 2.1

Rene Descartes Wikipedia

Next, we define a relationAny set of ordered pairs. as any set of ordered pairs. In the context of algebra, the relations of interest are sets of ordered pairs (x, y) in the rectangular coordinate plane. Typically, the coordinates are related by a rule expressed using an algebraic equation. For example, both the algebraic equations y=|x|2 and x=|y|+1 define relationsips between x and y. Following are some integers that satisfy both equations:

Here two relations consisting of seven ordered pair solutions are obtained:

y=|x|2hassolutions{(3,1),(2,0),(1,1),(0,2),(1,1),(2,0),(3,1)}andx=|y|+1hassolutions{(4,3),(3,2),(2,1),(1,0),(2,1),(3,2),(4,3)}

We can visually display any relation of this type on a coordinate plane by plotting the points.

The solution sets of each equation will form a relation consisting of infinitely many ordered pairs. We can use the given ordered pair solutions to estimate all of the other ordered pairs by drawing a line through the given points. Here we put an arrow on the ends of our lines to indicate that this set of ordered pairs continues without bounds.

The representation of a relation on a rectangular coordinate plane, as illustrated above, is called a graphA visual representation of a relation on a rectangular coordinate plane.. Any curve graphed on a rectangular coordinate plane represents a set of ordered pairs and thus defines a relation.

The set consisting of all of the first components of a relation, in this case the x-values, is called the domainThe set consisting of all of the first components of a relation. For relations consisting of points in the plane, the domain is the set of all x-values.. And the set consisting of all second components of a relation, in this case the y-values, is called the rangeThe set consisting of all of the second components of a relation. For relations consisting of points in the plane, the range is the set of all y-values. (or codomainUsed when referencing the range.). Often, we can determine the domain and range of a relation if we are given its graph.

Here we can see that the graph of y=|x|2 has a domain consisting of all real numbers, =(,), and a range of all y-values greater than or equal to −2, [2,). The domain of the graph of x=|y|+1 consists of all x-values greater than or equal to 1, [1,), and the range consists of all real numbers, =(,).

Example 1

Determine the domain and range of the following relation:

Solution:

The minimum x-value represented on the graph is −8 all others are larger. Therefore, the domain consists of all x-values in the interval [8,). The minimum y-value represented on the graph is 0; thus, the range is [0,).

Answer: Domain: [8,); range: [0,)

Functions

Of special interest are relations where every x-value corresponds to exactly one y-value. A relation with this property is called a functionA relation where each element in the domain corresponds to exactly one element in the range..

Example 2

Determine the domain and range of the following relation and state whether it is a function or not: {(−1, 4), (0, 7), (2, 3), (3, 3), (4, −2)}

Solution:

Here we separate the domain (x-values), and the range (y-values), and depict the correspondence between the values with arrows.

The relation is a function because each x-value corresponds to exactly one y-value.

Answer: The domain is {−1, 0, 2, 3, 4} and the range is {−2, 3, 4, 7}. The relation is a function.

Example 3

Determine the domain and range of the following relation and state whether it is a function or not: {(−4, −3), (−2, 6), (0, 3), (3, 5), (3, 7)}

Solution:

The given relation is not a function because the x-value 3 corresponds to two y-values. We can also recognize functions as relations where no x-values are repeated.

Answer: The domain is {−4, −2, 0, 3} and the range is {−3, 3, 5, 6, 7}. This relation is not a function.

Consider the relations consisting of the seven ordered pair solutions to y=|x|2 and x=|y|+1. The correspondence between the domain and range of each can be pictured as follows:

Notice that every element in the domain of the solution set of y=|x|2 corresponds to only one element in the range; it is a function. The solutions to x=|y|+1, on the other hand, have values in the domain that correspond to two elements in the range. In particular, the x-value 4 corresponds to two y-values −3 and 3. Therefore, x=|y|+1 does not define a function.

We can visually identify functions by their graphs using the vertical line testIf any vertical line intersects the graph more than once, then the graph does not represent a function.. If any vertical line intersects the graph more than once, then the graph does not represent a function.

The vertical line represents a value in the domain, and the number of intersections with the graph represent the number of values to which it corresponds. As we can see, any vertical line will intersect the graph of y=|x|2 only once; therefore, it is a function. A vertical line can cross the graph of x=|y|+1 more than once; therefore, it is not a function. As pictured, the x-value 3 corresponds to more than one y-value.

Example 4

Given the graph, state the domain and range and determine whether or not it represents a function:

Solution:

From the graph we can see that the minimum x-value is −1 and the maximum x-value is 5. Hence, the domain consists of all the real numbers in the set from [1,5]. The maximum y-value is 3 and the minimum is −3; hence, the range consists of y-values in the interval [3,3].

In addition, since we can find a vertical line that intersects the graph more than once, we conclude that the graph is not a function. There are many x-values in the domain that correspond to two y-values.

Answer: Domain: [1,5]; range: [3,3]; function: no

Try this! Given the graph, determine the domain and range and state whether or not it is a function:

Answer: Domain: (,15]; range:; function: no

Function Notation

With the definition of a function comes special notation. If we consider each x-value to be the input that produces exactly one output, then we can use function notationThe notation f(x)=y, which reads “f of x is equal to y.” Given a function, y and f(x) can be used interchangeably.:

f(x)=y

The notation f(x) reads, “f of x” and should not be confused with multiplication. Algebra frequently involves functions, and so the notation becomes useful when performing common tasks. Here f is the function name, and f(x) denotes the value in the range associated with the value x in the domain. Functions are often named with different letters; some common names for functions are f, g, h, C, and R. We have determined that the set of solutions to y=|x|2 is a function; therefore, using function notation we can write:

y=|x|2f(x)=|x|2

It is important to note that y and f(x) are used interchangeably. This notation is used as follows:

f(x)=|x|2f(5)=|5|2=52=3

Here the compact notation f(5)=3 indicates that where x=5 (the input), the function results in y=3 (the output). In other words, replace the variable with the value given inside the parentheses.

Functions are compactly defined by an algebraic equation, such as f(x)=|x|2. Given values for x in the domain, we can quickly calculate the corresponding values in the range. As we have seen, functions are also expressed using graphs. In this case, we interpret f(5)=3 as follows:

Function notation streamlines the task of evaluating. For example, use the function h defined by h(x)=12x3 to evaluate for x-values in the set {−2, 0, 7}.

h(2)=12(2)3=13=4h(0)=12(0)3=03=3h(7)=12(7)3=723=12

Given any function defined by h(x)=y, the value x is called the argument of the functionThe value or algebraic expression used as input when using function notation.. The argument can be any algebraic expression. For example:

h(4a3)=12(4a3)3=2a33h(2x1)=12(2x1)3=x123=x72

Example 5

Given g(x)=x2, find g(2), g(12), and g(x+h).

Solution:

Recall that when evaluating, it is a best practice to begin by replacing the variables with parentheses and then substitute the appropriate values. This helps with the order of operations when simplifying expressions.

g(2)=(2)2=4g(12)=(12)2=14g(x+h)=(x+h)2=x2+2xh+h2

Answer: g(2)=4, g(12)=14, g(x+h)=x2+2xh+h2

At this point, it is important to note that, in general, f(x+h)f(x)+f(h). The previous example, where g(x)=x2, illustrates this nicely.

g(x+h)g(x)+g(h)(x+h)2x2+h2

Example 6

Given f(x)=2x+4, find f(2), f(0), and f(12a22).

Solution:

f(2)=2(2)+4=4+4=0=0f(0)=2(0)+4=0+4=4=2f(12a22)=2(12a22)+4=a24+4=a2=|a|

Answer: f(2)=0, f(0)=2, f(12a22)=|a|

Example 7

Given the graph of g(x), find g(8), g(0), and g(8).

Solution:

Use the graph to find the corresponding y-values where x = −8, 0, and 8.

Answer: g(8)=2, g(0)=0, g(8)=2

Sometimes the output is given and we are asked to find the input.

Example 8

Given f(x)=5x+7, find x where f(x)=27.

Solution:

In this example, the output is given and we are asked to find the input. Substitute f(x) with 27 and solve.

f(x)=5x+727=5x+720=5x4=x

Therefore, f(4)=27. As a check, we can evaluate f(4)=5(4)+7=27.

Answer: x=4

Example 9

Given the graph of g, find x where g(x)=2.

Solution:

Here we are asked to find the x-value given a particular y-value. We begin with 2 on the y-axis and then read the corresponding x-value.

We can see that g(x)=2 where x=5; in other words, g(5)=2.

Answer: x=5

Try this! Given the graph of h, find x where h(x)=4.

Answer: x=5 and x=15

Key Takeaways

  • A relation is any set of ordered pairs. However, in this course, we will be working with sets of ordered pairs (x, y) in the rectangular coordinate system. The set of x-values defines the domain and the set of y-values defines the range.
  • Special relations where every x-value (input) corresponds to exactly one y-value (output) are called functions.
  • We can easily determine whether or not an equation represents a function by performing the vertical line test on its graph. If any vertical line intersects the graph more than once, then the graph does not represent a function.
  • If an algebraic equation defines a function, then we can use the notation f(x)=y. The notation f(x) is read “f of x” and should not be confused with multiplication. When working with functions, it is important to remember that y and f(x) are used interchangeably.
  • If asked to find f(a), we substitute the argument a in for the variable and then simplify. The argument could be an algebraic expression.
  • If asked to find x where f(x)=a, we set the function equal to a and then solve for x.

Topic Exercises

    Part A: Relations and Functions

      Determine the domain and range and state whether the relation is a function or not.

    1. {(3, 1), (5, 2), (7, 3), (9, 4), (12, 4)}

    2. {(2, 0), (4, 3), (6, 6), (8, 6), (10, 9)}

    3. {(7, 5), (8, 6), (10, 7), (10, 8), (15, 9)}

    4. {(1, 1), (2, 1), (3, 1), (4, 1), (5, 1)}

    5. {(5, 0), (5, 2), (5, 4), (5, 6), (5, 8)}

    6. {(−3, 1), (−2, 2), (−1, 3), (0, 4), (0, 5)}

    Part B: Function Notation

      Evaluate.

    1. g(x)=|x5| find g(5), g(0), and g(5).

    2. g(x)=|x|5; find g(5), g(0), and g(5).

    3. g(x)=|2x3|; find g(1), g(0), and g(32).

    4. g(x)=3|2x|; find g(3), g(0), and g(3).

    5. f(x)=2x3; find f(2), f(0), and f(x3).

    6. f(x)=5x1; find f(2), f(0), and f(x+1).

    7. g(x)=23x+1; find g(3), g(0), and f(9x+6).

    8. g(x)=34x12; find g(4), g(0), and g(6x2).

    9. g(x)=x2; find g(5), g(3), and g(x5).

    10. g(x)=x2+1; find g(1), g(6), and g(2x1).

    11. f(x)=x2x2; find f(0), f(2), and f(x+2).

    12. f(x)=2x2+x4; find f(2), f(12), and f(x3).

    13. h(t)=16t2+32; find h(14), h(12), and h(2a1).

    14. h(t)=16t2+32; find h(0), h(2), h(2a+1).

    15. f(x)=x+12 find f(1), f(0), f(x1).

    16. f(x)=x3+1; find f(12), f(3), f(x+3).

    17. g(x)=x+8; find g(0), g(8), and g(x8).

    18. g(x)=3x1; find g(13), g(53), and g(13a2+13).

    19. f(x)=x3+1; find f(1), f(0), f(a2).

    20. f(x)=x38; find f(2), f(0), f(a3).

      Given the function find f(x+h).

    1. f(x)=3x1

    2. f(x)=5x+2

    3. f(x)=x2+x+1

    4. f(x)=2x2x1

    5. f(x)=x3

    6. f(x)=2x31

      Find x given the function.

    1. f(x)=2x3; find x where f(x)=25.

    2. f(x)=73x; find x where f(x)=27.

    3. f(x)=2x+5; find x where f(x)=0

    4. f(x)=2x+1; find x where f(x)=0

    5. g(x)=6x+2; find x where g(x)=5.

    6. g(x)=4x+5; find x where g(x)=2.

    7. h(x)=23x12; find x where h(x)=16.

    8. h(x)=54x+13; find x where h(x)=12.

    9. The value of a new car in dollars is given by the function V(t)=1,800t+22,000 where t represents the age of the car in years. Use the function to determine the value of the car when it is 4 years old. What was the value of the car new?

    10. The monthly income in dollars of a commissioned car salesperson is given by the function I(n)=350n+1,450 where n represents the number of cars sold in the month. Use the function to determine the salesperson’s income if he sells 3 cars this month. What is his income if he does not sell any cars in one month?

      Given the graph of the function f, find the function values.

    1. Find f(0), f(2), and f(4).

    2. Find f(1), f(0), and f(1).

    3. Find f(0), f(2), and f(4).

    4. Find f(3), f(0), and f(3).

    5. Find f(4), f(0), and f(2).

    6. Find f(6), f(0), and f(6).

    7. Find f(2), f(2), and f(7).

    8. Find f(0), f(5), and f(9).

    9. Find f(8), f(0), and f(8).

    10. Find f(12), f(0), and f(12).

      Given the graph of a function g, find the x-values.

    1. Find x where g(x)=3, g(x)=0, and g(x)=2.

    2. Find x where g(x)=0, g(x)=1, and g(x)=4.

    3. Find x where g(x)=5, g(x)=0, and g(x)=10.

    4. Find x where g(x)=0, g(x)=10, and g(x)=15.

    5. Find x where g(x)=5, g(x)=4, and g(x)=4.

    6. Find x where g(x)=1, g(x)=0, and g(x)=3.

    7. Find x where g(x)=4, g(x)=3, and g(x)=4.

    8. Find x where g(x)=5, g(x)=4, and g(x)=4.

    9. Find x where g(x)=10 and g(x)=5.

    10. Find x where g(x)=2.

      The value of a certain automobile in dollars depends on the number of years since it was purchased in 1970 according to the following function:

    1. What was the value of the car when it was new in 1970?

    2. In what year was the value of the car at a minimum?

    3. What was the value of the car in 2005?

    4. In what years was the car valued at $4,000?

      Given the linear function defined by f(x)=2x5, simplify the following.

    1. f(5)f(3)

    2. f(0)f(7)

    3. f(x+2)f(2)

    4. f(x+7)f(7)

    5. f(x+h)f(x)
    6. f(x+h)f(x)h
    7. Simplify c(x+h)c(x)h given c(x)=3x+1.

    8. Simplify p(x+h)p(x)h given p(x)=7x3.

    9. Simplify g(x+h)g(x)h given g(x)=mx+b.

    10. Simplify q(x+h)q(x)h given q(x)=ax.

    Part C: Discussion Board

    1. Who is credited with the introduction of the notation y=f(x)? Provide a brief summary of his life and accomplishments.

    2. Explain to a beginning algebra student what the vertical line test is and why it works.

    3. Research and discuss the life and contributions of René Descartes.

    4. Conduct an Internet search for the vertical line test, functions, and evaluating functions. Share a link to a page that you think others may find useful.

Answers

  1. Domain: {3, 5, 7, 9, 12}; range: {1, 2, 3, 4}; function: yes

  2. Domain: {7, 8, 10, 15}; range: {5, 6, 7, 8, 9}; function: no

  3. Domain: {5}; range: {0, 2, 4, 6, 8}; function: no

  4. Domain: {−4, −1, 0, 2, 3}; range: {1, 2, 3}; function: yes

  5. Domain: {−1, 0, 1, 2}; range: {0, 1, 2, 3, 4}; function: no

  6. Domain: {−2}; range: {−4, −2, 0, 2, 4}; function: no

  7. Domain: ; range: [2,); function: yes

  8. Domain: (,1]; range: ; function: no

  9. Domain: (,0]; range: [1,); function: yes

  10. Domain: ; range: (,3]; function: yes

  11. Domain: ; range: ; function: yes

  12. Domain: [5,1]; range: [2,2]; function: no

  13. Domain: ; range: [0,]; function: yes

  14. Domain: ; range: ; function: yes

  15. Domain: ; range: [1,1]; function: yes

  16. Domain: [8,8]; range: [3,3]; function: no

  17. Domain: ; range: [8,]; function: yes

  1. g(5)=10, g(0)=5, g(5)=0

  2. g(1)=5, g(0)=3, g(32)=0

  3. f(2)=7, f(0)=3, f(x3)=2x9

  4. g(3)=1, g(0)=1, g(9x+6)=6x+5

  5. g(5)=25, g(3)=3, g(x5)=x210x+25

  6. f(0)=2, f(2)=0, f(x+2)=x2+3x

  7. h(14)=31, h(12)=28, h(2a1)=64a2+64a+16

  8. f(1)=2, f(0)=1, f(x1)=x2

  9. g(0)=22, g(8)=0, g(a28)=|a|

  10. f(1)=0, f(0)=1, f(a2)=a6+1

  11. f(x+h)=3x+3h1

  12. f(x+h)=x2+2xh+h2+x+h+1
  13. f(x+h)=x3+3hx2+3h2x+h3
  14. x=14
  15. x=52
  16. x=12
  17. x=1
  18. New: $22,000; 4 yrs old: $14,800

  19. f(0)=5, f(2)=1, f(4)=5

  20. f(0)=0, f(2)=2, f(4)=0

  21. f(4)=3, f(0)=3, f(2)=3

  22. f(2)=1, f(2)=3, f(7)=4

  23. f(8)=10, f(0)=0, f(8)=10

  24. g(4)=3, g(2)=0, and g(6)=2.

  25. g(10)=5, g(5)=0andg(15)=0, g(5)=10andg(25)=10

  26. g(2)=5, g(3)=4andg(1)=4, g(5)=4andg(1)=4

  27. g(2)=4, g(1)=3, g(0)=4

  28. g(10)=10andg(5)=10; g(5)=5andg(10)=5

  29. $5,000

  30. $10,000

  31. 4

  32. 2x

  33. 2h

  34. 3

  35. m

  1. Answer may vary

  2. Answer may vary