# Function Notation and How to Evaluate a Function

The common notation of a function is usually written as,

Don’t think of this too literally, that is, f is being multiplied to x. Instead, consider this as a mathematical expression which is read as

**OR**

Functions can also be written in different ways using other variables such as

- g(x), h(x), and k(x)

In addition, functions may take other input values other than x.

- f(a), h(r), and k(m)

The key idea is always to remember that the variable **outside** the parenthesis is the “**name**” of the function, while the variable **inside** the parenthesis is the **input value** of the function.

For instance, the following is called function k with an input value of m.

## Basic Examples of Evaluating Functions

**Example 1:** Evaluate the function.

This is the normal notation of function where the function is f while the input value is x. To evaluate a function, what we want is to substitute every instance of x in the expression and then simplify.

Since x = - 1 , we substitute this value in the function and simplify. In doing so, we get a solution that looks like this.

**Example 2:** Evaluate the function.

Observe that the function here is h and the input value is k. Just like in our previous example, we want to substitute whatever the numerical value assigned to k into the given function, and simplify.

Since k = 3, your solution should look similar to this

**Example 3:** Evaluate each value of x in the table below using the function below. Plot the points in the xy-axis and connect the dots to reveal the graph of the function.

Since there are seven x-inputs, that means we will evaluate the function seven times as well. Try working this out on your own then come back to check your answers.

If you have done it correctly, these are the values:

We can now place those output values in the table.

Think of the output values of the function f\left( x \right) as the y-values. This is how the graph looks like on the xy-axis.

## Intermediate Examples of Evaluating Functions

**Example 4:** Given that g\left( x \right) = {x^2} - 3x + 1, find g\left( {2x - 1} \right).

In previous examples, we have been evaluating a function by a number. This time the input value is no longer a fixed numerical value, but instead an expression. It might look complicated but the procedure remains the same.

We will replace every instance of x in g\left( x \right) by the input value which is 2x - 1. Simplify by squaring the binomial, applying the distributive property, and combining like terms.

**Example 5:** Given that p\left( x \right) = {{4x - 1} \over x} , evaluate p\left( 1 \right) - p\left( { - 1} \right).

The problem may look intimidating at first, but once we analyze it and apply what we already know on how to evaluate functions, this shouldn’t be that bad!

What we need to do here is to evaluate the function at x = 1 then **subtract** by the value of the function when evaluated at x = - \,1.

Be very careful when you substitute the values and during the simplification process. If you are not careful in every step, it is very easy to commit mistakes when you add, subtract, multiply, or divide positive and negative numbers.

## Advanced Example of Applying the Concept of Evaluating Functions

**Example 6:** If f\left( 2 \right) = 9, find the value of a in the function below.

In the equation, f\left( 2 \right) = 9, we are told that if the input of the function is 2; the output of the function will be 9. Since the function is given to us, our first move is to at least substitute the value of 2 and then simplify. This is what we’ll get.

The output of the function after evaluating at x = 2 is 17 + 2a. Remember, we are also told that the output is 9 using the given equation f\left( 2 \right) = 9. Therefore what we need to do now is set them equal to each other, and solve the linear equation for the unknown value of a.

Let’s verify if the value of a = - \,4 in f(x) = 6{x^2} + ax - 7 can make the given condition f\left( 2 \right) = 9 to be a true statement.

It’s true! Hence, we have successfully solved the correct value of a.