Use $...$ for inline math and $$...$$ for block math.