
www.VirtualNerd.com
What's a Function?
What's a function?
Summary
- You can think of a function as a souvenir penny machine -- you input a penny, and it outputs a new souvenir!
- A function can also be written in math terms
- In our example our input will be the variable 'x', which we can assign a value of 2
- The function, or operation, performed on the input 'x' is to add 3
- Then the function spits out a new output value, which is 5
- The input values for a function make up the domain, and the output values make up the range

Notes
-
-
-
- We'll make the input to the function 'x', a variable we'll assign a value of 2
- The function, or operation, is to add 3 to the input of 'x', or 2
- When we input 3 into the function, we get an output of 5
- So our function changed 3 into 5, just like the machine changed the normal penny into the flattened penny!
-
- Let's review the definition of a function, since we've looked at a real world example and a math example
-
- In other words, each value we put into our function will only have one possible output
- If we have more than one possible output value for a certain input, then we don't have a function!
-
- Some functions have many numbers in their domain, but others might only have a few
- If you get an answer that's undefined when you try and plug a value into a function, that value won't be in the domain
-
- Think of the range as the 'range' of output values that result from the input values in the domain
-
- A mapping diagram is one way to represent a function
- {7, 4, 3, -1} is the domain in this example
- {2, 0, 5} is the range
- In this example, the input 7 is assigned an output value of 0
- In this case we don't have an equation that defines our function -- we're just defining it using arrows
- The input 4 is assigned an output value of 2
- The input 3 is assigned an output value of 5
- The input -1 is assigned an output value of 5, as well
-
- Both input values of 3 and -1 produce 5 as an output
- So it's ok to have input values assigned to the SAME output value, as long as they are each assigned to only ONE output value
-
- Let's look at a mapping diagram example where an input value is assigned more than one ouput value
- {3, -2, 4} is the domain in this example
- {6, 1, 8} is the range in this example
- In this example, the input 3 is assigned an output value of 1
- The input -2 is assigned an output value of 6, as well as an output of value of 8
- The input 4 is assigned an output value of 1
-
- The input -2 is assigned an output value of 6, as well as an output of value of 8
- But in order to be a function, an input value can only have ONE output value
- So here we do NOT have a function!
-
-
- Usually a function rule is an equation of some kind
- Let's look back at the equation we used before
- Remember, we had an input value of x = 2
- The function, or operation, performed on the input 'x' is to add 3
- So then when we add 3 to 2, we get our output value of 5
-
- Each (x,y) in the set is an ordered pair
- The x-coordinates of each ordered pair represent the inputs of the function
- The y-coordinates of each ordered pair represent the outputs of the function
- Notice that this is just a different way of representing the function in our mapping diagram from before!
-
- Our set of ordered pairs is {(7,0), (4,2), (3,5), (-1,5)}
- The x-coordinates {7, 4, 3, -1} are the input values and make up the domain
- The y-coordinates {0, 2, 5, 5} are the output values and make up the range
-
- 'x' represents the input values for the function
- Sometimes you might see 'y' instead of 'f(x)' -- they mean the same thing, and both can represent the output values of the function
- {1, 2, 3, 4} make up the domain and {4, 5, 6, 7} make up the range
- You can also create tables if you have a rule
- In this case, the rule would be to add 3
- So this table also represents the function we had at the beginning!
-
- The green arrow on the graph represents a graphed function
- On a graph, the input values are the x-coordinates, which give the horizontal locations of points
- The output values are the y-coordinates, which give the vertical locations of points