Numerical integration¶
The antiderivative of ex is, of course, itself. That makes evaluation of ∫10exdx by the Fundamental Theorem trivial.
The Julia package QuadGK
has a good all-purpose numerical integrator that estimates the value numerically without finding the antiderivative first. As you can see here, it’s often just as accurate.
The numerical approach is far more robust. For example, esinx has no useful antiderivative. But numerically it’s no more difficult.
When you look at the graphs of these functions, what’s remarkable is that one of these areas is the most basic calculus while the other is almost impenetrable analytically. From a numerical standpoint, they are practically the same problem.