In the program below, SymPy does not seem to understand that the integrand is the derivative of a product. Is there a way to make it return u*v
?
import sympy
x = sympy.symbols('x', real=True)
u = sympy.Function('u')
v = sympy.Function('v')
print((u(x) * v(x)).diff(x).integrate(x))
Prints:
> Integral(u(x)*Derivative(v(x), x) + v(x)*Derivative(u(x), x), x)
(u*v).diff(x).integrate(x)
and got the same output. – Taxiplaneintegrate
function to make it possible... – Skew