Evaluating and Solving Functions
Learning Outcomes
- Evaluate and solve functions in algebraic form.
- Evaluate functions given tabular or graphical data.
How To: EVALUATE A FUNCTION Given ITS FORMula.
- Replace the input variable in the formula with the value provided.
- Calculate the result.
Example: Evaluating Functions
Given the function , evaluate .Answer:
To evaluate , we substitute the value 4 for the input variable in the given function.
\begin{align}h\left(p\right)&={p}^{2}+2p \\ h\left(4\right)&={\left(4\right)}^{2}+2\left(4\right) \\ &=16+8 \\ &=24 \end{align}
Therefore, for an input of 4, we have an output of 24 or .evaluating functions
When evaluating functions, it's handy to wrap the input variable in parentheses before making the substitution. Ex. Given , find The value of the function , at the input , is .Example: Evaluating Functions at Specific Values
For the function, , evaluate each of the following.Answer: Replace the in the function with each specified value.
- Because the input value is a number, 2, we can use algebra to simplify.
\begin{align}f\left(2\right)&={2}^{2}+3\left(2\right)-4 \\ &=4+6 - 4 \\ &=6\hfill \end{align}
- In this case, the input value is a letter so we cannot simplify the answer any further.
- With an input value of , we must use the distributive property.
\begin{align}f\left(a+h\right)&={\left(a+h\right)}^{2}+3\left(a+h\right)-4 \\[2mm] &={a}^{2}+2ah+{h}^{2}+3a+3h - 4 \end{align}
- In this case, we apply the input values to the function more than once, and then perform algebraic operations on the result. We already found that
and we know thatNow we combine the results and simplify.
\begin{align}\dfrac{f\left(a+h\right)-f\left(a\right)}{h}&=\dfrac{\left({a}^{2}+2ah+{h}^{2}+3a+3h - 4\right)-\left({a}^{2}+3a - 4\right)}{h} \\[2mm] &=\dfrac{2ah+{h}^{2}+3h}{h}\\[2mm] &=\frac{h\left(2a+h+3\right)}{h}&&\text{Factor out }h. \\[2mm] &=2a+h+3&&\text{Simplify}.\end{align}
Try It
Given the function , evaluate .Answer:
[ohm_question]97486[/ohm_question]Example: Solving Functions
Given the function , solve for .Answer:
\begin{align}&h\left(p\right)=3\\ &{p}^{2}+2p=3 &&\text{Substitute the original function }h\left(p\right)={p}^{2}+2p. \\ &{p}^{2}+2p - 3=0 &&\text{Subtract 3 from each side}. \\ &\left(p+3\text{)(}p - 1\right)=0 &&\text{Factor}. \end{align}
If , either or (or both of them equal 0). We will set each factor equal to 0 and solve for in each case.\begin{align}&p+3=0, &&p=-3 \\ &p - 1=0, &&p=1\hfill \end{align}
This gives us two solutions. The output when the input is either or .
How To: Solve a Function.
- Replace the output in the formula with the value provided.
- Solve for the input variable that makes the statement true.
Try It
Given the function , solve .Answer:
[ohm_question]15766[/ohm_question]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 expresses a functional relationship between and . We can rewrite it to decide if is a function of .functions, Equations, and formulas
We've seen that an equation such as can be written in a different form by solving the equation for one of the variables. If we solve this linear equation for y it can be written in the slope-intercept form of a line, . Certain formulas can be written in function form by solving for one of the variables. For instance, can you see how to solve the formula for a rectangle having a perimeter of 21 feet, , for length?Answer: We can now declare a function, that returns an output length for a rectangle having a perimeter of 21 feet based on different width inputs.
How To: Given a function in equation form, write its algebraic formula.
- 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.
- 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 as a function , if possible.Answer: To express the relationship in this form, we need to be able to write the relationship where is a function of , which means writing it as expression involving .
\begin{align}&2n+6p=12\\[1mm] &6p=12 - 2n &&\text{Subtract }2n\text{ from both sides}. \\[1mm] &p=\frac{12 - 2n}{6} &&\text{Divide both sides by 6 and simplify}. \\[1mm] &p=\frac{12}{6}-\frac{2n}{6} \\[1mm] &p=2-\frac{1}{3}n \end{align}
Therefore, as a function of is written as
Analysis of the Solution
It is important to note that not every relationship expressed by an equation can also be expressed as a function with a formula.Example: Expressing the Equation of a Circle as a Function
Does the equation represent a function with as input and as output? If so, express the relationship as a function .Answer: First we subtract from both sides.
We now try to solve for in this equation.
\begin{align}y&=\pm \sqrt{1-{x}^{2}} \\[1mm] &=\sqrt{1-{x}^{2}}\hspace{3mm}\text{and}\hspace{3mm}-\sqrt{1-{x}^{2}} \end{align}
We get two outputs corresponding to the same input, so this relationship cannot be represented as a single function .Try It
If , express as a function of .Answer:
[ohm_question]111699[/ohm_question]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 , if we want to express as a function of , there is no simple algebraic formula involving only that equals . However, each does determine a unique value for , and there are mathematical procedures by which can be found to any desired accuracy. In this case, we say that the equation gives an implicit (implied) rule for as a function of , 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 |
Adult dog | 0.083 |
Cat | 16 |
Goldfish | 2160 |
Beta fish | 3600 |
How To: Given a function represented by a table, identify specific output and input values.
- Find the given input in the row (or column) of input values.
- Identify the corresponding output value paired with that input value.
- Find the given output values in the row (or column) of output values, noting every time that output value appears.
- Identify the input value(s) corresponding to the given output value.
Example: Evaluating and Solving a Tabular Function
Using the table below,- Evaluate .
- Solve .
1 | 2 | 3 | 4 | 5 | |
8 | 6 | 7 | 6 | 8 |
Answer:
- Evaluating means determining the output value of the function for the input value of . The table output value corresponding to is 7, so .
- Solving means identifying the input values, , that produce an output value of 6. The table below shows two solutions: and .
1 | 2 | 3 | 4 | 5 | |
8 | 6 | 7 | 6 | 8 |
Try It
Using the table from the previous example, evaluate .Answer:
[ohm_question]3751[/ohm_question]Finding Function Values from a Graph
ordered pairs of inputs and outputs
We can view a function as a set of inputs and their corresponding outputs. That is, we can see a function as a set of ordered pairs, Remember that, in function notation, , so the ordered pairs containing inputs and outputs can be written in the form of (input, output) or .Example: Reading Function Values from a Graph
Given the graph below,- Evaluate .
- Solve .

Answer:
- To evaluate , locate the point on the curve where , then read the -coordinate of that point. The point has coordinates , so .
- To solve , we find the output value on the vertical axis. Moving horizontally along the line , we locate two points of the curve with output value and . These points represent the two solutions to or . This means and , or when the input is or the output is See the graph below.
Try It
Using the graph, solve .
Answer:
[ohm_question]2471[/ohm_question] [ohm_question]2886[/ohm_question]Try It
You can use an online graphing calculator to graph functions, find function values, and evaluate functions. Watch this short tutorial to learn how to within Desmos. Other online graphing tools will be slightly different. https://youtu.be/jACDzJ-rmsM Now try the following with an online graphing calculator:- Graph the function using function notation.
- Evaluate the function at
- Make a table of values that references the function. Include at least the interval for -values.
- Solve the function for