Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Never reveal your best argument.


sci / sci.math.symbolic / what is the correct anti-derivative for 2*cot(2*x) ?

SubjectAuthor
* what is the correct anti-derivative for 2*cot(2*x) ?Nasser M. Abbasi
`- Re: what is the correct anti-derivative for 2*cot(2*x) ?clicliclic@freenet.de

1
Subject: what is the correct anti-derivative for 2*cot(2*x) ?
From: Nasser M. Abbasi
Newsgroups: sci.math.symbolic
Organization: A noiseless patient Spider
Date: Mon, 18 Mar 2024 19:36 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nma@12000.org (Nasser M. Abbasi)
Newsgroups: sci.math.symbolic
Subject: what is the correct anti-derivative for 2*cot(2*x) ?
Date: Mon, 18 Mar 2024 14:36:36 -0500
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <uta545$bcgj$1@dont-email.me>
Reply-To: nma@12000.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Mar 2024 19:36:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="81310e9b0e09d30b2a9ba60ac7939d93";
logging-data="373267"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PxTEDYw4RB7qurMaMLJgy"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:LZtrwtLRmfLOjJRRsKoZoqb02nI=
Content-Language: en-US
View all headers

For int(2*cot(2*x),x)

Maple 2024: -1/2*ln(cot(2*x)^2+1)
MMA 14 : ln(sin(2*x))
Fricas : 1/2*ln( (1-cos(4*x))/2)
giac: log(abs(sin(2*x)))
maxima: ln(sin(2*x))
sympy: ln(sin(2*x))

The plot of these over say x=-4*Pi..4*Pi is not the same.

Maple and Fricas give same plot. But Mathematica gives
differet plot. There are gaps in the plot of ln(sin(2*x))
compared to Maple's and Fricas version.

When differentiating these, I get back the integrand. So
they are all correct in this sense.

This PDF file has the code and the plots.

<https://12000.org/tmp/03182024/different_anti.pdf>

Any comment on which is the better anti-derivative here?

--Nasser

Subject: Re: what is the correct anti-derivative for 2*cot(2*x) ?
From: clicliclic@freenet.d
Newsgroups: sci.math.symbolic
Organization: Killfiles, Unlimited
Date: Sat, 23 Mar 2024 09:09 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.killfile.org!.POSTED.port-92-200-18-246.dynamic.as20676.net!not-for-mail
From: nobody@nowhere.invalid (clicliclic@freenet.de)
Newsgroups: sci.math.symbolic
Subject: Re: what is the correct anti-derivative for 2*cot(2*x) ?
Date: Sat, 23 Mar 2024 10:09:53 +0100
Organization: Killfiles, Unlimited
Message-ID: <65FE9C61.8794A164@nowhere.invalid>
References: <uta545$bcgj$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: flea.killfile.org; posting-host="port-92-200-18-246.dynamic.as20676.net:92.200.18.246";
logging-data="1158188"; mail-complaints-to="news@news.killfile.org"
X-Mailer: Mozilla 4.75 [de] (Win98; U)
X-Accept-Language: de
View all headers

"Nasser M. Abbasi" schrieb:
>
> For int(2*cot(2*x),x)
>
> Maple 2024: -1/2*ln(cot(2*x)^2+1)
> MMA 14 : ln(sin(2*x))
> Fricas : 1/2*ln( (1-cos(4*x))/2)
> giac: log(abs(sin(2*x)))
> maxima: ln(sin(2*x))
> sympy: ln(sin(2*x))
>
> The plot of these over say x=-4*Pi..4*Pi is not the same.
>
> Maple and Fricas give same plot. But Mathematica gives
> differet plot. There are gaps in the plot of ln(sin(2*x))
> compared to Maple's and Fricas version.
>
> When differentiating these, I get back the integrand. So
> they are all correct in this sense.
>
> This PDF file has the code and the plots.
>
> <https://12000.org/tmp/03182024/different_anti.pdf>
>
> Any comment on which is the better anti-derivative here?
>

Derive 6.10 returns LN(SIN(2*x)), like MMA 14, Maxima, and SymPy do.
Along the real axis, the imaginary part of this antiderivative jumps
between zero and pi at each 1/x type pole of the integrand. This is
entirely acceptable in my view.

Maple's -1/2*ln(cot(2*x)^2+1) avoids the jumps on the real axis by
effectively squaring the logarithmic argument. This is nice, but
definite integrals that straddle one of the poles are still meaningless
of course.

The reciprocal of Maple's logarithmic argument is used in the FriCAS
result 1/2*ln((1-cos(4*x))/2), where the trigonometric argument is
doubled rather than the trigonometric function squared. This is just an
equivalent formulation of the Maple antiderivative.

Giac's log(abs(sin(2*x))) needlessly introduces the abs() function
which is not analytic. This should be avoided when the integrand itself
is analytic, as the antiderivative then will not be valid everywhere
on the complex plane. I would prefer it to be avoided even if the
integration variable had been declared real, but others may prefer that
their students not be exposed to an incomprehensible complex unit.

So, all of the results are good in my view, with the exception of that
by Giac.

Martin.

1

rocksolid light 0.9.8
clearnet tor