Union in LaTeX (\cup)

∪\cup
LaTeX command
\cup
Package
No package needed: built into LaTeX
Mode
Math mode only
Copy the Unicode character
∪U+222A

Where it is used

Forms the union of sets: all elements that belong to at least one of them.

\cup is a binary operator, as in A \cup B, and gets medium spacing on both sides. For a union over an indexed family, use the large operator \bigcup, which stacks limits in display mode: \bigcup_{i=1}^{\infty} A_i. The disjoint union is often written \sqcup or \dot\cup. In probability, A \cup B corresponds to the event "A or B", giving P(A \cup B) = P(A) + P(B) - P(A \cap B). Do not use the letter U or the logical \lor in place of set union.

Also listed under: 고급 연산자, 집합론

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)
\documentclass{article}
\begin{document}
Union: $\cup$

\[ P(A \cup B) = P(A) + P(B) - P(A \cap B) \]
\end{document}

Related symbols

All 수학 기호 →

Frequently asked questions

How do I write Union in LaTeX?
Type \cup in math mode, for example $P(A \cup B) = P(A) + P(B) - P(A \cap B)$. It works in plain LaTeX without loading any package.
Which package do I need for \cup?
None. \cup is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \cup in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\cup$ in running text. If you only need the glyph in text, paste the Unicode character ∪ instead (with XeLaTeX or LuaLaTeX and a font that has it).
Math poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기