I want to use a function as variable of integration for example in evaluating the integral over:
e^(cos(x))f(sin(x))dcos(x)
in which f(x) is an arbitrary function.
How can I change the variable of integration such that I integrate over dcos(x), instead of dx (as is default)?
EDIT:
When evaluating an integral such as a*x+b, one can evaluate it in the following way:
def f(x,a,b):
return a*x+b
print quadrature(f,0,1,args=(2,3))
In this example the variable of integration is dx, but now I want to change the variable of integration to a function, such as x**2 (I know this can be solved analytically, but I want to apply it so a function that is not analytically solvable.), or cos(x).