If you plan on going to graduate school in the sciences, I strongly suggest that you prepare your HW solutions using a document preparation software, e.g. Latex. If you are a graduate student now, it is a requirement. Find out about the mathematics document preparation software LaTeX.
Example LaTeX files can be downloaded here.
Example LaTeX commands can be downloaded here.