Math

The arg max and arg min functions are not standard as math functions in LaTeX. As a result, they are not straightforward to use in Lyx either. However, it is quite simple to do so:

Add the following code to the LaTeX preamble in Lyx (Document > Settings > LaTeX Preamble):

0

1

2

3

4

\usepackage{amsmath}

\DeclareMathOperator*{\argmax}{arg\,max}

\DeclareMathOperator*{\argmin}{arg\,min}

When you create a new math field in Lyx, simply type \argmax or \argmin. You can follow it by an underscore if you need text below the arg max or arg min functions. This text will be centered across all six letters.