Nepedia
Back to Discover
Fluent Reader
🔢

Partial function

math Maturity 7-9 Next article →

In mathematics, a rule that links one set of things to another is called a function. Most of the time, we expect these rules to work for every single item in the first set. When a rule works for every item, we call it a total function.

Total function
Total function

However, some rules have gaps where they simply cannot provide an answer. These special rules are called partial functions. A partial function only works for a specific part of the first set. This working part is known as the domain of definition.

Partial function
Partial function

How does a partial function actually work in practice? It is a way of connecting elements from two different sets. For every item in the first set, the rule gives at most one answer from the second set. If an item has an answer, it is part of the domain of definition. If an item has no answer, the function is said to be undefined. This means the rule is not allowed to work for that specific item. It is a way to handle rules that are not complete.

Partial function
Partial function

History and math theory show us why these gaps matter. In the study of how computers work, we look at recursive functions. These are partial functions that move from integers to other integers. Scientists have found that no algorithm can decide if such a function is actually total. This means we cannot always know if a rule will work for every number. This idea is linked to the famous Halting problem in computer science. It shows that some mathematical truths are very hard to find.

Partial function
Partial function

There are many real examples of these rules in math. One common example is the square root operation on real numbers. You can find the square root of a positive number, but you cannot for a negative one. This makes the square root a partial function. Another example is the natural logarithm function. It is undefined for any number that is not positive. In calculus, we often see partial functions when dividing two different functions. The rule fails if the bottom number is zero.

Partial function
Partial function

You can see these ideas in the world around you. Scientists use partial functions to describe huge, complex shapes called manifolds. They cannot describe a whole shape with one big rule. Instead, they use small patches called charts to cover the surface. Each chart is a partial function that only works on its own little area. By stitching these patches together, they can map out the entire structure. This is how we understand the shape of the universe.

Total function
Total function
425 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:Partial function.svg
Partial function.svg
File:Total function.svg
Total function.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.