Nepedia
Back to Discover
Fluent Reader
🔢

Surjective function

math Maturity 11-13 Next article →

Imagine you have a group of targets and a handful of arrows. To make a surjective function, you must hit every single target at least once. In math, a function connects two groups. The first group is called the domain. The second group is called the codomain.

Codomain2
Codomain2

A function is surjective if every part of the codomain has a match from the domain. No target can be left empty or lonely. It is okay if one target gets hit by two different arrows. The main goal is to cover the entire target area completely.

This idea works like a covering. The name comes from the French word "sur," which means over or above. This tells us the matches spread over the whole codomain. You can think of it as a way to fill a space. If you have a function that does not cover everything, you can make it surjective. You do this by shrinking the codomain to only include the parts that were actually hit. This smaller area is called the image.

Codomain2
Codomain2

Every function can be broken down into a surjection and an injection.

Many people helped develop these mathematical ideas. A group of mainly French mathematicians used the name Nicolas Bourbaki. They were not one person, but a group using a single name. They began writing books about advanced math in 1935. These books helped explain modern ideas clearly. They introduced the terms surjective, injective, and bijective. These names help mathematicians talk about how groups connect to each other.

There are many ways to see surjection in math. For example, the function f(x) = 2x + 1 is surjective for all real numbers. This is because you can find an x for any y you choose. However, the function g(x) = x squared is not surjective for all real numbers. This is because no real number squared will ever equal negative one.

Codomain2
Codomain2

In a 3D video game, computers use a surjective function to project 3D objects onto a flat 2D screen. This ensures the whole screen is part of the mapping.

Surjections also follow special rules about size and order. A surjective function must have a domain that is at least as large as its codomain. You need enough items in the first group to cover the second group. If you combine two surjective functions together, the result is always surjective too.

Codomain2
Codomain2

Some mathematicians also study how many different ways you can create these functions. They use special tools like Stirling numbers to count them. This helps us understand the deep patterns hidden in groups of numbers.

428 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Codomain2.SVG
Codomain2.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.