Max/min function in math

I am looking for a way to write a max (or min) function in Writer’s math mode with ‘subject to’ arguments directly underneath the word “max” (or “min”) rather than as a subscript the usual way.

Example:

max{x} x^2

Here x is supposed appear directly under the word max but in small font (subscript size).

I don’t think that this is possible and I currently write the max function with ‘subject to’ arguments as follows:

“max”_{x} x^2

But perhaps there is a way to do this better…?

This this what you are looking for?

max csub{x} x^2

Yes, thank you!
“max” csub{x}