2

I'm trying to replicate this formula:

enter image description here

Could you please help me put y=(1-\gamma)x+\gamma x as in the picture?

My attempt: M=\max _{x, s, y \in C} \frac{2}{\gamma^{2}}\left(f(y)-f(x)-\nabla f(x)^{T}(y-x)\right)

Thank you so much!

Akira
  • 1,215

2 Answers2

5

Use \substack.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
M=\max _{\substack{x, s, y \in C\\y=(1-\gamma)x +\gamma s}}
   \frac{2}{\gamma^{2}}\left(f(y)-f(x)-\nabla f(x)^{T}(y-x)\right)
\]
\end{document}

enter image description here

  • Don't you think that using \mathclap for the second line of the substack would look better, typographically? – Bernard Mar 02 '20 at 20:44
  • @Bernard - I thought about applying \mathclap to the second line as well; however, the result isn't great as the \gamma s term ends up almost touching the \gamma^2 term in the fraction. – Mico Mar 02 '20 at 20:47
  • 1
    @Bernard I tried to mimic the OP's question, though as Mico notes, in this case, \mathclap doesn't look too hot. – Steven B. Segletes Mar 02 '20 at 20:47
  • If you add \: on each side of the first line, I find it OK – Bernard Mar 02 '20 at 20:49
3

Another option from amsmath is the \overset{above}{below} macro. There is a caveat, though, you have to explicitely add \scriptstyle to the first argument.

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\[
M=\max_{\overset{\scriptstyle x, s, y\in C}{y=(1-\gamma)x+\gamma s}}
   \frac{2}{\gamma^2} \left(f(y)-f(x)-\nabla f(x)^T(y-x)\right)
\]

\end{document}

enter image description here

AboAmmar
  • 46,352
  • 4
  • 58
  • 127