The solution is to do more examples and study other people's solutions, which is very important. There is no topic you don't know at all. Step by step, after you fully understand the simple ones and can draw inferences from others, do the complicated ones. You will certainly understand them.