Learn on PengiOpenstax Intermediate Algebra 2EChapter 3: Graphs and Functions

Lesson 3.5: Relations and Functions

In this lesson from OpenStax Intermediate Algebra 2E, students learn how to identify relations as sets of ordered pairs and find their domain and range using ordered pairs, mapping diagrams, and graphs. Students also explore how to determine whether a relation qualifies as a function and practice evaluating functions for specific values. The lesson builds foundational skills in function notation and analysis central to algebra.

Section 1

📘 Relations and Functions

New Concept

A function is a special rule where each input has exactly one output. You will learn to identify functions, find their domain (inputs) and range (outputs), and evaluate them using notation like f(x)f(x).

What’s next

Next, you'll work through interactive examples to identify functions, followed by practice problems evaluating them with f(x)f(x) notation.

Section 2

Relation, Domain, and Range

Property

A relation is any set of ordered pairs, (x,y)(x, y). All the xx-values in the ordered pairs together make up the domain. All the yy-values in the ordered pairs together make up the range.
A mapping is sometimes used to show a relation. The arrows show the pairing of the elements of the domain with the elements of the range.

Examples

  • For the relation {(10, A), (20, B), (30, C)}, the domain is {10, 20, 30} and the range is {A, B, C}.
  • In the relation {(apple, red), (banana, yellow), (grape, purple), (lime, green)}, the domain is {apple, banana, grape, lime} and the range is {red, yellow, purple, green}.

Section 3

Function

Property

A function is a relation that assigns to each element in its domain exactly one element in the range. For each ordered pair in the relation, each xx-value is matched with only one yy-value.

Examples

  • The relation {(-2, 5), (-1, 3), (0, 1), (1, 3), (2, 5)} is a function because every xx-value is paired with exactly one yy-value.
  • The relation {(1, 5), (1, -5), (4, 10), (4, -10)} is not a function because the xx-value 1 is paired with both 5 and -5.

Section 4

Function Notation

Property

For the function y=f(x)y = f(x):

fis the name of the functionf \quad \text{is the name of the function}
xis the domain valuex \quad \text{is the domain value}
f(x)is the range valueycorresponding to the valuexf(x) \quad \text{is the range value} \quad y \quad \text{corresponding to the value} \quad x

We read f(x)f(x) as ff of xx or the value of ff at xx. The process of finding the value of f(x)f(x) for a given value of xx is called evaluating the function.

Examples

  • For the function f(x)=5x4f(x) = 5x - 4, to evaluate f(3)f(3), we substitute 3 for xx: f(3)=5(3)4=154=11f(3) = 5(3) - 4 = 15 - 4 = 11.
  • For the function g(x)=x2+2xg(x) = x^2 + 2x, to evaluate g(a)g(a), we substitute aa for xx: g(a)=a2+2ag(a) = a^2 + 2a.

Section 5

Independent and Dependent Variables

Property

For the function y=f(x)y = f(x),
xx is the independent variable as it can be any value in the domain
yy is the dependent variable as its value depends on xx

Examples

  • The total cost, CC, of buying gg gallons of gas at 3 dollars per gallon is C(g)=3gC(g) = 3g. The number of gallons gg is the independent variable, and the total cost CC is the dependent variable.
  • The number of hours of daylight, DD, changes based on the day of the year, tt. The day tt is the independent variable, and the hours of daylight DD is the dependent variable.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 3: Graphs and Functions

  1. Lesson 1

    Lesson 3.1: Graph Linear Equations in Two Variables

  2. Lesson 2

    Lesson 3.2: Slope of a Line

  3. Lesson 3

    Lesson 3.3: Find the Equation of a Line

  4. Lesson 4

    Lesson 3.4: Graph Linear Inequalities in Two Variables

  5. Lesson 5Current

    Lesson 3.5: Relations and Functions

  6. Lesson 6

    Lesson 3.6: Graphs of Functions

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

📘 Relations and Functions

New Concept

A function is a special rule where each input has exactly one output. You will learn to identify functions, find their domain (inputs) and range (outputs), and evaluate them using notation like f(x)f(x).

What’s next

Next, you'll work through interactive examples to identify functions, followed by practice problems evaluating them with f(x)f(x) notation.

Section 2

Relation, Domain, and Range

Property

A relation is any set of ordered pairs, (x,y)(x, y). All the xx-values in the ordered pairs together make up the domain. All the yy-values in the ordered pairs together make up the range.
A mapping is sometimes used to show a relation. The arrows show the pairing of the elements of the domain with the elements of the range.

Examples

  • For the relation {(10, A), (20, B), (30, C)}, the domain is {10, 20, 30} and the range is {A, B, C}.
  • In the relation {(apple, red), (banana, yellow), (grape, purple), (lime, green)}, the domain is {apple, banana, grape, lime} and the range is {red, yellow, purple, green}.

Section 3

Function

Property

A function is a relation that assigns to each element in its domain exactly one element in the range. For each ordered pair in the relation, each xx-value is matched with only one yy-value.

Examples

  • The relation {(-2, 5), (-1, 3), (0, 1), (1, 3), (2, 5)} is a function because every xx-value is paired with exactly one yy-value.
  • The relation {(1, 5), (1, -5), (4, 10), (4, -10)} is not a function because the xx-value 1 is paired with both 5 and -5.

Section 4

Function Notation

Property

For the function y=f(x)y = f(x):

fis the name of the functionf \quad \text{is the name of the function}
xis the domain valuex \quad \text{is the domain value}
f(x)is the range valueycorresponding to the valuexf(x) \quad \text{is the range value} \quad y \quad \text{corresponding to the value} \quad x

We read f(x)f(x) as ff of xx or the value of ff at xx. The process of finding the value of f(x)f(x) for a given value of xx is called evaluating the function.

Examples

  • For the function f(x)=5x4f(x) = 5x - 4, to evaluate f(3)f(3), we substitute 3 for xx: f(3)=5(3)4=154=11f(3) = 5(3) - 4 = 15 - 4 = 11.
  • For the function g(x)=x2+2xg(x) = x^2 + 2x, to evaluate g(a)g(a), we substitute aa for xx: g(a)=a2+2ag(a) = a^2 + 2a.

Section 5

Independent and Dependent Variables

Property

For the function y=f(x)y = f(x),
xx is the independent variable as it can be any value in the domain
yy is the dependent variable as its value depends on xx

Examples

  • The total cost, CC, of buying gg gallons of gas at 3 dollars per gallon is C(g)=3gC(g) = 3g. The number of gallons gg is the independent variable, and the total cost CC is the dependent variable.
  • The number of hours of daylight, DD, changes based on the day of the year, tt. The day tt is the independent variable, and the hours of daylight DD is the dependent variable.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 3: Graphs and Functions

  1. Lesson 1

    Lesson 3.1: Graph Linear Equations in Two Variables

  2. Lesson 2

    Lesson 3.2: Slope of a Line

  3. Lesson 3

    Lesson 3.3: Find the Equation of a Line

  4. Lesson 4

    Lesson 3.4: Graph Linear Inequalities in Two Variables

  5. Lesson 5Current

    Lesson 3.5: Relations and Functions

  6. Lesson 6

    Lesson 3.6: Graphs of Functions