We can help you ace GED Math

Login or Sign Up for GED Math Prep

Shaun Ault

GED Math: Evaluating Functions

What are functions? What do they mean when they ask you to evaluate a function at a given number? In this article, we’ll see what functions are all about and how to work with them. These skills will help you to succeed on the GED Mathematics section.

functions as machines

A function is like a machine. If you feed input into it, then the function will do something to that input and generate an output.

Functions — Input and Output

Let’s start with a simple example to help explain the terms and concepts. Consider the following function:

f(x) = 3x + 1

You can tell that we’re dealing with a function because of the notation “f(x).” This notation tells you that the function name is f and the input variable is x. The expression that follows, 3x + 1, is the function definition or rule. That tells you what the function does to its input.

When you evaluate a function at a given number, you simply replace the input variable with that number and work out the numerical value. (This is often called plugging in.)

The notation tells you what to plug in. If you see f(2), then that means you have to substitute 2 in place of x in the function and work out the output value.

For example, let’s find f(2) if f(x) = 3x + 1.

Improve your ged math score. Start your ged prep today

f(2) = 3(2) + 1 = 6 + 1 = 7.

Pretty easy, right?

Tables and Graphs of Functions

We often use the variable y to stand for the output of a function. So we might write y = f(x).

Suppose you want to evaluate a function at multiple input values. You might set up a table to keep track of all of the input and output.

For example, let’s evaluate f(x) = 3x + 1 at -2, -1, 0, 1, and 2.

xy
-23(-2) + 1 = -5
-13(-1) + 1 = -2
03(0) + 1 = 1
13(1) + 1 = 4
23(2) + 1 = 7

Now that we have a table a values, we can go one step further and draw a graph of the function. A graph is a visual display of the input and output values. When you plot the points of a graph, always be sure that your coordinates are in the order (x, y), or in other words, (x, f(x)).

graph of 3x+1

The graph of the function f(x) = 3x + 1. The five points from the table above are labelled. The graph “connects the dots,” providing a more complete picture of the function.

Using the Graph to Evaluate a Function

In fact, the graph can be used to evaluate a function even if you don’t have the function definition explicitly given.

For example, the graph below represents a function y = g(x). What is the value of g(5)?

Graph of a function

This time, we can’t plug x = 5 into anything, because there’s no function definition provided. To solve this, just look for the y coordinate when x = 5. Based on the graph, we find that g(5) = 4.

graph of a function with a point labelled

We see that g(5) = 4 because the point (5, 4) is on the graph.

Graphing is a key topic that shows up in a number of forms on the GED Math section. Check out the following article for a discussion of graphing from a different perspective: GED Math: Data Analysis Questions.

Evaluating Functions at Variable Quantities

Improve your ged math score. Start your ged prep today

Sometimes a problem will ask you to evaluate an expression like f(a + 1) or f(x2). These are more difficult because it’s no longer just “plug in and determine a value.” Instead, you’ll have to use your Algebra skills to simplify the expression. Let’s see how this works by example.

Evaluate f(d – 4) if f(x) = 3x2x + 9.

The first step is similar to what we did above. Replace x by the input quantity. However, instead of a number, you have to “plug in” a variable expression, (d – 4) in this case. Be sure to put parentheses around the expression everywhere in the function.

f(d – 4) = 3(d – 4)2 – (d – 4) + 9

Next, carefully simplify the result. Start by squaring the binomial in the first term.

= 3(d2 – 8d + 16) – (d – 4) + 9

Then use the Distributive Property. Be careful with that minus!

= 3d2 – 24d + 48 – d + 4 + 9

Finally combine like terms.

= 3d2 – 25d + 61

Although it might seem complicated at first, this is just an extension of what you already know from Algebra.

Setting up Functions

Sometimes in a word problem, you may have to set up a function and then evaluate it. For example, suppose that your smartphone provider charges you $25 per month plus $15 per each gigabyte of data used. Write the function that represents the total monthly bill when x gigabytes of data are used.

First think it out! If you didn’t use any data in a given month then you’d still have to pay the monthly fee of $25. Using one gigabyte would raise that bill to $25 + $15 = $40. Two gigabytes would cost $25 + $15 · 2 = $55, and three would cost $25 + $15 · 3 = $70, etc.

So the pattern is: $25 + $15 · (gigabytes used). Or, in function notation, with x = gigabytes of data, you would write your answer as follows:

f(x) = 25 + 15x

That’s all there is to it!

Practice Problems

Ok, are you ready to work a few problems yourself? The following problems are modeled from actual GED Math questions. Good luck!

  1. Find the value of h(-2) if h(x) = 3x2 – 2x + 5.
  2. Improve your ged math score. Start your ged prep today

    A. -11   B. -3   C. 13   D. 21

  3. A car sales representative gets paid $800 per week plus 10% of any sales she makes during that week. Set up a function that calculates the sales representative’s weekly pay, using s for the total sales (in dollars).
  4. A. 800 + 0.1s   B. 0.1 + 800s   C. 800s0.1   D. 800.1s

  5. Evaluate g(t3) if g(t) = t4 – 5t
  6. A. t3 – 5t   B. t12 – 5t3   C. t7 – 5t3    D. (t4 – 5t)(t3)

  7. Which function best represents the ordered pairs of data shown in the table?

    table of function values

    A. f(x) = 2x – 1   B. f(x) = 5x – 7   C. f(x) = x2 – 1   D. f(x) = ½(x + 1)2

bubble sheet

Ready to check your answers?

Answer Key

1. D   2. A    3. B    4. C

Improve your GED math score with Magoosh!
About Shaun Ault

Shaun earned his Ph. D. in mathematics from The Ohio State University in 2008 (Go Bucks!!). He received his BA in Mathematics with a minor in computer science from Oberlin College in 2002. In addition, Shaun earned a B. Mus. from the Oberlin Conservatory in the same year, with a major in music composition. Shaun still loves music -- almost as much as math! -- and he (thinks he) can play piano, guitar, and bass. Shaun has taught and tutored students in mathematics for about a decade, and hopes his experience can help you to succeed!


4 Responses to “GED Math: Evaluating Functions”

  1. Learn quite easily, But I think I need little more practice on graphs

  2. Cynthia says:

    x. y
    6 6
    3 8
    9 12
    ? ?
    Can you help me with the calculation of the functions
    without an equation.
    Thank you

    • Magoosh Test Prep Expert Magoosh Test Prep Expert says:

      Hi Cynthia,

      I think we may be able to help you, but I’m not quite sure what you are asking. Can you please provide more context about this request? Is it an official GED question? With some more context, we may be able to provide you with an answer or point you in the right direction 🙂

Leave a Reply

Magoosh blog comment policy: To create the best experience for our readers, we will approve and respond to comments that are relevant to the article, general enough to be helpful to other students, concise, and well-written! :) If your comment was not approved, it likely did not adhere to these guidelines. If you are a Premium Magoosh student and would like more personalized service, you can use the Help tab on the Magoosh dashboard. Thanks!