you can use MS Word, also Open Office software package (which is open source)
If you are using Microsoft Office you can use its equation editor to write mathematical text. If you are using Open Office, equations could be entered as an object using the insert menu (insert---->object----->formula). Then there is LaTeX a typesetting language which could be used to produce mathematical text (LaTeX - Wikipedia, the free encyclopedia).