When we plug a number into an equation and write y=7 at the end, that final line doesn't show what input we plugged in to get 7, or which rule we used if there is more than one.
Why We Use Function Notation
yxy=2x+1=3=?
Function notation solves both problems at once by giving each rule its own name, such as f,g, or h, and keeping the input inside parentheses right next to it. For the rule f(x)=2x+1, plugging in 3 gives 2(3)+1=7, which we write in a single statement:
rule namef(input3)=output7
Unlike 3(x), where a number right next to parentheses means multiplication, the parentheses in f(x) only hold the input. We read it as "f of x," never f times x.
2
Evaluating Function Rules
To find the output of a function rule like f(x)=3x−5 for a given input, we replace the placeholder x with that input and simplify the right side.
Evaluating Function Rules
f(x)f(4)=3x−5=?
Text solution
Turn x into empty parenthesesThe letter x in f(x)=3x−5 is just holding an input slot open, so rewrite the rule with empty parentheses.
f()=3()−5
Put 4 into the parentheses and simplifyTo find f(4), place 4 inside both sets of parentheses and work out the math on the right side.
f(4)=3(4)−5=12−5=7
Stop right at f(4)=7. Never divide both sides by 4 to "solve for f," because f(4) is just the label for the output when the input is 4.
Now a negative input, f(−2). Keeping the parentheses around −2 keeps the negative sign attached when we multiply by 3:
f(−2)=3(−2)−5=−6−5=−11
Now an algebraic expression, f(a+1). An expression goes into the empty parentheses the exact same way a single number does, and then we distribute to simplify the right side:
f(a+1)=3(a+1)−5=3a+3−5=3a−2
When an expression combines two rules, such as f(x)=2x+1 and g(x)=x2, each piece like f(3) or g(5) is just a single output number:
Find each output on its ownPlug 3 into rule f and 5 into rule g separately.
f(3)g(5)=2(3)+1=7=(5)2=25
Replace each piece with its numberSubstitute those numbers into the problem and do the arithmetic.
f(3)+g(5)4⋅f(3)=7+25=32=4⋅7=28
In f()=3()−5, whatever input goes into the parentheses on the left also goes into the parentheses on the right, while the left side stays as the label f(input).
Whatever goes into the parentheses on the left automatically fills the parentheses on the right, and only the right side gets calculated.
3
Finding an Input from an Output
So far we have been given the input inside the parentheses and asked for the output. Now we want to work backward: we are given the final output of the rule f(x)=2x+1 and asked to find the input x that gave it.
Finding an Input from an Output
f(x)A: f(11)B: f(x)=2x+1=?=11(find x)
Text solution
In f(11), the 11 sits inside the parentheses as the input, so we plug 11 in for x to get 2(11)+1=23. In f(x)=11, the x is still unknown inside the parentheses and 11 is the whole output.
Replace f(x) with the output 11Since f(x) and 2x+1 both stand for the output, set the entire rule equal to 11.
11=2x+1
Solve for the input xSubtract 1 from both sides and divide by 2.
105=2x=x
So an input of x=5 gives an output of 11, which matches f(5)=2(5)+1=11.
4
Function Notation with Tables
A function doesn't have to be given by an equation. Sometimes the inputs and outputs are already worked out in a table, and we just need to know which column to read.
Function Notation with Tables
Text solution
Find f(2) from the input columnBecause 2 is inside the parentheses, find 2 in the left column (x) and read across to the output column.
f(2)=3
Find x when f(x)=−1 from the output columnBecause −1 is on the other side of the equals sign, skip the −1 at the top of the x column, find −1 at the bottom of the f(x) column, and read left to the input.
x=7
Find all x when f(x)=8Every input in a function has only one output, so plugging in an input only ever gives one answer, but different inputs can share the same output. Look down the entire f(x) column for every 8 and list both matching inputs.
xandx=0=4
Check the output column for f(x)=6Because 6 never shows up in the f(x) column, no input in the table gives 6, so there is no solution.
5
Function Notation with Graphs
When a function is drawn as a curve on a coordinate grid, we can read inputs and outputs right off the axes because f(x) is just the vertical height y.
Function Notation with Graphs
Text solution
Because y=f(x), every point (x,y) on the curve is an input-output pair:
(left/rightx,heightf(x))
Find f(3) by starting on the x-axisSince 3 is the input inside the parentheses, go to 3 on the horizontal axis and look down to the curve at (3,−2) to read its height.
f(3)=−2
Find x when f(x)=4 by looking across at height 4Since 4 is the output height, go to 4 on the vertical axis and look all the way left and right across the grid to find both points where the curve reaches height 4, at (−2,4) and (5,4).
xandx=−2=5
Check height 6 for f(x)=6Looking across at height 6 stays completely above the curve's highest point of 5, so the curve never reaches 6 and there is no solution.
Depending on the height we pick, looking across can hit the curve at two or more inputs, touch just one input at a peak or low point, or miss the curve completely when there is no solution.
Every spot where the horizontal line meets the curve gives an input for that height, so one height can have two inputs, one input, or none.
6
Function Notation in Word Problems
In word problems, we often replace f and x with letters that match the situation. The problem tells us the units of the input and output.
Function Notation in Word Problems
Text solution
When W(t) represents the gallons of water in a swimming pool after t minutes, t is the time in minutes and W(t) is the amount of water in gallons.
function nameW(minutes10)=gallons50
Read W(10)=50 using the input and output unitsAn input of t=10 minutes gives an output of W(10)=50 gallons, so after 10 minutes there are 50 gallons of water in the pool.
Compare two outputs in W(20)>W(5)Since W(20) and W(5) stand for the gallons of water at 20 minutes and at 5 minutes, the inequality says there is more water in the pool at 20 minutes than there was at 5 minutes.
Key concepts
A statement like f(3)=7 puts three pieces of information into one line:
Name(Input)=Output
When you're asked to find f(4) or to find x if f(x)=11, check where the given number appears:
Number inside the parentheses, like f(4)
You are given the input x and want the single output.
With an equation(f(x)=3x−5): Turn x into empty parentheses f()=3()−5 and put the input in to get f(4)=3(4)−5=7. Stop there. Do not divide by 4, because f(4) is a label, not multiplication.
With a table or graph: Start at the input x in the left column or on the horizontal axis, and read the single output across the row or vertically to the curve.
Number on the other side of =, like f(x)=11
You are given the output f(x) and must work backward to find every input x that gives it.
With an equation(f(x)=2x+1): Do not plug 11 in for x. Replace the whole f(x) side with 11 and solve 11=2x+1 to get x=5.
With a table or graph: Look in the f(x) column or look all the way left and right at height y=k. Because different inputs can share the same output (or never reach a height at all), working backward from an output can give one x, multiple x-values, or no solution.
7
Practice
1
Given f(x)=4x−3, find f(6).
Is 6 inside the parentheses as the input, or outside as the output? Rewrite the rule with empty parentheses f()=4()−3 first.
Put 6 into the empty parentheses for x and simplify the right side:
f(6)=4(6)−3=24−3=21
Watch out for treating f(6)=21 as multiplication and dividing by 6 to get 3.5 (or setting 4x−3=6 to get 49). The left side f(6) is just the label for the output. Final answer: 21
2
Given g(x)=12−5x, find g(−2).
Write g()=12−5() so −2 goes inside its own parentheses right after −5. Pay attention to the sign when multiplying −5 and −2.
Substitute −2 into the empty parentheses:
g(−2)=12−5(−2)
Be careful not to lose a negative sign and write 12−10=2, or subtract 12−5 first to get 7(−2)=−14. Multiplying −5 by −2 gives +10:
g(−2)=12+10=22
Final answer: 22
3
Let C(m) represent the cost, in dollars, of a taxi ride that is m miles long. What does C(8)=20 mean in plain words, and how do you write "a 12-mile ride costs more than a 5-mile ride" using function notation?
Check the units for each part of C(m): what unit goes inside the parentheses for m, and what unit belongs to the whole output C(m)?
Inside the parentheses, m is the ride length in miles, and the output C(m) is the cost in dollars. Watch out for swapping the input and output to say "an $8 ride goes 20 miles," or comparing the mile numbers 12>5 instead of the costs C(12) and C(5). Final answer: An 8-mile taxi ride costs $20;C(12)>C(5)
4
Given f(x)=2x+3 and g(x)=x2, find 3⋅f(4)−g(5).
Find the single output number for f(4) and the single output number for g(5) separately before multiplying by 3 or subtracting.
Evaluate f(4) and g(5) on their own first:
f(4)g(5)=2(4)+3=11=(5)2=25
Don't multiply the input 4 by 3 to evaluate f(12)=27 (which gives 27−25=2), and remember 52=25 rather than 5⋅2=10 (which gives 33−10=23). Substitute 11 and 25 into the expression:
3⋅f(4)−g(5)=3(11)−25=33−25=8
Final answer: 8
5
Given f(x)=3x−7, find x if f(x)=14.
Look at where 14 sits: is it inside the parentheses, or is it what the entire output f(x) equals?
Because 14 is on the other side of the equals sign, it is the output. Do not plug 14 in for x to get 3(14)−7=35. Replace the entire f(x) side with 14:
14=3x−7
Add 7 to both sides (subtracting 7 instead gives 3x=7, or x=37) and divide by 3:
21x=3x=7
Final answer: x=7
6
A function f is given by a table of (x,f(x)) pairs: (−4,6),(0,3),(2,−4),(6,8), and (9,6). Find f(6), and find all values of x for which f(x)=6.
Each pair is written as (input x,output f(x)). Which position do you check for f(6), and which position do you check across every pair for f(x)=6?
For f(6), the 6 is inside the parentheses, so find 6 in the first coordinate: the pair (6,8) gives f(6)=8. Don't look for 6 in the second coordinate when finding f(6) (which would give −4 or 9). For f(x)=6, check the second coordinate across all pairs and make sure not to stop at (−4,6) and miss (9,6) at the end. Final answer: f(6)=8;x=−4 and x=9
7
On a coordinate grid, the graph of y=f(x) rises from (−5,0) through (−3,2) to a highest point at (0,4), then falls through (2,2) to its right endpoint at (4,−1). Find f(4), find all values of x for which f(x)=2, and find all values of x for which f(x)=5.
Every point on the curve is (x,f(x)), where x is the horizontal position and f(x) is the height. Where does the curve reach height 2 on the way up and on the way down, and how high does its peak reach?
For f(4),4 is the horizontal input x, so look at the right endpoint (4,−1). Don't confuse x=4 with height y=4 at the peak (0,4), which would give 0. For f(x)=2, look all the way across at height 2 to find both (−3,2) on the way up and (2,2) on the way down instead of stopping at x=−3. For f(x)=5, height 5 is above the highest point (0,4), so the curve never reaches it. Final answer: f(4)=−1;x=−3 and x=2 for f(x)=2; no solution for f(x)=5
8
Given f(x)=5x−4, find and simplify f(2a+3).
Write f()=5()−4 with empty parentheses and put the entire expression 2a+3 inside the parentheses.
Substitute 2a+3 into the empty parentheses on both sides:
f(2a+3)=5(2a+3)−4
Keep the parentheses around 2a+3 so the 5 distributes to both terms; forgetting to multiply 3 by 5 gives 10a+3−4=10a−1. Distribute 5 and combine the constants: