beat one's brains out

/B IY1 T W AH0 N EH0 S B R EY0 N Z AW0 T/
verb
  1. 1

    (informal) to think very hard about.