dream up vs rack brains

dream up

verb
  • To have an imaginative, unusual or foolish idea, to invent something unreal. 

rack brains

How often have the words dream up and rack brains occurred in a corpus of books? (source: Google Ngram Viewer )