Finding the Domain of a Function Defined by an Equation

Site: Saylor Academy
Course: MA001: College Algebra
Book: Finding the Domain of a Function Defined by an Equation
Printed by: Guest user
Date: Saturday, May 18, 2024, 7:44 PM

Description

When we purchase something from a retailer, we want to know what kind of payment they will accept. Some online retailers will accept a credit card or Paypal, but not Bitcoin. Similarly, with functions, we cannot always assume that we can evaluate a function using any number as x. For example, what if you are working with the function f(x) = \frac{1}{x} and you try to evaluate the function at x = 0? You cannot divide by zero, so we must let the user know that x cannot be zero, much like how most retailers do not accept Bitcoin. The set of values that can be used for x in a given function is called its domain, and the resulting values that will be output from the function and called the range. In this section, we will find the domain of a function and express it in many ways.

Domain and Range

Learning Objectives

In this section, you will:

  • Find the domain of a function defined by an equation.
  • Graph piecewise-defined functions.

If you're in the mood for a scary movie, you may want to check out one of the five most popular horror movies of all time - I am Legend, Hannibal, The Ring, The Grudge, and The Conjuring. Figure 1 shows the amount, in dollars, each of those movies grossed when they were released as well as the ticket sales for horror movies in general by year. Notice that we can use the data to create a function of the amount each movie earned or the total ticket sales for all horror movies by year. In creating various functions using the data, we can identify different independent and dependent variables, and we can analyze the data and the functions to determine the domain and range. In this section, we will investigate methods for determining the domain and range of functions such as these.


Figure 1 Based on data compiled by www.the-numbers.com.



Source: Rice University, https://openstax.org/books/college-algebra/pages/3-2-domain-and-range
Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 License.

Finding the Domain of a Function Defined by an Equation

In Functions and Function Notation, we were introduced to the concepts of domain and range. In this section, we will practice determining domains and ranges for specific functions. Keep in mind that, in determining domains and ranges, we need to consider what is physically possible or meaningful in real-world examples, such as tickets sales and year in the horror movie example above. We also need to consider what is mathematically permitted. For example, we cannot include any input value that leads us to take an even root of a negative number if the domain and range consist of real numbers. Or in a function expressed as a formula, we cannot include any input value in the domain that would lead us to divide by 0.

We can visualize the domain as a "holding area" that contains "raw materials" for a "function machine" and the range as another "holding area" for the machine's products. See Figure 2.


b

We can write the domain and range in interval notation, which uses values within brackets to describe a set of numbers. In interval notation, we use a square bracket [ when the set includes the endpoint and a parenthesis (to indicate that the endpoint is either not included or the interval is unbounded. For example, if a person has \$ 100 to spend, he or she would need to express the interval that is more than 0 and less than or equal to 100 and write (0,100]. We will discuss interval notation in greater detail later.

Let's turn our attention to finding the domain of a function whose equation is provided. 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.

Before we begin, let us review the conventions of interval notation:

  • The smallest number from the interval is written first.
  • The largest number in the interval is written second, following a comma.
  • Parentheses, (or), are used to signify that an endpoint value is not included, called exclusive.
  • Brackets, [ or ], are used to indicate that an endpoint value is included, called inclusive.

See Figure 3 for a summary of interval notation.

Inequality Interval Notation Graph on Number Line Description
x > a (a, \infty) x is greater than a
x < a (-\infty, a)   x is less than a
x \geq a [a, \infty)   x is greater than or equal to a
x \leq a (-\infty, a]   x is less than or equal to a
a < x < b (a, b)   x is strictly between a and b
a \leq x < b [a, b)   x is between a and b, to include a
a < x \leq b (a, b]   x is between a and b, to include b
a \leq x \leq b [a, b]   x is between a and b, to include a and b


Figure 3


EXAMPLE 1

Finding the Domain of a Function as a Set of Ordered Pairs

Find the domain of the following function: \{(2,10),(3,10),(4,20),(5,30),(6,40)\}.


Solution

First identify the input values. The input value is the first coordinate in an ordered pair. There are no restrictions, as the ordered pairs are simply listed. The domain is the set of the first coordinates of the ordered pairs.

\{2,3,4,5,6\}


TRY IT #1

Find the domain of the function:

\{(-5,4),(0,0),(5,-4),(10,-8),(15,-12)\}


HOW TO

Given a function written in equation form, find the domain.

  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.


EXAMPLE 2

Finding the Domain of a Function

Find the domain of the function f(x)=x^{2}-1.


Solution

The input value, shown by the variable x in the equation, is squared and then the result is lowered by one. Any real number may be squared and then be lowered by one, so there are no restrictions on the domain of this function. The domain is the set of real numbers.

In interval form, the domain of f is (-\infty, \infty).


TRY IT #2

Find the domain of the function: f(x)=5-x+x^{3}.


HOW TO

Given a function written in an equation form that includes a fraction, find the domain.

  1. Identify the input values.
  2. Identify any restrictions on the input. If there is a denominator in the function's formula, set the denominator equal to zero and solve for x. If the function's formula contains an even root, set the radicand greater than or equal to 0, and then solve.
  3. Write the domain in interval form, making sure to exclude any restricted values from the domain.


EXAMPLE 3

Finding the Domain of a Function Involving a Denominator

Find the domain of the function f(x)=\frac{x+1}{2-x}.


Solution

When there is a denominator, we want to include only values of the input that do not force the denominator to be zero. So, we will set the denominator equal to 0 and solve for x.


\begin{aligned}
2-x &=0 \\
-x &=-2 \\
x &=2
\end{aligned}

Now, we will exclude 2 from the domain. The answers are all real numbers where x < 2 or x > 2 as shown in Figure 4. We can use a symbol known as the union, U, to combine the two sets. In interval notation, we write the solution: (-\infty, 2) \cup(2, \infty).


Figure 4


TRY IT #3

Find the domain of the function: f(x)=\frac{1+4 x}{2 x-1}.


HOW TO

Given a function written in equation form including an even root, find the domain.

  1. Identify the input values.
  2. Since there is an even root, exclude any real numbers that result in a negative number in the radicand. Set the radicand greater than or equal to zero and solve for x.
  3. The solution(s) are the domain of the function. If possible, write the answer in interval form.


EXAMPLE 4

Finding the Domain of a Function with an Even Root

Find the domain of the function f(x)=\sqrt{7-x}.


Solution

When there is an even root in the formula, we exclude any real numbers that result in a negative number in the radicand.

Set the radicand greater than or equal to zero and solve for x.


\begin{aligned}
7-x & \geq 0 \\
-x & \geq-7 \\
x & \leq 7
\end{aligned}

Now, we will exclude any number greater than 7 from the domain. The answers are all real numbers less than or equal to 7 or (-\infty, 7].


TRY IT #4

Find the domain of the function f(x)=\sqrt{5+2 x}.


Q&A

Can there be functions in which the domain and range do not intersect at all?

Yes. For example, the function f(x)=-\frac{1}{\sqrt{x}} has the set of all positive real numbers as its domain but the set of all negative real numbers as its range. As a more extreme example, a function's inputs and outputs can be completely different categories (for example, names of weekdays as inputs and numbers as outputs, as on an attendance chart), in such cases the domain and range have no elements in common.