A function is a rule that takes a number as input and then outputs another number.
For instance, let's look at the following function:
In this example,
is the name of the function,
the number is the input,
the number is the output.
If we substitute a number into our function in place of , we get another number as output.
For example, by substituting we get
So, the input results in an output of
We can substitute any number we like into this function! For example, if we substitute we get
So, the input results in an output of
If , calculate
We substitute into the function definition and then simplify:
Evaluate $g(2)$, where $g(x)=x^2-4x+4.$
|
a
|
$g(2)=4$ |
|
b
|
$g(2)=8$ |
|
c
|
$g(2)=-4$ |
|
d
|
$g(2)=0$ |
|
e
|
$g(2)=-2$ |
Functions with more than one input are called multivariable functions.
For example, the multivariable function takes in two numbers, and , and returns their difference.
For multivariable functions, the order of the inputs matters. For example, if we substitute and we get
whereas if we substitute and we get a different output:
Evaluate if
We substitute and into the function definition and then simplify:
Evaluate $f\left(\dfrac{1}{3}, 2 \right)$, where $f(x,y)= 9x-5y+6.$
|
a
|
$1$ |
|
b
|
$-8$ |
|
c
|
$2$ |
|
d
|
$-2$ |
|
e
|
$-1$ |
If $g(a, b)= (a-b)(a^2 - b^2),$ then $g(2, -2)=$
|
a
|
|
|
b
|
|
|
c
|
|
|
d
|
|
|
e
|