Nepedia
Back to Discover
Independent Reader
🔢

Function composition

math Maturity 11-13 Next article →

In math, a function is a rule. It takes an input and gives an output. Sometimes, you can link two rules together. This is called function composition.

Example for a composition of two functions
Example for a composition of two functions

Think of it like a chain of steps. You use the first rule to get an answer. Then, you use that answer as the input for the second rule. For example, a plane's height changes with time. Air pressure also changes with height. You can link these rules. This tells you the air pressure at a specific time.

SVG skew and rotation
SVG skew and rotation

Order is very important. Doing the steps in a different order can change the result. This is why composition is not always commutative. Commutative means the order does not matter. But for most functions, it does.

Absolute value composition
Absolute value composition

You can even use the same rule many times in a row. This is called iteration. If you use a rule twice, it is like a functional square. Mathematicians use these chains to study complex patterns. They help us understand how things change over time.

167 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Example for a composition of two functions.svg
Example for a composition of two functions.svg
File:Absolute value composition.svg
Absolute value composition.svg
File:SVG skew and rotation.svg
SVG skew and rotation.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.