I am presently doing my first substantial piece of mathematical writing, hence this, probably somewhat silly, question.
How does display-style mathematics interact with punctuation?
More precisely, suppose I have an sentence like
From the above considerations, it follows that $a^2 + b^2 = c^2$.
As long as the equation is in one line, it is clear that a dot (".") follows. What happens if the equation is in a separate line? Does the dot remain, as in:
From the above considerations, it follows that $$a^2 + b^2 = c^2.$$
or should it disappear? Also, should I separate the sentence from the equation by some punctuation mark? (e.g. a colon or a comma after "that" in the above sentence)
I would also appreciate it if someone could point me to a good and reliable reference for proper mathematical writing.