to think very hard about sth for a long time
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition