## Evaluating and Solving Functions

### Learning Outcomes

• Evaluate and solve functions in algebraic form.
• Evaluate functions given tabular or graphical data.

When we have a function in formula form, it is usually a simple matter to evaluate the function. For example, the function $f\left(x\right)=5 - 3{x}^{2}$ can be evaluated by squaring the input value, multiplying by 3, and then subtracting the product from 5.

### How To: EVALUATE A FUNCTION Given ITS FORMula.

1. Replace the input variable in the formula with the value provided.
2. Calculate the result.

### Example: Evaluating Functions

Given the function $h\left(p\right)={p}^{2}+2p$, evaluate $h\left(4\right)$.

In the following video we offer more examples of evaluating a function for specific x values.

### Example: Evaluating Functions at Specific Values

For the function, $f\left(x\right)={x}^{2}+3x - 4$, evaluate each of the following.

1. $f\left(2\right)$
2. $f(a)$
3. $f(a+h)$
4. $\dfrac{f\left(a+h\right)-f\left(a\right)}{h}$

### Try It

Given the function $g\left(m\right)=\sqrt{m - 4}$, evaluate $g\left(5\right)$.

In the next video, we provide another example of how to solve for a function value.

### Example: Solving Functions

Given the function $h\left(p\right)={p}^{2}+2p$, solve for $h\left(p\right)=3$.

### Try It

Given the function $g\left(m\right)=\sqrt{m - 4}$, solve $g\left(m\right)=2$.

## Evaluating Functions Expressed in Formulas

Some functions are defined by mathematical rules or procedures expressed in equation form. If it is possible to express the function output with a formula involving the input quantity, then we can define a function in algebraic form. For example, the equation $2n+6p=12$ expresses a functional relationship between $n$ and $p$. We can rewrite it to decide if $p$ is a function of $n$.

### How To: Given a function in equation form, write its algebraic formula.

1. Solve the equation to isolate the output variable on one side of the equal sign, with the other side as an expression that involves only the input variable.
2. Use all the usual algebraic methods for solving equations, such as adding or subtracting the same quantity to or from both sides, or multiplying or dividing both sides of the equation by the same quantity.

### Example: Finding an Equation of a Function

Express the relationship $2n+6p=12$ as a function $p=f\left(n\right)$, if possible.

Watch this video to see another example of how to express an equation as a function.

### Example: Expressing the Equation of a Circle as a Function

Does the equation ${x}^{2}+{y}^{2}=1$ represent a function with $x$ as input and $y$ as output? If so, express the relationship as a function $y=f\left(x\right)$.

### Try It

If $x - 8{y}^{3}=0$, express $y$ as a function of $x$.

### Q & A

Are there relationships expressed by an equation that do represent a function but which still cannot be represented by an algebraic formula?

Yes, this can happen. For example, given the equation $x=y+{2}^{y}$, if we want to express $y$ as a function of $x$, there is no simple algebraic formula involving only $x$ that equals $y$. However, each $x$ does determine a unique value for $y$, and there are mathematical procedures by which $y$ can be found to any desired accuracy. In this case, we say that the equation gives an implicit (implied) rule for $y$ as a function of $x$, even though the formula cannot be written explicitly.

## Evaluating a Function Given in Tabular Form

As we saw above, we can represent functions in tables. Conversely, we can use information in tables to write functions, and we can evaluate functions using the tables. For example, how well do our pets recall the fond memories we share with them? There is an urban legend that a goldfish has a memory of 3 seconds, but this is just a myth. Goldfish can remember up to 3 months, while the beta fish has a memory of up to 5 months. And while a puppy’s memory span is no longer than 30 seconds, the adult dog can remember for 5 minutes. This is meager compared to a cat, whose memory span lasts for 16 hours.

The function that relates the type of pet to the duration of its memory span is more easily visualized with the use of a table. See the table below.

Pet Memory span in hours
Puppy 0.008
Cat 16
Goldfish 2160
Beta fish 3600

At times, evaluating a function in table form may be more useful than using equations. Here let us call the function $P$.

The domain of the function is the type of pet and the range is a real number representing the number of hours the pet’s memory span lasts. We can evaluate the function $P$ at the input value of “goldfish.” We would write $P\left(\text{goldfish}\right)=2160$. Notice that, to evaluate the function in table form, we identify the input value and the corresponding output value from the pertinent row of the table. The tabular form for function $P$ seems ideally suited to this function, more so than writing it in paragraph or function form.

### How To: Given a function represented by a table, identify specific output and input values.

1. Find the given input in the row (or column) of input values.
2. Identify the corresponding output value paired with that input value.
3. Find the given output values in the row (or column) of output values, noting every time that output value appears.
4. Identify the input value(s) corresponding to the given output value.

### Example: Evaluating and Solving a Tabular Function

Using the table below,

1. Evaluate $g\left(3\right)$.
2. Solve $g\left(n\right)=6$.
 $n$ 1 2 3 4 5 $g(n)$ 8 6 7 6 8

### Try It

Using the table from the previous example, evaluate $g\left(1\right)$ .

## Finding Function Values from a Graph

Evaluating a function using a graph also requires finding the corresponding output value for a given input value, only in this case, we find the output value by looking at the graph. Solving a function equation using a graph requires finding all instances of the given output value on the graph and observing the corresponding input value(s).

### Example: Reading Function Values from a Graph

Given the graph below,

1. Evaluate $f\left(2\right)$.
2. Solve $f\left(x\right)=4$.

### Try It

Using the graph, solve $f\left(x\right)=1$.

### Try It

You can use an online graphing tool to graph functions, find function values, and evaluate functions. Watch this short tutorial to learn how.

Now try the following with an online graphing tool:

1. Graph the function $f(x) = -\frac{1}{2}x^2+x+4$ using function notation.
2. Evaluate the function at $x=1$
3. Make a table of values that references the function. Include at least the interval $[-5,5]$ for $x$-values.
4. Solve the function for $f(0)$

## Contribute!

Did you have an idea for improving this content? We’d love your input.