Functions

Surjective Function

Students connect threads to every peg in a target row.

Surjective Function definition

A function is surjective, or onto, if each element of its codomain is the output of at least one input.

In Spanish
función sobreyectiva
Topic
Relations and mappings

Surjective Function in a picture

Surjective Function diagramBoth target letters are reached, even though one is reached twice.Domain: {1, 2, 3}Three possible inputs1 → a, 2 → a, 3 → bEvery target is reachedCodomain: {a, b}The function is onto
Both target letters are reached, even though one is reached twice.

How it works

For f: A → B, take any b in B and ask whether f(a) = b has a solution in A. The function is onto if it does for every b. More than one input may produce the same output. The codomain is part of the test.

Worked examples

Is f: ℝ → ℝ, f(x) = x + 2, onto?

Yes. For any y, choose x = y − 2.

Is f: ℝ → ℝ, f(x) = x², onto?

No. Negative outputs are absent.

Is f: ℝ → [0, ∞), f(x) = x², onto?

Yes. For any y ≥ 0, choose x = √y.

Common mistake

Look at whether all outputs in the codomain are reached. Repeated outputs can still occur.

Quick check

What is another name for a surjective function?

Show answer

An onto function.

Can two different inputs have the same output?

Show answer

Yes.

Can a codomain element be missed?

Show answer

No.

Sources

Flashcard

Surjective Function

Reveal the definition

A function is surjective, or onto, if each element of its codomain is the output of at least one input.

Effortless Math. “Surjective Function.” Math Dictionary.