Nepedia
Back to Discover
Advanced Reader
🔢

Partial function

math Maturity 7-9 Next article →

In mathematics, a function is a rule that connects elements from one set to another. Most standard functions are "total," meaning they provide an output for every single input in the starting set. However, many mathematical rules have gaps where they cannot produce a result. These are known as partial functions. A partial function is a rule from a set to another set that associates every element of the first set with at most one element of the second set.

Partial function
Partial function

To understand how a partial function works, we must look at its domain. The domain of definition, or natural domain, is the specific subset of the first set where the rule actually works. For any element within this subset, the function provides exactly one value. For elements outside this subset, the function is simply undefined. If the domain of definition happens to include every single element in the starting set, the partial function is then called a total function.

Total function
Total function

Partial functions are not just theoretical curiosities; they are essential for handling complexity. Mathematicians often use them when the exact domain is difficult to specify or even unknown. In calculus, partial functions appear frequently through division. For example, the quotient of two functions is a partial function. This is because the rule cannot work if the denominator is zero. In these cases, the rule is often simply referred to as a fraction.

Specific mathematical operations provide clear examples of this concept. Consider the square root operation on the set of real numbers. Because negative real numbers do not have real square roots, the operation is a partial function. Its domain of definition is restricted to non-negative real numbers. Similarly, the natural logarithm function is a partial function because it is undefined for non-positive real inputs. Another example is the subtraction of natural numbers. If you try to subtract a larger number from a smaller one, the result is not a natural number, making the operation partial.

In the field of computer science, partial functions are deeply connected to how machines process information. A partial function might correspond to a subroutine that raises an exception or enters an infinite loop. In computability theory, we study general recursive functions, which are partial functions mapping integers to integers. A significant discovery in this field is that no algorithm can exist to decide if an arbitrary recursive function is actually total. This concept is closely related to the famous Halting problem.

We can also apply the properties of standard functions to partial ones. A partial function can be described as injective, surjective, or bijective. These terms describe how the elements of the domain map to the elements of the codomain. For instance, a partial function is injective if its restriction to its domain of definition is injective. A "partial bijection" is a term used for a partial function that is injective. In abstract algebra, these ideas extend to partial operations, such as multiplicative inversion in a field, which is partial because division by zero is undefined.

Finally, partial functions help scientists describe complex structures in geometry and physics. When studying manifolds and fiber bundles, researchers use tools called charts and atlases. A single chart is often a partial function that only describes a small "patch" of a larger shape. By stitching these local patches together using transition maps, mathematicians can represent complex global topologies. This method allows us to use simple, local rules to understand the structure of vast, intricate systems.

578 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.