# data[].attributes.attachment_link.readable_text
"Function Composition" is applying one function to the results of another:

The result of f() is sent through g()

Which means: g(f(x))

"x" is just a placeholder. To avoid confusion let's just call it "input":
f(input) = 2(input)+3 g(input) = (input)²
Let's start:

First we apply f, then apply g to that result:

What if we reverse the order of f and g?

First we apply g, then apply f to that result:
We get a different result!
When we reverse the order the result is rarely the same.

So be careful which function comes first.

Symbol

The symbol for composition is a small circle:

It is not a filled in dot: (g · f)(x), as that means multiply.

Composed With Itself

We can even compose a function with itself!

Example: f(x) = 2x+3

First we apply f, then apply f to that result:

(f º f)(x) = 2(2x+3)+3 = 4x + 9

We should be able to do it without the pretty diagram:

Domains

It has been easy so far, but now we must consider the Domains of the functions.

The domain is the set of all the values that go into a function.

The function must work for all values we give it, so it is up to us to make sure we get the domain correct!

Example: the domain for √x (the square root of x)

We can't have the square root of a negative number (unless we use imaginary numbers, but we aren't), so we must exclude negative numbers:

The Domain of √x is all non-negative Real Numbers

On the Number Line it looks like:

Using set-builder notation it is written:

{ x ∈ | x ≥ 0}

Or using interval notation it is:

[0,+∞)

It is important to get the Domain right, or we will get bad results!

Domain of Composite Function

We must get both Domains right (the composed function and the first function used).

When doing, for example, :

Make sure we get the Domain for f(x) right,

Then also make sure that g(x) gets the correct Domain

The Domain of f(x) = √x is all non-negative Real Numbers

The Domain of g(x) = x² is all the Real Numbers

The composed function is:

Now, "x" normally has the Domain of all Real Numbers ...

... but because it is a composed function we must also consider f(x),

So the Domain is all non-negative Real Numbers

Why Both Domains?

Well, imagine the functions are machines ... the first one melts a hole with a flame (only for metal), the second one drills the hole a little bigger (works on wood or metal):

So what happens "inside the machine" is important.

De-Composing Function

We can go the other way and break up a function into a composition of other functions.

Example: (x+1/x)²

That function can be made from these two functions:

f(x) = x + 1/x

And we get:

This can be useful if the original function is too complicated to work on.

Summary

"Function Composition" is applying one function to the results of another.

(g º f)(x) = g(f(x)), first apply f(), then apply g()

We must also respect the domain of the first function

Some functions can be de-composed into two (or more) simpler functions.

561,562,2427, 2428, 563,564,1195,1196,2429, 2430

# data[].attributes.attachment_link.description
Math explained in easy language, plus puzzles, games, quizzes, worksheets and a forum. For K-12 kids, teachers and parents.