I am dealing with some PDE and ODE and have the following doubt:
I know that for many equations I do not have an analitical solution, so the numerical solution is a great manner to study them. However, I've already seen numerical solution in presence of the analitical one.
Why would this be important? I mean, if I have an analitical solution of a PDE, ODE, why I would like to have a numerical solution?
Moreover, all the numerical solution must be similar to the analitical one? Is it possible that not?
Many thanks.
Usually, you don't need a numerical solution if you have the analytical solution. Occasionally, your analytical solution may contain special functions, and comparison with a numerical solution could be used to validate the implementation of the special functions, but this is a stretch.
Typically, numerical solutions depend on a parameter (mesh size, time step,...) which must be chosen small enough, and only if it is small enough will the numerical solution approximate the true solution. Is it possible for numerical solution software to spit out a "solution" that does not approximate the true solution? Yes, and this happens all the time, but it means that something has gone wrong somewhere.