I'm new to Mathematica and I'm trying to integrate this function:
K = Function[{x,theta},
((b - x^3 (d/(Cos[theta])^2 - b/x)^3) (e - 2 b/x)^3/(((b - x^3 (e - 2 b/x)^3)
(d/(Cos[theta])^2 - b/x)^3))) Sin[theta]]
from $\theta = 0$ to $\theta = \pi$ and from $x = c$ to $x = \frac{f \cos^2(\theta)}{a + \cos^2(\theta)}$ by executing this command:
Integrate[K, {theta, 0, Pi}, {x, c, f((Cos[theta])^2)/(a + (Cos[theta])^2)}].
However, when I do this, the output is $\pi \left(-\left(\left(\sqrt{\frac{a}{a+1}}-1\right) f+c\right)\right) Function\left(\{x,\text{theta}\},\frac{\sin (\text{theta}) \left(\left(e-\frac{2 b}{x}\right)^3 \left(b-x^3 \left(\frac{d}{\cos ^2(\text{theta})}-\frac{b}{x}\right)^3\right)\right)}{\left(b-x^3 \left(e-\frac{2 b}{x}\right)^3\right) \left(\frac{d}{\cos ^2(\text{theta})}-\frac{b}{x}\right)^3}\right)$
What is the meaning of the Function
part of this result?
The result seems like it's a product of the constants and the function itself, but this doesn't make sense because I clearly specified integration limits.
K
is a system variable, so should not be used, and, in general, caution should be used when capitalizing variable names as you can run into conflicts. Second, did you look upFunction
in the help? What aboutIntegrate
? Do the integrands useFunction
? $\endgroup$