Cudgel One’s Brains (To)
.To make a painful effort to remember or understand something. The idea is from taking a stick to beat a dull boy under the notion that dulness is the result of temper or inattention.
“Cudgel thy brains no more about it; for your dull ass will not mend his pace with heating.”—Shakespeare: Hamlet, v. 1.