Composition of functions and substituting

There are many ways of combining functions to creat more complicated functions. We can combine them using algebraic operations (adding, subtracting, multiplying, and dividing), and can substitute one function into another to create a composition.


We can combine functions by adding, subtracting, multiplying or dividing.

f(x) = 3+x^2 and g(x) = sin(x)
  2g(x) + f(x) = "twice sin(x) plus the quadratic" = 2sin(x) + (3+x^2)
  1 + f(x)/g(x) = "one plus the quotient of the quadratic and sin(x)" = 1 + (3 + x^2)/sin(x)


If we substitute one function into another, we can generate functions in which one function can be thought of as "inside" the other.

f(x) = 3+x^2 and g(x) = sin(x)
  f(g(x)) = "three plus the square of sin(x)" = 3 + (sin(x))^2
  g(f(x)) = "the sine of the quadratic" = sin(3 + x^2)

Simple substitutions

When we are using the function notation f(x) and something other than the independent variable alone appears in the parentheses, we are being asked to form a new function by substitution.

f(x) = sqrt(x + 1)   think f( ) = sqrt([ ] + 1)
f(x^3) = sqrt((x^3) + 1)   the inside function is (x^3)
f(2x) = sqrt((2x) + 1)   the inside function is (2x)
f(-x) = sqrt((-x) + 1)   the inside function is (-x)
f(x+h) = sqrt((x+h) + 1)   the inside function is (x+h)
Common errors
Do not confuse substitution with performing algebraic operations on the function itself. The letters and symbols may be the same, but the meaning is very different.

Even though f(3x) and 3f(x) each contain the letter f, the number 3 and the letter x, they describe different operations:

if f(x) = x^2+4   think f( ) = ( )^2 + 4
f(3x) = (3x)^2 + 4   substitute (3x) into f
3f(x) = 3((x)^2 + 4)   multiply f by 3
if g(x) = cos(x)   think g( ) = cos( )
g(x^2) = cos(x^2)   the cosine of (x squared)
g(x^2) = cos(x^2)   the square of (cosine of x)
if f(x) = {1\over x}   think f( ) = 1/( )
f(x+h) = 1/(x+h)   the reciprocal of (x+h)
f(x)+h = 1/x + h   f(x) plus the constant h

Notational conventions

There are times when it is customary to omit parentheses when writing certain functions.

sin x^2 means sin(x^2)
sin^2 x means (sin(x))^2
ln x^4 means ln(x^4)

Difference quotients

One common operation which requires both the composition and the combination of functions comes up in the calculation of slope, where we have:
(difference in y)/(difference in x) = (f(x+h)-f(x))/((x+h)-x) = (f(x+h)-f(x))/h
The expression
is called a difference quotient.

f(x) = 2-x^2
Find and simplify the difference quotient.
In problems like this, be careful to form the composition f(x+h) correctly, and be sure that the minus sign in the numerator is applied to the entire function f(x).

Be sure you've gone through each step in the examples above before doing these. Once you've worked them until you're sure that you understand them, go on to the next section. There are more problems of this type in the section test at the end of the section.

Note that you can get new practice problems by clicking the "Refresh" button at the bottom of the practice set.

  1. Find and simplify the difference quotient
    if f(x) = -3 x + 4.
    (f(x+h)-f(x))/h   =  

    (Enter answers, then click: . Answer message: )
  2. If
    f ( x )   =   c x ^2   +   d x

    Find the difference quotient
    f ( g + h )   -   f ( g )   =   h   +  

    (Enter answers, then click: . Answer message: )
  3. If f(x) = -2 x + 3, find and simplify
    f ( k x )
    k x

    into the form
    a + b x^(m)
    f ( k x )   =  
      +   x
    k x

    (Enter answers, then click: . Answer message: )
For more practice, click: .
next page
section test

precal: 12.1 - composition and subsituting
page created: Sun Mar 26 05:10:16 2017
Comments to math-itc(at)umich(dot)edu
©2003-2007 Gavin LaRose, Pat Shure / University of Michigan Math Dept. / Regents of the University of Michigan