Learn on PengiOpenStax Algebra and TrigonometryChapter 3: Functions

Lesson 3.2: Domain and Range

In this Grade 7 math lesson from OpenStax Algebra and Trigonometry, students learn how to find the domain and range of functions defined by equations, including how to identify and exclude values that cause division by zero or even roots of negative numbers. The lesson also introduces interval notation, teaching students to express sets of numbers using brackets and parentheses to indicate inclusive and exclusive endpoints. Students additionally explore how to graph piecewise-defined functions within the broader context of Chapter 3: Functions.

Section 1

📘 Domain and Range

New Concept

The domain of a function is the set of all valid inputs, while the range is the set of all resulting outputs. This lesson focuses on finding these sets from equations by identifying mathematical restrictions and from graphs.

What’s next

You're about to practice finding the domain and range through interactive examples and worked-out problems. Then, you'll learn to graph functions defined in pieces.

Section 2

Finding a function's domain from an equation

Property

To find the domain of a function, we must identify all input values that are mathematically permitted.
Oftentimes, finding the domain of such functions involves remembering three different forms.
First, if the function has no denominator or an odd root, consider whether the domain could be all real numbers.
Second, if there is a denominator in the function’s equation, exclude values in the domain that force the denominator to be zero.
Third, if there is an even root, consider excluding values that would make the radicand negative.

To find the domain from an equation:

  1. Identify the input values.
  2. Identify any restrictions on the input and exclude those values from the domain.
  3. Write the domain in interval form, if possible.

Examples

  • For the function f(x)=x32xf(x) = x^3 - 2x, any real number can be an input, so the domain is all real numbers, or (,)(-\infty, \infty).
  • For g(x)=2xx5g(x) = \frac{2x}{x-5}, the denominator cannot be zero. We set x5=0x-5=0 and find x=5x=5. The domain is all real numbers except 5, written as (,5)(5,)(-\infty, 5) \cup (5, \infty).
  • For h(x)=x3h(x) = \sqrt{x-3}, the value inside the square root must be non-negative. We set x30x-3 \geq 0, which means x3x \geq 3. The domain is [3,)[3, \infty).

Section 3

Set-builder and interval notation

Property

Set-builder notation is a method of specifying a set of elements that satisfy a certain condition. It takes the form {xstatement about x}\{x|\,\text{statement about } x\} which is read as, “the set of all xx such that the statement about xx is true.” For example, {x4<x12}\{x|\,4 < x \leq 12\}.

