LaTeX command

Cases Environment \begin{cases}...\end{cases}

Create a piecewise definition

When to use Cases Environment

Create a piecewise definition In source, start from the exact \begin{cases}...\end{cases} command instead of imitating the rendered glyph with Unicode characters or manual spacing. This keeps the expression editable and gives the renderer enough structure to apply mathematical spacing correctly.

Syntax

\begin{cases}...\end{cases}

The documented syntax belongs to amsmath. Keep every required argument, brace pair, and environment boundary intact when moving the command between an editor, Markdown processor, notebook, or publishing system.

Example

f(x)=\begin{cases}x&x\ge0\\-x&x<0\end{cases}

Rendered output

piecewise absolute value

Copy and compatibility checks

  • Copy \begin{cases}...\end{cases} exactly; changing its case or removing a leading backslash can turn it into plain text.
  • Confirm that the destination loads amsmath before relying on this command.
  • Render the example once, then inspect grouping, limits, scripts, and spacing before publishing.

Reuse, attribution, and correction

Share this reference without losing its source

Copy a citation, permanent link, Markdown link, or self-contained embed card. Each reusable format points readers back to the maintained canonical page.

Report an issue

Search the whole reference

Symbols, formulas, guides, tools and commands

Start typing to search.

move · Enter open · Esc close