I'm rather new to Mathematica so there might be an easy solution but I couldn't find it in another forum. I have an integral that will probably require numerical approximation as Mathematica can't solve it directly.
My Code is
xFunction[x_] = (.01 + .3x)/(2*(2 + 3.2*x - 2.39*(x^2)))
$Assumptions = x <= 0.7
$Assumptions = x >= 0.3
MyIntegral = Integrate[(Tanh[Y]^2)*(xFunction[x] - Y)^(1/6), {Y, .3, x}]
Do I need to define x as a real number? The end goal is to take the values of x on 0.3<x<.7 and graph it which x as the independent variable on the x-axis and MyIntegral as the dependent variable on the y-axis. Y is just a dummy variable so it shouldn't matter. I'm sure it's just a few lines of code but I can't seem to figure it out. Any help would be appreciated!
C
, since it has special meaning in Wolfram Language). ChangingC
toc
and defining a test polynomialCFunction[x_] := 3 x^2 - 5 x^3
, I do get a numerical result:With[{c = 0.6}, NIntegrate[(Tanh[Y]^2)*(CFunction[Y] - Y)^(1/6), {Y, .3, c}]]
$\endgroup$(xFunction[x] - Y)
in the integrand and not(xFunction - Y)
? $\endgroup$x
. The integralIntegrate[(Tanh[Y]^2)*(Y)^(1/6), Y]
does not evaluate analytically. Need to use Numerical integration as shown above. $\endgroup$