Maximize in LaTeX (\max_{x})

max⁡x\max_{x}
LaTeX command
\max_{x}
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Maximum over x: the largest value the expression attains as x ranges over its domain.

\max_{x} works like \min_{x}: the predefined operator places limits underneath in display style and to the side inline. Typical uses are the dual function, minimax problems such as \min_G \max_D in GAN training, and margin maximization in SVMs. When the supremum may not be achieved, \sup is the correct operator. Combining operators is common, and TeX handles stacked limits on adjacent \min and \max well. You can override placement with \limits or \nolimits, and add \, or \; before the objective for breathing room in long expressions.

Minimal compilable example

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

min⁡Gmax⁡D  E[log⁡D(x)]+E[log⁡(1−D(G(z)))]\min_{G} \max_{D} \; \mathbb{E}[\log D(x)] + \mathbb{E}[\log(1 - D(G(z)))]
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Maximize: $\max_{x}$

\[ \min_{G} \max_{D} \; \mathbb{E}[\log D(x)] + \mathbb{E}[\log(1 - D(G(z)))] \]
\end{document}

Related symbols

All Optimalisatie →

Frequently asked questions

How do I write Maximize in LaTeX?
Type \max_{x} in math mode, for example $\min_{G} \max_{D} \; \mathbb{E}[\log D(x)] + \mathbb{E}[\log(1 - D(G(z)))]$. It works in plain LaTeX without loading any package.
Which package do I need for \max_{x}?
None. \max_{x} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \max_{x} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\max_{x}$ in running text.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen