I found out why some errors were coming up.

The derivitive might not be defined where an equation is.