Functions Visualized Graphically


Let's use a simple function as an example:   f(x) = 2x + 1

The function given by f(x) = 2x + 1 results in sets of two number pairs:
  - the number you pick, to fill in
  - the number that the function changes it into.

For example, what is  f(3) ?       >>>      f(3) = 2(3) + 1 = 7

x  is the number you fill in. In this case,  x  is  3

f(3)  is the number you get after applying function  f. In this case, f(3)  is 7.

Since every  x  value results in an answer  f(x), we can generate some ordered pairs.
We can then locate these values on a set of x-y axes, where  y  is  f(x)

First let's find some more values that result from applying this function.
We already know that when x is  3, the function gives an answer of  7.
This is represented by the ordered pair (3 , 7)

We'll pick some more  x values:   -3, -2, -1, 0, 1, and 2
and find out what function  f  does to them:


x value

-3
-2
-1
 0
 1
 2
 3

f(x) = 2x + 1

2(-3) + 1 = -5
2(-2) + 1 = -3
2(-1) + 1 = -1
2(0) + 1  =  1
2(1) + 1  =  3
2(2) + 1  =  5
2(3) + 1  =  7

Ordered pair (x, f(x))    or (x, y)

(-3, -5)
(-2, -3)
(-1, -1)
(0,  1)
(1,  3)
(2,  5)
(3,  7)



Now let's plot all these ordered pairs on a set of x-y axes:


The points are plotted on the grid at the left. Functions often form recognizable shapes when plotted. This one is a line.

We chose to pick x values which were non-decimals, and small ... to make it easy to work out the function value for each one. But we could have picked any value of x at all.



The graph at the right above illustrates all possible values that result from function  f(x) = 2x + 1, including in-between decimals, and all other values, to infinity in both directions. . Said more simply, we picked x from the set of Real numbers, and the y values would then be Real numbers.
The full set of points is then a solid line of dots, with arrows at each end.


All that's left is to describe in general what the graphs of functions look like. The easiest way to do this is to look at a graph which is  not a function. Here's one:


You may remember the definition of a function:
'A function is a mathematical expression which changes one number into another. It always changes a number the same way'.

The graph shown here is a circle, and it is not a function. This is because when the value of  x  is  2, there is more than one different y value.
In other words, the fact that the graph has two different points sharing the same x value, but with different y values, ... for example (2, 3.45) and (2, -3.45), ... means that this is not a function. In fact, there are many points with the same x value, but different y values, on a circle.


If you are looking at a set of points plotted on a graph, you can always tell if it is a function or not by applying the  Vertical Line Test.

'If you can draw a vertical line anywhere on the graph that touches two or more points, the graph is not a function'.

We can easily draw a vertical line on a circle that touches two points. There are many places we can do this. So circles are not functions.

Now let's look at a set of points which is a function.

Once again the plotted points form a pattern.
We've identified some of the points that were used to generate the graph.
Every x value here has its own unique y value.


Imagine applying the vertical line test.
We did it once, at the right.
Can you see that it wouldn't matter where we put the vertical line ... it will never touch this set of points more than once.
This set of points is a function.

Graphically, functions can always be identified using the Vertical Line Test. If a vertical line can never touch more than one point, the set of points is a function.




Functions | Function Notation