Sub topic 11
When the Context Limits the Domain
Assume you can solve simple inequalities, graph points, and use interval and set notation. In this chapter, you will apply those skills to functions that model real situations.
A domain is the set of allowed inputs. A range is the set of outputs produced by those inputs. An equation may accept many mathematical inputs, but a real situation can allow fewer.
For example, the formula
\[ P(t)=20t \]
could calculate the price \(P\) for \(t\) movie tickets. Algebraically, \(t\) could be any real number. In context, \(t\) must be a whole number, and a theater may have only 200 seats. The contextual domain is
\[ \{0,1,2,\ldots,200\}. \]
The formula and the context work together.
Continuous and discrete domains
A continuous quantity can take every value in an interval. Time, distance, and temperature are often continuous. A discrete quantity takes separate, countable values. The number of people, tickets, or computers is usually discrete.
Consider a bicycle rental that costs \$8 to start and \$3 per hour:
\[ C(h)=8+3h. \]
If customers may rent a bicycle for any time from 0 to 6 hours, \(h\) is continuous:
\[ 0\le h\le 6. \]
In interval notation, the domain is \([0,6]\), and the range is \([8,26]\).
If the company charges only for complete hours, then \(h\) may be one of the values \(0,1,2,3,4,5,6\). The domain is discrete:
\[ \{0,1,2,3,4,5,6\}. \]
The range is also discrete:
\[ \{8,11,14,17,20,23,26\}. \]
| Situation | Type of domain | Example domain |
|---|---|---|
| A package's mass | Continuous | \(0<m\le 30\) kilograms |
| Number of packages | Discrete | \(\{0,1,2,\ldots\}\) |
| A train's travel time | Continuous | \(0\le t\le 4\) hours |
| Number of train cars | Discrete | \(\{1,2,\ldots,12\}\) |
Finding a contextual domain
Use these steps:
- Identify what the input represents.
- Decide whether the input is continuous or discrete.
- Find the smallest and largest realistic values.
- Check algebraic restrictions, such as division by zero or a negative number under an even root.
- State the domain with appropriate notation.
Suppose a school sells tickets for \$12 each and has 450 seats. The revenue function is
\[ R(n)=12n. \]
Here, \(n\) is the number of tickets sold. The contextual domain is
\[ \{0,1,2,\ldots,450\}. \]
Although the equation works for \(n=2.5\), selling 2.5 tickets is not meaningful. The range is
\[ \{0,12,24,\ldots,5400\}. \]
The maximum revenue is \$5,400.
Python can model the same discrete domain:
def revenue(tickets):
if not isinstance(tickets, int) or not 0 <= tickets <= 450:
raise ValueError("tickets must be an integer from 0 through 450")
return 12 * tickets
values = [revenue(n) for n in range(451)]
print(revenue(125)) # 1500
print(min(values), max(values)) # 0 5400Context can restrict a mathematical domain
Suppose the height of a thrown ball is modeled by
\[ h(t)=-16t^2+64t+5, \]
where \(t\) is time in seconds. The equation is defined for every real \(t\), but the situation begins at \(t=0\) and ends when the ball reaches the ground. To find the contextual domain, solve
\[ -16t^2+64t+5=0. \]
The positive solution is approximately \(4.08\). Therefore, the meaningful domain is approximately
\[ [0,4.08]. \]
Negative time is excluded even though the formula can calculate a height for negative values. The model describes the ball only during its flight.
Exercise
A parking garage charges C(h) = 4 + 2h dollars for h hours, with a maximum stay of 12 hours. Customers may park for whole hours only. What are the domain and range?
Show answer
The domain is {0, 1, 2, ..., 12}. The range is {4, 6, 8, ..., 28}.