A function is an expression that accepts an input and gives a corresponding output. Think of a function as a bread-making factory. It takes in wheat flour plus other ingredients and gives out bread. Functions define actions that take place to turn input into output.
How do we write functions?
Before we get to the evaluation of function, we need to know how to represent functions. The most famous notation is f(x), read as f of x. However, you can you other notations such as h(x), g(x), or any other letter. The variable x can also change. For example, f(r), read as f of r.
How to evaluate functions?
It is a straightforward process to evaluate functions. It simply means replacing the variable in it with a value. We will demonstrate that using a few examples. Also, note that you can evaluate functions using other expressions, as we will see soon.
Evaluate f(x) = x+8 at x=2
Substitute x with 2 in the above function.
Substitute x=1 in the above function.
In this case, we have an expression instead of a value. The evaluation process does not change. Just replace x with n+2.
find the value of z.
For a nested function like this example, you need to first evaluate the outer function and then the inner one.
We now set the equation equal to 10 and evaluate the value of k.
This is a quadratic equation:
Using the quadratic formula:
What is the value of k if
and f(2)= 6?
We start by substituting the value of x in the function.
We know that f(2) = 6. Equating this to the previous equation we get:
You can evaluate any function no matter how complex it is. You only need to be accurate and use parenthesis where applicable to avoid mistakes.
About the Author
This lesson was prepared by Robert O. He holds a Bachelor of Engineering (B.Eng.) degree in Electrical and electronics engineering. He is a career teacher and headed the department of languages and assumed various leadership roles. He writes for Full Potential Learning Academy.