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

Study Guides > Boundless Algebra

Introduction to Functions

Functions and Their Notation

A function maps a set of inputs onto a set of permissible outputs. Each input corresponds with one and only one output

Learning Objectives

Connect the notation of functions to the notation of equations and understand the criteria for a valid function

Key Takeaways

Key Points

  • Functions are a relation between a set of inputs and a set of outputs with the property that each input maps to exactly one output.
  • Typically functions are named with a single letter such as f.
  • Functions can be thought of as a machine in a box that is open on two ends. You put something into one end of the box, it somehow gets changed inside of the box, and then the result pops out the other end.
  • All functions are relations, but not all relations are functions.

Key Terms

  • output: The output is the result or answer from a function.
  • relation: A relation is a connection between numbers in one set and numbers in another.
  • function: A function is a relation in which each element of the input is associated with exactly one element of the output.

Functions

In mathematics, a function is a relation between a set of inputs and a set of permissible outputs. Functions have the property that each input is related to exactly one output. For example, in the function f(x)=x2f(x)=x^2 any input for xx will give one output only. Functions are typically named with a single letter, like ff. f(x)f(x) is read " ff of xx", and represents the output of the function ff corresponding to an input xx. The input variable (s) are sometimes referred to as the argument(s) of the function. Consider the following example: Let f(x)=x2f(x)=x^2 Let x=3x=-3, then: f(3)=(3)2\displaystyle f(-3)=(-3)^2 =9\displaystyle =9 In the example above, the argument is x=3x=-3 and the output is 99. We write the function as:f(3)=9f(-3)=9. In the case of a function with just one input variable, the input and output of the function can be expressed as an ordered pair. The order is such that the first element is the argument and the second is the output. In the example above, f(x)=x2f(x)=x^2, we have the ordered pair (3,9)(−3, 9). If both the input and output are real numbers then the ordered pair can be viewed as the Cartesian coordinates of a point on the graph of the function. Another commonly used notation for a function is f:XYf:X\rightarrow Y, which reads as saying that ff is a function that maps values from the set XX onto values of the set YY.

Functions as a Machine

Functions are often described as a machine in a box that is open on two ends. You put something into one end of the box, it gets changed inside of the box, and then the result pops out the other end. The function is the machine inside the box and it's defined by what it does to whatever you put into it.
image Function Machine: A function ff takes an input xx and returns an output f(x)f(x). One metaphor describes the function as a "machine", that for each input returns a corresponding output.

Let's say the machine has a blade that slices whatever you put in into two and sends one half of that object out the other end. If you put in a banana you would get back half a banana. If you put in an apple you would get back half an apple.

image Fruit Halving Function: This shows a function that takes a fruit as input and releases half the fruit as output.

Let's define the function to take what you put into it and cut it in half. That is, the function divides the input by two. If you put in 22 you would get back 11. If you put in 5757 you would get back 28.528.5. The function machine allows us to alter expressions. In this example, the function would be written as:

f(x)=12x\displaystyle f(x)=\frac{1}{2}x.

Functions As a Relation

Functions can also be thought of as a subset of relations. A relation is a connection between values in one set and values in another. In other words, each number you put in is associated with each number you get out. In a function every input number is associated with exactly one output number In a relation an input number may be associated with multiple or no output numbers. This is an important fact about functions that cannot be stressed enough: every possible input to the function must have one and only one output. All functions are relations, but not all relations are functions.

Graphical Representations of Functions

Graphs provide a visual representation of functions, showing the relationship between the input values and output values.

Learning Objectives

Describe the relationship between graphs of equations and graphs of functions

Key Takeaways

Key Points

  • Functions have an independent variable and a dependent variable. Typically xx is the independent variable and yy the dependent variable.
  • As you choose any valid value for the independent variable, the dependent variable is determined by the function.
  • To graph a function, choose some values for the independent variable, xx, plug them into the function to get a set of ordered pairs (x,f(x))(x,f(x)), and plot these on the graph. Then connect the points to best match how the points are arranged on the graph. Make sure you have enough points.

Key Terms

  • dependent variable: The dependant variable in an equation or function is that whose value depends on one or more independant variables in the equation or function.
  • independent variable: An independent variable in an equation or function is one whose value is not dependent on any other in the equation or function.
  • graph: A diagram displaying data; in particular one showing the relationship between two or more quantities, measurements, or numbers.

Independent and Dependent Variables in Function Notation

Functions have an independent variable and a dependent variable. When we look at a function such as f(x)=12xf(x)=\frac{1}{2}x, we call the variable that we are changing, in this case xx, the independent variable. We assign the value of the function to a variable, in this case yy, that we call the dependent variable.  Function notation, f(x)f(x) is read as "ff of xx" which means "the value of the function at xx."  Since the output, or dependent variable is yy, for function notation often times f(x)f(x) is thought of as yy.  The ordered pairs normally stated in linear equations as (x,y)(x,y), in function notation are now written as (x,f(x))(x,f(x)). We say that xx is independent because we can pick any value for which the function is defined, in this case the set of real numbers R\mathbb{R}, as inputs into the function. We say the result is assigned to the dependent variable since it depends on what value we placed into the function.

Graphing Functions

