(3.3.1) – Define the domain and range of functions from graphs
(3.3.2) – Define the domain of functions from algebraic expressions
Functions are a correspondence between two sets, called the domain and the range. When defining a function, you usually state what kind of numbers the domain (x) and range (f(x)) values can be. But even if you say they are real numbers, that doesn’t mean that all real numbers can be used for x. It also doesn’t mean that all real numbers can be function values, f(x). There may be restrictions on the domain and range. The restrictions partly depend on the type of function.
In this topic, all functions will be restricted to real number values. That is, only real numbers can be used in the domain, and only real numbers can be in the range.
There are two main reasons why domains are restricted.
You can’t divide by 0.
You can’t take the square (or other even) root of a negative number, as the result will not be a real number.
(3.3.1) – Find Domain and Range From a Graph
Finding domain and range of different functions is often a matter of asking yourself, what values can this function not have? Pictures make it easier to visualize what domain and range are, so we will show how to define the domain and range of functions given their graphs.
What are the domain and range of the real-valued function [latex]f(x)=x+3[/latex]?
This is a linear function. Remember that linear functions are lines that continue forever in each direction.
Any real number can be substituted for x and get a meaningful output. For any real number, you can always find an x value that gives you that number for the output. Unless a linear function is a constant, such as [latex]f(x)=2[/latex], there is no restriction on the range.
The domain and range are all real numbers.
In the following video we show how to define the domain and range of functions from their graphs.
Example: Finding Domain and Range from a Graph
Find the domain and range of the function [latex]f[/latex].
Solution
We can observe that the horizontal extent of the graph is –3 to 1, so the domain of [latex]f[/latex] is [latex]\left(-3,1\right][/latex].
The vertical extent of the graph is 0 to [latex]–4[/latex], so the range is [latex]\left[-4,0\right)[/latex].
Try It
Example: Finding Domain and Range from a Graph of Oil Production
Find the domain and range of the function [latex]f[/latex].
The input quantity along the horizontal axis is “years,” which we represent with the variable [latex]t[/latex] for time. The output quantity is “thousands of barrels of oil per day,” which we represent with the variable [latex]b[/latex] for barrels. The graph may continue to the left and right beyond what is viewed, but based on the portion of the graph that is visible, we can determine the domain as [latex]1973\le t\le 2008[/latex] and the range as approximately [latex]180\le b\le 2010[/latex].
In interval notation, the domain is [1973, 2008], and the range is about [180, 2010]. For the domain and the range, we approximate the smallest and largest values since they do not fall exactly on the grid lines.
Try It
Given the graph, identify the domain and range using interval notation.
Solution
Domain = [1950, 2002] Range = [47,000,000, 89,000,000]
(3.3.2) – Define the domain of functions from algebraic expressions
For the examples that follow, try to figure out the domain and range graphically or algebraically.
Example
What are the domain and range of the real-valued function [latex]f(x)=−3x^{2}+6x+1[/latex]?
Show Solution
This is a quadratic function. There are no rational (divide by zero) or radical (negative number under a root) expressions, so there is nothing that will restrict the domain. Any real number can be used for x to get a meaningful output.
Because the coefficient of [latex]x^{2}[/latex] is negative, it will open downward. With quadratic functions, remember that there is either a maximum (greatest) value, or a minimum (least) value. In this case, there is a maximum value.
The vertex, or high point, is at (1, 4). From the graph, you can see that [latex]f(x)\leq4[/latex].
Answer
The domain is all real numbers, and the range is all real numbers f(x) such that [latex]f(x)\leq4[/latex].
You can check that the vertex is indeed at (1, 4). Since a quadratic function has two mirror image halves, the line of reflection has to be in the middle of two points with the same y value. The vertex must lie on the line of reflection, because it’s the only point that does not have a mirror image!
In the previous example, notice that when [latex]x=2[/latex] and when [latex]x=0[/latex], the function value is 1. (You can verify this by evaluating f(2) and f(0).) That is, both (2, 1) and (0, 1) are on the graph. The line of reflection here is [latex]x=1[/latex], so the vertex must be at the point (1, f(1)). Evaluating f(1)gives [latex]f(1)=4[/latex], so the vertex is at (1, 4).
Example
What is the domain and range of the real-valued function [latex]f(x)=-2+\sqrt{x+5}[/latex]?
Show Solution
This is a radical function. The domain of a radical function is any x value for which the radicand (the value under the radical sign) is not negative. That means [latex]x+5\geq0[/latex], so [latex]x\geq−5[/latex].
Since the square root must always be positive or 0, [latex] \displaystyle \sqrt{x+5}\ge 0[/latex]. That means [latex] \displaystyle -2+\sqrt{x+5}\ge -2[/latex].
Answer
The domain is all real numbers x where [latex]x\geq−5[/latex], and the range is all real numbers f(x) such that [latex]f(x)\geq−2[/latex].
Division by 0 could happen whenever the function has a variable in the denominator of a rational expression. That is, it’s something to look for in rational functions. Look at these examples, and note that “division by 0” doesn’t necessarily mean that x is 0! The following is an example of rational function, w will cover these in detail later.
Example
What is the domain of the real-valued function [latex] \displaystyle f(x)=\frac{3x}{x+2}[/latex]?
Show Solution
This is a rational function. The domain of a rational function is restricted where the denominator is 0. In this case, [latex]x+2[/latex] is the denominator, and this is 0 only when [latex]x=−2[/latex].
Answer
The domain is all real numbers except [latex]−2[/latex]
Licenses and Attributions
CC licensed content, Original
Revision and Adaptation. Provided by: Lumen Learning. License: CC BY: Attribution
Ex 1: Determine the Domain and Range of the Graph of a Function. Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. Located at: https://youtu.be/QAxZEelInJc. License: CC BY: Attribution
Question ID#2316. Authored by: Lippman,David. License: CC BY: Attribution