Nepedia
Back to Discover
Fluent Reader
🔢

Function (mathematics)

math Maturity 7-9 Vital Level 3 Next article →

Imagine you have a machine that follows a specific rule. You drop one thing into the machine, and it gives you exactly one thing back. In mathematics, this rule is called a function. A function connects two different sets of things. The first set, which contains all the possible inputs, is called the domain. The second set, which holds the possible results, is called the codomain.

Function machine2
Function machine2

A function is special because it is very predictable. Every single item from the domain must link to exactly one item in the codomain. If one input could lead to two different outputs, it would not be a function anymore.

Injection keine Injektion 1
Injection keine Injektion 1

To understand how this works, think about how we name these connections. We often use a letter like $f$ to name the function. When we want to show an input, we use a symbol like $x$. We write this as $f(x)$, which we read as "$f$ of $x$." The $x$ is called the argument or the variable. The result that comes out is called the image.

Gerade
Gerade

You can also use a math expression to define a function. For example, a function might take a number and square it. If you put the number three into that function, the result is nine.

Xto3minus3x
Xto3minus3x

People have been thinking about these rules for a very long time. Early mathematicians like Isaac Newton, Gottfried Leibniz, and Leonhard Euler studied how quantities change. They used these ideas to build calculus at the end of the 17th century. Back then, they mostly looked at smooth and regular changes. It was not until the end of the 19th century that math became more formal. Scientists used set theory to create a very strict definition for functions. This new way of thinking allowed math to be used in many more ways.

Sine cosine one period
Sine cosine one period

Functions can be very simple or very complicated. Some functions only work for certain numbers, which are called partial functions. For these, we talk about a "domain of definition" to show which inputs actually work. We can also have functions with more than one input. A bivariate function uses two inputs at the same time. For example, the position of a car depends on both time and speed.

Binary operations as black box
Binary operations as black box

These many-input functions are very important for describing the real world.

We use functions to see patterns in almost everything. One way to see a function is to draw a graph. A graph is a set of pairs that shows how the inputs and outputs relate. When we use real numbers, the graph looks like a curve or a line on a plane.

Example Function
Example Function

This helps us visualize how things change over time. Scientists and engineers use these graphs to study everything from planets to motor vehicle deaths. Functions are truly the central tools for investigating math and science.

Motor vehicle deaths in the US
Motor vehicle deaths in the US
466 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (12)
File:Function machine2.svg
Function machine2.svg
File:Example Function.png
Example Function.png
File:Injection keine Injektion 2a.svg
Injection keine Injektion 2a.svg
File:Injection keine Injektion 1.svg
Injection keine Injektion 1.svg
File:Binary operations as black box.svg
Binary operations as black box.svg
File:Motor vehicle deaths in the US.svg
Motor vehicle deaths in the US.svg
File:Motor vehicle deaths in the US histogram.svg
Motor vehicle deaths in the US histogram.svg
File:Gerade.svg
Gerade.svg
File:Polynomialdeg2.svg
Polynomialdeg2.svg
File:Sine cosine one period.svg
Sine cosine one period.svg
File:Function with two values 1.svg
Function with two values 1.svg
File:Xto3minus3x.svg
Xto3minus3x.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.