I've just discovered that the Comprehensive LaTeX Symbols list has a fascinating section on different symbols used for the same concept (Section 3)
mirror.ox.ac.uk/sites/ctan.org

A Mastodon instance for maths people. The kind of people who make $\pi z^2 \times a$ jokes.

Use $ and $ for inline LaTeX, and $ and $ for display mode.