0

I am trying to evaluate the following integral in Mathematica:

Integrate[u ^(m + 1)*Exp[-(u^2)/(2*rho)]*(u^2 - eps)^(j + k/2 - 1) , {u, Sqrt[eps],Infinity}]

I want to specify that for me, m and j are nonnegative integers, and k is a positive integer. Is there a way to do that in Mathematica? Thanks in advance!.

Thanks to @Bill's answer below, I was able to use:

Integrate[
 u ^(2*m + 1)*Exp[-(u^2)/(2*rho)]*(u^2 - eps)^(j + k/2 - 1) , {u, 
  Sqrt[eps], Infinity}, 
 Assumptions -> 
  m >= 0 && j >= 0 && k > 0 && Element[m | j | k, Integers] ]

However, the answer I get: involves Gamma(-m) when I use 2*m as an even integer (m here is an integer) which does not exist.

1 Answer 1

1

Try

Integrate[..integrand.. , ..domain..,
  Assumptions->m>=0&&j>=0&&k>0&&Element[m|j|k,Integers]]
Sign up to request clarification or add additional context in comments.

2 Comments

Thank you! This helps, however, I still get an answer involving Gamma[-m/2] which I for even integers m does not exist.
I will however mark your answer as correct because it does answer the specific question asked here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.