Integration vs differentiation (2024)

Integration is hard! Integration is generally much harder thandifferentiation. This little demo allows you to enter a function andthen ask for the derivative or integral. You can alsogenerate random functions of varying complexity.Differentiation is typically quite easy, taking a fraction of a second.Integration typically takes much longer, if the process completes at all!
The point? If integration seems hard - that's because it really is!This demo shows that to be the case from a purely algorithmic perspective.

$$f'(x)=...$$

computation time:

$$\int f(x) dx = ...$$

computation time:

Comments

This webpage implements a simple form that interfaces a program that lives on my webserver written using Python and SymPy. Sympy, it should be said, is not a particularly powerful computer algebra system when compared to a commercial system like Mathematica or even an open source system like Maxima. Those systems are typically much faster and can integrate more functions. The main advantage of sympy in the context here is that it is very easy to use as a library. Furthermore, it amply illustrates the main point that integration is much harder than differentiation in a computationally quantifiable way.
Integration vs differentiation (2024)
Top Articles
Latest Posts
Article information

Author: Jerrold Considine

Last Updated:

Views: 6040

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Jerrold Considine

Birthday: 1993-11-03

Address: Suite 447 3463 Marybelle Circles, New Marlin, AL 20765

Phone: +5816749283868

Job: Sales Executive

Hobby: Air sports, Sand art, Electronics, LARPing, Baseball, Book restoration, Puzzles

Introduction: My name is Jerrold Considine, I am a combative, cheerful, encouraging, happy, enthusiastic, funny, kind person who loves writing and wants to share my knowledge and understanding with you.