# 1.5 Finding Input and Output Values of a Function

When we know an input value and want to determine the corresponding output value for a function, we evaluate the function. Evaluating will always produce one result because each input value of a function corresponds to exactly one output value.

When we know an output value and want to determine the input values that would produce that output value, we set the output equal to the function’s formula and solve for the input. Solving can produce more than one solution because different input values can produce the same output value.

## Evaluation of Functions in Algebraic Forms

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

### How To

Given the formula for a function, evaluate.

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

### Example 1: Evaluating Functions at Specific Values

Evaluating Functions at Specific Values

Evaluate $\text{}f\left(x\right)={x}^{2}+3x-4\text{}$ at

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

### Example 2: Evaluating Functions

1. Given the function $\text{}h\left(p\right)={p}^{2}+2p\text{}$, evaluate $\text{}h\left(4\right)\text{}$.
2. Given the function $\text{}g\left(m\right)=\sqrt{m-4}\text{}$, evaluate $\text{}g\left(5\right)$.

### Example 3: Solving Functions

1. Given the function $\text{}h\left(p\right)={p}^{2}+2p\text{}$ solve for $\text{}h\left(p\right)=3$.
2. Given the function $\text{}g\left(m\right)=\sqrt{m-4},\text{}$ solve $\text{}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 $\text{}2n+6p=12\text{}$ expresses a functional relationship between $\text{}n\text{}$ and $\text{}p\text{}$. We can rewrite it to decide if $\text{}p\text{}$ is a function of $\text{}n\text{}$.

### 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 4: Finding an Equation of a Function

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

#### Analysis

It is important to note that not every relationship expressed by an equation can also be expressed as a function with a formula.

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

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

### Question & Answer

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 $\text{}x=y+{2}^{y},\text{}$ if we want to express $\text{}y\text{}$ as a function of $\text{}x,\text{}$ there is no simple algebraic formula involving only $\text{}x\text{}$ that equals $\text{}y\text{}$. However, each $\text{}x\text{}$ does determine a unique value for $\text{}y\text{}$, and there are mathematical procedures by which $\text{}y\text{}$ can be found to any desired accuracy. In this case, we say that the equation gives an implicit (implied) rule for $\text{}y\text{}$ as a function of $\text{}x\text{}$, 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 Table 1-10.[1]

Table 1-10
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 $\text{}P\text{}$ 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 $\text{}P\text{}$ 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 6: Evaluating and Solving a Tabular Function

Using Table 1-11,

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

## 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 7: Reading Function Values from a Graph

Given the graph in Figure 1-4,

1. Evaluate $(\text{}f\left(2\right)$.
2. Solve $\text{}f\left(x\right)=4$.
3. Solve $\text{}f\left(x\right)=1$.