literally, to violently and repeatedly
pound someone on the head so as to dent it in. Figuratively,
beat one's head in is used as a coined variation of
beat one's brains out, meaning to think very
hard in
order to understand something; to
labor strenuously with the
mind.