\longmapsto

The \longmapsto command in LaTeX is used to produce a long arrow with a mapsto symbol, typically used in mathematical functions to denote mapping from one set to another.

Examples

Function mapping x to x squared

f : x \longmapsto x^2

Mapping from group G to group H

\varphi : G \longmapsto H

Mapping each element x to x plus one

x \longmapsto x + 1