A function works such that you end up with a relationship between variables. It works just like a machine. You put something in, and something new comes out.
Imagine a bread maker machine. If you put in finely ground, bleached flour, you end up with a smooth, white loaf. If you put in seeded, rough flour, you get multigrain wheat bread. The difference between a function and a bread maker is that you put numbers into a function—not flour!
Two examples of functions are and . The function is the straight line in Figure (b), and is the graph in Figure (d) below.
As you can see from the two functions in this section, one begins with and the other with (read as “ of ”). Why? Functions can have different names, some of the most common ones are and . Both tell you that they are values from the second axis.
The notation tells you that you have a function that depends on the -value. That is, you put the numbers from the -axis into the function, and the value you get is a number on the -axis. Since gives you -values, you can think of them as equals, so that . A function thus receives a value, and returns a value.
You can insert many -values into a function, while the -values are directly dependent on what the -values are. We therefore call the -value the independent variable and the -value the dependent variable.
Theory
For each value of there is only one value of .
Above you see four figures. Figures (b) and (d) show graphs that are functions. From the figures you can see that each -value has only one corresponding -value.
In Figures (a) and (c) you see that an -value can have several different -values. These are thus not functions.
In Figure (a), the -value we chose has two -values, which is true of almost any x value in a circle. In Figure (c) the -value we chose has four -values. We call these types of figures curves.