The just released version 4.13 is now available on Rubi's website at
http://www.apmaths.uwo.ca/~arich/. Unlike previous versions, Rubi 4.13 is able to find an elementary antiderivative for Martin's first integration exercise (but not yet the rest).
As Richard recommends, Rubi first reduces the problem to the two integrands
1/((2 - x^2) (x^2 - 1)^(1/4)) and x/((2 - x^2) (x^2 - 1)^(1/4)). The obvious substitution u=x^2 makes the latter integration relatively trivial.
Using partial fractions the former integrand can be expanded into two integrands of the form 1/((d+e x) (a+c x^2)^(1/4)). As noted by Martin, in 1777 Leonhard Euler provided the basis for integrating such pseudo-elliptic integrands in his paper indexed E688 in The Euler Archive at
http://eulerarchive.maa.org/.
On page 104 of E688, the antiderivative of 1/((1+x) (2 x^2-1)^(1/4)) is given, expressed in modern notation, as
1/2 arctan((2 x^2-1)^(1/4)/(1+x-sqrt(2 x^2-1))) +
1/4*log((1+x+sqrt(2 x^2-1)-(2 x^2-1)^(1/4))/
(1+x+sqrt(2 x^2-1)+(2 x^2-1)^(1/4)))
This formula can be generalized for integrands of the form
1/((d+e x) (a+c x^2)^(1/4)) when c d^2+2 a e^2=0 and a<0 to
1/(2 (-a)^(1/4) e)*
arctan((-1-c x^2/a)^(1/4)/(1-c d x/(2 a e)-sqrt(-1-c x^2/a))) +
1/(4 (-a)^(1/4) e)*
log((1-c d x/(2 a e)+ sqrt(-1-c x^2/a)-(-1-c x^2/a)^(1/4))/
(1-c d x/(2 a e)+ sqrt(-1-c x^2/a)+(-1-c x^2/a)^(1/4)))
Since 2 d/((d^2-e^2 x^2) (a+c x^2)^(1/4)) equals
1/((d+e x) (a+c x^2)^(1/4)) + 1/((d-e x) (a+c x^2)^(1/4)),
using the above formula twice and combining the resulting arctan and log terms gives the antiderivative Rubi 4.13.1 uses for integrands of the form 1/((a+b x^2)^(1/4) (c+d x^2)) when b c-2 a d=0 and a<0. If a is not less than 0, piecewise constant extraction is used to make it so.
So for the antiderivative of (a+b x)/((2-x^2) (x^2-1)^(1/4)) (Martin's first integration exercise), Rubi 4.13.1 returns
-b*ArcTan[(-1+x^2)^(1/4)] +
b*ArcTanh[(-1+x^2)^(1/4)] -
a/(4*Sqrt[2])*
ArcTan[(2*Sqrt[2]*x*(-1+x^2)^(1/4))/(x^2-2*Sqrt[-1+x^2])] +
a/(8*Sqrt[2])*
Log[(x^2+2*Sqrt[2]*x*(-1+x^2)^(1/4)+2*Sqrt[-1+x^2])/
(x^2-2*Sqrt[2]*x*(-1+x^2)^(1/4)+2*Sqrt[-1+x^2])]
I'm curious to know if Leonhard and Martin consider it optimal...
Finally, I must take issue with Richard's statement:
> Even if you think that the symbolic form is more general,
> if you are going to evaluate it at some value for x, consider
> whether it wouldn't be better to evaluate the integral rather
> than the elliptic functions.
>
> Of course doing a symbolic integral has a magical quality
> to it, but where should system builders spend their time?
As Martin makes clear, these exercises are pseudo-elliptic integrals, meaning they can be expressed in terms of elementary, non-elliptic functions. And as the antiderivatives given above show, they are relatively simple expressions easy to evaluate numerically.
Thus in order to take full advantage of THE Fundamental Theorem of Calculus, I think system implementers should spend some time and effort finding antiderivatives that are real and continuous on the real line, at least where the integrand is real and continuous; and of course valid throughout the complex plane...
Albert