LaTeX Arrow Symbols & Mappings
Complete reference for logical implications (\implies, \iff), function mappings (\mapsto), and directional harpoons. 1-click copy and instant editor opening.
Arrows: Logic, Mappings, and Transformations
Arrows carry meaning, and each shape says something different. Single-shaft arrows (\rightarrow, \leftarrow) describe direction, limits, and function domains — f: X \rightarrow Y reads as "f maps X to Y." Double-shaft arrows (\Rightarrow, \Leftarrow) assert logical implication: "P implies Q." Mixing them up is one of the most common errors in student writing.
For formal proofs, prefer the amsmath spacing variants:\implies and \iff add the extra space that\Rightarrow and \Leftrightarrow lack, so x > 0 \implies x^2 > 0 reads cleanly. Element-wise behavior gets its own arrow: \mapsto shows what happens to a specific input (x \mapsto x^2), while\hookrightarrow marks an injective embedding and\twoheadrightarrow a surjection.
Long arrows (\longrightarrow,\Longrightarrow,\longleftrightarrow) span wider expressions without breaking alignment, and harpoons (\rightharpoonup,\rightleftharpoons) denote partial mappings and chemical equilibria. Negations follow a pattern — prefix with "n" (\nrightarrow,\nLeftarrow) — so you rarely need to hunt for the "does not imply" form.
Arrows in LaTeX FAQ
What is the difference between \Rightarrow and \implies?▼
\Rightarrow creates a standard double right arrow (⇒). In the amsmath package, \implies adds extra mathematical spacing around the arrow and renders a longer double arrow (⟹) recommended for formal proofs and logical consequences.
How do I denote function mappings with \mapsto vs \rightarrow?▼
In mathematics, \rightarrow indicates the function signature between sets (e.g., f: X \rightarrow Y), while \mapsto indicates what happens to a specific element (e.g., x \mapsto x^2).
How do I represent chemical equilibrium in LaTeX?▼
Use \rightleftharpoons for standard two-way equilibrium arrows (⇌) or \leftrightharpoons from the amssymb package.
How do I write long arrows in LaTeX?▼
Prefix standard arrow names with "long", such as \longrightarrow (⟶), \longleftarrow (⟵), \Longrightarrow (⟹), and \longleftrightarrow (⟷).