## Evaluate Functions

### Learning OUTCOMES

• Given a function equation, find function values (outputs) for specified numbers and variables (inputs)

Throughout this course, you have been working with algebraic equations. Many of these equations are functions. For example, $y=4x+1$ is an equation that represents a function. When you input values for x, you can determine a single output for y. In this case, if you substitute $x=10$ into the equation you will find that y must be $41$; there is no other value of y that would make the equation true.

Rather than using the variable y, the equations of functions can be written using function notation. Function notation is very useful when you are working with more than one function at a time and substituting more than one value in for x.

Equations written using function notation can also be evaluated. With function notation, you might see the following:

Given $f(x)=4x+1$, find $f(2)$.

You read this problem like this: “given f of x equals $4x$ plus one, find f of $2$.” While the notation and wording is different, the process of evaluating a function is the same as evaluating an equation. In both cases, you substitute $2$ for x, multiply it by $4$ and add $1$, simplifying to get $9$. In both a function and an equation, an input of $2$ results in an output of $9$.

$f(x)=4x+1\\f(2)=4(2)+1=8+1=9$

You can simply apply what you already know about evaluating expressions to evaluate a function. It is important to note that the parentheses that are part of function notation do not mean multiply. The notation f(x) does not mean f multiplied by x. Instead, the notation means “f of x” or “the function of x.” To evaluate the function, take the value given for x, and substitute that value in for x in the expression. Let us look at a couple of examples.

### Example

Given $f(x)=3x–4$, find $f(5)$.

Functions can be evaluated for negative values of x, too. Keep in mind the rules for integer operations.

### Example

Given $p(x)=2x^{2}+5$, find $p(−3)$.

You may also be asked to evaluate a function for more than one value as shown in the example that follows.

### Example

Given $f(x)=|4x-3|$, find $f(0)$, $f(2)$, and $f(−1)$.

## Variable Inputs

So far, you have evaluated functions for inputs that have been constants. Functions can also be evaluated for inputs that are variables or expressions. The process is the same, but the simplified answer will contain a variable. The following examples show how to evaluate a function for a variable input.

### Example

Given $f(x)=3x^{2}+2x+1$, find $f(b)$.

In the following example, you evaluate a function for an expression. So here you will substitute the entire expression in for x and simplify.

### Example

Given $f(x)=4x+1$, find $f(h+1)$.

In the following video, we show more examples of evaluating functions for both integer and variable inputs.

## Summary

Function notation takes the form such as $f(x)=18x–10$ and is read “f of x equals 18 times x minus $10$.” Function notation can use letters other than f, such as c(x), g(x), or h(x). As you go further in your study of functions, this notation will provide you more flexibility, allowing you to examine and compare different functions more easily. Just as an algebraic equation written in x and y can be evaluated for different values of the input x, an equation written in function notation can also be evaluated for different values of x. To evaluate a function, substitute in values for x and simplify to find the related output.