I'm writing \max_{some very long subscript} = f(x) within an \begin{align*} \end{align*} environment. The subscript is very long, so I want to write it on multiple lines under max.
I looked into this post here, but I could not get it to work in the align* environment.
\begin{align*}
max_{some very long subscript} &= f(x)\\
max_{some other very long subscript} &= g(x)
\end{align*}
