Suppose you just purchased a used car, and the number of miles on the odometer can be represented by the equation y = x + 30,000 , where @$y@$ is the number of miles on the odometer, and @$x@$ is the number of miles you have driven it. Could you convert this equation to function notation? How many miles will be on the odometer if you drive the car 700 miles? In this Concept, you'll learn how to convert equations such as this one to function notation and how to input a value into a function in order to get an output value.
Guidance
So far, the term function has been used to describe many of the equations we have been graphing. The concept of a function is extremely important in mathematics. Not all equations are functions. To be a function, for each value of @$x@$ there is one and only one value for @$y@$ .
Definition: A function is a relationship between two variables such that the input value has ONLY one unique output value.
Recall from a previous Concept that a function rule replaces the variable @$y@$ with its function name, usually @$f(x)@$ . Remember that these parentheses do not mean multiplication. They separate the function name from the independent variable, @$x@$ .
@$$& \quad \ input\\ & \quad \ \ \ \downarrow\\ & \quad \underbrace{f(x)}= y \leftarrow output\\ & \ function\\ & \quad \ \ box@$$
@$f(x)@$ is read “the function @$f@$ of @$x@$ ” or simply “ @$f@$ of @$x@$ .”
If the function looks like this: @$h(x)=3x-1@$ , it would be read @$h@$ of @$x@$ equals 3 times @$x@$ minus 1.
Using Function Notation
Function notation allows you to easily see the input value for the independent variable inside the parentheses.
Example A
Consider the function @$f(x)=-\frac{1}{2} x^2@$ .
Evaluate @$f(4)@$ .
Solution: The value inside the parentheses is the value of the variable @$x@$ . Use the Substitution Property to evaluate the function for @$x=4@$ .
@$$f(4)& =-\frac{1}{2}(4^2)\\ f(4)& = -\frac{1}{2} \cdot 16\\ f(4)& =-8@$$
To use function notation, the equation must be written in terms of @$x@$ . This means that the @$y-@$ variable must be isolated on one side of the equal sign.
Example B
Rewrite @$9x+3y=6@$ using function notation.
Solution: The goal is to rearrange this equation so the equation looks like @$y=@$ . Then replace @$y=@$ with @$f(x)=@$ .
@$$9x+3y& =6 && \text{Subtract} \ 9x \ \text{from both sides}.\\ 3y& =6-9x && \text{Divide by} \ 3.\\ y& =\frac{6-9x}{3}=2-3x\\ f(x)& =2-3x@$$
Functions as Machines
You can think of a function as a machine. You start with an input (some value), the machine performs the operations (it does the work), and your output is the answer. For example, @$f(x)=3x+2@$ takes some number , @$x@$ , multiplies it by 3 and adds 2. As a machine, it would look like this:
When you use the function machine to evaluate @$f(2)@$ , the solution is @$f(2)=8@$ .
Example C
A function is defined as @$f(x)=6x-36@$ . Determine the following:
a) @$f(2)@$
b) @$f(p)@$
Solution:
a) Substitute @$x = 2@$ into the function @$f(x): \ f(2)=6 \cdot 2 - 36 = 12-36=-24@$ .
b) Substitute @$x = p@$ into the function @$f(x): \ f(p)=6p-36@$ .
Video Review
Guided Practice
Rewrite the equation @$2y-4x=10@$ in function notation where @$f(x)=y@$ , and then evaluate @$f(-1), f(2), f(0)@$ , and @$f(z)@$ .
Solution:
First we need to solve for @$y@$ .
Adding @$4x@$ to both sides gives @$2y=4x+10@$ , and dividing by 2 gives @$y=2x+5.@$
Now we just replace the @$y@$ with @$f(x)@$ to get @$f(x)=2x+5.@$ .
Now we can evaluate @$f(x)=y=2x+5@$ for @$f(-1), f(2), f(0)@$ , and @$f(z)@$ :
@$f(-1)=2(-1)+5=-2+5=3@$
@$f(2)=2(2)+5=4+5=9@$
@$f(0)=2(0)+5=5@$
@$f(z)=2z+5@$
Practice
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: Linear Function Graphs (11:49)
- How is @$f(x)@$ read?
- What does function notation allow you to do? Why is this helpful?
- Define function . How can you tell if a graph is a function?
In 4 – 7, tell whether the graph is a function. Explain your reasoning.
Rewrite each equation using function notation.
- @$y=7x-21@$
- @$6x+8y=36@$
- @$x=9y+3@$
- @$y=6@$
- @$d=65t+100@$
- @$F=1.8C+32@$
- @$s=0.10(m)+25,000@$
In 15 – 19, evaluate @$f(-3), f(7), f(0)@$ , and @$f(z)@$ .
- @$f(x)=-2x+3@$
- @$f(x)=0.7x+3.2@$
- @$f(x)=\frac{5(2-x)}{11}@$
- @$f(t)=\frac{1}{2} t^2+4@$
- @$f(x)=3-\frac{1}{2} x@$