login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #314 Wrong answer for integrate(2*atan(x)/(1+x^2),x) revision 1 of 8

1 2 3 4 5 6 7 8
Editor:
Time: 2007/11/17 22:25:13 GMT-8
Note: Yes, it is related to #293

changed:
-
The antiderivative should be $\atan(x)^2$, however:
\begin{axiom}
integrate(2*atan(x)/(1+x^2),x)
D(%,x)
D(atan(x)^2,x)
\end{axiom}

Maybe this is related to bug #293, i.e., Axiom choosing the wrong branch of $\atan$, or #141?

From kratt6 Tue Aug 29 04:55:37 -0500 2006
From: kratt6
Date: Tue, 29 Aug 2006 04:55:37 -0500
Subject: Yes, it is related to #293
Message-ID: <20060829045537-0500@wiki.axiom-developer.org>

Look at 
\begin{axiom}
f x == 2*atan(x)+atan(2*x/(x^2-1))
\end{axiom}
Differentiating, we see that $f$ is constant
\begin{axiom}
D(f x, x)
\end{axiom}

However, $f$ is not continuous at 1, and indeed,
\begin{axiom}
numeric f(%pi)
\end{axiom}

Drawing  the function makes the situation quite clear...



Submitted by : (unknown) at: 2007-11-17T22:25:13-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

The antiderivative should be LatexWiki Image, however:

axiom
integrate(2*atan(x)/(1+x^2),x)
LatexWiki Image(1)
Type: Union(Expression Integer,...)
axiom
D(%,x)
LatexWiki Image(2)
Type: Expression Integer
axiom
D(atan(x)^2,x)
LatexWiki Image(3)
Type: Expression Integer

Maybe this is related to bug #293, i.e., Axiom choosing the wrong branch of LatexWiki Image, or #141?

Yes, it is related to #293 --kratt6, Tue, 29 Aug 2006 04:55:37 -0500 reply
Look at
axiom
f x == 2*atan(x)+atan(2*x/(x^2-1))
Type: Void

Differentiating, we see that LatexWiki Image is constant

axiom
D(f x, x)
axiom
Compiling function f with type Variable x -> Expression Integer
LatexWiki Image(4)
Type: Expression Integer

However, LatexWiki Image is not continuous at 1, and indeed,

axiom
numeric f(%pi)
axiom
Compiling function f with type Pi -> Expression Integer
LatexWiki Image(5)
Type: Float

Drawing the function makes the situation quite clear...