Hello Olga,
"What is the difference between ways 1 and 3?"
Ok, good question. My text was not clear, let me clarify. When listing those 4 methods I thought that method 3 is solved numerically. Of course, if you can solve PDE analytically/in closed-form then it falls to case of method 1...