Inconsistency between derivative and indefinite integral of a function

asked 2026-06-12 22:00:06 +0200

NS gravatar image

updated 2026-06-16 22:06:12 +0200

Max Alekseyev gravatar image

.

f(x)=a*x^2 b 
fp=derivative(f)

works and produces

x|->2ax

as it shlould. But

af=integral(f)

does not work. It requires

af(x)=integral(f,x)

This feels inconsistent. Why does it work this way?

edit retag flag offensive close merge delete

Comments

Looks like a deficiency in the integral functionality, which could have used the main variable of ffor integration. Please report at https://github.com/sagemath/sage/issues

Max Alekseyev gravatar imageMax Alekseyev ( 2026-06-21 21:20:48 +0200 )edit