Example 1:  Let's start with a simple linear function: f(x)=552x\displaystyle f(x)=5-\frac{5}{2}x. Start by graphing as if f(x)f(x) is a linear equation: y=552x\displaystyle y=5-\frac{5}{2}x We choose a few values for the independent variable, xx.  Let's choose a negative value, zero, and a positive value: x=2,0,2\displaystyle x=-2, 0, 2 . Next, substitute these values into the function for xx, and solve for f(x)f(x) (which means the same as the dependent variable yy):  we get the ordered pairs: (2,10),(0,5),(2,0)\displaystyle (-2,10), (0,5), (2,0) This function is that of a line, since the highest exponent in the function is a 11, so simply connect the three points. Extend them in either direction past the points to infinity, and we have our graph.
The line has negative slope and has y-intercept 5 and x=intercept 2. Line graph: This is the graph of the function f(x)=552xf(x)=5-\frac{5}{2}x.  The function is linear, since the highest degree in the function is a 11.  Only two points are required to graph a linear function.

Example 2:  Graph the function:

f(x)=x39x\displaystyle f(x)=x^{3}-9x. Start by choosing values for the independent variable, xx. This function is more complicated than that of a line so we'll need to choose more points. Let us choose: x={0,±1,±2,±3,±4}\displaystyle x=\{0, \pm1, \pm2, \pm3, \pm4\}. Next, plug these values into the function, f(x)=x39xf(x)=x^{3}-9x, to get a set of ordered pairs, in this case we get the set of ordered pairs: {(4,28),(3,0)(2,10),(1,8),(0,0),(1,8),(2,10),(3,0),(4,28)}\displaystyle \{(-4, -28),(-3,0)(-2,10),(-1,8),(0,0),(1,-8),(2,-10),(3,0),(4,28)\}. Next place these points on the graph, and connect them as best as possible with a curve. The graph for this function is below.
The cubic polynomial is negative for x-values less than negative 3, then takes the shape of a hill from x = -3 to x = 0 with a peak of around 10 between x = -2 and x = -1. From x = 0 to x = 3 it has a valley shape with the lowest point of about -10 between x = 1 and x = 2, crossing the x-axis at x=3, then continuing up infinitely for x-values greater than 3. Cubic graph: Graph of the cubic function f(x)=x39xf(x)=x^{3}-9x.  The degree of the function is 3, therefore it is a cubic function.

The Vertical Line Test

The vertical line test is used to determine whether a curve on an xyxy-plane is a function

Learning Objectives

Explain why the vertical line test shows, graphically, whether or not a curve is a function

Key Takeaways

Key Points

  • A function can only have one output, yy, for each unique input, xx. If any xx-value in a curve is associated with more than one yy-value, then the curve does not represent a function.
  • If a vertical line intersects a curve on an xyxy-plane more than once, then for one value of x the curve has more than one value of y, and the curve does not represent a function.

Key Terms

  • function: A relation in which each element of the input is associated with exactly one element of the output.
  • vertical line test: A visual test that determines whether a curve is a function or not by examining the number of yy-values associated with each xx-value that lies on the curve.
In mathematics, the vertical line test is a visual way to determine if a curve is a graph of a function, or not. Recall that a function can only have one output, yy, for each unique input, xx. If any xx-value in a curve is associated with more than one yy-value, then the curve does not represent a function. If a vertical line intersects a curve on an xyxy-plane more than once, then for one value of x the curve has more than one value of y, and the curve does not represent a function. If all vertical lines intersect a curve at most once then the curve represents a function.
The top graph, a curved shape which, from left to right, has a peak, twists in as it descends, then a trough, is not a function. Where it twists, a vertical line is shown which crosses the curve at three red points. The bottom graph is a straight line with negative slope, passes the vertical line test, and is a function. Vertical Line Test: Note that in the top graph, a single vertical line drawn where the red dots are plotted would intersect the curve 3 times. Thus, it fails the vertical line test and does not represent a function. Any vertical line in the bottom graph passes through only once and hence passes the vertical line test, and thus represents a function.

To use the vertical line test, take a ruler or other straight edge and draw a line parallel to the yy-axis for any chosen value of xx. If the vertical line you drew intersects the graph more than once for any value of xx then the graph is not the graph of a function. If, alternatively, a vertical line intersects the graph no more than once, no matter where the vertical line is placed, then the graph is the graph of a function. For example, a curve which is any straight line other than a vertical line will be the graph of a function.

Example

Refer to the three graphs below, (a)(a), (b)(b), and (c)(c). Apply the vertical line test to determine which graphs represent functions.
(a) is a cubic polynomial, going up from negative infinity, reaching a peak, descending through the origin, reaching a trough, then ascending to positive infinity. (b) is a line with negative slope. (c) is a circle of radius 3 centered at the origin. Applying the Vertical Line Test: Which graphs represent functions?

If any vertical line intersects a graph more than once, the relation represented by the graph is not a function. Notice that any vertical line would pass through only one point of the two graphs shown in graphs (a)(a) and (b)(b). From this we can conclude that these two graphs represent functions. The third graph, (c)(c), does not represent a function because, at most xx-values, a vertical line would intersect the graph at more than one point. This is shown in the diagram below.

A circle is graphed with a dotted vertical line crossing through two points of the circle, demonstrating that the circle does not pass the vertical line test and is not a function. Not a Function: The vertical line test demonstrates that a circle is not a function.

Licenses & Attributions