The OpenOffice suite includes Math, a program that lets you write equations and other formulas, saving those by default in an ODF format. You can convert those formulas to a PDF by using a converter such as novaPDF, read more about this on the tutorial we created specifically for this subject:
Printing from OpenOffice.org Math to PDF