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 最適化 →

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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得