ELI5: Explain Like I'm 5

Simple function

Let's pretend you have a toy box with different shapes, like circles, squares, and triangles. You can sort your toys by their shape and put all the circles together, all the squares together and all the triangles together. This is like a simple function, where you take different things and organize them based on some rule, like their shape.

In math, a simple function works in a similar way. You take numbers or equations and organize them based on a rule. For example, you might have a rule that says "add 3 to any number" and you apply this rule to each number you have. So if you had the numbers 1, 2, and 3, you would apply the rule and get 4, 5, and 6. This is the result of the function.

Functions can get more complicated, but they all follow this basic idea of taking something and organizing it according to a rule.
Related topics others have asked about: