se creuser la cervelle

Verb

 * 1)  to rack one's brain, to cudgel one's brain, to put one's thinking cap on