Composite Functions

Learn how to combine two functions to create a new function using composition.

Advanced25 minLesson

Definition

A composite function is created when one function is applied to the result of another function. We write this as or , read as "f of g of x."
Key Idea: In , we first evaluate , then use that result as the input for .
Important: Order matters! in general.

Try it now

If and , what is ?

Worked Examples

If and , find .

1

Understand the notation

First find , then apply

2

Evaluate the inner function

3

Substitute into outer function

4

Calculate final answer

Common Mistakes

Confusing with

Why it's wrong: The circle notation means composition, not multiplication. , which substitutes into .

Correct: means apply first, then . Multiplication is a completely different operation.

Getting the order backwards

Why it's wrong: In , you might think comes first because it appears first.

Correct: Read inside out: means is applied first, then .

Assuming

Why it's wrong: Unlike multiplication, composition is NOT commutative in general.

Correct: Always check both orders. Usually .

Interactive Visual

Linear Function Explorer

y = x
Slope (m)1
Y-Intercept (b)0
b
run
rise

Interactive Sandbox

Interactive Grapher

Try these examples:

y = 2x + 1

m=2, b=1

Expression Calculator

Try these:

History

No calculations yet

Practice Problems

16 problems
Problem 1 of 16
Easy

If and , what is ?

Why It Matters

Composite functions are essential for:
  • Modeling Complex Processes: A temperature conversion from Celsius to Fahrenheit, then to Kelvin, is a composition of two functions
  • Computer Science: Nested function calls like `print(len(str(x)))` are composite functions
  • Economics: Calculating total cost involves composing unit cost with quantity functions
  • Calculus: The Chain Rule for derivatives is based on understanding composite functions
Think of it like following GPS directions: first go to the store (function ), then from the store go home (function ). The order matters!

Real World Applications

Unit Conversion Chains

Converting between measurement units often requires composing multiple conversion functions.

Example:

To convert miles to meters: first convert miles to kilometers with , then kilometers to meters with . So meters.

1Try It Yourself

A European car speedometer shows kilometers per hour. You need to convert to meters per second. Function converts km to m. Function converts per hour to per second.

If a car travels at 90 km/h, what is its speed in m/s?

Step 1: Write the mathematical expression

Calculate :

Computer Programming

Nested function calls in programming are composite functions.

Example:

In Python, `len(str(n))` counts the digits of a number. Here converts to string, and counts characters.

2Try It Yourself

A program uses to add a bonus, and to double a score. The composed function first doubles, then adds bonus.

If a player's base score is 45, what is the final score after applying ?

Step 1: Write the mathematical expression

Calculate :

Key Takeaways

  • 1A composite function applies first, then to the result
  • 2Order matters: is usually NOT equal to
  • 3To evaluate, work from the inside out: first compute the inner function
  • 4Composition is different from multiplication:

Frequently Asked Questions

Think "inside out." In , is inside, so it's applied first. Then is applied to that result. The function closest to goes first.
Think "inside out." In , is inside, so it's applied first. Then is applied to that result. The function closest to goes first.
The range (outputs) of the inner function must be in the domain (allowed inputs) of the outer function. For example, if and , then is undefined because and we can't take the square root of a negative number.
Yes! Simply substitute the entire expression for wherever you see in . Then simplify the result.

Glossary

Composite function
A function formed by applying one function to the result of another, written or
Inner function
In , the inner function is evaluated first
Outer function
In , the outer function is applied to the result of
Function composition
The operation of combining two functions where the output of one becomes the input of the other

More in This Topic