We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Guides d'étude > College Algebra

Evaluate and Solve Functions

Learning Objectives

  • 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(x)=53x2f\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: Given the formula for a function, evaluate.

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

Example: Evaluating Functions

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

Answer:

To evaluate h(4)h\left(4\right), we substitute the value 4 for the input variable pp in the given function. { h(p)=p2+2p h(4)=(4)2+2(4) =16+8 =24\begin{cases}\text{ }h\left(p\right)={p}^{2}+2p\hfill \\ \text{ }h\left(4\right)={\left(4\right)}^{2}+2\left(4\right)\hfill \\ \text{ }=16+8\hfill \\ \text{ }=24\hfill \end{cases}

Therefore, for an input of 4, we have an output of 24.

In the following video we offer more examples of evaluating a function for specific x values. https://youtu.be/Ehkzu5Uv7O0

Example: Evaluating Functions at Specific Values

Evaluate f(x)=x2+3x4f\left(x\right)={x}^{2}+3x - 4 at
  1. 22
  2. aa
  3. a+ha+h
  4. f(a+h)f(a)h\frac{f\left(a+h\right)-f\left(a\right)}{h}

Answer: Replace the xx in the function with each specified value.

  1. Because the input value is a number, 2, we can use algebra to simplify.
    {f(2)=22+3(2)4=4+64=6\begin{cases}f\left(2\right)={2}^{2}+3\left(2\right)-4\hfill \\ =4+6 - 4\hfill \\ =6\hfill \end{cases}
  2. In this case, the input value is a letter so we cannot simplify the answer any further.
    f(a)=a2+3a4f\left(a\right)={a}^{2}+3a - 4
  3. With an input value of a+ha+h, we must use the distributive property.
    {f(a+h)=(a+h)2+3(a+h)4=a2+2ah+h2+3a+3h4\begin{cases}f\left(a+h\right)={\left(a+h\right)}^{2}+3\left(a+h\right)-4\hfill \\ ={a}^{2}+2ah+{h}^{2}+3a+3h - 4\hfill \end{cases}
  4. 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
    f(a+h)=a2+2ah+h2+3a+3h4f\left(a+h\right)={a}^{2}+2ah+{h}^{2}+3a+3h - 4
    and we know that
    f(a)=a2+3a4f\left(a\right)={a}^{2}+3a - 4
    Now we combine the results and simplify.

    {{f(a+h)f(a)h=(a2+2ah+h2+3a+3h4)(a2+3a4)h{ =2ah+h2+3hh =h(2a+h+3)h{cc{ccFactor out h. =2a+h+3{cc{ccSimplify.\begin{cases}\begin{cases}\hfill \\ \frac{f\left(a+h\right)-f\left(a\right)}{h}=\frac{\left({a}^{2}+2ah+{h}^{2}+3a+3h - 4\right)-\left({a}^{2}+3a - 4\right)}{h}\hfill \end{cases}\hfill \\ \begin{cases}\text{ }=\frac{2ah+{h}^{2}+3h}{h}\hfill & \hfill \\ \text{ }=\frac{h\left(2a+h+3\right)}{h}\hfill & \begin{cases}{cc}\begin{cases}{cc}& \end{cases}& \end{cases}\text{Factor out }h.\hfill \\ \text{ }=2a+h+3\hfill & \begin{cases}{cc}\begin{cases}{cc}& \end{cases}& \end{cases}\text{Simplify}.\hfill \end{cases}\hfill \end{cases}

In the next video, we provide another example of how to solve for a function value. https://youtu.be/GLOmTED1UwA

Example: Solving Functions

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

Answer:

{ h(p)=3 p2+2p=3Substitute the original function h(p)=p2+2p. p2+2p3=0Subtract 3 from each side. (p+3)(p1)=0Factor.\begin{cases}\text{ }h\left(p\right)=3\hfill & \hfill & \hfill & \hfill \\ \text{ }{p}^{2}+2p=3\hfill & \hfill & \hfill & \text{Substitute the original function }h\left(p\right)={p}^{2}+2p.\hfill \\ \text{ }{p}^{2}+2p - 3=0\hfill & \hfill & \hfill & \text{Subtract 3 from each side}.\hfill \\ \text{ }\left(p+3\text{)(}p - 1\right)=0\hfill & \hfill & \hfill & \text{Factor}.\hfill \end{cases}

If (p+3)(p1)=0\left(p+3\right)\left(p - 1\right)=0, either (p+3)=0\left(p+3\right)=0 or (p1)=0\left(p - 1\right)=0 (or both of them equal 0). We will set each factor equal to 0 and solve for pp in each case.

{(p+3)=0,p=3(p1)=0,p=1\begin{cases}\left(p+3\right)=0,\hfill & p=-3\hfill \\ \left(p - 1\right)=0,\hfill & p=1\hfill \end{cases}

This gives us two solutions. The output h(p)=3h\left(p\right)=3 when the input is either p=1p=1 or p=3p=-3. Graph of a parabola with labeled points (-3, 3), (1, 3), and (4, 24). We can also verify by graphing as in Figure 5. The graph verifies that h(1)=h(3)=3h\left(1\right)=h\left(-3\right)=3 and h(4)=24h\left(4\right)=24.

   

Try It

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

Answer: m=8m=8

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+2yx=y+{2}^{y}, if we want to express yy as a function of xx, there is no simple algebraic formula involving only xx that equals yy. However, each xx does determine a unique value for yy, and there are mathematical procedures by which yy can be found to any desired accuracy. In this case, we say that the equation gives an implicit (implied) rule for yy as a function of xx, 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
At times, evaluating a function in table form may be more useful than using equations. Here let us call the function PP. 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 PP at the input value of "goldfish." We would write P(goldfish)=2160P\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 PP 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(3)g\left(3\right).
  2. Solve g(n)=6g\left(n\right)=6.
n 1 2 3 4 5
g(n) 8 6 7 6 8

Answer:

  • Evaluating g(3)g\left(3\right) means determining the output value of the function gg for the input value of n=3n=3. The table output value corresponding to n=3n=3 is 7, so g(3)=7g\left(3\right)=7.
  • Solving g(n)=6g\left(n\right)=6 means identifying the input values, nn, that produce an output value of 6. The table below shows two solutions: n=2n=2 and n=4n=4.
n 1 2 3 4 5
g(n) 8 6 7 6 8
When we input 2 into the function gg, our output is 6. When we input 4 into the function gg, our output is also 6.

Try It

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

Answer: g(1)=8g\left(1\right)=8

Try It

You can use Desmos to graph functions, find function values, and evaluate functions. Watch this short tutorial to learn how. https://youtu.be/jACDzJ-rmsM Now try the following with Desmos:
  1. Graph the function f(x)=12x2+x+4f(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)

Licenses & Attributions