The following formula appears in the Stanford ML Course:

'Above' example

How do I express this format, in which minimize is in line with the J(...) expression, and directly above the Thetas?

I tried looking for a similar example in the LaTeX/Mathematics book, but did not notice anything similar.


1 Answer 1


enter image description here

The * form here gives the "limits" setting with the subscript below.



  • Fantastic. Works like a charm, but being a newbie, I fail to understand the code. Would you please be able to further explain how and why it works, or even paste a link so I can further read?
    – Adam Matan
    Mar 19, 2017 at 12:32
  • @AdamMatan basically what you ask for is standard behaviour for "math operators` eg \sum where the subscript is placed under the operator in display mode. amsdoc amsmath will give you the documentation of the amsmath package command I used. Mar 19, 2017 at 13:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.