Interval notation is a way of describing sets that include all real numbers between a lower limit that may or may not be included and an upper limit that may or may not be included. A square bracket [[ indicates inclusion in the set, and a parenthesis (( indicates exclusion from the set. For example, (4,12](4, 12].

Examples

  • The set of all numbers greater than or equal to 8 can be written as {xx8}\{x|\,x \geq 8\} in set-builder notation or [8,)[8, \infty) in interval notation.
  • The set of all numbers between -1 and 7, not including either endpoint, is written as {x1<x<7}\{x|\,-1 < x < 7\} or (1,7)(-1, 7).
  • To represent all real numbers except 4, we use the union symbol: {xx4}\{x|\,x \neq 4\} or (,4)(4,)(-\infty, 4) \cup (4, \infty).

Section 4

Finding domain and range from graphs

Property

Because the domain refers to the set of possible input values, the domain of a graph consists of all the input values shown on the xx-axis.
The range is the set of possible output values, which are shown on the yy-axis.
Keep in mind that if the graph continues beyond the portion of the graph we can see, the domain and range may be greater than the visible values.
The domain and range are always written from smaller to larger values.

Examples

  • A graph of a line segment starts at (4,2)(-4, 2) and ends at a hollow circle at (5,1)(5, -1). The domain is [4,5)[-4, 5) and the range is (1,2](-1, 2].
  • For a parabola f(x)=(x1)2+3f(x) = (x-1)^2 + 3 with a vertex at (1,3)(1, 3) that opens upward, the domain is (,)(-\infty, \infty) and the range is [3,)[3, \infty).
  • A horizontal line at y=6y=6 has a domain of (,)(-\infty, \infty) because it extends forever left and right, but its range is just the single value [6,6][6, 6] or {6}\{6\}.

Explanation

To find a function's domain from its graph, look at how far it spreads horizontally (left to right). For the range, look at its vertical spread (bottom to top). Imagine squashing the graph onto each axis to see its shadow.

Section 5

Piecewise functions

Property

A piecewise function is a function in which more than one formula is used to define the output. Each formula has its own domain, and the domain of the function is the union of all these smaller domains. We notate this idea like this:

f(x)={formula 1if x is in domain 1formula 2if x is in domain 2formula 3if x is in domain 3 f(x) = \begin{cases} \text{formula 1} & \text{if } x \text{ is in domain 1} \\ \text{formula 2} & \text{if } x \text{ is in domain 2} \\ \text{formula 3} & \text{if } x \text{ is in domain 3} \end{cases}

Examples

  • Given f(x)={x+2if x<3x2if x3f(x) = \begin{cases} x+2 & \text{if } x < 3 \\ x^2 & \text{if } x \geq 3 \end{cases}. To find f(1)f(1), we use the first rule since 1<31 < 3, so f(1)=1+2=3f(1) = 1+2 = 3.
  • For the same function, to find f(4)f(4), we use the second rule since 434 \geq 3, so f(4)=42=16f(4) = 4^2 = 16.
  • A delivery fee is 5 dollars for orders up to 2 miles and 8 dollars for orders over 2 miles. The function is C(d)={5if 0<d28if d>2C(d) = \begin{cases} 5 & \text{if } 0 < d \leq 2 \\ 8 & \text{if } d > 2 \end{cases}. The cost for a 1.5-mile delivery is 5 dollars.

Explanation

A piecewise function is a single function that follows different rules for different input values. To use it, first check which 'piece' of the domain your input number belongs to, then apply only that piece's specific formula.

Book overview

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

Continue this chapter

Chapter 3: Functions

  1. Lesson 1

    Lesson 3.1: Functions and Function Notation

  2. Lesson 2Current

    Lesson 3.2: Domain and Range

  3. Lesson 3

    Lesson 3.3: Rates of Change and Behavior of Graphs

  4. Lesson 4

    Lesson 3.4: Composition of Functions

  5. Lesson 5

    Lesson 3.5: Transformation of Functions

  6. Lesson 6

    Lesson 3.6: Absolute Value Functions

  7. Lesson 7

    Lesson 3.7: Inverse Functions

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

📘 Domain and Range

New Concept

The domain of a function is the set of all valid inputs, while the range is the set of all resulting outputs. This lesson focuses on finding these sets from equations by identifying mathematical restrictions and from graphs.

What’s next

You're about to practice finding the domain and range through interactive examples and worked-out problems. Then, you'll learn to graph functions defined in pieces.

Section 2

Finding a function's domain from an equation

Property

To find the domain of a function, we must identify all input values that are mathematically permitted.
Oftentimes, finding the domain of such functions involves remembering three different forms.
First, if the function has no denominator or an odd root, consider whether the domain could be all real numbers.
Second, if there is a denominator in the function’s equation, exclude values in the domain that force the denominator to be zero.
Third, if there is an even root, consider excluding values that would make the radicand negative.

To find the domain from an equation:

  1. Identify the input values.
  2. Identify any restrictions on the input and exclude those values from the domain.
  3. Write the domain in interval form, if possible.

Examples

  • For the function f(x)=x32xf(x) = x^3 - 2x, any real number can be an input, so the domain is all real numbers, or (,)(-\infty, \infty).
  • For g(x)=2xx5g(x) = \frac{2x}{x-5}, the denominator cannot be zero. We set x5=0x-5=0 and find x=5x=5. The domain is all real numbers except 5, written as (,5)(5,)(-\infty, 5) \cup (5, \infty).
  • For h(x)=x3h(x) = \sqrt{x-3}, the value inside the square root must be non-negative. We set x30x-3 \geq 0, which means x3x \geq 3. The domain is [3,)[3, \infty).

Section 3

Set-builder and interval notation

Property

Set-builder notation is a method of specifying a set of elements that satisfy a certain condition. It takes the form {xstatement about x}\{x|\,\text{statement about } x\} which is read as, “the set of all xx such that the statement about xx is true.” For example, {x4<x12}\{x|\,4 < x \leq 12\}.

Interval notation is a way of describing sets that include all real numbers between a lower limit that may or may not be included and an upper limit that may or may not be included. A square bracket [[ indicates inclusion in the set, and a parenthesis (( indicates exclusion from the set. For example, (4,12](4, 12].

Examples

  • The set of all numbers greater than or equal to 8 can be written as {xx8}\{x|\,x \geq 8\} in set-builder notation or [8,)[8, \infty) in interval notation.
  • The set of all numbers between -1 and 7, not including either endpoint, is written as {x1<x<7}\{x|\,-1 < x < 7\} or (1,7)(-1, 7).
  • To represent all real numbers except 4, we use the union symbol: {xx4}\{x|\,x \neq 4\} or (,4)(4,)(-\infty, 4) \cup (4, \infty).

Section 4

Finding domain and range from graphs

Property

Because the domain refers to the set of possible input values, the domain of a graph consists of all the input values shown on the xx-axis.
The range is the set of possible output values, which are shown on the yy-axis.
Keep in mind that if the graph continues beyond the portion of the graph we can see, the domain and range may be greater than the visible values.
The domain and range are always written from smaller to larger values.

Examples

  • A graph of a line segment starts at (4,2)(-4, 2) and ends at a hollow circle at (5,1)(5, -1). The domain is [4,5)[-4, 5) and the range is (1,2](-1, 2].
  • For a parabola f(x)=(x1)2+3f(x) = (x-1)^2 + 3 with a vertex at (1,3)(1, 3) that opens upward, the domain is (,)(-\infty, \infty) and the range is [3,)[3, \infty).
  • A horizontal line at y=6y=6 has a domain of (,)(-\infty, \infty) because it extends forever left and right, but its range is just the single value [6,6][6, 6] or {6}\{6\}.

Explanation

To find a function's domain from its graph, look at how far it spreads horizontally (left to right). For the range, look at its vertical spread (bottom to top). Imagine squashing the graph onto each axis to see its shadow.

Section 5

Piecewise functions

Property

A piecewise function is a function in which more than one formula is used to define the output. Each formula has its own domain, and the domain of the function is the union of all these smaller domains. We notate this idea like this:

f(x)={formula 1if x is in domain 1formula 2if x is in domain 2formula 3if x is in domain 3 f(x) = \begin{cases} \text{formula 1} & \text{if } x \text{ is in domain 1} \\ \text{formula 2} & \text{if } x \text{ is in domain 2} \\ \text{formula 3} & \text{if } x \text{ is in domain 3} \end{cases}

Examples

  • Given f(x)={x+2if x<3x2if x3f(x) = \begin{cases} x+2 & \text{if } x < 3 \\ x^2 & \text{if } x \geq 3 \end{cases}. To find f(1)f(1), we use the first rule since 1<31 < 3, so f(1)=1+2=3f(1) = 1+2 = 3.
  • For the same function, to find f(4)f(4), we use the second rule since 434 \geq 3, so f(4)=42=16f(4) = 4^2 = 16.
  • A delivery fee is 5 dollars for orders up to 2 miles and 8 dollars for orders over 2 miles. The function is C(d)={5if 0<d28if d>2C(d) = \begin{cases} 5 & \text{if } 0 < d \leq 2 \\ 8 & \text{if } d > 2 \end{cases}. The cost for a 1.5-mile delivery is 5 dollars.

Explanation

A piecewise function is a single function that follows different rules for different input values. To use it, first check which 'piece' of the domain your input number belongs to, then apply only that piece's specific formula.

Book overview

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

Continue this chapter

Chapter 3: Functions

  1. Lesson 1

    Lesson 3.1: Functions and Function Notation

  2. Lesson 2Current

    Lesson 3.2: Domain and Range

  3. Lesson 3

    Lesson 3.3: Rates of Change and Behavior of Graphs

  4. Lesson 4

    Lesson 3.4: Composition of Functions

  5. Lesson 5

    Lesson 3.5: Transformation of Functions

  6. Lesson 6

    Lesson 3.6: Absolute Value Functions

  7. Lesson 7

    Lesson 3.7: Inverse Functions