r/askscience • • Nov 24 '15

Mathematics Why can almost any function be easily differentiated while so many functions cannot be integrated or are much more difficult to do so?

123 Upvotes

34 comments sorted by

View all comments

Show parent comment

1

u/bea_bear Nov 25 '15 edited Nov 25 '15

Numerically, it's pretty easy to find derivative from two or more points, or from a simple local equation. But integrating to solve differential equations... People get Ph.Ds and sell software for thousands of dollars solving that problem.

1

u/gaysynthetase Nov 25 '15

May you please expand upon this? Why is integrating a differential equation computationally so difficult? Can we not represent some differential equations with numerical approximations that may be made with arbitrary accuracy?

1

u/Snuggly_Person Nov 27 '15

You normally only have a starting point, and are forced to essentially extrapolate the rest of the solution using the differential equation and some approximation to the derivatives, stepping forward bit by bit and nudging your point around as the equation dictates. Such an extrapolation can get increasingly inaccurate after several steps. You can increase precision with smaller step sizes, but for some problems the step sizes you'd need become totally unreasonable, needing billions of steps to accurately simulate a second of physical motion.

This is different than integrating a known function (or taking its derivatives), where getting more accurate answers for the integral is just a matter of interpolation.