Indefinite Integral

Indefinite Integral - Wrong result when computing indefinite integral with sqrt(x) using Maple in SMath Studio - Mensajes

#1 Publicado: 18/10/2025 13:05:39
SERGIO MARQUES DE SOUZA

SERGIO MARQUES DE SOUZA

0 me gusta en 5 mensajes.

Grupo: User

Hello everyone,

I’m trying to calculate an indefinite integral.sm (4,58 KiB) descargado 1025 vez(es).in SMath using the Maple plugin, as shown in the attached file.
However, the correct result should be:


6t^2-2*t^(3/2)


and I can’t get this result from Maple inside SMath — it returns a different expression instead.

Could someone please help me understand why this happens or how to make the Maple integration work properly?

Thank you in advance.

Sérgio Marques

#2 Publicado: 18/10/2025 15:12:20
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

Hi. The default variable in Maple is complex, hence the difficulties when requesting simplifications. However, this syntax makes it somewhat lacking in rigor, which can lead to incorrect results. Therefore, it should be used with caution.

image.png

Another way is to use assume in maple, but I don't know how to do it from SMath.

Best regards.
Alvaro.
A 1 usuarios les gustó este mensaje
SERGIO MARQUES DE SOUZA 19/10/2025 10:48:27
#3 Publicado: 18/10/2025 19:12:46
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

The Maxima kernel asks in such cases for the sign of the limit, the interface catches the question and responds with "yes". In the result, a corresponding message is included.

You can avoid the message using assume().

In the maple plugin this would require to inject assume and the integration in a single maple call, as the maple session does not persist between the calls, while the Maxima session is persistent in the background. There are pros and cons with that approach.

indefinite integral.sm (7,02 KiB) descargado 1041 vez(es).

grafik.png

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 3 usuarios les gustó este mensaje
Alvaro 18/10/2025 21:04:09, SERGIO MARQUES DE SOUZA 19/10/2025 10:48:38, sergio 19/10/2025 14:36:31
#4 Publicado: 18/10/2025 21:57:15
overlord

overlord

600 me gusta en 1.381 mensajes.

Grupo: Moderator

Ummm, maple did it already correct.
Just change optimization to none.

2025-10-19_00-56.png
A 4 usuarios les gustó este mensaje
sergio 19/10/2025 14:36:39, SERGIO MARQUES DE SOUZA 19/10/2025 10:48:49, NDTM Amarasekera 19/10/2025 1:08:26, Alvaro 19/10/2025 0:39:04
#5 Publicado: 19/10/2025 10:57:13
SERGIO MARQUES DE SOUZA

SERGIO MARQUES DE SOUZA

0 me gusta en 5 mensajes.

Grupo: User

Hello

It really was enough to change Optimization > None for the result to appear correctly.

Thank you very much, everyone!

  • Nuevos mensajes
  • Sin mensajes nuevos