How to calculate this integral in Mathematica?
integral[(-(df/dx)* x^n(x+2x^2))dx, 0, inf]
How to calculate this integral in Mathematica?
integral[(-(df/dx)* x^n(x+2x^2))dx, 0, inf]
There is no way to know how to help you unless you provide the function f.
If you mean you want to syntax, then
Integrate[-f'[x]*x^n (x + 2 x^2), {x, 0, Infinity}]
Then if you have f defined before that, say
f[x_] := Exp[-x]
Then Mathematica should reply with
ConditionalExpression[(5 + 2 n) Gamma[2 + n], Re[n] > -2]
Hello and welcome to the Wolfram Community! Please take a few minutes to read this tutorial about correct posting Β especially of Mathematica code:
How to type up a post: editor tutorial & general tips
If you will not follow the tutorial, other members of community may not be able to test your code.
Please also note that you used wrong programming syntax for Mathematica or Wolfram language. We recommend looking up our extensive documentation on appropriate functions before you make a post, for example all function names start from capital letters and have proper syntax rules: Integrate
To edit your post Β click ΒEditΒ in the lower right corner of your post.
The function is
f(x) = 1/1+exp(x-1)/kt
m=3/2
l=0
n=0
a=2
I should calculate the Fermi integral
F(x) = integral[(-(df/dx)* x^n*(x+a*x^2)^m*[(1+2*a*x)^2+2]^l/2dx, 0, inf]
I try to calculate in Mathematica, but the problem come with error.
Thank for you help.
The above is not Mathematica syntax. It is also not Latex. It is free hand format and hard to read. It is not clear what you wrote. is βktβ a parameter? or is it βk*tβ. If it is βk*tβ, what is βkβ? a constant? does it have value? but f is a function of βxβ and not βtβ so it does not make sense to have βk*tβ in there. so may be then βktβ is the constant? but then does βktβ have a value? and what is βI=0β? Is βIβ used somewhere else? I do not see an βIβ in the equation. Is β^l/2β in your equation an β^1/2β? Hard to read the βlβ from a β1β on the screen. But you said that βI=0β before, so it canβt be β^Iβ since that will make the whole thing 1 because anything to the power zero is 1 (except for 0^0), so it must be β1/2β, but if so, why then say βI=0β before and not use it? You also say βn=0β, then you have βx^nβ in the equation. But βx^0β is 1. So why have it in there in first place? You also have 1/1+Exp[x-1], but 1/1 is 1? so why have it there?
Why not use valid Mathematica code? If you do not know the syntax of Mathematica, you can try Wolfram|Alpha, it should accept natural human input similar to what you have above. Or you can post an image of the equation from the book so it is clear what it is.
This is my best guess:
m = 3/2;
n = 0;
a = 2;
kt = 1;
f[x_] := 1/1 + Exp[x - 1]/(kt)
Integrate[-f'[x]*x^n*(x + a*x^2)^m*((1 + 2*a*x)^2 + 2)^1/2, {x, 0,Infinity}]
But this does not converge.