Instead of purchasing a one-day ticket to the theme park, Joseph decided to pay by ride. Each ride costs $2.00. To describe the amount of money Joseph will spend, several mathematical concepts can be used.
First, an expression can be written to describe the relationship between the cost per ride and the number of rides, . An equation can also be written if the total amount he wants to spend is known. An inequality can be used if Joseph wanted to spend less than a certain amount.
Example 1: Using Joseph’s situation, write the following:
a. An expression representing his total amount spent
b. An equation that shows Joseph wants to spend exactly $22.00 on rides
c. An inequality that describes the fact that Joseph will not spend more than $26.00 on rides
Solution: The variable in this situation is the number of rides Joseph will pay for. Call this .
In addition to an expression, equation, or inequality, Joseph’s situation can be expressed in the form of a function or a table.
Definition: A function is a relationship between two variables such that the input value has ONLY one output value.
Writing Equations as Functions
A function is a set of ordered pairs in which the first coordinate, usually , matches with exactly one second coordinate, . Equations that follow this definition can be written in function notation. The coordinate represents the dependent variable, meaning the values of this variable depend upon what is substituted for the other variable.
Consider Joseph’s equation . Using function notation, the value of the equation (the money spent ) is replaced with . represents the function name and represents the variable. In this case the parentheses do not mean multiplication; they separate the function name from the independent variable.
Example 2: Rewrite the following equations in function notation.
a. According to the definition of a function, , so .
b. This time the dependent variable is . Function notation replaces the dependent variable, so .
Why Use Function Notation?
Why is it necessary to use function notation? The necessity stems from using multiple equations. Function notation allows one to easily decipher between the equations. Suppose Joseph, Lacy, Kevin, and Alfred all went to the theme park together and chose to pay $2.00 for each ride. Each person would have the same equation . Without asking each friend, we could not tell which equation belonged to whom. By substituting function notation for the dependent variable, it is easy to tell which function belongs to whom. By using function notation, it will be much easier to graph multiple lines (Chapter 4).
Example 3: Write functions to represent the total each friend spent at the park.
Solution: represents Joseph’s total, represents Lacy's total, represents Kevin's total, and represents Alfred’s total.
Using a Function to Generate a Table
A function really is an equation. Therefore, a table of values can be created by choosing values to represent the independent variable. The answers to each substitution represent .
Use Joseph’s function to generate a table of values. Because the variable represents the number of rides Joseph will pay for, negative values do not make sense and are not included in the value of the independent variable.
As you can see, the list cannot include every possibility. A table allows for precise organization of data. It also provides an easy reference for looking up data and offers a set of coordinate points that can be plotted to create a graphical representation of the function. A table does have limitations; namely it cannot represent infinite amounts of data and it does not always show the possibility of fractional values for the independent variable.
Domain and Range of a Function
The set of all possible input values for the independent variable is called the domain. The domain can be expressed in words, as a set, or as an inequality. The values resulting from the substitution of the domain represent the range of a function.
The domain of Joseph’s situation will not include negative numbers because it does not make sense to ride negative rides. He also cannot ride a fraction of a ride, so decimals and fractional values do not make sense as input values. Therefore, the values of the independent variable r will be whole numbers beginning at zero.
Domain: All whole numbers
The values resulting from the substitution of whole numbers are whole numbers times two. Therefore, the range of Joseph’s situation is still whole numbers just twice as large.
Range: All even whole numbers
Example 4: A tennis ball is bounced from a height and bounces back to 75% of its previous height. Write its function and determine its domain and range.
Solution: The function of this situation is , where represents the previous bounce height.
Domain: The previous bounce height can be any positive number, so .
Range: The new height is 75% of the previous height, and therefore will also be any positive number (decimal or whole number), so the range is all positive real numbers.
Multimedia Link For another look at the domain of a function, see the following video where the narrator solves a sample problem from the California Standards Test about finding the domain of an unusual function. Khan Academy CA Algebra I Functions (6:34)
Write a Function Rule
In many situations, data is collected by conducting a survey or an experiment. To visualize the data, it is arranged into a table. Most often, a function rule is needed to predict additional values of the independent variable.
Example 5: Write a function rule for the table.
Solution: You pay $24 for 2 CDs, $48 for 4 CDs, and $120 for 10 CDs. That means that each CD costs $12.
We can write the function rule.
Example 6: Write a function rule for the table.
Solution: The values of the dependent variable are always the positive outcomes of the input values. This relationship has a special name, the absolute value. The function rule looks like this: .
Represent a Real-World Situation with a Function
Let’s look at a real-world situation that can be represented by a function.
Example 7: Maya has an internet service that currently has a monthly access fee of $11.95 and a connection fee of $0.50 per hour. Represent her monthly cost as a function of connection time.
Solution: Let the number of hours Maya spends on the internet in one month and let Maya’s monthly cost. The monthly fee is $11.95 with an hourly charge of $0.50.
The total cost flat fee hourly fee number of hours. The function is
Sample explanations for some of the practice exercises below are available by viewing the following video. Note that there is not always a match between the number of the practice exercise in the video and the number of the practice exercise listed in the following exercise set. However, the practice exercise is the same in both. CK-12 Basic Algebra: Domain and Range of a Function (12:52)
- Rewrite using function notation: .
- What is one benefit of using function notation?
- Define domain.
True or false? Range is the set of all possible inputs for the independent variable.
- Generate a table from for
- Use the following situation for question 6: Sheri is saving for her first car. She currently has $515.85 and is savings $62 each week.
- Write a function rule for the situation.
- Can the domain be “all real numbers"? Explain your thinking.
- How many weeks would it take Sheri to save $1,795.00?
In 7 - 11, identify the domain and range of the function.
- Dustin charges $10 per hour for mowing lawns.
- Maria charges $25 per hour for math tutoring, with a minimum charge of $15.
- What is the range of the function when the domain is , , 0, 1, 2?
- What is the range of the function when the domain is , 1.5, 5?
- Angie makes $6.50 per hour working as a cashier at the grocery store. Make a table of values that shows her earning for the input values 5, 10, 15, 20, 25, 30.
- The area of a triangle is given by: . If the base of the triangle is 8 centimeters, make a table of values that shows the area of the triangle for heights 1, 2, 3, 4, 5, and 6 centimeters.
- Make a table of values for the function for the input values , 0, 1, 2, 3, 4, 5.
- Write a function rule for the table.
- Write a function rule for the table.
- Write a function rule for the table.
- Write a function that represents the number of cuts you need to cut a ribbon in number of pieces.
- Solomon charges a $40 flat rate and $25 per hour to repair a leaky pipe. Write a function that represents the total fee charged as a function of hours worked. How much does Solomon earn for a three-hour job?
- Rochelle has invested $2500 in a jewelry making kit. She makes bracelets that she can sell for $12.50 each. How many bracelets does Rochelle need to make before she breaks even?
- Make up a situation in which the domain is all real numbers but the range is all whole numbers.
- Compare the following numbers .
- Write an equation to represent the following: the quotient of 96 and 4 is .
- Write an inequality to represent the following: 11 minus is at least 77.
- Find the value of the variable .
1. Write a function rule to describe the following table:
2. Simplify: .
3. Evaluate the expression when .
4. Rewrite using function notation: .
5. You purchased six video games for $29.99 each and three DVD movies for $22.99. What is the total amount of money you spent?