Function Composition

Functions
definition

Also known as: composite function, f∘g

Grade 9-12

View on concept map

Function composition applies one function to the output of another: (f \circ g)(x) = f(g(x)), meaning evaluate g first, then apply f to the result. Complex functions are often built from simpler ones composed together.

This concept is covered in depth in our function composition explained, with worked examples, practice problems, and common mistakes.

Definition

Function composition applies one function to the output of another: (f \circ g)(x) = f(g(x)), meaning evaluate g first, then apply f to the result.

πŸ’‘ Intuition

Chain two machines togetherβ€”output of the first goes into the second.

🎯 Core Idea

Composition chains functions in sequence: the output of g feeds directly into f as its input. Order matters: f \circ g \neq g \circ f in general.

Example

f(x) = x^2, g(x) = x + 1.
(f \circ g)(x) = f(g(x)) = (x + 1)^2 = x^2 + 2x + 1.

Formula

(f \circ g)(x) = f(g(x))

Notation

(f \circ g)(x) denotes f composed with g: apply g first, then f to the result.

🌟 Why It Matters

Complex functions are often built from simpler ones composed together.

πŸ’­ Hint When Stuck

Work inside-out: first evaluate g(x) to get a number, then plug that number into f. Write each step separately.

Formal View

(f \circ g)\colon X \to Z defined by (f \circ g)(x) = f(g(x))\;\forall x \in X, where g\colon X \to Y and f\colon Y \to Z

Related Concepts

🚧 Common Stuck Point

f(g(x)) \neq g(f(x)) in general. Composition is not commutative.

⚠️ Common Mistakes

  • Evaluating f(g(x)) by applying f first β€” in f \circ g, apply g first and then f to the result
  • Assuming f(g(x)) = g(f(x)) β€” composition is NOT commutative; order matters
  • Multiplying f(x) \cdot g(x) instead of composing β€” f(g(x)) means substitute g(x) into f, not multiply

Frequently Asked Questions

What is Function Composition in Math?

Function composition applies one function to the output of another: (f \circ g)(x) = f(g(x)), meaning evaluate g first, then apply f to the result.

Why is Function Composition important?

Complex functions are often built from simpler ones composed together.

What do students usually get wrong about Function Composition?

f(g(x)) \neq g(f(x)) in general. Composition is not commutative.

What should I learn before Function Composition?

Before studying Function Composition, you should understand: function definition.

Prerequisites

Next Steps

How Function Composition Connects to Other Ideas

To understand function composition, you should first be comfortable with function definition. Once you have a solid grasp of function composition, you can move on to inverse function.

Want the Full Guide?

This concept is explained step by step in our complete guide:

Functions and Graphs: Complete Foundations for Algebra and Calculus β†’

Visualization

Static

Visual representation of Function Composition