[Tex/LaTex] How to write something vertically below another math symbol

math-mode

I have to write some equations in latex, but I'm having trouble finishing them.

Image 1

My Latex equation for image 1:

\widehat{f}(x,y)=median \left\{g(s,t)\right\}

Image 2

My Latex equation for image 2:

A\oplus B = U A_{b}

How can I make a subscript below the formulas?

Best Answer

You want

\hat{f}(x,y) = \underset{(s,t)\in S_{xy}}{\mathrm{median}} \{g(s,t)\}

And

A \oplus B = \underset{b\in B}{\cup} A_b

The important things being:

  • \underset which takes two arguments, the first is put under the second.
  • \mathrm to make median appear upright and differentiate it from a multiplication of 6 variables named m, e, d, i, a, and n.
  • \{ and \} need backslashes because { and } are part of the LaTeX base language.
  • \cup which is a nicer symbol for a union.