If you cudgel your brains it means you are thinking hard.