Sometimes, when I have a difficult problem, I will spend time reading up as much on the principles of the problem and then go to bed.
Sometimes, I wake up with the answer.