Open doronbehar opened 3 years ago
Hi,
1/(x^2 + a^2) is a very simple rational function, which integrates to 1/a * arctan(x/a) + c for non-zero, real a. The problem is that it's treated as a general rational function, where presence of parameter(s) makes things quite difficult. The error you get is from the general algorithm for integrating rational functions. I'll try to add some code to integrate well known special cases like this before the general method is attempted.
Why does this not work:
Do I need to declare
a
? Derivation for such an expression does work: