Suppose that you want to set up a function that allows you to input a dog's age in human years and which outputs the dog's age in dog years. How would you go about setting up such a function, and what notation would you use? Would the notation be the same as it was for the equations that you've looked at in previous Concepts? In this Concept, you'll learn what is needed to write a function such as this.
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, r. 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.
Using Joseph’s situation, write the following:
a. An expression representing his total amount spent
b. An equation representing his total amount spent
c. An equation that shows Joseph wants to spend exactly $22.00 on rides
d. 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 r.
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 x, matches with exactly one second coordinate, y. Equations that follow this definition can be written in function notation. The y coordinate represents the dependent variable, meaning the values of this variable depend upon what is substituted for the other variable.
Consider Joseph’s equation m=2r. Using function notation, the value of the equation (the money spent m) is replaced with f(r). f represents the function name and (r) represents the variable. In this case the parentheses do not mean multiplication; rather, they separate the function name from the independent variable.
input ↓f(x)=y←output function box
Rewrite the following equations in function notation.
a. According to the definition of a function, y=f(x), so f(x)=7x−3.
b. This time the dependent variable is d. Function notation replaces the dependent variable, so d=f(t)=65t.
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 m=2r. 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.
Write functions to represent the total each friend spent at the park.
J(r)=2r represents Joseph’s total,
L(r)=2r represents Lacy's total,
K(r)=2r represents Kevin's total, and
A(r)=2r represents Alfred’s total.
Recall the example from a previous Concept where a student organization sells shirts to raise money. The cost of printing the shirts was expressed as 100+7x and for the revenue, we had the expression 15x, where x is the number of shirts.
a. Write two functions, one for the cost and one for revenue.
b. Express that the cost must be less than or equal to $800.
c. Express that the revenue must be equal to $1500.
d. How many shirts must the students sell in order to make $1500?
a. The cost function we will write as C(x)=100+7x and the revenue function we will write as R(x)=15x.
b. Since C(x) represents the costs, we substitute in $800 for C(x) and replace the equation with the appropriate inequality symbol
This reads that 100+7x is less than or equal to $800, so we have written the inequality correctly.
c. We substitute in $1500 for R(x), getting
d. We want to find the value of x that will make this equation true. It looks like 100 is the answer. Checking this we see that 100 does satisfy the equation. The students must sell 100 shirts in order to have a revenue of $1500.
- Rewrite using function notation: y=56x−2.
- Rewrite using function notation: m=n2+2n−3.
- What is one benefit of using function notation?
- Write a function that expresses the money earned after working some number of hours for $10 an hour.
- Write a function that represents the number of cuts you need to cut a ribbon in x number of pieces.
- Jackie and Mayra each will collect a $2 pledge for every basket they make during a game. Write two functions, one for each girl, expressing how much money she will collect.
- Compare the following numbers 23 −−− 21.999.
- Write an equation to represent the following: the quotient of 96 and 4 is g.
- Write an inequality to represent the following: 11 minus b is at least 77.
- Find the value of the variable k:13(k)=169.