Representing a Function
There are three possible ways to represent a function:
- analytically (by formula);
- numerically (by table of values);
- visually (by graph).
Analytical representation of a function.
This is the most common way to represent a function. We define a formula that contains arithmetic operations on constant values and the variable that we need to perform to obtain the value of .
For example, , , etc.
Now, from the function , we can find that .
However, this is not the only way to represent a function. We can represent it analytically without a formula.
For example, consider the function (floor function). Clearly, , , , , etc., but there is no formula that expresses .
Another example is . The domain of this function is a set of natural numbers, because can take only natural values. So, , but again, there is no formula that expresses .
Now, let's talk about the domain of the function.
We can state the domain of the function explicitly, for example, . This means that can change only in the interval .
But often, the domain is given implicitly, i.e. the domain is all values of where is defined.
For example, for the function , the domain is a set of all real numbers, i.e. the interval , because the function is defined for any value of .
The domain of the function is all real numbers except , i.e. . is not in the domain, because is not defined (the denominator equals ).
The domain of the function is , because for these values the expression under the root is non-negative, and, thus, the function is defined.
Moreover, in a real-world application, we also need to make sure that the function makes sense. For example, consider the law of free fall . This function is defined for all but it doesn't make sense when (time can't be negative). Therefore, the domain of the function in the given situation is .
Example 1. Suppose that the perimeter of a rectangle is 24 cm. Find its area as the function of one side. Find the domain of this function.
Let's suppose that one side is and the second side is . Then, , or .
Therefore, the area is . Thus, .
Since length should be positive, . Also, area should be positive; so, , or . Thus, the domain is the interval .
Let's work another quick example.
Example 2. State the domain of .
Since and the denominator can't equal , the domain of the function is all real numbers except and .
One more quick example for practice.
Example 3. Find the domain of the function .
Since the square root should be non-negative, the domain of the function is .
And let's do another short example before passing on.
Example 4. Find , if .
.
Numerical (tabular) representation of a function.
In real life, the dependence between variables is formed based on experiments or observations. For example, at any given time , we can calculate the world population . We say that is a function of but can't find an explicit formula to express this. All we have is a table of values as below:
(in years) | 1970 | 1980 | 1990 | 2000 | 2010 |
(in millions of people) | 3835 | 4100 | 4545 | 5600 | 7300 |
However, in further topics of calculus, we will be able to find a function that will approximate these values.
Graphical representation of a function.
Although in calculus functions are not defined graphically, graphical representation is very helpful in studying functions.
Suppose that we are given a function with the domain . Imagine a plane with two perpendicular axes: the x-axis and the y-axis. Consider a pair of corresponding values and , where is taken from set and . The image of this pair is the point with the x-coordinate and the y-coordinate . When the variable is changing within the interval , this point describes some curve. This curve is the graph of the function .
So, to draw the graph of the function, take from the interval points that are close to each other: . Now, find the corresponding y-values: , ,..., .
Draw the points , ,..., . Connect these points by a smooth curve. We've obtained the graph of the function. Note: the more points you take, the more accurate graph you will obtain.
Let's move on to practical examples.
Example 5. Draw the graph of the function on the interval .
Let's take the following points: , , , , , .
Now, find the corresponding y-values: , , , , , .
Draw the points , , , , , on the xy-plane and connect them by a smooth curve.
And a bit more work to memorize it better.
Example 6. Consider the function whose graph is shown to the left. Find , and state the domain and the range of .
We take the point and move up until the intersection of the curve. The intersection is at the point ; so, . Similarly, .
The function is defined when ; therefore, the domain of the function is the interval , and the range is .
The graph of the function is a curve in the xy-plane. But the question arises: which curves in the xy-plane are graphs of functions? This is answered by the following test.
Vertical line test. A curve in the xy-plane is the graph of a function of if and only if no vertical line intersects the curve more than once.
Graphical representation allows us to determine easily whether the curve is a function.
Consider the graph of the function . It is a cirlcle with a radius of 2. Clearly, it is not a function.
To see why it is so, express in terms of : , or . Because of , we have two values of for every value of . Also, as can be seen from the graph, the function fails the vertical line test.
Parametric representation of a function.
Parametric representation is a slightly changed form of representing a function by a formula.
When we define a function by a formula, we use the following record: , where is some formula.
But often, it is more convenient to represent a function using two functions and a parameter.
If we define a function as , by changing the value of (parameter), we can find the corresponding pairs of and .
In general, we set some restrictions on . If we require , the point is called initial, and the point is called terminal.
In some cases (but not always), it is possible to eliminate the paremeter and obtain the standard representation of as a function of (or as a function of ).
Also, note that parametric equations can generate curves that are not functions.
Example 7. Draw the graph of the function , .
Let's find a couple of points that correspond to different values of .
The graph of this function is shown to the right.
Note that in this case we can eliminate the parameter : from the first equation, ; plugging this equation for into the second equation gives .
And one more final example.
Example 8. Draw the function , .
Let's find a couple of points that correspond to different values of .
Note that this is not a function, because it fails the vertical line test. Also, it is very hard to eliminate the parameter .