Hacker News new | past | comments | ask | show | jobs | submit login
Did you know that there's an algorithm for symbolic integration that always works? (wikipedia.org)
50 points by amichail on May 1, 2009 | hide | past | favorite | 16 comments



Hmm. The article says it's not really an algorithm, because one of the steps requires checking if an expression is equivalent to zero, a problem that isn't today known to be decidable. Anyone here knowledgeable enough to supply details?

Edit: found the details in amichail's link. Yes, it's true; the algorithm isn't complete as of today.


The algorithm will find the answer if one exists or tell you that there is no answer possible.

I wonder why it's never mentioned in high school Calculus classes. Symbolic integration as presented there looks very magical -- not algorithmic at all. You might mistake it for an AI problem (which it was for a while).


Learning a complicated algorithm to deterministically answer a question doesn't really help you understand the subject better in your first year of calculus. I'd rather have classes focus on different ways of understanding the simple parts of the subject, like the different applications of integrating polynomials or simple trig functions. Or even simpler stuff, like ways to think about functions other than a graph of x versus y. Or other ways to intuitively understand why d(f(2x)) = 2f'(2x). Or the relation between integration and big-O notation.

An intuitive understand of integration by parts is more valuable for a math student than this algorithm. (Although I doubt most high school calculus students could explain integration by parts a year later.)


An intuitive understand of integration by parts is more valuable for a math student than this algorithm. (Although I doubt most high school calculus students could explain integration by parts a year later.)

Symbolic integration has a "problem solving" feel to it in high school and teachers generally focus on this part -- making many students feel stupid in the process if they can't figure it out.

Why not just tell them there's an algorithm for it and allow them to use a program to do the symbolic integration whenever necessary while solving an applied problem?


I would say that learning "problem solving" is more important than learning how to type a formula into integrals.wolfram.com (which you should certainly use if you have an actual applied problem). Plus, if you want to go on to multivariable calculus you will need to understand the principles rather than just being able to get an answer to an integration.

I agree that calculus seems too "magical". But we should solve that by explaining more of the intuition and heuristics behind solving calculus problems, rather than teaching people to solve problems by brute force.


There's plenty of problem solving left in the applied stuff.

And not everyone who takes Calculus in high school goes on to learn multivariable calculus. High school Calculus should be more applied IMO.


Guys, stop downvoting posts just because you disagree with them. If you have something to add to the discussion, add it. Parent was not abusive or off-topic or otherwise deserving of downmodding.


Yes, I did know that the Risch algorithm existed; and I've implemented it (or at least most of it).

I wonder why it's never mentioned in high school Calculus classes.

Because there's no way in hell that you want to ever apply the Risch algorithm by hand. As the wikipedia page says, it takes more than 100 pages to describe the algorithm; even just using it to compute the integral of x + 1/x would probably take hours without a computer.


But rather than focus on symbolic integration done by hand in high school, why not focus on higher level problem solving involving symbolic integration done by computer?


Integration itself is quite a bit of problem solving itself, and much more fundamentally understandable.

I'd rather students understand the fundamentals of that integration than have a computer apply an algorithm they don't understand. You can construct problems plenty complicated enough in intro calculus courses for students without resorting to functions they can't integrate with the methods they learn.


Have you looked at the syllabus of a numerical analysis course recently? There is plenty to learn at that level, even for students who had an exceptionally good calculus course beforehand.


Funny, I just forwarded this to my numerical analysis prof. we mostly studied solutions based on laplace in my course, but this is quite interesting (as it appeals to my inner hacker)


Another disappointing limitation that nobody has mentioned yet: this only works for elementary functions with integrals that are elementary functions. If you try to get this thing to integrate exp(x^2) dx, it will (correctly) say that there is no elementary integral. But the integral exists, and it's quite possible to find an infinite series solution, or to define the solution in terms of the erf function.

So, this is cool but not all it's cracked up to be.

http://en.wikipedia.org/wiki/Elementary_function_(differenti...


You could define a new function to represent the answer where there would be none otherwise, but that's not particularly useful unless that function is important in numerous other contexts.

And btw, the algorithm has been extended to handle some non-elementary functions.



Yeah lol.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: