Function

Pronunciation: /ˈfʌŋk.ʃən/ Explain

Box labeled 'function' with an arrow going into the box labeled 'input' and an arrow coming out of the box labeled 'output'.
Figure 1: Function

A function can be considered like a box with an input and an output.[2] For each input that goes into the box, a single output comes out of the box. See figure 1. For any particular input that goes into the box, the same output always comes out of the box.

Box labeled 'x^2' with an arrow going into the box labeled '5' and a arrow coming out of the box labeled '25'.
Figure 2: Function f(x)=x2

In figure 2, the function is labeled y = x2. 'y = x2' is the rule for transforming the input into the output. For any number input into the function, square the number to get the output. Note that every time the number 5 is input into the function, the number 25 is the output. The input of 5 will generate only the output of 25.

Box labeled 'g(x)={(a,b), (b,c), (c,d), (d,e), (e,a)}' with an arrow going into the box labeled 'x' and a arrow coming out of the box labeled 'g(x)'.
Figure 3: Function g(x)={(a,b), (b,c), (c,d), (d,e), (e,a)}

Functions are defined mathematically as a set of ordered pairs. The first value in the ordered pair is the input, and the second value is the output. The ordered pair for the function in figure 3 would be (5,25). 5 is the input and 25 is the output. For a function, the first value can not be repeated. Notice this allows exactly one output for each input.

The definition of a function as a set of ordered pairs allows us to define functions that do not use numbers. Take the set {a, b, c, d, e}. If the function g(x) is defined as g(x) = {(a,b), (b,c), (c,d), (d,e), (e,a)}, one can tell what comes out of the function given what goes in. If a is the input, b is the output.

For many functions, using an enumerated set of ordered pairs to define the function is not practical, since there are infinitely many inputs and outputs. A rule is typically used in these cases. A rule can define infinitely many ordered pairs without having to list each ordered pair.

Box labeled 'function' with an arrow going into the box labeled 'Independent Variable' and an arrow coming out of the box labeled 'Dependent Variable'.
Figure 4: Function

Box labeled 'f(x)=x^2' with an arrow going into the box labeled 'Independent Variable' and an arrow coming out of the box labeled 'Dependent Variable'.
Figure 5: Function

In the algebra of real numbers, functions are defined using variables. The input is called the independent variable. The output is called the dependent variable. A particular value of the independent variable, or input, generates exactly one value of the dependent variable.

One example of an algebraic function is y = x2. x is independent variable. x can be any number which can be squared. So x is independent of anything else. y is the dependent variable. The value of y depends on the value of x. For example: If x = 5, y = 25. When x is 5, y can not be anything but 25. This is because the function states y = x2, so y must always be the square of x.

Function Notation

The function f(x)=3x+2 showing that f(x) is the dependent variable, x is the independent variable and 3x+2 is the transformation rule.
Figure 6: Function notation

Function notation is commonly used way to write down functions. In the example in figure 6, x is the independent variable, f is the function name, f(x) is the dependent variable, and 3x + 2 is the rule for transforming x to f(x). See also Function Notation.

Domain and Range of Functions

Each function has a domain and a range. The domain is all the values that the independent variable can take. See Domain for more information. The range is all the values that the dependent variable can take. See Range for more information.

Representations of Functions

Functions can be represented in many ways. Table 1 shows the most common ways.

RepresentationDescription
{(1,3), (2,7), (4,-5)} A set of ordered pairs where the first value is the input and the second value is the output.
f(n) where n is a positive integer and f(n) is the nth Fibonacci number. A written description.
y = 3x + 2 An equation with an independent variable and a dependent variable
f(x) = x2 Function notation
A graph of y=x^2 A graph where the horizontal axis represents the independent variable and the vertical axis represents the dependent variable.
xf(x)
14
27
3-2
46
A table where one column or row represents the independent variable. Another column or row represents the dependent variable.
Table 1: Representations of functions

Operations on Functions

Functions that are defined over real numbers can be added, subtracted, multiplied and divided just like numbers. Also, functions can be composed.

OperationDefinitionAssociativityCommutativity
Addition (f + g)(x) = f(x) + g(x) (f + (g + h))(x) = ((f + g) + h)(x) (f + g)(x) = (g + f)(x)
Subtraction (f - g)(x) = f(x) - g(x) (f - (g - h))(x) = ((f - g) - h)(x) (f - g)(x) (g - f)(x)
Multiplication (f · g)(x) = f(x) · g(x) (f · (g · h))(x) = ((f · g) · h)(x) (f · g)(x) = (g · f)(x)
Division (f ÷ g)(x) = f(x) ÷ g(x) (f ÷ (g ÷ h))(x) = ((f ÷ g) ÷ h)(x) (f ÷ g)(x) (g ÷ f)(x)
Composition (f ° g)(x) = f(g(x)) (f ° (g ° h))(x) = ((f ° g) ° h)(x) (f ° g)(x) (g ° f)(x)
Table 2: Summary of operations on functions.

Addition and Subtraction of Functions

Addition of functions is defined as (f + g)(x) = f(x) + g(x). To add two functions, add all like terms from each function. Addition of functions of real numbers is associative: (f + (g + h))(x) = ((f + g) + h)(x). Addition of functions of real numbers is commutative: (f + g)(x) = (g + f)(x).

StepEquationsDescription
1f(x)=3x^2-2x+5, g(x)=x^3+3x-3These are the functions to add.
2(f+g)(x)=(3x^2-2x+5)+(x^3+3x-3) where 3x^2-2x+5=f(x) and x^3+3x-3=g(x)Use the definition of function addition to create the new function.
3(f+g)(x)=x^3+3x^2-2x+3x+5-3Use the commutative property of addition to place the terms of the new function in order of degree.
4(f+g)(x)=x^3+3x^2+(-2+3)x+5-3Use the distributive property of multiplication over addition and subtraction to start to combine like terms.
5(f+g)(x)=x^3+3x^2+x+2Simplify the addition.
Table 3: Addition of functions

To subtract two functions, subtract all like terms from each function. The definition of function subtraction is (f - g)(x) = f(x) - g(x). Subtraction of functions is associative: (f - (g - h))(x) = ((f - g) - h)(x). Subtraction of functions is not commutative: (f - g)(x) ≠ (g - f)(x).

StepEquationsDescription
1p(x)=3sin(x)-cos(x), q(x)=sin(x)+2cos(x)These are the functions to subtract.
2(p-q)(x)=3sin(x)-cos(x)-(sin(x)+2cos(x))Use the definition of function subtraction to form the new function.
3(p-q)(x)=3sin(x)-cos(x)-sin(x)-2cos(x)Distribute negation over the second function.
4(p-q)(x)=3sin(x)-sin(x)-cos(x)-2cos(x)Use the commutative property of addition to place the terms of the new function in order of degree.
5(p-q)(x)=(3-1)sin(x)+(-1-2)cos(x)Use the distributive property of multiplication over addition and subtraction to start to combine like terms.
6(p-q)(x)=2sin(x)-3cos(x)Simplify the addition.
Table 4: Subtraction of functions

Multiplication of Functions

To multiply two functions, multiply each term of the first function by each term of the second function. Function multiplication is defined as (f · g)(x) = f(x) · g(x). Multiplication of functions of real numbers is associative: f(x) · (g(x) · h(x)) = (f(x) · g(x)) · h(x). Multiplication of functions of real numbers is commutative: f(x) · g(x) = g(x) · f(x).

StepEquationsDescription
1m(x)=x^2-2, n(x)=-2x+3These are the functions to multiply.
2(m*n)(x)=(x^2-2)*(-2x+3)Use the definition of function multiplication to form the new function.
3(m*n)(x)=x^2*(-2x)+x^2*3+(-2)*(-2x)+(-2)(3)Multiply each term from the first function times each term from the second function. Since both of these functions are binomials, use the FOIL method.
4(m*n)(x)=-2x^3+3x^2+4x+(-6)Simplify the multiplication.
5(m*n)(x)=(f*g)(x)=-2x^3+3x^2+4x-6Simplify the parentheses.
Table 5: Multiplication of functions

Division of Functions

To divide functions, create a fraction with the dividend in the numerator and the divisor in the denominator. Simplify the fraction, if possible. The definition of function division is:
(f/g)(x)=f(x)/g(x), g(x)!=0.
Division of functions of real numbers is associative: f(x)/(g(x) / h(x)) = (f(x) / g(x)) / h(x). Division of functions of real numbers is not commutative: f(x) / g(x) ≠ g(x) / f(x).

StepEquationsDescription
1f(x)=2x^2+5x^2-x-6, g(x)=x^2+5x+6These are the functions to divide.
2(f/g)(x)=(2x^2+5x^2-x-6)/(x^2+5x+6)Use the definition of function division to form the new function.
3(f/g)(x)=((x-1)(x+2)(2x-3))/((x+2)(x+3))Find common factors for the numerator and denominator.
4(f/g)(x)=((x-1)(2x-3))/((x+3))Eliminate common factors.
5(f/g)(x)=(2x^2+x-3)/(x+3)Rewrite the function using polynomials in standard form.
Table 6: Division of functions

Composition of Functions

Composition of functions is taking the function of a function. For example, if f(x) = x2 + 1, and g(x) = x - 2, then the composition of f(x) and g(x), written f°g(x) is f(g(x)) = (x - 2)2 + 1 = (x2 - 4x + 2) + 1 = x2 - 4x + 3. Composition of functions of real numbers is associative: f°(g°h)(x) = (f°gh(x). Composition of functions of real numbers is not commutative: f°g(x) ≠ g°f(x).

StepEquationsDescription
1f(x)=3x^2-2, g(x)=sin(5x)These are the functions to compose.
2(f°g)(x)=3(sin(5x))^2-2Use the definition of composition to compose the two functions.
3(f°g)(x)=3sin^2(5x)-2Simplify the expression.
2(g°f)(x)=sin(5(3x^2-2))Now find g°f. Use the definition of composition to compose the two functions.
3(g°f)(x)=sin(15x^2-10)Simplify using the distributive property of multiplication over addition and subtraction.
Table 7: Composition of functions

References

  1. McAdams, David E.. All Math Words Dictionary, function. 2nd Classroom edition 20150108-4799968. pg 83. Life is a Story Problem LLC. January 8, 2015. Buy the book
  2. Fine, Henry B., Ph. D.. Number-System of Algebra Treated Theoretically and Historically. 2nd edition. pg 44. www.archive.org. D. C. Heath & Co., Boston, U.S.A.. 1907. Last Accessed 7/11/2018. http://www.archive.org/stream/thenumbersystemo17920gut/17920-pdf#page/n53/mode/1up/search/function. Buy the book
  3. Goldrei, D.C.. Classic Set Theory: For Guided Independent Study. pp 4-5. Chapman & Hall Mathematics. July 1, 1996. Last Accessed 7/11/2018. Buy the book
  4. Gilbert, Jimmie; and Gilbert Linda. Elements of Modern Algebra. 6th edition. pp 12-25. Thomson, Brooks/Cole. 2005. Last Accessed 7/11/2018. Buy the book

More Information

  • McAdams, David E.. Domain. allmathwords.org. All Math Words Encyclopedia. Life is a Story Problem LLC. 3/12/2009. http://www.allmathwords.org/en/d/domain.html.

Cite this article as:

McAdams, David E. Function. 4/21/2019. All Math Words Encyclopedia. Life is a Story Problem LLC. http://www.allmathwords.org/en/f/function.html.

Image Credits

Revision History

4/21/2019: Modified equations and expression to match the new format. (McAdams, David E.)
12/21/2018: Reviewed and corrected IPA pronunication. (McAdams, David E.)
7/9/2018: Removed broken links, updated license, implemented new markup, implemented new Geogebra protocol. (McAdams, David E.)
2/5/2010: Added "References". (McAdams, David E.)
3/10/2009: Clarified definition of function notation. (McAdams, David E.)
2/11/2009: Added section on operations on functions. (McAdams, David E.)
8/2/2008: Rewrote entire article. (McAdams, David E.)
8/20/2007: Add this revision history. (McAdams, David E.)
7/12/2007: Initial version. (McAdams, David E.)

All Math Words Encyclopedia is a service of Life is a Story Problem LLC.
Copyright © 2018 Life is a Story Problem LLC. All rights reserved.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License