I finally found a way to use automatic line breaking in long math formulas in LyX from the last post in:
http://stackoverflow.com/questions/2904807/lyx-breaking-long-formula-lines
I soon realized (when I was making beamer class presentations) that my formula was numbered in the generated PDF. Is there a way to get rid of this numbering without ERT?