$ ... $
Single dollar signs around an expression render it inline with surrounding text — same line, same baseline. Use sparingly: complex fractions look cramped at body-text size.
$E = mc^2$Mass–energy equivalence$\alpha + \beta = \gamma$Greek letters$P(A \mid B) = \dfrac{P(B \mid A) P(A)}{P(B)}$Bayes — display fraction inline$x_i^2 + y_i^2 = r^2$Subscripts and superscripts