あたまをなやます
Meanings
Expression
Verb (5-dan, す)
1. to rack one's brains
And it seems he was racking his brains over this problem.
Composed of
head; hair (on one's head); mind; brains; leader; chief; top
to afflict; to torment; to harass; to molest
Examples (4 in total)
The group racked their brains.
No matter how much you rack your brains, you won't get an answer.
He always troubles himself about minor things.
And it seems he was racking his brains over this problem.