(Also rack one's brains) to think very hard about something. Example: I've racked my brain all day long, but I still can't remember where I put the keys.