Functions
Definition and notation of a function
Functions, in physics or biology also known as formulas, rules or laws, are one of the most important "creatures" in mathematics. Generally speaking, functions can be thought of as little machines, which accept an input and, according to some fixed rule, produce an output:
This machine has a name, . Also note that in maths, the input is typically denoted by , and the output is typically denoted by . The rule of this machine is , that is, "multiply the input by . So if the input is , the output is :
Here is a machine that uses different letters for input and output:
This machine calculates the distance that a free falling stone has travelled during the time . You probably already know this rule form physics.
Some words about the notation. There are different ways how we can describe a function without actually drawing the machine. For the two machines and above we can write:
-
We can write and . This notation does not give you the name of the function. But it tells you what variable you use for the input and the output, and it states the rule of the machine.
-
and . This notation gives you the name of machine, and also the rule. It also tells you what variable you use for the input, but not for the output. In addition, if we write
we mean that input of the machine is , and the result is .
Both notations are called the function equation of the function. We will mostly use the second notation, but in physics you will probably use the first method more often, because the variables for input and output varies a lot. In maths, we typically just use and .
-
Consider the function given in the diagram below. Draw the function equation and determine .
-
A function has the function equation . Draw the machine.
Solution
-
The function equation of is (or ), and .
-
The machine diagram is
We gave the output variable the name .
Properties of functions, domain and range
Are there rules which are not allowed to use in functions? Yes, because we require from functions that every input must have exactly one output. What is not allowed is for an input to produce two or even more outputs, or no output at all.
For example, let's have a look at the following machine:
The input has two outputs, and (because and ):
Thus this machine is not a function. Also, for negative inputs, no solution exists.
Question: how could we modify the machine, so that we get a function? Well, lets first address the too many output problem. We could simply tell the machine to pass the positive value to the output, like so:
To deal with the no output problem, we introduce a new set, the domain. The domain of a function , written
consists of all real values who, if fed to the machine as input, produce exactly one output value. So for the machine above, we want to restrict the input values to all real values bigger or equal to :
Thus, the machine below is a function:
Why do we want to have no more than one output for an input? In physics, a function producing two outputs makes seldom sense. Consider, for example, a function that tells you for each point in time (input) the position of a falling ball (output). Clearly it does not make sense to have for a given time two different positions of the ball ... .
The set of all the possible output values of the function is called the range, and is denoted by
The machine above produces only positive values as outputs (including ), so the range of is also
Specify the domain and range of the following functions:
Solution
For each input in the domain there is exactly one output:
- and
- and
- and
-
Consider the following functions below, described with words. Draw for each function the machine representation, and also write down the function equation.
- The input is divided by , and the result is increased by .
- The input is decreased by , and the result multiplied by .
- The input is raised to the third power, and the result multiplied by .
- The input is multiplied by , the result is raised to the third power, and the result of this is increased by twice the input.
- Two is divided by 4 times the input, and the result is decreased by the input.
-
Describe the following function equations in words (similar to exercise 1), and determine .
-
Why is the following function equation problematic? Note: The root is always a positive number, e.g. . So are the numbers and .
-
Find the input(s) to a given output for the following functions.
-
, output
-
for all , output
-
, output
-
Determine the domain and the range of the following functions.
-
Solution
-
The function equations are
-
-
It is
- "the input is decreased by , and the result is squared"
- "the input is multiplied by , the result is decreased by , and the result of this is divided by "
- "the input is always set to "
- "the input is multiplied by , the result increased by , and the result of this subtracted by the input squared"
- "the input increased by , and then the input is divided by this result. Then this result is increased by "
-
There are two outputs for the same input, . So this is not a function. , however, is a function because the root is always positive.
-
Find with
-
and
-
-
for all can be any real number.
-
there is no such .
-
-
It is
- ,