How can you get the argmin or argmax in Latex? Two solutions I found are:

```
\underset{x}{\operatorname{argmax}}
\DeclareMathOperator*{\argmin}{arg\,min}
```

Any other ideas?

[1] http://www.breakthru.altervista.org/?p=27

[2] http://researchonsearch.blogspot.com/2007/05/enter-argmax-argmin-in-latex.html

## Best Answer

As Pieter pointed out, the correct way to define argmin and argmax operators in LaTeX is:

Actually, using the

`amsopn`

package would be sufficient but it's loaded by`amsmath`

internally, which is recommended for math typesetting anyway.The

`*`

in`\DeclareMathOperator*`

places the underscored argument underneath the word rather than to the bottom right of it.