Menu

A Function of Itself

Part of the Functions & Transformations section of Coddy's Algebra 2 journey. Lesson 23 of 58.

A function can be composed with itself. h(h(x)) means: apply h, then apply h again to the output. Take h(x) = 3x - 1 and work out h(h(1)). First h(1) is 2. Then h(2) is 5.

Written out, the inner call comes first and gives h(3(1) - 1), the outer one 3(3(1) - 1) - 1, and the arithmetic finishes it: 3(2) - 1, then 5.

Do not confuse this with squaring or doubling. (h(1))^2 is 4 and 2h(1) is 4, but h(h(1)) is 5. Applying a rule twice means running the second pass on the first pass's output, the way a loop feeds each result back in.

challenge icon

Challenge

For f(x) = 2x - 3, work out f(f(2)). Tap Use f(x) = ... twice, the inner call first, then type the arithmetic line by line.

Try it yourself

f(f(2))

Simplify the expression

quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Functions & Transformations