Composite function

A composite function is formed when the output of the first function becomes the input of the second function.

Let f and g be functions and let x be the input of g. Then, g(x)  is the output of function g.

g(x) is the input of function f and the output of function f is f(g(x))

f(g(x) is the composite function of f and g and it is defined as (f ∘ g)(x) = f(g(x))


We can also let x be the input of f. Then, f(x)  is the output of function f.

f(x) is the input of function g and the output of function g is g(f(x))

g(f(x) is a composite function of g and f and it is defined as (g ∘ f)(x) = g(f(x))


Example

Let f(x)  = x + 5 and let g(x) = x2 

Find g ∘ f and f ∘ g

To find g ∘ f, we need to let x be the input of f.

g ∘ f(x) = g(f(x)) = g(x + 5)

Now this is when it is tricky! g(x) = x2

Notice that after we do the composition of functions g and f, x is replaced with x + 5 in g(x). We need to do the same thing with x2 and replace x with x + 5

g(f(x))   =     g(x + 5)    =     (x + 5)2

                                     =   x2 + 5x + 5x + 25

                                     = x2 + 10x + 25

To find f ∘ g, we need to let x be the input of g.

f ∘ g(x) = f(g(x)) = f(x2)

f(x) = x + 5

Notice that after we do the composition of functions f and g, x is replaced with x2 in f(x). We need to do the same thing with x + 5 and replace x with x2

f(g(x))   =    f(x2)    =  x2  + 5

Be careful ! g(f(x)) is not equal to f(g(x)) although it may in some cases.




Recent Articles

  1. How to Derive the Equation of an Ellipse Centered at the Origin

    Mar 13, 19 11:50 AM

    Learn how to derive the equation of an ellipse when the center of the ellipse is at the origin.

    Read More

New math lessons

Your email is safe with us. We will only use it to inform you about new math lessons.

            Follow me on Pinterest


Math quizzes

 Recommended

Scientific Notation Quiz

Graphing Slope Quiz

Adding and Subtracting Matrices Quiz  

Factoring Trinomials Quiz 

Solving Absolute Value Equations Quiz  

Order of Operations Quiz

Types of angles quiz


Tough algebra word problems

Tough Algebra Word Problems.

If you can solve these problems with no help, you must be a genius!

Recent Articles

  1. How to Derive the Equation of an Ellipse Centered at the Origin

    Mar 13, 19 11:50 AM

    Learn how to derive the equation of an ellipse when the center of the ellipse is at the origin.

    Read More

K-12 math tests


Everything you need to prepare for an important exam!

K-12 tests, GED math test, basic math tests, geometry tests, algebra tests. 

Real Life Math Skills

Learn about investing money, budgeting your money, paying taxes, mortgage loans, and even the math involved in playing baseball.