rack brain

rack (one's) brain(s)

To struggle to recall or think of something. I've been racking my brain, but I still can't remember what Lydia's husband's name is. He racked his brains all weekend trying to think of a solution to the problem.
See also: rack
Farlex Dictionary of Idioms.

rack one's brain(s)

Fig. to try very hard to think of something. I racked my brains all afternoon, but couldn't remember where I put the book. Don't waste any more time racking your brain. Go borrow the book from the library.
See also: brain, rack
McGraw-Hill Dictionary of American Idioms and Phrasal Verbs.

rack (one's) brain

Informal
To think long and hard: I racked my brain for hours trying to recall her name.
See also: brain, rack
American Heritage® Dictionary of the English Language, Fifth Edition.

rack one's brain, to

To strain to remember something or discover a solution. The rack here is the medieval instrument of torture on which the victim’s body was stretched until it broke. The idea is old; “we break our brains for naught” comes from 1530. The word “rack” came into use about 150 years later.
See also: rack
The Dictionary of Clichés by Christine Ammer
See also:
  • rack (one's) brain(s)
  • rack brains
  • rack one's brain
  • rack your brains
  • wrack (one's) brain(s)
  • wrack brains
  • rack one's brain, to
  • brains
  • cudgel (one's) brains
  • cudgel your brain