Problem:

Find an indefinite integral (which can vary by a constant) of the following function:

$-21 x^2 \sin \left(7 x^3+9\right)-40 x^4 \cos \left(3-8 x^5\right)$

from sympy import *

x = symbols('x')
f = -21*x**2*sin(7*x**3+9)-40*x**4*cos(3-8*x**5)
print(integrate(f, x))
