To dream of a math formula represents a solution to a waking life problem that you may be aware of. It may also reflect a method or system you are using. A course of action that you feel always works. Feeling that you can do something perfect every time.
Alternatively, the dream may reflect your frustrations with trying to find a solution to a problem or follow someone else’s advice.