Most of what weโve done so far has been focused on finding exact solutions to differential equations, like \(y(t) = e^{-3t} \sin(2t)\text{.}\) This kind of solution is called an analytic solution, or sometimes a closed-form solution. It is valuable because it expresses \(y(t)\) as a formula-like structure that you can plug in any value of \(t\) and instantly get the exact \(y\) value.
simply do not have a tidy closed-form solution. In those cases, we switch tools. Instead of searching for an exact formula, we use a numerical method. A numerical method doesnโt hand you \(y(t)\) as a formulaโit builds an approximation, one step at a time, starting from what you know and using the differential equation to predict what happens next. The result is a numerical solution.
In this section, weโll explore what numerical solutions are, why theyโre useful, and how they differ from analytic solutions. Understanding this distinction is essential for the computational methods weโll develop in later sections.
The analytic solution gives a smooth curve for every \(t\text{.}\) The numerical solution gives dotsโa sequence of approximations. Connect those dots and you get a picture of the solutionโs shape, even though no formula was found.
Numerical solutions are approximations. They carry small errors, but in exchange, they let us handle equations that analytic methods canโt touch. This trade-off between perfect precision and practical usefulness is at the heart of numerical methods.
At first glance, analytic solutions might seem โbetterโ than numerical ones. But there are important reasons why numerical methods arenโt just usefulโtheyโre essential:
Many equations simply donโt have a closed-form solution.