To strain one's memory or mental effort in order to remember something or find a solution to a problem.
Examples:
- I've been racking my brain trying to recall where we put the key.
Origin: First recorded 1583 as 'rack one's wit'
Synonyms: cudgel one, , , s brains out