MATLAB: I want to integrate the following function w.r.t p. p

integration with respect to one variable.

Hello,I want to integrate the following function w.r.t p. p varies from 0 to infinity.
f(u,p)=cosh(p)*sech(p+u)*tanh(u+p)*cos(p)
After finding f(u) from above integral,I want to calculate integral from 0 to 1 of (f(u)^2+sin(u)).

Best Answer

The first integral is undefined. The cos(p) goes to +/- 1 as p goes to infinity, and the other terms do not converge to 0 or to any ratio that goes to 0 faster than the cos goes to +/- 1.
The integral becomes defined in some cases where p is a function of u, such as p = v*u for real constant v; however for p independent of u, there is no integral.