Is there anyone here that knows why people dream what they dream? Sadly I have been having some really messed up nightmares. All of them are during the morning before I wake up. In a couple of my dreams I try to solve some formula or prove something that relates to real life (when it actually doesn't). For example the other night I was trying to show that a set was measurable and had measure zero as a way seeing if someone loved me or not. Some other dreams I had are similar but the worst one by far was a dream from which I woke up in tears and got really depressed. Why do I keep getting messed up dreams? These seem to be increasing in frequency.